{
  "openapi": "3.1.1",
  "info": {
    "title": "Vision Scan SaaS API",
    "description": "Versioned REST contract for the Vision Scan SaaS backend. All resource routes are tenant-scoped and require a bearer JWT whose claims carry the tenant. Errors are RFC 9457 problem documents with a stable machine-readable `code` and a `correlationId`. This document is published as the deterministic artifact artifacts/openapi/vision-scan-api-v1.json and is the only supported source for generated clients.",
    "version": "1.0.0"
  },
  "paths": {
    "/api/v1/benchmarks": {
      "post": {
        "tags": [
          "Benchmarks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBenchmarkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Benchmarks"
        ],
        "parameters": [
          {
            "name": "PageIndex",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "EvidenceType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/BenchmarkEvidenceType"
            }
          },
          {
            "name": "ApprovalStatus",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/BenchmarkApprovalStatus"
            }
          },
          {
            "name": "Visibility",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/EvidenceVisibility"
            }
          },
          {
            "name": "IncludeSuperseded",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfBenchmarkDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/benchmarks/{id}": {
      "get": {
        "tags": [
          "Benchmarks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenchmarkDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/benchmarks/{id}/approval": {
      "put": {
        "tags": [
          "Benchmarks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBenchmarkApprovalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}/approval"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}/approval"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}/approval"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/benchmarks/{id}/visibility": {
      "put": {
        "tags": [
          "Benchmarks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBenchmarkVisibilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}/visibility"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}/visibility"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/benchmarks/{id}/supersede": {
      "post": {
        "tags": [
          "Benchmarks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupersedeBenchmarkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}/supersede"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}/supersede"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/benchmarks/{id}/supersede"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/public/benchmarks/snapshots": {
      "post": {
        "tags": [
          "PublicBenchmarks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBenchmarkPublicSnapshotRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/public/benchmarks/snapshots"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "PublicBenchmarks"
        ],
        "parameters": [
          {
            "name": "PageIndex",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "Engine",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "DeviceProfile",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PublishedOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfBenchmarkPublicSnapshotDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/public/benchmarks/snapshots/{id}": {
      "get": {
        "tags": [
          "PublicBenchmarks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenchmarkPublicSnapshotDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/public/benchmarks/snapshots/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/public/benchmarks/snapshots/{id}/approve": {
      "put": {
        "tags": [
          "PublicBenchmarks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/public/benchmarks/snapshots/{id}/approve"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/public/benchmarks/snapshots/{id}/reject": {
      "put": {
        "tags": [
          "PublicBenchmarks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/public/benchmarks/snapshots/{id}/reject"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/public/benchmarks/snapshots/{id}/publish": {
      "put": {
        "tags": [
          "PublicBenchmarks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/public/benchmarks/snapshots/{id}/publish"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/public/benchmarks/snapshots/{id}/publish"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/public/roi/assumptions": {
      "get": {
        "tags": [
          "PublicRoi"
        ],
        "summary": "Retrieves governed ROI calculation parameters, default values, and evidence status.",
        "operationId": "GetPublicRoiAssumptions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RoiAssumptionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/public/roi/calculate": {
      "post": {
        "tags": [
          "PublicRoi"
        ],
        "summary": "Calculates projected operational labor and exception cost savings scenario.",
        "operationId": "CalculatePublicRoi",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoiCalculationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoiCalculationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/public/roi/calculate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sdk-telemetry/ingest": {
      "post": {
        "tags": [
          "SdkTelemetry"
        ],
        "operationId": "IngestSdkTelemetry",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SdkTelemetryIngestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkTelemetryIngestResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/sdk-telemetry/ingest"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/sdk-telemetry/ingest"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/429",
                  "title": "Request Failed",
                  "status": 429,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/sdk-telemetry/ingest"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sdk-telemetry/usage": {
      "get": {
        "tags": [
          "SdkTelemetry"
        ],
        "operationId": "GetSdkTelemetryCustomerUsage",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "maxDevices",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkTelemetryCustomerUsageResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/sdk-telemetry/usage"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/sdk-telemetry/usage"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sdk-telemetry/support/diagnostics": {
      "get": {
        "tags": [
          "SdkTelemetry"
        ],
        "operationId": "GetSdkTelemetrySupportDiagnostics",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "maxDevices",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkTelemetrySupportProjectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/sdk-telemetry/support/diagnostics"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/sdk-telemetry/support/diagnostics"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/health/live": {
      "get": {
        "tags": [
          "Health"
        ],
        "operationId": "GetLiveness",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthCheckResponse"
                },
                "example": {
                  "status": "Healthy",
                  "checks": [
                    {
                      "name": "self",
                      "status": "Healthy"
                    }
                  ],
                  "correlationId": "0HN7B2M3QK4L5:00000001"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/health/ready": {
      "get": {
        "tags": [
          "Health"
        ],
        "operationId": "GetReadiness",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthCheckResponse"
                },
                "example": {
                  "status": "Healthy",
                  "checks": [
                    {
                      "name": "self",
                      "status": "Healthy"
                    }
                  ],
                  "correlationId": "0HN7B2M3QK4L5:00000001"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthCheckResponse"
                },
                "example": {
                  "status": "Unhealthy",
                  "checks": [
                    {
                      "name": "self",
                      "status": "Unhealthy"
                    }
                  ],
                  "correlationId": "0HN7B2M3QK4L5:00000002"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/evaluations/abuse/status": {
      "get": {
        "tags": [
          "EvaluationAbuse"
        ],
        "summary": "Returns the evaluation abuse-control status for the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationAbuseStatusResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/evaluations/abuse/override": {
      "post": {
        "tags": [
          "EvaluationAbuse"
        ],
        "summary": "Grants an auditable abuse override for a normalized signal (internal-review path).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluationAbuseOverrideRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluationAbuseOverrideRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluationAbuseOverrideRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationAbuseOverrideResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/abuse/override"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/abuse/override"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/daily-usage-aggregates": {
      "get": {
        "tags": [
          "DailyUsageAggregation"
        ],
        "summary": "Gets daily usage aggregations for the authenticated tenant within a date range.",
        "parameters": [
          {
            "name": "RangeStartUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "RangeEndUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EventType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EventCategory",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ProductId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DailyUsageAggregateResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/daily-usage-aggregates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/daily-usage-aggregates"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/daily-usage-aggregates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/daily-usage-aggregates"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/retention-jobs": {
      "post": {
        "tags": [
          "RetentionJob"
        ],
        "summary": "Queues a new retention-analysis job for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRetentionJobRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRetentionJobRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRetentionJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetentionJobResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "RetentionJob"
        ],
        "summary": "Lists the authenticated tenant's retention jobs.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RetentionJobResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/retention-jobs/{id}": {
      "get": {
        "tags": [
          "RetentionJob"
        ],
        "summary": "Returns a single retention job owned by the tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetentionJobResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/retention-jobs/{id}/start": {
      "post": {
        "tags": [
          "RetentionJob"
        ],
        "summary": "Starts a queued retention job.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetentionJobResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/start"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/start"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/start"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/start"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/retention-jobs/{id}/complete": {
      "post": {
        "tags": [
          "RetentionJob"
        ],
        "summary": "Completes a running retention job as succeeded or failed.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteRetentionJobRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteRetentionJobRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteRetentionJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetentionJobResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/complete"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/retention-jobs/{id}/cancel": {
      "post": {
        "tags": [
          "RetentionJob"
        ],
        "summary": "Cancels a queued or running retention job.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetentionJobResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/cancel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/cancel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/cancel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/cancel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/cancel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/cancel"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/cancel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/retention-jobs/{id}/cancel"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/revenue-analytics": {
      "get": {
        "tags": [
          "RevenueAnalytics"
        ],
        "summary": "Queries the authenticated tenant's revenue analytics snapshots within a UTC period range.",
        "parameters": [
          {
            "name": "rangeStartUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "rangeEndUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "currencyCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RevenueAnalyticsSnapshotResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "RevenueAnalytics"
        ],
        "summary": "Builds (creates or recomputes) a revenue analytics snapshot for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BuildRevenueAnalyticsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BuildRevenueAnalyticsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BuildRevenueAnalyticsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevenueAnalyticsSnapshotResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/revenue-analytics"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/usage-events": {
      "post": {
        "tags": [
          "UsageEvents"
        ],
        "summary": "Records one privacy-safe usage event for the authenticated tenant. The tenant\r\nand acting user are taken from the request claims; only coarse, non-identifying\r\nsignals are accepted in the body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageEventRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageEventRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageEventResponse"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageEventResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/usage-events"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/usage-events"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/usage-events"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/usage-events"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/usage-events"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/usage-events"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/invitations": {
      "post": {
        "tags": [
          "Invitations"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvitationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvitationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvitationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Invitations"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/invitations/{invitationId}/revoke": {
      "post": {
        "tags": [
          "Invitations"
        ],
        "parameters": [
          {
            "name": "invitationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/{invitationId}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/{invitationId}/revoke"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/{invitationId}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/{invitationId}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/{invitationId}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/{invitationId}/revoke"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/{invitationId}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/{invitationId}/revoke"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/invitations/accept": {
      "post": {
        "tags": [
          "Invitations"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptInvitationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptInvitationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptInvitationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/invitations/accept"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/memberships": {
      "post": {
        "tags": [
          "Memberships"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMembershipRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMembershipRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMembershipRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Memberships"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/memberships/{membershipId}/suspend": {
      "post": {
        "tags": [
          "Memberships"
        ],
        "parameters": [
          {
            "name": "membershipId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/suspend"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/suspend"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/suspend"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/suspend"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/suspend"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/suspend"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/suspend"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/suspend"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/memberships/{membershipId}/reactivate": {
      "post": {
        "tags": [
          "Memberships"
        ],
        "parameters": [
          {
            "name": "membershipId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/reactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/reactivate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/reactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/reactivate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/reactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/reactivate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/reactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/reactivate"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/memberships/{membershipId}/revoke": {
      "post": {
        "tags": [
          "Memberships"
        ],
        "parameters": [
          {
            "name": "membershipId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/revoke"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/revoke"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/memberships/{membershipId}/revoke"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rbac/permissions": {
      "post": {
        "tags": [
          "Rbac"
        ],
        "summary": "Creates a permission inside the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePermissionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePermissionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePermissionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PermissionContract"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PermissionContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Rbac"
        ],
        "summary": "Lists permissions inside the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PermissionListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/permissions"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rbac/roles": {
      "post": {
        "tags": [
          "Rbac"
        ],
        "summary": "Creates a role inside the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleContract"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Rbac"
        ],
        "summary": "Lists roles inside the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}": {
      "put": {
        "tags": [
          "Rbac"
        ],
        "summary": "Grants a permission to a role inside the authenticated tenant.",
        "parameters": [
          {
            "name": "roleKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "permissionKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}/check": {
      "get": {
        "tags": [
          "Rbac"
        ],
        "summary": "Checks whether a role grants a permission inside the authenticated tenant.",
        "parameters": [
          {
            "name": "roleKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "permissionKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PermissionGuardResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}/check"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}/check"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}/check"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}/check"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}/check"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/rbac/roles/{roleKey}/permissions/{permissionKey}/check"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/row-security-policies": {
      "post": {
        "tags": [
          "RowSecurityPolicy"
        ],
        "summary": "Defines (or idempotently returns) a tenant-scoped RLS policy.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DefineRowSecurityPolicyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DefineRowSecurityPolicyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DefineRowSecurityPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RowSecurityPolicyResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RowSecurityPolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "RowSecurityPolicy"
        ],
        "summary": "Lists every tenant-scoped RLS policy.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RowSecurityPolicyListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/row-security-policies/{policyName}": {
      "get": {
        "tags": [
          "RowSecurityPolicy"
        ],
        "summary": "Returns one tenant-scoped RLS policy by name.",
        "parameters": [
          {
            "name": "policyName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RowSecurityPolicyResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/row-security-policies/{policyName}/enabled": {
      "put": {
        "tags": [
          "RowSecurityPolicy"
        ],
        "summary": "Enables or suspends a tenant-scoped RLS policy.",
        "parameters": [
          {
            "name": "policyName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RowSecurityPolicyEnabledRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RowSecurityPolicyEnabledRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RowSecurityPolicyEnabledRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RowSecurityPolicyResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}/enabled"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}/enabled"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}/enabled"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}/enabled"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}/enabled"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/row-security-policies/{policyName}/enabled"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Sites": {
      "post": {
        "tags": [
          "Sites"
        ],
        "summary": "Creates a site inside the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSiteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSiteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSiteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Sites"
        ],
        "summary": "Lists the sites visible to the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Sites/{code}": {
      "get": {
        "tags": [
          "Sites"
        ],
        "summary": "Returns one site owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Sites"
        ],
        "summary": "Updates the mutable descriptive fields of a site owned by the\r\nauthenticated tenant.",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSiteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSiteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSiteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Sites/{code}/deactivate": {
      "post": {
        "tags": [
          "Sites"
        ],
        "summary": "Withdraws a site owned by the authenticated tenant from operational use.",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/deactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/deactivate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/deactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/deactivate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/deactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/deactivate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/deactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/deactivate"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Sites/{code}/reactivate": {
      "post": {
        "tags": [
          "Sites"
        ],
        "summary": "Returns a site owned by the authenticated tenant to operational use.",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/reactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/reactivate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/reactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/reactivate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/reactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/reactivate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/reactivate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Sites/{code}/reactivate"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tenant-onboarding": {
      "post": {
        "tags": [
          "TenantOnboarding"
        ],
        "summary": "Onboards a tenant with its initial site, idempotently by idempotency key.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantOnboardingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantOnboardingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TenantOnboardingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantOnboardingResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantOnboardingResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-onboarding"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-onboarding"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-onboarding"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-onboarding"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-onboarding"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-onboarding"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-onboarding"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-onboarding"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Tenants/onboard": {
      "post": {
        "tags": [
          "Tenants"
        ],
        "summary": "Onboards a tenant and optional first site in one idempotent transaction.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardTenantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardTenantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardTenantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardTenantResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardTenantResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/onboard"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/onboard"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/onboard"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/onboard"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Tenants/current": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "summary": "Returns the tenant named by the caller's authenticated claims.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Tenants"
        ],
        "summary": "Renames the caller's own tenant. The tenant code is immutable.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Tenants/current"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/AuditEvent": {
      "post": {
        "tags": [
          "AuditEvent"
        ],
        "summary": "Records a new audit event for the authenticated tenant.",
        "requestBody": {
          "description": "Audit event creation request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordAuditEventRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordAuditEventRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordAuditEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditEventResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AuditEvent"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AuditEvent"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "AuditEvent"
        ],
        "summary": "Returns audit events for the authenticated tenant with optional filtering.",
        "parameters": [
          {
            "name": "eventType",
            "in": "query",
            "description": "Optional event type filter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of events to return (default 100).",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Number of events to skip for pagination (default 0).",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Collection of audit events owned by the authenticated tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEventResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/AuditEvent/{id}": {
      "get": {
        "tags": [
          "AuditEvent"
        ],
        "summary": "Returns one audit event owned by the authenticated tenant by ID.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Audit event identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditEventResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AuditEvent/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AuditEvent/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/retention-policies": {
      "post": {
        "tags": [
          "DataRetentionPolicy"
        ],
        "summary": "Creates a new data retention policy for the authenticated tenant.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataRetentionPolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/retention-policies/{policyKey}": {
      "get": {
        "tags": [
          "DataRetentionPolicy"
        ],
        "summary": "Gets a data retention policy by policy key for the authenticated tenant.",
        "parameters": [
          {
            "name": "policyKey",
            "in": "path",
            "description": "Stable policy key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataRetentionPolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies/{policyKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies/{policyKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies/{policyKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies/{policyKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "DataRetentionPolicy"
        ],
        "summary": "Updates a data retention policy for the authenticated tenant.",
        "parameters": [
          {
            "name": "policyKey",
            "in": "path",
            "description": "Stable policy key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataRetentionPolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies/{policyKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies/{policyKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies/{policyKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/retention-policies/{policyKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/privacy-consents": {
      "post": {
        "tags": [
          "PrivacyConsent"
        ],
        "summary": "Records a new privacy consent for the authenticated tenant.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePrivacyConsentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePrivacyConsentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePrivacyConsentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrivacyConsentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/privacy-consents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/privacy-consents"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/privacy-consents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/privacy-consents"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/privacy-consents/{subjectIdentifier}/{purpose}": {
      "get": {
        "tags": [
          "PrivacyConsent"
        ],
        "summary": "Gets a privacy consent record by subject identifier and purpose for the authenticated tenant.",
        "parameters": [
          {
            "name": "subjectIdentifier",
            "in": "path",
            "description": "Data subject identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "purpose",
            "in": "path",
            "description": "Consent purpose.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrivacyConsentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/privacy-consents/{subjectIdentifier}/{purpose}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/privacy-consents/{subjectIdentifier}/{purpose}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/privacy-consents/{subjectIdentifier}/{purpose}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/security/privacy-consents/{subjectIdentifier}/{purpose}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PrivacyControls/data-retention-policies": {
      "post": {
        "tags": [
          "PrivacyControls"
        ],
        "summary": "Creates a new tenant-scoped data retention policy.",
        "requestBody": {
          "description": "The creation request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataRetentionPolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PrivacyControls/data-retention-policies/{policyKey}": {
      "get": {
        "tags": [
          "PrivacyControls"
        ],
        "summary": "Returns one data retention policy owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "policyKey",
            "in": "path",
            "description": "Policy key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataRetentionPolicyResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies/{policyKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies/{policyKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "PrivacyControls"
        ],
        "summary": "Updates a data retention policy owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "policyKey",
            "in": "path",
            "description": "Policy key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The update request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataRetentionPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataRetentionPolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies/{policyKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies/{policyKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies/{policyKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies/{policyKey}"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies/{policyKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/data-retention-policies/{policyKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PrivacyControls/privacy-consents": {
      "post": {
        "tags": [
          "PrivacyControls"
        ],
        "summary": "Creates a new tenant-scoped privacy consent record.",
        "requestBody": {
          "description": "The creation request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePrivacyConsentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePrivacyConsentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePrivacyConsentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrivacyConsentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/privacy-consents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/privacy-consents"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/privacy-consents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/privacy-consents"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/privacy-consents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/privacy-consents"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PrivacyControls/privacy-consents/{subjectIdentifier}/{purpose}": {
      "get": {
        "tags": [
          "PrivacyControls"
        ],
        "summary": "Returns one privacy consent record owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "subjectIdentifier",
            "in": "path",
            "description": "Subject identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "purpose",
            "in": "path",
            "description": "Purpose.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrivacyConsentResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/privacy-consents/{subjectIdentifier}/{purpose}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PrivacyControls/privacy-consents/{subjectIdentifier}/{purpose}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SigningKey": {
      "post": {
        "tags": [
          "SigningKey"
        ],
        "summary": "Registers a new tenant-owned active signing key.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterSigningKeyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterSigningKeyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterSigningKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SigningKeyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "SigningKey"
        ],
        "summary": "Returns every signing key owned by the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SigningKeyResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SigningKey/jwks": {
      "get": {
        "tags": [
          "SigningKey"
        ],
        "summary": "Returns the published JWKS for the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JwksResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SigningKey/{id}": {
      "get": {
        "tags": [
          "SigningKey"
        ],
        "summary": "Returns one signing key owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SigningKeyResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SigningKey/{id}/retire": {
      "post": {
        "tags": [
          "SigningKey"
        ],
        "summary": "Retires an active signing key (stops signing, stays in the JWKS until expiry).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SigningKeyResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/retire"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/retire"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/retire"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SigningKey/{id}/revoke": {
      "post": {
        "tags": [
          "SigningKey"
        ],
        "summary": "Revokes a signing key (terminal; removed from the published JWKS).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SigningKeyResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/revoke"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SigningKey/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ThreatModel": {
      "post": {
        "tags": [
          "ThreatModel"
        ],
        "summary": "Creates a new tenant-scoped threat-model artifact.",
        "requestBody": {
          "description": "The creation request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateThreatModelRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateThreatModelRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateThreatModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreatModelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ThreatModel/{artifactKey}/{revision}": {
      "get": {
        "tags": [
          "ThreatModel"
        ],
        "summary": "Returns one artifact owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "artifactKey",
            "in": "path",
            "description": "Artifact key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "revision",
            "in": "path",
            "description": "Revision number.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreatModelResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel/{artifactKey}/{revision}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel/{artifactKey}/{revision}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ThreatModel/{artifactKey}/{revision}/approve": {
      "put": {
        "tags": [
          "ThreatModel"
        ],
        "summary": "Approves an artifact owned by the authenticated tenant. Fail-closed: the\r\naggregate refuses approval while high/critical mitigations are open.\r\nThe approver identity is derived from authenticated claims, never from\r\nthe request body.",
        "parameters": [
          {
            "name": "artifactKey",
            "in": "path",
            "description": "Artifact key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "revision",
            "in": "path",
            "description": "Revision number.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreatModelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel/{artifactKey}/{revision}/approve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel/{artifactKey}/{revision}/approve"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel/{artifactKey}/{revision}/approve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ThreatModel/{artifactKey}/{revision}/approve"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCredentials": {
      "post": {
        "tags": [
          "SdkCredential"
        ],
        "summary": "Issues a new SDK credential for the authenticated tenant. The plaintext\r\nsecret is returned exactly once in the response body and is never persisted\r\nor logged thereafter.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSdkApiCredentialRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSdkApiCredentialRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSdkApiCredentialRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedSdkApiCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "SdkCredential"
        ],
        "summary": "Lists the SDK credentials owned by the authenticated tenant (metadata only), newest first.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SdkApiCredentialResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCredentials/{id}": {
      "get": {
        "tags": [
          "SdkCredential"
        ],
        "summary": "Returns one SDK credential owned by the authenticated tenant (metadata only).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkApiCredentialResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCredentials/{id}/rotate": {
      "post": {
        "tags": [
          "SdkCredential"
        ],
        "summary": "Rotates an SDK credential owned by the authenticated tenant. The new\r\nplaintext secret is returned exactly once; the previous secret stays valid\r\nfor the requested overlap window so customers can migrate without downtime.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/RotateSdkApiCredentialRequest"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/RotateSdkApiCredentialRequest"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/RotateSdkApiCredentialRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedSdkApiCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}/rotate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}/rotate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}/rotate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}/rotate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}/rotate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}/rotate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCredentials/{id}/revoke": {
      "post": {
        "tags": [
          "SdkCredential"
        ],
        "summary": "Revokes an SDK credential owned by the authenticated tenant. Idempotent\r\nand fail-closed: any open rotation overlap window closes immediately.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkApiCredentialResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCredentials/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/BuildBillingEntitlementScenarios": {
      "post": {
        "tags": [
          "BuildBillingEntitlementScenarios"
        ],
        "summary": "Creates a new tenant-scoped build billing and device entitlement scenario.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBuildBillingEntitlementScenarioRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBuildBillingEntitlementScenarioRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBuildBillingEntitlementScenarioRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildBillingEntitlementScenarioResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/BuildBillingEntitlementScenarios"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/BuildBillingEntitlementScenarios"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/BuildBillingEntitlementScenarios"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/BuildBillingEntitlementScenarios"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/BuildBillingEntitlementScenarios/{scenarioKey}": {
      "get": {
        "tags": [
          "BuildBillingEntitlementScenarios"
        ],
        "summary": "Returns one scenario owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "scenarioKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildBillingEntitlementScenarioResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/BuildBillingEntitlementScenarios/{scenarioKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/BuildBillingEntitlementScenarios/{scenarioKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "BuildBillingEntitlementScenarios"
        ],
        "summary": "Removes a build billing and device entitlement scenario.",
        "parameters": [
          {
            "name": "scenarioKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/BuildBillingEntitlementScenarios/{scenarioKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/BuildBillingEntitlementScenarios/{scenarioKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/IntegrationTestFixture": {
      "post": {
        "tags": [
          "IntegrationTestFixture"
        ],
        "summary": "Creates a new tenant-scoped integration-test fixture definition.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIntegrationTestFixtureRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIntegrationTestFixtureRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIntegrationTestFixtureRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationTestFixtureResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/IntegrationTestFixture/{fixtureKey}": {
      "get": {
        "tags": [
          "IntegrationTestFixture"
        ],
        "summary": "Returns one fixture owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "fixtureKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationTestFixtureResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "IntegrationTestFixture"
        ],
        "summary": "Updates an existing fixture definition.",
        "parameters": [
          {
            "name": "fixtureKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIntegrationTestFixtureRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIntegrationTestFixtureRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIntegrationTestFixtureRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationTestFixtureResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/IntegrationTestFixture/{fixtureKey}/readiness": {
      "get": {
        "tags": [
          "IntegrationTestFixture"
        ],
        "summary": "Evaluates whether this fixture definition is ready for the harness.",
        "parameters": [
          {
            "name": "fixtureKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationTestFixtureResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationTestFixtureResponse"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}/readiness"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}/readiness"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}/readiness"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/IntegrationTestFixture/{fixtureKey}/readiness"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ReleaseCertificationGate": {
      "post": {
        "tags": [
          "ReleaseCertificationGate"
        ],
        "summary": "Creates a new tenant-scoped release certification gate.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseCertificationGateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseCertificationGateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseCertificationGateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseCertificationGateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ReleaseCertificationGate"
        ],
        "summary": "Returns every release certification gate owned by the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReleaseCertificationGateResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ReleaseCertificationGate/{releaseKey}": {
      "get": {
        "tags": [
          "ReleaseCertificationGate"
        ],
        "summary": "Returns one release certification gate owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "releaseKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseCertificationGateResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ReleaseCertificationGate"
        ],
        "summary": "Updates the mutable metadata of one release certification gate owned by the\r\nauthenticated tenant.",
        "parameters": [
          {
            "name": "releaseKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReleaseCertificationGateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReleaseCertificationGateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReleaseCertificationGateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseCertificationGateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ReleaseCertificationGate/{releaseKey}/evidence": {
      "post": {
        "tags": [
          "ReleaseCertificationGate"
        ],
        "summary": "Records evidence for one gate area and recalculates the certification status.",
        "parameters": [
          {
            "name": "releaseKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordReleaseCertificationGateEvidenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordReleaseCertificationGateEvidenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordReleaseCertificationGateEvidenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseCertificationGateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}/evidence"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}/evidence"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}/evidence"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}/evidence"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}/evidence"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ReleaseCertificationGate/{releaseKey}/evidence"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TestRequirements": {
      "post": {
        "tags": [
          "TestRequirements"
        ],
        "summary": "Creates a new tenant-scoped test-requirement traceability record.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestRequirementRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestRequirementRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestRequirementRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestRequirementResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TestRequirements/{requirementKey}": {
      "get": {
        "tags": [
          "TestRequirements"
        ],
        "summary": "Returns one requirement owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "requirementKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestRequirementResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements/{requirementKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements/{requirementKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TestRequirements/{requirementKey}/traceability": {
      "get": {
        "tags": [
          "TestRequirements"
        ],
        "summary": "Evaluates the traceability verdict for one requirement owned by the\r\nauthenticated tenant.",
        "parameters": [
          {
            "name": "requirementKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestRequirementResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements/{requirementKey}/traceability"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements/{requirementKey}/traceability"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements/{requirementKey}/traceability"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TestRequirements/{requirementKey}/traceability"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TrustEvidenceRegistry": {
      "post": {
        "tags": [
          "TrustEvidenceRegistry"
        ],
        "summary": "Creates a new tenant-scoped trust evidence record.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTrustEvidenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTrustEvidenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTrustEvidenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustEvidenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "TrustEvidenceRegistry"
        ],
        "summary": "Returns every trust evidence record owned by the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrustEvidenceResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TrustEvidenceRegistry/public": {
      "get": {
        "tags": [
          "TrustEvidenceRegistry"
        ],
        "summary": "Returns only approved, public, non-expired trust evidence records.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrustEvidenceResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TrustEvidenceRegistry/{id}": {
      "get": {
        "tags": [
          "TrustEvidenceRegistry"
        ],
        "summary": "Returns one trust evidence record owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustEvidenceResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "TrustEvidenceRegistry"
        ],
        "summary": "Updates the mutable details of a draft or rejected trust evidence record.\r\nRe-validates the unsupported-claim guard when the record is (or becomes) public.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTrustEvidenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTrustEvidenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTrustEvidenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustEvidenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TrustEvidenceRegistry/{id}/submit": {
      "post": {
        "tags": [
          "TrustEvidenceRegistry"
        ],
        "summary": "Submits a draft trust evidence record for review.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustEvidenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/submit"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/submit"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/submit"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/submit"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TrustEvidenceRegistry/{id}/approve": {
      "post": {
        "tags": [
          "TrustEvidenceRegistry"
        ],
        "summary": "Approves a submitted trust evidence record.\r\nA public record requires a document link, which is what prevents unapproved/unsourced\r\ncertification or legal claims from becoming publicly visible.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveTrustEvidenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveTrustEvidenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveTrustEvidenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustEvidenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/approve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/approve"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/approve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/approve"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/TrustEvidenceRegistry/{id}/reject": {
      "post": {
        "tags": [
          "TrustEvidenceRegistry"
        ],
        "summary": "Rejects a submitted trust evidence record.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectTrustEvidenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectTrustEvidenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectTrustEvidenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustEvidenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/reject"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/reject"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/reject"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/TrustEvidenceRegistry/{id}/reject"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PrivateEntitlementPackager/generate": {
      "post": {
        "tags": [
          "PrivateEntitlementPackager"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratePackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratePackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratePackageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PrivateEntitlementPackager/validate": {
      "post": {
        "tags": [
          "PrivateEntitlementPackager"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidatePackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidatePackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidatePackageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CiGates": {
      "post": {
        "tags": [
          "CiGates"
        ],
        "summary": "Creates a new tenant-scoped CI quality/security gate definition.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCiGateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCiGateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCiGateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CiGateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CiGates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CiGates"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CiGates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CiGates"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CiGates/{gateKey}": {
      "get": {
        "tags": [
          "CiGates"
        ],
        "summary": "Returns one CI quality/security gate owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "gateKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CiGateResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CiGates/{gateKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CiGates/{gateKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/EnvironmentConfiguration/inline": {
      "post": {
        "tags": [
          "EnvironmentConfiguration"
        ],
        "summary": "Declares or replaces a non-sensitive inline configuration entry for the\r\nauthenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeclareInlineConfigurationEntryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeclareInlineConfigurationEntryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeclareInlineConfigurationEntryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentConfigurationEntryContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/inline"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/inline"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/inline"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/inline"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/EnvironmentConfiguration/secret": {
      "post": {
        "tags": [
          "EnvironmentConfiguration"
        ],
        "summary": "Declares or replaces a secret-backed configuration entry for the\r\nauthenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeclareSecretConfigurationEntryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeclareSecretConfigurationEntryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeclareSecretConfigurationEntryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentConfigurationEntryContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/secret"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/secret"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/secret"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/secret"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/EnvironmentConfiguration/{environment}/{key}": {
      "get": {
        "tags": [
          "EnvironmentConfiguration"
        ],
        "summary": "Returns one configuration entry owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "environment",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeploymentEnvironmentContract"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentConfigurationEntryContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/{environment}/{key}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/EnvironmentConfiguration/{environment}/{key}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/EnvironmentConfiguration/{environment}": {
      "get": {
        "tags": [
          "EnvironmentConfiguration"
        ],
        "summary": "Lists the configuration entries owned by the authenticated tenant for one\r\nenvironment, ordered by key.",
        "parameters": [
          {
            "name": "environment",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeploymentEnvironmentContract"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnvironmentConfigurationEntryContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/EnvironmentConfiguration/{environment}/snapshot": {
      "get": {
        "tags": [
          "EnvironmentConfiguration"
        ],
        "summary": "Produces the resolved configuration surface for one environment,\r\nincluding the keys still pending secret injection.",
        "parameters": [
          {
            "name": "environment",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeploymentEnvironmentContract"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentConfigurationSnapshotContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/health-check": {
      "post": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Records a health observation for a tenant-owned component.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordHealthCheckRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordHealthCheckRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordHealthCheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComponentHealthResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/health-check"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/health-check"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/health-check/{id}": {
      "get": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Returns one health check record owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComponentHealthResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/health-check/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/health-check/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/backup": {
      "post": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Starts a backup run for a tenant-owned data set.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartBackupRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartBackupRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartBackupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/backup"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/backup"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/backup/{id}": {
      "get": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Returns one backup record owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/backup/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/backup/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/backup/{id}/complete-success": {
      "post": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Closes a backup run as successful.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteBackupSuccessRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteBackupSuccessRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteBackupSuccessRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/backup/{id}/complete-success"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/backup/{id}/complete-success"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/backup/{id}/complete-failure": {
      "post": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Closes a backup run as failed.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteBackupFailureRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteBackupFailureRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteBackupFailureRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/backup/{id}/complete-failure"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/backup/{id}/complete-failure"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/dr-objective": {
      "post": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Defines disaster-recovery objectives for a tenant-owned data set.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DefineDisasterRecoveryObjectiveRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DefineDisasterRecoveryObjectiveRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DefineDisasterRecoveryObjectiveRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DisasterRecoveryObjectiveResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/dr-objective"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/dr-objective"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/dr-objective/{id}": {
      "get": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Returns one disaster recovery objective owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DisasterRecoveryObjectiveResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/dr-objective/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/dr-objective/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/dr-drill": {
      "post": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Records a completed disaster-recovery drill.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordDisasterRecoveryDrillRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordDisasterRecoveryDrillRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordDisasterRecoveryDrillRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryDrillResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/dr-drill"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/dr-drill"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/HealthBackupDr/dr-drill/{id}": {
      "get": {
        "tags": [
          "HealthBackupDr"
        ],
        "summary": "Returns one disaster recovery drill owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryDrillResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/dr-drill/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/HealthBackupDr/dr-drill/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Provisioning": {
      "post": {
        "tags": [
          "Provisioning"
        ],
        "summary": "Provisions backend runtime resources (SQL Server, object storage and\r\napplication runtimes) for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionResourceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionResourceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionResourceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Provisioning/{provisioningId}": {
      "get": {
        "tags": [
          "Provisioning"
        ],
        "summary": "Returns one provisioning record owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "provisioningId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning/{provisioningId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning/{provisioningId}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning/{provisioningId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Provisioning/{provisioningId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Telemetry": {
      "post": {
        "tags": [
          "Telemetry"
        ],
        "summary": "Records a new tenant-scoped telemetry signal.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordTelemetryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordTelemetryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordTelemetryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryRecordDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Telemetry"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Telemetry"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Telemetry"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Telemetry"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Telemetry"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Telemetry"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Telemetry/{id}": {
      "get": {
        "tags": [
          "Telemetry"
        ],
        "summary": "Returns one telemetry record owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryRecordDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Telemetry/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Telemetry/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomContract": {
      "post": {
        "tags": [
          "CustomContract"
        ],
        "summary": "Creates a custom contract with its negotiated terms for the authenticated\r\ntenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomContractRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomContractRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomContractRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomContractContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "CustomContract"
        ],
        "summary": "Returns the custom contracts visible to the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomContractsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomContract/{contractKey}": {
      "get": {
        "tags": [
          "CustomContract"
        ],
        "summary": "Returns one custom contract owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "contractKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomContractContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "CustomContract"
        ],
        "summary": "Updates the editable administration fields of a custom contract owned by the\r\nauthenticated tenant.",
        "parameters": [
          {
            "name": "contractKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomContractRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomContractRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomContractRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomContractContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomContract/{contractKey}/activate": {
      "post": {
        "tags": [
          "CustomContract"
        ],
        "summary": "Activates a draft custom contract owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "contractKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomContractContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/activate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/activate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/activate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/activate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomContract/{contractKey}/terminate": {
      "post": {
        "tags": [
          "CustomContract"
        ],
        "summary": "Terminates a custom contract owned by the authenticated tenant before its\r\nwindow closes.",
        "parameters": [
          {
            "name": "contractKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomContractContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/terminate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/terminate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/terminate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/terminate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/terminate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/terminate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/terminate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/terminate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomContract/{contractKey}/expire": {
      "post": {
        "tags": [
          "CustomContract"
        ],
        "summary": "Marks a custom contract expired once its window has elapsed.",
        "parameters": [
          {
            "name": "contractKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomContractContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/expire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/expire"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/expire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/expire"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/expire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/expire"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/expire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomContract/{contractKey}/expire"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plans/entitlements/{featureKey}": {
      "get": {
        "tags": [
          "PlanFeatureEntitlement"
        ],
        "summary": "Evaluates whether the authenticated tenant is entitled to a feature under\r\nits effective plan. An optional `planKey` evaluates a specific plan\r\ninstead of the tenant's active plan.",
        "parameters": [
          {
            "name": "featureKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "planKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureEntitlementResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/plans/entitlements/{featureKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/plans/entitlements/{featureKey}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/plans/entitlements/{featureKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/plans/entitlements/{featureKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/plans/entitlements/{featureKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/plans/entitlements/{featureKey}"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/plans/entitlements/{featureKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/plans/entitlements/{featureKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Plans": {
      "post": {
        "tags": [
          "Plans"
        ],
        "summary": "Creates a plan with its configured prices and granted features for the\r\nauthenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Plans"
        ],
        "summary": "Returns the plan catalogue visible to the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanCatalogResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Plans/{planKey}": {
      "get": {
        "tags": [
          "Plans"
        ],
        "summary": "Returns one plan owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "planKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Plans/{planKey}/activate": {
      "post": {
        "tags": [
          "Plans"
        ],
        "summary": "Publishes a plan owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "planKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/activate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/activate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Plans/{planKey}/retire": {
      "post": {
        "tags": [
          "Plans"
        ],
        "summary": "Withdraws a plan owned by the authenticated tenant from sale.",
        "parameters": [
          {
            "name": "planKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/retire"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/retire"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Plans/{planKey}/catalog-sync": {
      "put": {
        "tags": [
          "Plans"
        ],
        "summary": "Records the external catalog identifiers backing one local plan.",
        "parameters": [
          {
            "name": "planKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncPlanCatalogRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncPlanCatalogRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SyncPlanCatalogRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanCatalogSyncContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/catalog-sync"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/catalog-sync"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/catalog-sync"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/catalog-sync"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/catalog-sync"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/{planKey}/catalog-sync"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Plans/public": {
      "get": {
        "tags": [
          "Plans"
        ],
        "summary": "Returns published public pricing from the server-approved catalog publisher.",
        "parameters": [
          {
            "name": "currencyCode",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "USD"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPlanCatalogResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/Plans/public/publish": {
      "post": {
        "tags": [
          "Plans"
        ],
        "summary": "Publishes a tenant-owned active plan onto the public pricing surface.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishPublicPlanRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishPublicPlanRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublishPublicPlanRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPlanListingContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public/publish"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public/publish"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Plans/public/publish"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/leads": {
      "post": {
        "tags": [
          "Leads"
        ],
        "summary": "Captures a new tenant-owned lead from a marketing form submission.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLeadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLeadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLeadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadSummaryContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Leads"
        ],
        "summary": "Returns every lead owned by the authenticated tenant, newest first.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LeadSummaryContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/leads/{id}": {
      "get": {
        "tags": [
          "Leads"
        ],
        "summary": "Returns one lead owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadSummaryContract"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/leads/{id}/status": {
      "patch": {
        "tags": [
          "Leads"
        ],
        "summary": "Updates the status of a lead owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLeadStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLeadStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLeadStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadSummaryContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}/status"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}/status"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}/status"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/leads/{id}/status"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Authentication/signup": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Registers a new account in the authenticated tenant and issues an e-mail\r\nverification token.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignupRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SignupRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SignupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/Authentication/evaluation-signup": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Public evaluation onboarding: resolves or creates an organization tenant\r\nand registers its first account without requiring an existing tenant\r\ncontext.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicEvaluationSignupRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicEvaluationSignupRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicEvaluationSignupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEvaluationSignupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/Authentication/verify": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Redeems an e-mail verification token, activating the account.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/Authentication/verification/resend": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Sends a fresh e-mail verification link for an unverified account.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationResendRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationResendRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationResendRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationResendResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/Authentication/password-reset/request": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Sends a password-reset link when the supplied login resolves to an\r\neligible account.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasswordResetRequestResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/Authentication/password-reset/confirm": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Redeems a password-reset token and replaces the account password.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetConfirmRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetConfirmRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetConfirmRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasswordResetConfirmResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/Authentication/login": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Authenticates a credential and starts a session.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/Authentication/refresh": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Exchanges a refresh token for a rotated one.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefreshResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/MfaSso/begin-mfa-enrollment": {
      "post": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Starts enrolling a second factor.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BeginMfaEnrollmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BeginMfaEnrollmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BeginMfaEnrollmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BeginMfaEnrollmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/begin-mfa-enrollment"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/begin-mfa-enrollment"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/begin-mfa-enrollment"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/begin-mfa-enrollment"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/begin-mfa-enrollment"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/begin-mfa-enrollment"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/confirm-mfa-enrollment": {
      "post": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Confirms possession of an enrolled factor.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmMfaEnrollmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmMfaEnrollmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmMfaEnrollmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaEnrollmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/confirm-mfa-enrollment"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/verify-mfa-challenge": {
      "post": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Verifies a second factor during sign-in.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyMfaChallengeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyMfaChallengeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyMfaChallengeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaEnrollmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/verify-mfa-challenge"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/verify-mfa-challenge"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/verify-mfa-challenge"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/verify-mfa-challenge"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/verify-mfa-challenge"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/verify-mfa-challenge"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/verify-mfa-challenge"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/verify-mfa-challenge"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/create-enterprise-sso-connection": {
      "post": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Stages a new enterprise SSO connection.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEnterpriseSsoConnectionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEnterpriseSsoConnectionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEnterpriseSsoConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseSsoConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/create-enterprise-sso-connection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/create-enterprise-sso-connection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/create-enterprise-sso-connection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/create-enterprise-sso-connection"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/create-enterprise-sso-connection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/create-enterprise-sso-connection"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}": {
      "put": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Updates a staged enterprise SSO connection's trust material.",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEnterpriseSsoConnectionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEnterpriseSsoConnectionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEnterpriseSsoConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseSsoConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/enable": {
      "post": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Enables a staged enterprise SSO connection.",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseSsoConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/enable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/enable"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/enable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/enable"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/enable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/enable"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/disable": {
      "post": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Disables a live enterprise SSO connection.",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseSsoConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/disable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/disable"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/disable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/disable"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/disable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connection/{connectionId}/disable"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/enterprise-sso-connections": {
      "get": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Lists the tenant's enterprise SSO connections.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnterpriseSsoConnectionResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connections"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/enterprise-sso-connections"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/mfa-readiness": {
      "get": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Gets the effective MFA requirement and satisfaction state for the authenticated user.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaReadinessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/mfa-readiness"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/mfa-readiness"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/mfa-readiness"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/MfaSso/mfa-readiness"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/MfaSso/sso-route": {
      "post": {
        "tags": [
          "MfaSso"
        ],
        "summary": "Resolves a sign-in address to a federation route (home-realm discovery).",
        "description": "Intentionally unauthenticated: this is the step a sign-in page runs before\r\nthe user has established any session, so it must not require a tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SsoRouteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SsoRouteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SsoRouteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoRouteResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Session": {
      "get": {
        "tags": [
          "Session"
        ],
        "summary": "Returns the sessions owned by the authenticated user.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Session"
        ],
        "summary": "Revokes every session of the authenticated user.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionRevocationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Session/{sessionId}": {
      "delete": {
        "tags": [
          "Session"
        ],
        "summary": "Revokes the session identified by the route parameter for the authenticated user.",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionRevocationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session/{sessionId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session/{sessionId}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session/{sessionId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session/{sessionId}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session/{sessionId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Session/{sessionId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Users": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Creates a new tenant-scoped user. The tenant is bound server-side from the\r\nauthenticated principal.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Users"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Users"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Users"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Users"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Returns the users owned by the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Users/{userId}": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Returns one user owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Users/{userId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Users/{userId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DeviceEntitlementLicenses": {
      "post": {
        "tags": [
          "DeviceEntitlementLicenses"
        ],
        "summary": "Issues a signed device entitlement license for a verified seat reservation.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueDeviceEntitlementLicenseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueDeviceEntitlementLicenseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IssueDeviceEntitlementLicenseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueDeviceEntitlementLicenseResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DeviceEntitlementLicenses/{id}": {
      "get": {
        "tags": [
          "DeviceEntitlementLicenses"
        ],
        "summary": "Returns one license owned by the authenticated tenant, omitting the signed token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceEntitlementLicenseContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DeviceEntitlementLicenses/device/{deviceId}": {
      "get": {
        "tags": [
          "DeviceEntitlementLicenses"
        ],
        "summary": "Returns the active license for a device owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceEntitlementLicenseContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses/device/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses/device/{deviceId}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses/device/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DeviceEntitlementLicenses/device/{deviceId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/AgentSkillArtifact/skill-artifact": {
      "post": {
        "tags": [
          "AgentSkillArtifact"
        ],
        "summary": "Registers a new agent skill artifact (draft) into a release channel.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterAgentSkillArtifactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterAgentSkillArtifactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterAgentSkillArtifactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSkillArtifactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/skill-artifact"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/skill-artifact"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/AgentSkillArtifact/skill-artifact/{id}": {
      "get": {
        "tags": [
          "AgentSkillArtifact"
        ],
        "summary": "Returns one agent skill artifact owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSkillArtifactResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/skill-artifact/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/skill-artifact/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/AgentSkillArtifact/skill-artifact/{id}/publish": {
      "post": {
        "tags": [
          "AgentSkillArtifact"
        ],
        "summary": "Publishes a registered draft agent skill artifact.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishAgentSkillArtifactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishAgentSkillArtifactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublishAgentSkillArtifactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSkillArtifactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/skill-artifact/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/skill-artifact/{id}/publish"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/AgentSkillArtifact/skill-artifact/{id}/deprecate": {
      "post": {
        "tags": [
          "AgentSkillArtifact"
        ],
        "summary": "Deprecates a published agent skill artifact.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeprecateAgentSkillArtifactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeprecateAgentSkillArtifactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeprecateAgentSkillArtifactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSkillArtifactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/skill-artifact/{id}/deprecate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/skill-artifact/{id}/deprecate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/AgentSkillArtifact/release-channel/{id}/skill-catalog": {
      "get": {
        "tags": [
          "AgentSkillArtifact"
        ],
        "summary": "Gets the agent skill artifacts advertised by a release channel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSkillArtifactChannelCatalogResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/release-channel/{id}/skill-catalog"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/AgentSkillArtifact/release-channel/{id}/skill-catalog"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ApiCredential": {
      "post": {
        "tags": [
          "ApiCredential"
        ],
        "summary": "Issues a new scoped API credential for the authenticated tenant. The\r\nplaintext secret is returned exactly once in the response body and is\r\nnever persisted or logged thereafter.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiCredentialRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiCredentialRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiCredentialRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueApiCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ApiCredential"
        ],
        "summary": "Lists the credentials owned by the authenticated tenant, newest first.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiCredentialResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ApiCredential/{id}": {
      "get": {
        "tags": [
          "ApiCredential"
        ],
        "summary": "Returns one credential owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCredentialResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ApiCredential/{id}/revoke": {
      "post": {
        "tags": [
          "ApiCredential"
        ],
        "summary": "Revokes a credential owned by the authenticated tenant. Idempotent.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential/{id}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ApiCredential/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ArtifactPublication": {
      "post": {
        "tags": [
          "ArtifactPublication"
        ],
        "summary": "Registers a draft secure publication for a tenant-owned SDK artifact.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateArtifactPublicationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateArtifactPublicationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateArtifactPublicationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArtifactPublicationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ArtifactPublication"
        ],
        "summary": "Lists the publications owned by the authenticated tenant, newest first.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ArtifactPublicationResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ArtifactPublication/{id}": {
      "get": {
        "tags": [
          "ArtifactPublication"
        ],
        "summary": "Returns one publication owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArtifactPublicationResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ArtifactPublication/{id}/activate": {
      "post": {
        "tags": [
          "ArtifactPublication"
        ],
        "summary": "Activates a draft publication by embedding its secure access token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateArtifactPublicationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateArtifactPublicationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateArtifactPublicationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArtifactPublicationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/activate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/activate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/activate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ArtifactPublication/{id}/revoke": {
      "post": {
        "tags": [
          "ArtifactPublication"
        ],
        "summary": "Revokes an active publication.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeArtifactPublicationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeArtifactPublicationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeArtifactPublicationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArtifactPublicationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ArtifactPublication/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DownloadGrant": {
      "post": {
        "tags": [
          "DownloadGrant"
        ],
        "summary": "Issues an entitled download grant for a published SDK artifact.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDownloadGrantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDownloadGrantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDownloadGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadGrantResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "DownloadGrant"
        ],
        "summary": "Lists download grants owned by the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DownloadGrantResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DownloadGrant/{id}": {
      "get": {
        "tags": [
          "DownloadGrant"
        ],
        "summary": "Returns one download grant owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadGrantResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DownloadGrant/{id}/redeem": {
      "post": {
        "tags": [
          "DownloadGrant"
        ],
        "summary": "Records one download redemption against an active grant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadGrantResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/redeem"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/redeem"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/redeem"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/redeem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DownloadGrant/{id}/content": {
      "post": {
        "tags": [
          "DownloadGrant"
        ],
        "summary": "Redeems a grant and returns verified private SDK bytes.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": { }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/content"
                }
              },
              "application/json": {
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/content"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/content"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/content"
                }
              },
              "application/json": {
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/content"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/content"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DownloadGrant/{id}/revoke": {
      "post": {
        "tags": [
          "DownloadGrant"
        ],
        "summary": "Revokes an active download grant. Repeated revokes are idempotent.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeDownloadGrantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeDownloadGrantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeDownloadGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadGrantResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/DownloadGrant/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/release-channel": {
      "get": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Lists release channels owned by the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReleaseChannelResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Creates a new release channel for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseChannelRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseChannelRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseChannelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseChannelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/release-channel/{id}": {
      "get": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Returns one release channel owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseChannelResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Updates an existing release channel's name and/or description.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReleaseChannelRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReleaseChannelRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReleaseChannelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseChannelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/release-channel/{id}/freeze": {
      "post": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Freezes a release channel (no new publications allowed).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseChannelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}/freeze"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}/freeze"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/release-channel/{id}/reopen": {
      "post": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Reopens a frozen release channel (allow new publications again).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseChannelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}/reopen"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}/reopen"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/release-channel/{id}/archive": {
      "post": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Archives a release channel (terminal state).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseChannelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}/archive"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}/archive"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/sdk-artifact": {
      "post": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Registers a new SDK artifact (draft) into a release channel.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterSdkArtifactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterSdkArtifactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterSdkArtifactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkArtifactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/sdk-artifact/{id}": {
      "get": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Returns one SDK artifact owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkArtifactResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/sdk-artifact/{id}/publish": {
      "post": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Publishes a registered draft SDK artifact.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishSdkArtifactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishSdkArtifactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublishSdkArtifactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkArtifactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/{id}/publish"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/{id}/publish"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/sdk-artifact/{id}/deprecate": {
      "post": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Deprecates a published SDK artifact.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeprecateSdkArtifactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeprecateSdkArtifactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeprecateSdkArtifactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkArtifactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/{id}/deprecate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/{id}/deprecate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/release-channel/{id}/catalog": {
      "get": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Gets a release channel with its currently advertised artifacts (catalog view).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseChannelCatalogResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}/catalog"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/release-channel/{id}/catalog"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SdkCatalog/sdk-artifact/download-grant": {
      "post": {
        "tags": [
          "SdkCatalog"
        ],
        "summary": "Issues an entitlement-aware, short-lived download grant for a signed SDK\r\nartifact in the authenticated tenant's catalog.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSdkArtifactCatalogDownloadGrantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSdkArtifactCatalogDownloadGrantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSdkArtifactCatalogDownloadGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkArtifactCatalogDownloadGrantResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/download-grant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/download-grant"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/download-grant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/download-grant"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/download-grant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/download-grant"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/download-grant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SdkCatalog/sdk-artifact/download-grant"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/data-governance/export": {
      "get": {
        "tags": [
          "TenantDataGovernance"
        ],
        "summary": "Returns one redacted, tenant-scoped page of the caller's governed data.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "query",
            "description": "Optional explicit tenant; must equal the caller's tenant.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "retentionClass",
            "in": "query",
            "description": "Optional retention-class filter.",
            "schema": {
              "$ref": "#/components/schemas/DataRetentionClassDto"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "1-based page number (default 1).",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Page size, 1..200 (default 50).",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantDataExportPageResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/export"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/export"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/export"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/export"
                }
              }
            }
          },
          "410": {
            "description": "Gone",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/410",
                  "title": "Request Failed",
                  "status": 410,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/export"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/410",
                  "title": "Request Failed",
                  "status": 410,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/export"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/data-governance/offboarding": {
      "post": {
        "tags": [
          "TenantDataGovernance"
        ],
        "summary": "Starts (or idempotently replays) the caller tenant's offboarding workflow.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "query",
            "description": "Optional explicit tenant; must equal the caller's tenant.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartTenantOffboardingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartTenantOffboardingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartTenantOffboardingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantOffboardingResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/offboarding"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/offboarding"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/offboarding"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/offboarding"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/offboarding"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/data-governance/offboarding"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dashboard/audit-events": {
      "get": {
        "tags": [
          "AuditEventViewer"
        ],
        "summary": "Returns a paginated, filtered, tenant-scoped page of audit events for the authenticated tenant.",
        "parameters": [
          {
            "name": "eventType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "actor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outcome",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditEventsQueryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/audit-events"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/audit-events"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dashboard/onboarding-wizard/start": {
      "post": {
        "tags": [
          "OnboardingWizard"
        ],
        "summary": "Begins or resumes the onboarding wizard for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartOnboardingWizardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartOnboardingWizardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartOnboardingWizardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingWizardContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard/start"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dashboard/onboarding-wizard": {
      "get": {
        "tags": [
          "OnboardingWizard"
        ],
        "summary": "Gets the current onboarding wizard session for the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingWizardContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dashboard/onboarding-wizard/advance": {
      "post": {
        "tags": [
          "OnboardingWizard"
        ],
        "summary": "Advances the onboarding wizard to the next step.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdvanceOnboardingWizardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdvanceOnboardingWizardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdvanceOnboardingWizardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingWizardContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard/advance"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard/advance"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard/advance"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard/advance"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dashboard/onboarding-wizard/complete": {
      "post": {
        "tags": [
          "OnboardingWizard"
        ],
        "summary": "Marks the onboarding wizard as completed.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingWizardContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/onboarding-wizard/complete"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dashboard/privacy-safe-export/configurations": {
      "get": {
        "tags": [
          "PrivacySafeExport"
        ],
        "summary": "Lists the tenant-scoped privacy-safe export configurations.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PrivacySafeExportConfiguration"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/privacy-safe-export/configurations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/privacy-safe-export/configurations"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dashboard/privacy-safe-export/initiate": {
      "post": {
        "tags": [
          "PrivacySafeExport"
        ],
        "summary": "Initiates a privacy-safe export job for the authenticated tenant using a known configuration.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrivacySafeExportRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PrivacySafeExportRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PrivacySafeExportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrivacySafeExportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/privacy-safe-export/initiate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/privacy-safe-export/initiate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/privacy-safe-export/initiate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/dashboard/privacy-safe-export/initiate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/barcode-credits/offer": {
      "get": {
        "tags": [
          "BarcodeCredit"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditOfferContract"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditOfferContract"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditOfferContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/barcode-credits/balance": {
      "get": {
        "tags": [
          "BarcodeCredit"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditBalanceContract"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditBalanceContract"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditBalanceContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/barcode-credits/checkout": {
      "post": {
        "tags": [
          "BarcodeCredit"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartBarcodeCreditCheckoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartBarcodeCreditCheckoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartBarcodeCreditCheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditCheckoutContract"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditCheckoutContract"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditCheckoutContract"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/checkout"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/barcode-credits/confirm": {
      "post": {
        "tags": [
          "BarcodeCredit"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartBarcodeCreditCheckoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartBarcodeCreditCheckoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartBarcodeCreditCheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditCheckoutContract"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditCheckoutContract"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCreditCheckoutContract"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/barcode-credits/confirm"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/barcode-credits/return": {
      "get": {
        "tags": [
          "BarcodeCreditReturn"
        ],
        "responses": {
          "302": {
            "description": "Found"
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/adapter/providers": {
      "get": {
        "tags": [
          "BillingAdapter"
        ],
        "summary": "Lists the billing providers registered in this deployment.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BillingProviderRegistration"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/adapter/customer": {
      "put": {
        "tags": [
          "BillingAdapter"
        ],
        "summary": "Links the calling tenant to a billing-provider customer.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkBillingCustomerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkBillingCustomerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LinkBillingCustomerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCustomerLinkContract"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/customer"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/customer"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/customer"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/customer"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/customer"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/customer"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/adapter/customer/{providerKey}": {
      "get": {
        "tags": [
          "BillingAdapter"
        ],
        "summary": "Returns the calling tenant's customer link for a provider.",
        "parameters": [
          {
            "name": "providerKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCustomerLinkContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/customer/{providerKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/customer/{providerKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/adapter/webhook-events": {
      "post": {
        "tags": [
          "BillingAdapter"
        ],
        "summary": "Records an inbound provider webhook event exactly once.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordBillingWebhookEventRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordBillingWebhookEventRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordBillingWebhookEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingWebhookEventContract"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/webhook-events"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/webhook-events"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/webhook-events"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/adapter/webhook-events"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Billing/projection": {
      "put": {
        "tags": [
          "Billing"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectBillingStateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectBillingStateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectBillingStateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingStateContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Billing/projection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Billing/projection"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Billing/projection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Billing/projection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Billing/current": {
      "get": {
        "tags": [
          "Billing"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingStateContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Billing/current"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Billing/current"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/checkout": {
      "post": {
        "tags": [
          "DeviceCheckout"
        ],
        "summary": "Starts a monthly/yearly per-device checkout for the authenticated tenant.\r\nThe tenant and acting user are taken from the request claims; the plan\r\ncadence is supplied in the body and the subscription period is resolved\r\nserver-side.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartDeviceCheckoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartDeviceCheckoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartDeviceCheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceCheckoutContract"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceCheckoutContract"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceCheckoutContract"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/checkout"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks/paddle": {
      "post": {
        "tags": [
          "PaddleWebhook"
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/paddle"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/paddle"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/paddle"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/paddle"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/plan-checkout": {
      "post": {
        "tags": [
          "PlanCheckout"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartPlanCheckoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartPlanCheckoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartPlanCheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PlanCheckoutContract"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanCheckoutContract"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanCheckoutContract"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/plan-checkout"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks/razorpay": {
      "post": {
        "tags": [
          "RazorpayWebhook"
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/razorpay"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/razorpay"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/razorpay"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/razorpay"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks/stripe": {
      "post": {
        "tags": [
          "StripeWebhook"
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/stripe"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/stripe"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/stripe"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/webhooks/stripe"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/subscriptions/quantity": {
      "post": {
        "tags": [
          "SubscriptionLifecycle"
        ],
        "summary": "Changes the device/seat quantity for a subscription.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeSubscriptionQuantityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeSubscriptionQuantityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeSubscriptionQuantityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangeSubscriptionQuantityResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/quantity"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/quantity"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/quantity"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/quantity"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/quantity"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/quantity"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/quantity"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/quantity"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/subscriptions/cancel": {
      "post": {
        "tags": [
          "SubscriptionLifecycle"
        ],
        "summary": "Cancels a subscription either immediately or at the end of the current billing cycle.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelSubscriptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelSubscriptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelSubscriptionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/cancel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/cancel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/cancel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/cancel"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/cancel"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/cancel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/subscriptions/resume": {
      "post": {
        "tags": [
          "SubscriptionLifecycle"
        ],
        "summary": "Resumes a subscription that was scheduled to cancel at period end.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResumeSubscriptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResumeSubscriptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResumeSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumeSubscriptionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/resume"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/resume"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/resume"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/resume"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/resume"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/resume"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/resume"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/resume"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/portal/session": {
      "post": {
        "tags": [
          "SubscriptionLifecycle"
        ],
        "summary": "Creates a customer billing portal session URL.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalSessionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalSessionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalSessionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePortalSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/portal/session"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/portal/session"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/portal/session"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/portal/session"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/portal/session"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/portal/session"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/subscriptions/{externalSubscriptionId}/grace": {
      "get": {
        "tags": [
          "SubscriptionLifecycle"
        ],
        "summary": "Retrieves grace period status for a subscription.",
        "parameters": [
          {
            "name": "externalSubscriptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionGracePeriodStatusResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/{externalSubscriptionId}/grace"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/billing/subscriptions/{externalSubscriptionId}/grace"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/verified-webhook-inbox/record": {
      "post": {
        "tags": [
          "VerifiedWebhookInbox"
        ],
        "summary": "Records receipt of a verified webhook event for the authenticated tenant.\r\nThe tenant and acting user are taken from the request claims; only\r\nnon-sensitive routing metadata is accepted in the body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordVerifiedWebhookInboxRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordVerifiedWebhookInboxRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordVerifiedWebhookInboxRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerifiedWebhookInboxRecordedResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/record"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/record"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/record"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/record"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/record"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/record"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/verified-webhook-inbox/{id}/verify": {
      "patch": {
        "tags": [
          "VerifiedWebhookInbox"
        ],
        "summary": "Marks a verified webhook inbox record as verified for the owning tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "verifiedAtUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": { }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/{id}/verify"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/{id}/verify"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/{id}/verify"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/verified-webhook-inbox/{id}/verify"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/build-devices": {
      "post": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Registers a build device for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBuildDeviceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBuildDeviceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBuildDeviceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildDeviceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Lists build devices for the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BuildDeviceResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/build-devices/{id}": {
      "get": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Returns one build device for the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildDeviceResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/build-devices/{id}/retire": {
      "post": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Retires a build device, removing it from active build duty.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildDeviceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}/retire"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}/retire"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}/retire"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}/retire"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-devices/{id}/retire"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/releases": {
      "post": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Drafts a build release for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReleaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Lists releases for the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReleaseResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/releases/{id}": {
      "get": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Returns one release for the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/releases/{id}/publish": {
      "post": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Publishes a drafted release.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}/publish"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}/publish"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}/publish"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/releases/{id}/publish"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/quarantines": {
      "post": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Opens a quarantine for a build device in the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateQuarantineRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateQuarantineRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateQuarantineRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuarantineResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Lists quarantine records for the authenticated tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuarantineResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/quarantines/{id}": {
      "get": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Returns one quarantine record for the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuarantineResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/quarantines/{id}/release": {
      "post": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Releases a quarantined device back to service.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveQuarantineRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveQuarantineRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveQuarantineRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuarantineResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/release"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/release"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/release"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/release"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/release"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/release"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/release"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/release"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/quarantines/{id}/escalate": {
      "post": {
        "tags": [
          "BuildDeviceConsole"
        ],
        "summary": "Escalates a quarantine to a higher-severity investigation.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveQuarantineRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveQuarantineRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveQuarantineRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuarantineResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/escalate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/escalate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/escalate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/escalate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/escalate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/escalate"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/escalate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/quarantines/{id}/escalate"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/build-operations/jobs/metrics": {
      "get": {
        "tags": [
          "BuildOperations"
        ],
        "summary": "Returns current background job queue metrics for operator dashboards.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildJobQueueMetricsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/jobs/metrics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/jobs/metrics"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/jobs/metrics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/jobs/metrics"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}": {
      "get": {
        "tags": [
          "BuildOperations"
        ],
        "summary": "Looks up one tenant-scoped verified webhook event by provider identity.",
        "parameters": [
          {
            "name": "providerKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "providerEventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildWebhookOperationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/webhooks/{providerKey}/{providerEventId}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/administration/build-operations/reconciliations/sdk-metering": {
      "post": {
        "tags": [
          "BuildOperations"
        ],
        "summary": "Runs SDK metering reconciliation for the authenticated tenant and requested UTC day.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunSdkMeteringReconciliationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunSdkMeteringReconciliationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunSdkMeteringReconciliationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkMeteringReconciliationOperationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/reconciliations/sdk-metering"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/reconciliations/sdk-metering"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/reconciliations/sdk-metering"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/reconciliations/sdk-metering"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/reconciliations/sdk-metering"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/reconciliations/sdk-metering"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/reconciliations/sdk-metering"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/administration/build-operations/reconciliations/sdk-metering"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/InternalAdminAccess": {
      "post": {
        "tags": [
          "InternalAdminAccess"
        ],
        "summary": "Creates an isolated access grant for a platform-internal admin.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInternalAdminAccessRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInternalAdminAccessRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInternalAdminAccessRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalAdminAccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/InternalAdminAccess/{tenantId}/{id}": {
      "get": {
        "tags": [
          "InternalAdminAccess"
        ],
        "summary": "Returns one isolated access grant for a tenant.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalAdminAccessResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/InternalAdminAccess/{tenantId}": {
      "get": {
        "tags": [
          "InternalAdminAccess"
        ],
        "summary": "Lists isolated access grants for a tenant.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InternalAdminAccessResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke": {
      "post": {
        "tags": [
          "InternalAdminAccess"
        ],
        "summary": "Revokes an isolated access grant.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeInternalAdminAccessRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeInternalAdminAccessRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeInternalAdminAccessRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalAdminAccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/InternalAdminAccess/{tenantId}/{id}/revoke"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tenant-operational-detail/{tenantId}": {
      "get": {
        "tags": [
          "TenantOperationalDetail"
        ],
        "summary": "Returns the operational detail for a tenant.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantOperationalDetailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-operational-detail/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-operational-detail/{tenantId}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-operational-detail/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-operational-detail/{tenantId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "TenantOperationalDetail"
        ],
        "summary": "Creates or replaces the operational detail for a tenant.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertTenantOperationalDetailRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertTenantOperationalDetailRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertTenantOperationalDetailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantOperationalDetailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-operational-detail/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-operational-detail/{tenantId}"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-operational-detail/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/tenant-operational-detail/{tenantId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/time-bound-entitlement-overrides/{tenantId}": {
      "get": {
        "tags": [
          "TimeBoundEntitlementOverride"
        ],
        "summary": "Returns the current time-bound entitlement/status override of a tenant.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "overrideType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/EntitlementOverrideType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeBoundEntitlementOverrideResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/time-bound-entitlement-overrides/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/time-bound-entitlement-overrides/{tenantId}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/time-bound-entitlement-overrides/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/time-bound-entitlement-overrides/{tenantId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "TimeBoundEntitlementOverride"
        ],
        "summary": "Creates or replaces the current time-bound entitlement/status override of a tenant.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertTimeBoundEntitlementOverrideRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertTimeBoundEntitlementOverrideRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertTimeBoundEntitlementOverrideRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeBoundEntitlementOverrideResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/time-bound-entitlement-overrides/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/time-bound-entitlement-overrides/{tenantId}"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/time-bound-entitlement-overrides/{tenantId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/time-bound-entitlement-overrides/{tenantId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/WorkflowProfile": {
      "get": {
        "tags": [
          "WorkflowProfile"
        ],
        "summary": "Lists all available workflow profiles, optionally filtered by channel.\r\nReturns public summaries that contain no private configuration.",
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "description": "Optional channel filter.",
            "schema": {
              "$ref": "#/components/schemas/WorkflowProfileChannel"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowProfileDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/WorkflowProfile/{profileKey}": {
      "get": {
        "tags": [
          "WorkflowProfile"
        ],
        "summary": "Gets a specific workflow profile by key and optional version.\r\nReturns public summary that contains no private configuration.",
        "parameters": [
          {
            "name": "profileKey",
            "in": "path",
            "description": "The profile key (case-insensitive).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "description": "Optional version string.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowProfileDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/{profileKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/{profileKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/{profileKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/{profileKey}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/{profileKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/{profileKey}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/{profileKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/{profileKey}"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/WorkflowProfile/validate": {
      "post": {
        "tags": [
          "WorkflowProfile"
        ],
        "summary": "Evaluates whether a tenant/device configuration satisfies the requirements of a workflow profile.\r\nEnforces tenant/device entitlements and returns deterministic precedence.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowCompatibilityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowCompatibilityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowCompatibilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCompatibilityResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/validate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/validate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/WorkflowProfile/validate"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflow-profiles/public": {
      "get": {
        "tags": [
          "WorkflowProfiles"
        ],
        "summary": "Returns public summaries of all workflow profiles. Contains no private configuration (PRXSAAS-BE-0216).",
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/WorkflowProfileChannel"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicWorkflowProfileSummaryDto"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflow-profiles/public/{profileKey}": {
      "get": {
        "tags": [
          "WorkflowProfiles"
        ],
        "summary": "Returns the public summary for a specific workflow profile by key (PRXSAAS-BE-0216).",
        "parameters": [
          {
            "name": "profileKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWorkflowProfileSummaryDto"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/workflow-profiles/public/{profileKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/workflow-profiles/public/{profileKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflow-profiles/effective": {
      "get": {
        "tags": [
          "WorkflowProfiles"
        ],
        "summary": "Returns the effective workflow profile assignments for the authenticated tenant and calling device (PRXSAAS-BE-0216).\r\nEvaluates entitlements, SDK compatibility, and precedence.",
        "parameters": [
          {
            "name": "X-Device-Id",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Device-Sdk-Version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/WorkflowProfileChannel"
            }
          },
          {
            "name": "overrideProfileKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "features",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EffectiveWorkflowProfileResponse"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflow-profiles/effective/{profileKey}": {
      "get": {
        "tags": [
          "WorkflowProfiles"
        ],
        "summary": "Returns a single effective workflow profile by key for the authenticated tenant and device (PRXSAAS-BE-0216).",
        "parameters": [
          {
            "name": "profileKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Device-Sdk-Version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "features",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EffectiveWorkflowProfileResponse"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/workflow-profiles/effective/{profileKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/workflow-profiles/effective/{profileKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflow-profiles/validate": {
      "post": {
        "tags": [
          "WorkflowProfiles"
        ],
        "summary": "Evaluates compatibility of a tenant/device runtime against a workflow profile (PRXSAAS-BE-0216).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowCompatibilityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowCompatibilityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowCompatibilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCompatibilityResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/workflow-profiles/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/workflow-profiles/validate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/lifecycle-notifications": {
      "post": {
        "tags": [
          "LifecycleNotification"
        ],
        "summary": "Creates a billing/device lifecycle notification for the authenticated\r\ntenant. The call is idempotent on the (correlation id, event, channel)\r\ntuple, so a retried event that already produced a record is reported as a\r\nconflict rather than duplicating it.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLifecycleNotificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLifecycleNotificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLifecycleNotificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The notification was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LifecycleNotificationResponse"
                }
              }
            }
          },
          "400": {
            "description": "The payload failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications"
                }
              }
            }
          },
          "409": {
            "description": "A notification with this correlation id already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "LifecycleNotification"
        ],
        "summary": "Lists the authenticated tenant's lifecycle notifications, newest first.",
        "responses": {
          "200": {
            "description": "The tenant's lifecycle notifications.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LifecycleNotificationResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/lifecycle-notifications/{id}": {
      "get": {
        "tags": [
          "LifecycleNotification"
        ],
        "summary": "Reads one lifecycle notification owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The lifecycle notification.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LifecycleNotificationResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such notification exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/lifecycle-notifications/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/notification-preferences": {
      "put": {
        "tags": [
          "NotificationPreference"
        ],
        "summary": "Upserts a notification preference (tenant-wide default or user override).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertNotificationPreferenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertNotificationPreferenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertNotificationPreferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPreferenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "NotificationPreference"
        ],
        "summary": "Gets a notification preference.",
        "parameters": [
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/NotificationEventTypeContract"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/NotificationChannelContract"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPreferenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/notification-preferences/list": {
      "get": {
        "tags": [
          "NotificationPreference"
        ],
        "summary": "Lists notification preferences for the tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationPreferenceResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences/list"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences/list"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences/list"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-preferences/list"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/notification-templates": {
      "post": {
        "tags": [
          "NotificationTemplate"
        ],
        "summary": "Creates a new notification template.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNotificationTemplateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNotificationTemplateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNotificationTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "NotificationTemplate"
        ],
        "summary": "Lists notification templates for the tenant.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationTemplateResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/notification-templates/{id}": {
      "get": {
        "tags": [
          "NotificationTemplate"
        ],
        "summary": "Gets a notification template by ID.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "NotificationTemplate"
        ],
        "summary": "Updates a notification template.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateNotificationTemplateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateNotificationTemplateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateNotificationTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/notification-templates/{id}/publish": {
      "post": {
        "tags": [
          "NotificationTemplate"
        ],
        "summary": "Publishes a notification template.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/publish"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/publish"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/publish"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/publish"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/notification-templates/{id}/archive": {
      "post": {
        "tags": [
          "NotificationTemplate"
        ],
        "summary": "Archives a notification template.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/archive"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/archive"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/archive"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/archive"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/archive"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/archive"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/archive"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/notification-templates/{id}/archive"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/banners": {
      "post": {
        "tags": [
          "PortalBanner"
        ],
        "summary": "Creates a new portal banner for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalBannerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalBannerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalBannerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The banner was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalBannerContract"
                }
              }
            }
          },
          "400": {
            "description": "The payload failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/banners"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/banners"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/banners"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/banners"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "PortalBanner"
        ],
        "summary": "Lists the authenticated tenant's banners, newest first.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tenant's banners.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PortalBannerContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/banners/{bannerId}/active": {
      "post": {
        "tags": [
          "PortalBanner"
        ],
        "summary": "Toggles the active flag of a banner owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "bannerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetPortalBannerActiveRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetPortalBannerActiveRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetPortalBannerActiveRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated banner.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalBannerContract"
                }
              }
            }
          },
          "404": {
            "description": "No such banner exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/banners/{bannerId}/active"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/banners/{bannerId}/active"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/banners/{bannerId}": {
      "get": {
        "tags": [
          "PortalBanner"
        ],
        "summary": "Reads one banner owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "bannerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The banner.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalBannerContract"
                }
              }
            }
          },
          "404": {
            "description": "No such banner exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/banners/{bannerId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/banners/{bannerId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/banners/visible": {
      "get": {
        "tags": [
          "PortalBanner"
        ],
        "summary": "Lists the authenticated tenant's banners visible now, newest first.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tenant's visible banners.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PortalBannerContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/incidents": {
      "post": {
        "tags": [
          "ServiceIncident"
        ],
        "summary": "Opens a new incident for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceIncidentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceIncidentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceIncidentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The incident was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceIncidentContract"
                }
              }
            }
          },
          "400": {
            "description": "The payload failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ServiceIncident"
        ],
        "summary": "Lists the authenticated tenant's incidents, newest first.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tenant's incidents.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceIncidentContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/incidents/{incidentId}/updates": {
      "post": {
        "tags": [
          "ServiceIncident"
        ],
        "summary": "Posts a timeline update to an incident owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "incidentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostServiceIncidentUpdateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PostServiceIncidentUpdateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PostServiceIncidentUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceIncidentContract"
                }
              }
            }
          },
          "400": {
            "description": "The update payload failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}/updates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}/updates"
                }
              }
            }
          },
          "404": {
            "description": "No such incident exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}/updates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}/updates"
                }
              }
            }
          },
          "409": {
            "description": "The incident is resolved and cannot accept updates.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}/updates"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}/updates"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/incidents/{incidentId}/resolve": {
      "post": {
        "tags": [
          "ServiceIncident"
        ],
        "summary": "Marks an incident owned by the authenticated tenant resolved.",
        "parameters": [
          {
            "name": "incidentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The resolved incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceIncidentContract"
                }
              }
            }
          },
          "404": {
            "description": "No such incident exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}/resolve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}/resolve"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/incidents/{incidentId}": {
      "get": {
        "tags": [
          "ServiceIncident"
        ],
        "summary": "Reads one incident owned by the authenticated tenant, with its timeline.",
        "parameters": [
          {
            "name": "incidentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceIncidentContract"
                }
              }
            }
          },
          "404": {
            "description": "No such incident exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/incidents/{incidentId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/maintenance": {
      "post": {
        "tags": [
          "ServiceMaintenance"
        ],
        "summary": "Creates a new maintenance window for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The maintenance window was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
                }
              }
            }
          },
          "400": {
            "description": "The payload failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ServiceMaintenance"
        ],
        "summary": "Lists the authenticated tenant's maintenance windows, newest first.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tenant's maintenance windows.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/maintenance/{maintenanceId}/start": {
      "post": {
        "tags": [
          "ServiceMaintenance"
        ],
        "summary": "Starts a maintenance window owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "maintenanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The maintenance window was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
                }
              }
            }
          },
          "400": {
            "description": "The validation failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/start"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/start"
                }
              }
            }
          },
          "404": {
            "description": "No such maintenance window exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/start"
                }
              }
            }
          },
          "409": {
            "description": "The maintenance window is already completed or in progress.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/start"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/start"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/maintenance/{maintenanceId}/complete": {
      "post": {
        "tags": [
          "ServiceMaintenance"
        ],
        "summary": "Completes a maintenance window owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "maintenanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The maintenance window was completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
                }
              }
            }
          },
          "400": {
            "description": "The validation failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/complete"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/complete"
                }
              }
            }
          },
          "404": {
            "description": "No such maintenance window exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/complete"
                }
              }
            }
          },
          "409": {
            "description": "The maintenance window is not in progress.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}/complete"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/maintenance/{maintenanceId}": {
      "put": {
        "tags": [
          "ServiceMaintenance"
        ],
        "summary": "Updates the title and/or description of a maintenance window owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "maintenanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The maintenance window was updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
                }
              }
            }
          },
          "400": {
            "description": "The validation failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              }
            }
          },
          "404": {
            "description": "No such maintenance window exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ServiceMaintenance"
        ],
        "summary": "Reads one maintenance window owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "maintenanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The maintenance window.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceMaintenanceWindowContract"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              }
            }
          },
          "404": {
            "description": "No such maintenance window exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/maintenance/{maintenanceId}"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/status-components": {
      "post": {
        "tags": [
          "ServiceStatusComponent"
        ],
        "summary": "Registers a new monitored component for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceStatusComponentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceStatusComponentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceStatusComponentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The component was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusComponentContract"
                }
              }
            }
          },
          "400": {
            "description": "The payload failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ServiceStatusComponent"
        ],
        "summary": "Lists the authenticated tenant's components, most-recently-changed first.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tenant's components.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceStatusComponentContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/status-components/{componentId}/state": {
      "post": {
        "tags": [
          "ServiceStatusComponent"
        ],
        "summary": "Moves a component owned by the authenticated tenant to a new operational state.",
        "parameters": [
          {
            "name": "componentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetServiceComponentStateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetServiceComponentStateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetServiceComponentStateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated component.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusComponentContract"
                }
              }
            }
          },
          "400": {
            "description": "The state was missing or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components/{componentId}/state"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components/{componentId}/state"
                }
              }
            }
          },
          "404": {
            "description": "No such component exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components/{componentId}/state"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components/{componentId}/state"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/status-components/{componentId}": {
      "get": {
        "tags": [
          "ServiceStatusComponent"
        ],
        "summary": "Reads one component owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "componentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The component.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusComponentContract"
                }
              }
            }
          },
          "404": {
            "description": "No such component exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components/{componentId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/status-components/{componentId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/escalations": {
      "post": {
        "tags": [
          "SupportEscalation"
        ],
        "summary": "Records a new support escalation for the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportEscalationContract"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportEscalationContract"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SupportEscalationContract"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The support escalation was recorded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportEscalationContract"
                }
              }
            }
          },
          "400": {
            "description": "The payload failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/escalations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/escalations"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/escalations"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/escalations"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "SupportEscalation"
        ],
        "summary": "Lists the authenticated tenant's support escalations, newest first.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tenant's support escalations.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SupportEscalationContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/escalations/{escalationId}": {
      "get": {
        "tags": [
          "SupportEscalation"
        ],
        "summary": "Reads one support escalation owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "escalationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The support escalation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportEscalationContract"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/escalations/{escalationId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/escalations/{escalationId}"
                }
              }
            }
          },
          "404": {
            "description": "No such support escalation exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/escalations/{escalationId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/escalations/{escalationId}"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/requests": {
      "post": {
        "tags": [
          "SupportRequest"
        ],
        "summary": "Submits a new support request for the authenticated tenant, optionally\r\ncapturing the diagnostic intake in the same transaction.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportRequestRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportRequestRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The request was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportRequestContract"
                }
              }
            }
          },
          "400": {
            "description": "The payload failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "SupportRequest"
        ],
        "summary": "Lists the authenticated tenant's support requests, newest first.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of requests to return. Values above the service ceiling are\r\nclamped rather than rejected.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tenant's support requests.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportRequestListResponse"
                }
              }
            }
          },
          "401": {
            "description": "No authenticated tenant context was present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/requests/{requestId}": {
      "get": {
        "tags": [
          "SupportRequest"
        ],
        "summary": "Reads one support request owned by the authenticated tenant, including its\r\ndiagnostic intakes.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The support request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportRequestContract"
                }
              }
            }
          },
          "404": {
            "description": "No such request exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/requests/{requestId}/diagnostics": {
      "post": {
        "tags": [
          "SupportRequest"
        ],
        "summary": "Appends a diagnostic intake to an existing support request.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSupportDiagnosticIntakeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSupportDiagnosticIntakeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddSupportDiagnosticIntakeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated support request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportRequestContract"
                }
              }
            }
          },
          "400": {
            "description": "The diagnostic carried no usable detail.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/diagnostics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/diagnostics"
                }
              }
            }
          },
          "404": {
            "description": "No such request exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/diagnostics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/diagnostics"
                }
              }
            }
          },
          "409": {
            "description": "The request is closed and cannot accept diagnostics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/diagnostics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/diagnostics"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/requests/{requestId}/transitions": {
      "post": {
        "tags": [
          "SupportRequest"
        ],
        "summary": "Applies a lifecycle transition to an existing support request.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransitionSupportRequestRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TransitionSupportRequestRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TransitionSupportRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated support request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportRequestContract"
                }
              }
            }
          },
          "400": {
            "description": "The transition verb was missing or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/transitions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/transitions"
                }
              }
            }
          },
          "404": {
            "description": "No such request exists for this tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/transitions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/transitions"
                }
              }
            }
          },
          "409": {
            "description": "The transition is illegal from the current status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/transitions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/requests/{requestId}/transitions"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/attachments/upload": {
      "post": {
        "tags": [
          "AttachmentQuarantine"
        ],
        "summary": "Uploads a diagnostic attachment to private quarantine. The file is held\r\nunscanned and is not retrievable until a clean verdict is recorded.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadAttachmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadAttachmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UploadAttachmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadAttachmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/attachments/upload"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/attachments/upload"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/attachments/{attachmentId}/scan": {
      "post": {
        "tags": [
          "AttachmentQuarantine"
        ],
        "summary": "Triggers the malware scan for a quarantined attachment and returns the\r\nresulting disposition.",
        "parameters": [
          {
            "name": "attachmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanAttachmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/attachments/{attachmentId}/scan"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/attachments/{attachmentId}/scan"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/sla": {
      "get": {
        "tags": [
          "SupportCatalog"
        ],
        "summary": "Returns the publicly visible support catalogue: one entry per plan that\r\ncurrently publishes an approved SLA.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSupportCatalogResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/sla"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/sla"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/sla/{planKey}": {
      "get": {
        "tags": [
          "SupportCatalog"
        ],
        "summary": "Returns the publicly visible SLA for one plan. A plan whose term is still\r\na draft yields 404 rather than an unapproved document.",
        "parameters": [
          {
            "name": "planKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSupportSlaContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/sla/{planKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/sla/{planKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/effective/{planKey}": {
      "get": {
        "tags": [
          "SupportCatalog"
        ],
        "summary": "Returns the authenticated tenant's effective support entitlement for a\r\nplan, derived from the plan term and any time-bound overrides.",
        "parameters": [
          {
            "name": "planKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EffectiveSupportContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/effective/{planKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/support/effective/{planKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SandboxCredentials/{credentialId}/tokens": {
      "post": {
        "tags": [
          "PlaygroundToken"
        ],
        "summary": "Issues a delegated playground token against a sandbox credential. The\r\nplaintext token is returned exactly once and is never persisted.",
        "parameters": [
          {
            "name": "credentialId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuePlaygroundTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuePlaygroundTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IssuePlaygroundTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPlaygroundTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{credentialId}/tokens"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{credentialId}/tokens"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{credentialId}/tokens"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{credentialId}/tokens"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "PlaygroundToken"
        ],
        "summary": "Lists the playground tokens delegated from a sandbox credential, newest first.",
        "parameters": [
          {
            "name": "credentialId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlaygroundTokenResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SandboxCredentials/{credentialId}/tokens/{id}/revoke": {
      "post": {
        "tags": [
          "PlaygroundToken"
        ],
        "summary": "Revokes a playground token. Idempotent.",
        "parameters": [
          {
            "name": "credentialId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundTokenResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{credentialId}/tokens/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{credentialId}/tokens/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SandboxCredentials": {
      "post": {
        "tags": [
          "SandboxCredential"
        ],
        "summary": "Issues a new sandbox credential for the authenticated tenant. The plaintext\r\nsecret is returned exactly once in the response body and is never persisted\r\nor logged thereafter.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSandboxCredentialRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSandboxCredentialRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSandboxCredentialRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedSandboxCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "SandboxCredential"
        ],
        "summary": "Lists the sandbox credentials owned by the authenticated tenant, newest first.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SandboxCredentialResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SandboxCredentials/{id}": {
      "get": {
        "tags": [
          "SandboxCredential"
        ],
        "summary": "Returns one sandbox credential owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxCredentialResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/SandboxCredentials/{id}/revoke": {
      "post": {
        "tags": [
          "SandboxCredential"
        ],
        "summary": "Revokes a sandbox credential owned by the authenticated tenant. Idempotent.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{id}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/SandboxCredentials/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/regions": {
      "get": {
        "tags": [
          "Regions"
        ],
        "summary": "Returns the current public region catalog.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionCatalogContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/regions/selection": {
      "get": {
        "tags": [
          "Regions"
        ],
        "summary": "Gets the current tenant's region selection.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantRegionSelectionContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/regions/selection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/regions/selection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Regions"
        ],
        "summary": "Sets or updates the tenant's region selection.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectRegionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectRegionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SelectRegionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantRegionSelectionContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/regions/selection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/regions/selection"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/regions/selection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/regions/selection"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/regions/selection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/regions/selection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Recall/assess": {
      "post": {
        "tags": [
          "Recall"
        ],
        "summary": "Assesses the lot-impact of a tenant's receipts against a recall notice.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecallImpactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecallImpactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecallImpactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecallImpactResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Recall/assess"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Recall/assess"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Recall/export": {
      "post": {
        "tags": [
          "Recall"
        ],
        "summary": "Produces an auditable export of a previously computed impact result.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecallExportRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecallExportRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecallExportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecallExportResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Recall/export"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Recall/export"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Recall/export"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Recall/export"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Recall/sources": {
      "get": {
        "tags": [
          "Recall"
        ],
        "summary": "Lists the tenant's retained recall notice sources (for audit/display).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecallNoticeReference"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support-matrix": {
      "get": {
        "tags": [
          "PublicSupportMatrix"
        ],
        "summary": "Returns the published support matrix (public surface). Only published rows\r\nare projected; superseded and not-yet-published rows are excluded.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicSupportMatrixEntryContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support-matrix/history": {
      "get": {
        "tags": [
          "PublicSupportMatrix"
        ],
        "summary": "Returns the full, versioned support-matrix history for authenticated\r\ntenants. Superseded and not-yet-published rows remain queryable here.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportMatrixHistoryContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/status/public": {
      "get": {
        "tags": [
          "PublicStatus"
        ],
        "summary": "Returns the aggregated public status summary. Optional `audience` (a plan\r\ntier id) and `region` (a stable region code) query parameters narrow the\r\nreturned notices to those relevant to the calling portal's segment without\r\ndisclosing tenant identity. The response always advertises staleness\r\nexplicitly, so a degraded provider fallback never looks like fresh data.",
        "parameters": [
          {
            "name": "audience",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "region",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The public status summary (fresh or explicit-stale).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicStatusSummaryContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/api/v1/PublicCustomerProof": {
      "get": {
        "tags": [
          "PublicCustomerProof"
        ],
        "summary": "Returns the public registry: every proof that is currently published,\r\nnot withdrawn and not expired, across all tenants. Customer-identifying\r\ndetails are suppressed for confidential proofs so confidentiality is\r\npreserved even on the public surface.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicCustomerProofResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PublicCustomerProof"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PublicCustomerProof"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ProductFeed/register": {
      "post": {
        "tags": [
          "ProductFeed"
        ],
        "summary": "Registers a new roadmap product capability for the tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterProductCapabilityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterProductCapabilityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterProductCapabilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductCapabilityFeedItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ProductFeed/register"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ProductFeed/register"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ProductFeed/{capabilityKey}/status": {
      "post": {
        "tags": [
          "ProductFeed"
        ],
        "summary": "Updates a product capability's lifecycle status (preview/released/deprecated).",
        "parameters": [
          {
            "name": "capabilityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProductCapabilityStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProductCapabilityStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProductCapabilityStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductCapabilityFeedItem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ProductFeed/{capabilityKey}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ProductFeed/{capabilityKey}/status"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ProductFeed/{capabilityKey}": {
      "get": {
        "tags": [
          "ProductFeed"
        ],
        "summary": "Gets a product capability by its key.",
        "parameters": [
          {
            "name": "capabilityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductCapabilityFeedItem"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ProductFeed/{capabilityKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ProductFeed/{capabilityKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ProductFeed/channel/{channelKey}": {
      "get": {
        "tags": [
          "ProductFeed"
        ],
        "summary": "Gets the product feed for a release channel.",
        "parameters": [
          {
            "name": "channelKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductFeedResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ProductFeed/channel/{channelKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/ProductFeed/channel/{channelKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/procurement/documents": {
      "get": {
        "tags": [
          "ProcurementDocument"
        ],
        "summary": "Lists the tenant's current procurement/security documents the caller is\r\nentitled to see.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementDocumentCatalogResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ProcurementDocument"
        ],
        "summary": "Creates a new document, publishes its first version and approves it. The\r\nbinary content is supplied out-of-band and stored under the request's\r\nstorage key; the catalog records its metadata only.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishProcurementDocumentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishProcurementDocumentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublishProcurementDocumentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementDocumentDetailContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/procurement/documents/{documentId}": {
      "get": {
        "tags": [
          "ProcurementDocument"
        ],
        "summary": "Returns the metadata of one document the caller is entitled to see.",
        "parameters": [
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementDocumentDetailContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/procurement/documents/{documentId}/content": {
      "get": {
        "tags": [
          "ProcurementDocument"
        ],
        "summary": "Downloads the binary content of a document version. Only approved,\r\neffective documents are downloadable; confidential/restricted require the\r\nmatching entitlement. The download is audited.",
        "parameters": [
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/content"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/content"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/content"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/content"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/procurement/documents/{documentId}/versions": {
      "post": {
        "tags": [
          "ProcurementDocument"
        ],
        "summary": "Publishes a new version of an existing document and approves it when it\r\nwas a draft.",
        "parameters": [
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishProcurementDocumentVersionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishProcurementDocumentVersionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublishProcurementDocumentVersionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcurementDocumentDetailContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/versions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/versions"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/versions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/versions"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/versions"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/procurement/documents/{documentId}/versions"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PharmaException/open": {
      "post": {
        "tags": [
          "PharmaException"
        ],
        "summary": "Opens a new pharmaceutical exception case.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenPharmaExceptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenPharmaExceptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OpenPharmaExceptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PharmaExceptionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/open"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/open"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PharmaException/{exceptionId}/assign": {
      "post": {
        "tags": [
          "PharmaException"
        ],
        "summary": "Assigns a case to an investigator.",
        "parameters": [
          {
            "name": "exceptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPharmaExceptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPharmaExceptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPharmaExceptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PharmaExceptionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/assign"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/assign"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/assign"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/assign"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PharmaException/{exceptionId}/external-case": {
      "post": {
        "tags": [
          "PharmaException"
        ],
        "summary": "Links an external compliance-provider case reference.",
        "parameters": [
          {
            "name": "exceptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkExternalCaseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkExternalCaseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LinkExternalCaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PharmaExceptionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/external-case"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/external-case"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/external-case"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/external-case"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PharmaException/{exceptionId}/external-review": {
      "post": {
        "tags": [
          "PharmaException"
        ],
        "summary": "Moves a linked case into external (compliance-provider) review.",
        "parameters": [
          {
            "name": "exceptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PharmaExceptionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/external-review"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/external-review"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/external-review"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/external-review"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PharmaException/{exceptionId}/resolve": {
      "post": {
        "tags": [
          "PharmaException"
        ],
        "summary": "Resolves a case. A resolution requires both a role and a reason.",
        "parameters": [
          {
            "name": "exceptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolvePharmaExceptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolvePharmaExceptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResolvePharmaExceptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PharmaExceptionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/resolve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/resolve"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/resolve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/resolve"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PharmaException/{exceptionId}/close": {
      "post": {
        "tags": [
          "PharmaException"
        ],
        "summary": "Closes a resolved case. The audit trail remains retained and exportable.",
        "parameters": [
          {
            "name": "exceptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PharmaExceptionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/close"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/close"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/close"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}/close"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PharmaException/{exceptionId}": {
      "get": {
        "tags": [
          "PharmaException"
        ],
        "summary": "Gets a case by its id, including its full audit trail.",
        "parameters": [
          {
            "name": "exceptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PharmaExceptionResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/PharmaException/{exceptionId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/PharmaException": {
      "get": {
        "tags": [
          "PharmaException"
        ],
        "summary": "Lists a tenant's cases, optionally filtered by status, newest first.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/PharmaExceptionStatusDto"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PharmaExceptionResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/localization/validate": {
      "post": {
        "tags": [
          "Localization"
        ],
        "summary": "Validates a single localization value (locale/currency/timezone).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocalizationValidationRequestContract"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LocalizationValidationRequestContract"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LocalizationValidationRequestContract"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalizationValidationContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/validate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/localization/resolve": {
      "post": {
        "tags": [
          "Localization"
        ],
        "summary": "Resolves the tenant's effective locale/currency/timezone given the\r\npersisted tenant defaults and the active plan's price currency.\r\nCurrency follows the active plan when present and valid; locale and\r\ntimezone always follow the tenant persisted defaults (falling back to\r\nplatform defaults when unspecified).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveLocalizationRequestContract"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveLocalizationRequestContract"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveLocalizationRequestContract"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolvedLocalizationContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/resolve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/resolve"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/localization/configuration": {
      "get": {
        "tags": [
          "Localization"
        ],
        "summary": "Returns the full, cacheable locale/currency/timezone configuration\r\npublished to clients.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalizationConfigurationContract"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/localization/tenant-defaults": {
      "get": {
        "tags": [
          "Localization"
        ],
        "summary": "Returns the authenticated tenant's persisted locale/currency/timezone\r\ndefaults (PRXSAAS-BE-0235). A null field means the platform default applies.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantLocalizationDefaultsContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/tenant-defaults"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/tenant-defaults"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Localization"
        ],
        "summary": "Persists the authenticated tenant's preferred locale/currency/timezone\r\ndefaults (PRXSAAS-BE-0235). The tenant is derived from the authenticated\r\nprincipal, so a cross-tenant write is structurally impossible. Changes are\r\nvalidated against the supported catalog and recorded in the audit sink.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTenantLocalizationDefaultsRequestContract"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTenantLocalizationDefaultsRequestContract"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetTenantLocalizationDefaultsRequestContract"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantLocalizationDefaultsContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/tenant-defaults"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/tenant-defaults"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/tenant-defaults"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/localization/tenant-defaults"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/evaluations/activate": {
      "post": {
        "tags": [
          "EvaluationActivation"
        ],
        "summary": "Activates an evaluation (trial) for the authenticated tenant, idempotently by idempotency key.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateEvaluationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateEvaluationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateEvaluationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivateEvaluationResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivateEvaluationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/activate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/activate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/activate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/activate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/activate"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/evaluations/status": {
      "get": {
        "tags": [
          "EvaluationStatus"
        ],
        "summary": "Gets the authoritative evaluation state and conversion eligibility for the authenticated tenant.\r\nWhen Development test access is granted for the designated local test account,\r\nthe state is reported as Active with IsDevelopmentTestAccess = true, preserving\r\nthe real evaluation dates (no fabricated data).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationStatusResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/status"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/evaluations/convert": {
      "post": {
        "tags": [
          "EvaluationStatus"
        ],
        "summary": "Initiates a commercial conversion checkout handoff from an active/expired evaluation.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluationConversionCheckoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluationConversionCheckoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluationConversionCheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationConversionCheckoutResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/convert"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/convert"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/convert"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/evaluations/convert"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices": {
      "post": {
        "tags": [
          "Devices"
        ],
        "summary": "Registers a new device.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDeviceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDeviceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDeviceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              }
            }
          },
          "200": {
            "description": "Returns the registered device.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceContract"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Devices"
        ],
        "summary": "Lists all devices for the current tenant.",
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices"
                }
              }
            }
          },
          "200": {
            "description": "Returns the list of devices.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeviceContract"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices/{deviceId}": {
      "get": {
        "tags": [
          "Devices"
        ],
        "summary": "Gets a device by its external identifier.",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "description": "The external device identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              }
            }
          },
          "200": {
            "description": "Returns the device.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceContract"
                }
              }
            }
          },
          "404": {
            "description": "If the device is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices/{deviceId}/info": {
      "put": {
        "tags": [
          "Devices"
        ],
        "summary": "Updates device information.",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "description": "The external device identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "New device name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "description",
            "in": "query",
            "description": "New device description.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/info"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/info"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/info"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/info"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/info"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/info"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/info"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/info"
                }
              }
            }
          },
          "200": {
            "description": "Returns the updated device.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceContract"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices/{deviceId}/status": {
      "put": {
        "tags": [
          "Devices"
        ],
        "summary": "Updates device status.",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "description": "The external device identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "New device status.",
            "schema": {
              "$ref": "#/components/schemas/DeviceStatusContract"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/status"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/status"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/status"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/status"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/status"
                }
              }
            }
          },
          "200": {
            "description": "Returns the updated device.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceContract"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices/{deviceId}/lastseen": {
      "put": {
        "tags": [
          "Devices"
        ],
        "summary": "Records a device heartbeat (latest-seen update). Promotes a registered device to\r\nactive on its first heartbeat and rejects devices that are retired or decommissioned.",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "description": "The external device identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lastSeenUtc",
            "in": "query",
            "description": "New last seen timestamp (defaults to server receipt time when omitted).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/lastseen"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/lastseen"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/lastseen"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/lastseen"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/lastseen"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/lastseen"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/lastseen"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/{deviceId}/lastseen"
                }
              }
            }
          },
          "200": {
            "description": "Returns the updated device.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceContract"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices/enrollment-token": {
      "post": {
        "tags": [
          "Devices"
        ],
        "summary": "Issues a single-use enrollment token.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueEnrollmentTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueEnrollmentTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IssueEnrollmentTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/enrollment-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/enrollment-token"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/enrollment-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/enrollment-token"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/enrollment-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/enrollment-token"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/enrollment-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/enrollment-token"
                }
              }
            }
          },
          "200": {
            "description": "Returns the issued enrollment token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueEnrollmentTokenResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices/validate-token": {
      "post": {
        "tags": [
          "Devices"
        ],
        "summary": "Validates and consumes an enrollment token.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEnrollmentTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEnrollmentTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEnrollmentTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              }
            }
          },
          "200": {
            "description": "Returns the validation result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidateEnrollmentTokenResponse"
                }
              }
            }
          },
          "404": {
            "description": "If the enrollment token is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/validate-token"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices/reserve-seat": {
      "post": {
        "tags": [
          "Devices"
        ],
        "summary": "Reserves a seat (license slot) for a device within the caller's tenant.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReserveSeatRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReserveSeatRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReserveSeatRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              }
            }
          },
          "403": {
            "description": "If cross-tenant access is attempted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              }
            }
          },
          "200": {
            "description": "Returns the reservation result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReserveSeatResponse"
                }
              }
            }
          },
          "409": {
            "description": "If the device already has an active reservation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/reserve-seat"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Devices/activate-device": {
      "post": {
        "tags": [
          "Devices"
        ],
        "summary": "Activates a device against a previously reserved seat.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateDeviceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateDeviceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateDeviceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              }
            }
          },
          "403": {
            "description": "If cross-tenant access is attempted or the reservation is not activatable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              }
            }
          },
          "200": {
            "description": "Returns the activation result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivateDeviceResponse"
                }
              }
            }
          },
          "404": {
            "description": "If the seat reservation is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/Devices/activate-device"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/License/{deviceId}/refresh": {
      "post": {
        "tags": [
          "License"
        ],
        "summary": "Refreshes the signed lease for an authorized paid device.",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}/refresh"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}/refresh"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}/refresh"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}/refresh"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}/refresh"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}/refresh"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}/refresh"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}/refresh"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceLicenseLease"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/License/{deviceId}": {
      "get": {
        "tags": [
          "License"
        ],
        "summary": "Gets the signed license contract for a device.",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "description": "The device identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              }
            }
          },
          "200": {
            "description": "Returns the signed license contract.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseContract"
                }
              }
            }
          },
          "404": {
            "description": "If no active license is found for the device.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/{deviceId}"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/License/validate": {
      "post": {
        "tags": [
          "License"
        ],
        "summary": "Validates a signed license contract.",
        "requestBody": {
          "description": "Cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLicenseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLicenseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLicenseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "If the request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/validate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/validate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/validate"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/validate"
                }
              }
            }
          },
          "200": {
            "description": "Returns the validation result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseValidationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/License/.well-known/jwks": {
      "get": {
        "tags": [
          "License"
        ],
        "summary": "Gets the JWKS (JSON Web Key Set) for the tenant.",
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/.well-known/jwks"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/.well-known/jwks"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/.well-known/jwks"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/.well-known/jwks"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/.well-known/jwks"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/.well-known/jwks"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/.well-known/jwks"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/License/.well-known/jwks"
                }
              }
            }
          },
          "200": {
            "description": "Returns the JWKS document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JwksResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/device-certification": {
      "get": {
        "tags": [
          "DeviceCertification"
        ],
        "summary": "Returns the publicly visible device certification catalogue.\r\nExcludes serial/device-specific secrets per acceptance criteria.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDeviceCertificationCatalogResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/device-certification"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/device-certification"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DeviceCertification"
        ],
        "summary": "Registers a new device certification profile in the Pending state.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDeviceCertificationProfileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDeviceCertificationProfileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDeviceCertificationProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceCertificationProfileResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/device-certification"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/device-certification"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/device-certification/profile/{modelNumber}": {
      "get": {
        "tags": [
          "DeviceCertification"
        ],
        "summary": "Returns the publicly visible certification for one device profile by model number.\r\nA profile that is not certified yields 404 rather than showing unapproved status.",
        "parameters": [
          {
            "name": "modelNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDeviceCertificationProfileResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/device-certification/profile/{modelNumber}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/device-certification/profile/{modelNumber}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/device-certification/effective/{modelNumber}": {
      "get": {
        "tags": [
          "DeviceCertification"
        ],
        "summary": "Returns the authenticated tenant's effective device certification entitlement,\r\nincluding any tenant policy restrictions.",
        "parameters": [
          {
            "name": "modelNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EffectiveDeviceCertificationResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/device-certification/effective/{modelNumber}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/device-certification/effective/{modelNumber}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/onboarding/milestones": {
      "get": {
        "tags": [
          "OnboardingMilestone"
        ],
        "summary": "Gets the onboarding milestones for the authenticated tenant (customer view).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OnboardingMilestoneContract"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "OnboardingMilestone"
        ],
        "summary": "Creates or updates an onboarding milestone (internal view).\r\nRequires internal authorization (e.g., support or admin role).",
        "requestBody": {
          "description": "The cancellation token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertOnboardingMilestoneRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertOnboardingMilestoneRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertOnboardingMilestoneRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingMilestoneContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/onboarding/milestones/{key}": {
      "delete": {
        "tags": [
          "OnboardingMilestone"
        ],
        "summary": "Deactivates an onboarding milestone (internal view).\r\nRequires internal authorization (e.g., support or admin role).",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "description": "The milestone key to deactivate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones/{key}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones/{key}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones/{key}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/onboarding/milestones/{key}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof": {
      "post": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Creates a new draft customer proof owned by the authenticated tenant.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomerProofRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomerProofRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomerProofRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProofResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Returns all proofs owned by the caller's tenant (owner view).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerProofResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof/{id}": {
      "get": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Returns the proof owned by the caller's tenant (owner view, includes confidential details).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProofResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof/public": {
      "get": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Returns the public registry: every proof that is currently published, not withdrawn\r\nand not expired, across all tenants. Customer-identifying details are suppressed\r\nfor confidential proofs so confidentiality is preserved even on the public surface.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerProofResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/public"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/public"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof/{id}/submit": {
      "post": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Submits a draft for review (tenant-scoped).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProofResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/submit"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/submit"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/submit"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/submit"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/submit"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/submit"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof/{id}/approve": {
      "post": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Approves a submitted proof (tenant-scoped).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveCustomerProofRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveCustomerProofRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveCustomerProofRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProofResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/approve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/approve"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/approve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/approve"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/approve"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/approve"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof/{id}/reject": {
      "post": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Rejects a submitted proof (tenant-scoped).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectCustomerProofRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectCustomerProofRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectCustomerProofRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProofResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/reject"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/reject"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/reject"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/reject"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/reject"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/reject"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof/{id}/publish": {
      "post": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Publishes an approved proof (tenant-scoped).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishCustomerProofRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishCustomerProofRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublishCustomerProofRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProofResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/publish"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/publish"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/publish"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/publish"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof/{id}/withdraw": {
      "post": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Withdraws a published proof (tenant-scoped); the audit trail is retained.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WithdrawCustomerProofRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WithdrawCustomerProofRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WithdrawCustomerProofRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProofResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/withdraw"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/withdraw"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/withdraw"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/withdraw"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/withdraw"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/withdraw"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerProof/{id}/revise-metrics": {
      "post": {
        "tags": [
          "CustomerProof"
        ],
        "summary": "Revises the metric set of a customer proof (tenant-scoped).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviseCustomerProofMetricsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviseCustomerProofMetricsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReviseCustomerProofMetricsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProofResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/revise-metrics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/revise-metrics"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/revise-metrics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/revise-metrics"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/revise-metrics"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/CustomerProof/{id}/revise-metrics"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connectors": {
      "get": {
        "tags": [
          "Connector"
        ],
        "summary": "Gets all active connector catalog entries (public catalog).",
        "description": "Returns a list of all connectors that are currently offered (IsActive = true).\r\nEach entry includes the connector's metadata: key, display name, type, direction,\r\nlifecycle status, auth scheme, schema version, connector version, and supported\r\nproviders and data classes.",
        "responses": {
          "200": {
            "description": "Returns the list of active connector catalog entries.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConnectorCatalogContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connectors/{connectorKey}": {
      "get": {
        "tags": [
          "Connector"
        ],
        "summary": "Gets a specific connector catalog entry by its key.",
        "description": "Returns the connector catalog entry for the given key if it exists and is active.\r\nIf the connector is not found or inactive, returns null (200 OK with null body).",
        "parameters": [
          {
            "name": "connectorKey",
            "in": "path",
            "description": "The stable, URL-safe connector key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the connector catalog entry or null if not found/inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorCatalogContract"
                }
              }
            }
          },
          "400": {
            "description": "If the connector key is missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/{connectorKey}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/{connectorKey}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connectors/tenant": {
      "get": {
        "tags": [
          "Connector"
        ],
        "summary": "Gets the authenticated tenant's connector bindings.",
        "description": "Returns a list of the tenant's bindings to connectors, including enablement,\r\nentitlement, secret reference (pointer only), and configuration fingerprint.\r\nThe tenant is derived from the authenticated principal, so a cross-tenant read\r\nis structurally impossible.",
        "responses": {
          "200": {
            "description": "Returns the list of the tenant's connector bindings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantConnectorContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not permitted to access tenant data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connectors/tenant/{connectorKey}/enable": {
      "post": {
        "tags": [
          "Connector"
        ],
        "summary": "Enables a connector binding for the authenticated tenant.",
        "description": "Sets the binding's IsEnabled flag to true. The tenant must be entitled to the\r\nconnector (IsEntitled = true) to exercise it, but enabling is separate from\r\nentitlement. The tenant is derived from the authenticated principal.",
        "parameters": [
          {
            "name": "connectorKey",
            "in": "path",
            "description": "The stable, URL-safe connector key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the updated tenant connector contract.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantConnectorContract"
                }
              }
            }
          },
          "400": {
            "description": "If the connector key is missing or the binding is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/enable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/enable"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/enable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/enable"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not permitted to modify tenant data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/enable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/enable"
                }
              }
            }
          },
          "404": {
            "description": "If the connector binding is not found for the tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/enable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/enable"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connectors/tenant/{connectorKey}/disable": {
      "post": {
        "tags": [
          "Connector"
        ],
        "summary": "Disables a connector binding for the authenticated tenant.",
        "description": "Sets the binding's IsEnabled flag to false. The binding remains in the system\r\nand can be re-enabled later. The tenant is derived from the authenticated principal.",
        "parameters": [
          {
            "name": "connectorKey",
            "in": "path",
            "description": "The stable, URL-safe connector key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the updated tenant connector contract.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantConnectorContract"
                }
              }
            }
          },
          "400": {
            "description": "If the connector key is missing or the binding is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/disable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/disable"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/disable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/disable"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not permitted to modify tenant data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/disable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/disable"
                }
              }
            }
          },
          "404": {
            "description": "If the connector binding is not found for the tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/disable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/disable"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connectors/tenant/{connectorKey}/entitlement": {
      "post": {
        "tags": [
          "Connector"
        ],
        "summary": "Sets the entitlement (license/plan) status for the authenticated tenant's connector binding.",
        "description": "Updates whether the tenant is entitled to use the connector (based on their plan/license).\r\nThis does not change the enablement state. The tenant is derived from the authenticated principal.",
        "parameters": [
          {
            "name": "connectorKey",
            "in": "path",
            "description": "The stable, URL-safe connector key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Whether the tenant is entitled to use the connector.",
          "content": {
            "application/json": {
              "schema": {
                "type": "boolean"
              }
            },
            "text/json": {
              "schema": {
                "type": "boolean"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "boolean"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Returns the updated tenant connector contract.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantConnectorContract"
                }
              }
            }
          },
          "400": {
            "description": "If the connector key is missing or the binding is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/entitlement"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/entitlement"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/entitlement"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/entitlement"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not permitted to modify tenant data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/entitlement"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/entitlement"
                }
              }
            }
          },
          "404": {
            "description": "If the connector binding is not found for the tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/entitlement"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/entitlement"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connectors/tenant/{connectorKey}/secret": {
      "post": {
        "tags": [
          "Connector"
        ],
        "summary": "Sets the secret reference pointer for the authenticated tenant's connector binding.",
        "description": "Records the server-assigned pointer to the tenant's secret (e.g. a vault key ID).\r\nThe secret material itself is never stored or passed here. Passing null clears the reference.\r\nThe tenant is derived from the authenticated principal.",
        "parameters": [
          {
            "name": "connectorKey",
            "in": "path",
            "description": "The stable, URL-safe connector key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Server-assigned pointer to the tenant's secret (e.g. vault key ID).",
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated tenant connector contract.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantConnectorContract"
                }
              }
            }
          },
          "400": {
            "description": "If the connector key is missing, the binding is not found, or the reference is too long.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/secret"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/secret"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/secret"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/secret"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not permitted to modify tenant data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/secret"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/secret"
                }
              }
            }
          },
          "404": {
            "description": "If the connector binding is not found for the tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/secret"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/secret"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connectors/tenant/{connectorKey}/configuration": {
      "post": {
        "tags": [
          "Connector"
        ],
        "summary": "Sets the effective configuration fingerprint for the authenticated tenant's connector binding.",
        "description": "Records a stable fingerprint of the effective configuration at last validation\r\n(e.g. after a successful connection test). Passing null clears the fingerprint.\r\nThe tenant is derived from the authenticated principal.",
        "parameters": [
          {
            "name": "connectorKey",
            "in": "path",
            "description": "The stable, URL-safe connector key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Fingerprint of the validated effective configuration.",
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated tenant connector contract.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantConnectorContract"
                }
              }
            }
          },
          "400": {
            "description": "If the connector key is missing, the binding is not found, or the fingerprint is too long.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/configuration"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/configuration"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/configuration"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/configuration"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not permitted to modify tenant data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/configuration"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/configuration"
                }
              }
            }
          },
          "404": {
            "description": "If the connector binding is not found for the tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/configuration"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connectors/tenant/{connectorKey}/configuration"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connector-instances": {
      "post": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Creates a tenant-scoped ERP/WMS connector instance.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConnectorInstanceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConnectorInstanceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConnectorInstanceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorInstanceContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Lists the authenticated tenant's active connector instances.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConnectorInstanceContract"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connector-instances/{id}": {
      "get": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Gets one active connector instance by id.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorInstanceContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Soft-deletes a connector instance (history retained).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorInstanceContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connector-instances/{id}/configuration": {
      "put": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Supplies or replaces configuration/secret reference for an instance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureConnectorInstanceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureConnectorInstanceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureConnectorInstanceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorInstanceContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/configuration"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/configuration"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/configuration"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/configuration"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connector-instances/{id}/test-connection": {
      "post": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Runs a bounded, auditable connection test against an instance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestConnectorConnectionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TestConnectorConnectionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TestConnectorConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorConnectionTestResultContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/test-connection"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/test-connection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connector-instances/{id}/complete": {
      "post": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Completes onboarding (requires a verified connection).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorInstanceContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/complete"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/complete"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/complete"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connector-instances/{id}/enable": {
      "post": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Enables a connector instance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorInstanceContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/enable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/enable"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/connector-instances/{id}/disable": {
      "post": {
        "tags": [
          "ConnectorInstance"
        ],
        "summary": "Disables a connector instance (history retained).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorInstanceContract"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/disable"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/connector-instances/{id}/disable"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/{artifactId}/download-grant": {
      "post": {
        "tags": [
          "BarcodeArtifact"
        ],
        "summary": "Creates a time-limited download grant for a tenant-owned barcode artifact.",
        "parameters": [
          {
            "name": "artifactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBarcodeArtifactDownloadGrantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBarcodeArtifactDownloadGrantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBarcodeArtifactDownloadGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeArtifactDownloadGrantResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{artifactId}/download-grant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{artifactId}/download-grant"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{artifactId}/download-grant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{artifactId}/download-grant"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{artifactId}/download-grant"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{artifactId}/download-grant"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/download/{grantToken}": {
      "get": {
        "tags": [
          "BarcodeArtifact"
        ],
        "summary": "Redeems a download grant and streams the barcode artifact content.\r\nReturns 404 when the grant is missing, tampered, expired, or the artifact is gone.",
        "parameters": [
          {
            "name": "grantToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/download/{grantToken}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/download/{grantToken}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/batch": {
      "post": {
        "tags": [
          "BarcodeBatch"
        ],
        "summary": "Generates a batch of barcodes (PRXSAAS-BE-0285, BC-C013).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateBatchBarcodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateBatchBarcodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateBatchBarcodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateBatchBarcodeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/batch"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [ ]
          },
          {
            "barcodeApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/barcodes/entitlement": {
      "get": {
        "tags": [
          "BarcodeEntitlement"
        ],
        "summary": "Returns the current barcode generation entitlement for the authenticated tenant (BC-C011).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeEntitlementResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/entitlement"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/entitlement"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/entitlement"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/entitlement"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/entitlement"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/entitlement"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/generate": {
      "post": {
        "tags": [
          "BarcodeGeneration"
        ],
        "summary": "Generates an authoritative single barcode artifact (PRXSAAS-BE-0271, BC-C005).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateBarcodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateBarcodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateBarcodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateBarcodeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/generate"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": [ ]
          },
          {
            "barcodeApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/barcodes/history": {
      "get": {
        "tags": [
          "BarcodeHistory"
        ],
        "summary": "Gets paginated recent barcode generations for the authenticated tenant.\r\nReturns safe/masked metadata including artifact availability, expiry, and regeneration eligibility.\r\nDoes NOT return raw barcode payload or sensitive generation data.",
        "parameters": [
          {
            "name": "Cursor",
            "in": "query",
            "description": "Opaque cursor returned by the previous page (null for first page).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Maximum items per page. Defaults to 20, bounded by [1, 100].",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeHistoryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/history"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/history"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/history"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/history"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/history/{generationItemId}": {
      "get": {
        "tags": [
          "BarcodeHistory"
        ],
        "summary": "Gets details for a specific generation event by generation item ID.\r\nReturns artifact status, expiry, and regeneration eligibility.",
        "parameters": [
          {
            "name": "generationItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeGenerationDetailResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/history/{generationItemId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/history/{generationItemId}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/history/{generationItemId}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/history/{generationItemId}"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/validate": {
      "post": {
        "tags": [
          "BarcodeValidation"
        ],
        "summary": "Validates a barcode payload without generating an artifact.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateBarcodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateBarcodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateBarcodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidateBarcodeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/validate"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/429",
                  "title": "Request Failed",
                  "status": 429,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/validate"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/429",
                  "title": "Request Failed",
                  "status": 429,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/validate"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        },
        "security": [
          { },
          {
            "barcodeApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/barcodes/{generationId}/verify": {
      "post": {
        "tags": [
          "BarcodeVerification"
        ],
        "summary": "Verifies a generated barcode artifact and returns a structured verification result (PRXSAAS-BE-0319).",
        "parameters": [
          {
            "name": "generationId",
            "in": "path",
            "description": "The generation ID of the barcode artifact to verify",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Cancellation token",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratedBarcodeVerificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratedBarcodeVerificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratedBarcodeVerificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeneratedBarcodeVerificationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/422",
                  "title": "Unprocessable Entity",
                  "status": 422,
                  "detail": "One or more fields failed validation; see the errors extension.",
                  "code": "validation_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/503",
                  "title": "Request Failed",
                  "status": 503,
                  "detail": "The request failed.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/{generationId}/verify"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/apikeys": {
      "post": {
        "tags": [
          "BarcodeApiCredential"
        ],
        "summary": "Issues a new barcode API credential for the authenticated tenant. The\r\nplaintext secret is returned exactly once in the response body and is\r\nnever persisted or logged thereafter.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BarcodeApiCredentialCreateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BarcodeApiCredentialCreateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BarcodeApiCredentialCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeApiCredentialIssueResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/409",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "A conflicting request with the same idempotency key is in flight or already completed.",
                  "code": "idempotency_conflict",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "BarcodeApiCredential"
        ],
        "summary": "Lists the barcode API credentials owned by the authenticated tenant, newest first.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BarcodeApiCredentialResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/apikeys/{id}": {
      "get": {
        "tags": [
          "BarcodeApiCredential"
        ],
        "summary": "Returns one barcode API credential owned by the authenticated tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeApiCredentialResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys/{id}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys/{id}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/apikeys/{id}/revoke": {
      "post": {
        "tags": [
          "BarcodeApiCredential"
        ],
        "summary": "Revokes a barcode API credential owned by the authenticated tenant. Idempotent.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeApiCredentialResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "The request could not be parsed or violated a route constraint.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys/{id}/revoke"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys/{id}/revoke"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/apikeys/{id}/revoke"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/catalog": {
      "get": {
        "tags": [
          "BarcodeCatalog"
        ],
        "summary": "Returns the complete barcode capability catalog.\r\nSupports ETag and If-None-Match 304 Not Modified caching.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCapabilityCatalogResponse"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcode-capabilities": {
      "get": {
        "tags": [
          "BarcodeCatalog"
        ],
        "summary": "Returns the complete barcode capability catalog.\r\nSupports ETag and If-None-Match 304 Not Modified caching.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCapabilityCatalogResponse"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcodes/catalog/{slug}": {
      "get": {
        "tags": [
          "BarcodeCatalog"
        ],
        "summary": "Returns technical capability metadata for a single symbology by slug or canonical ID.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCapability"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/catalog/{slug}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcodes/catalog/{slug}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/barcode-capabilities/{slug}": {
      "get": {
        "tags": [
          "BarcodeCatalog"
        ],
        "summary": "Returns technical capability metadata for a single symbology by slug or canonical ID.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BarcodeCapability"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcode-capabilities/{slug}"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "The requested tenant-scoped resource does not exist.",
                  "code": "resource_not_found",
                  "correlationId": "0HN7B2M3QK4L5:00000003",
                  "instance": "/api/v1/barcode-capabilities/{slug}"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated: the bearer token is missing, invalid, or carries no resolvable tenant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Tenant could not be resolved for this request.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but not permitted to access this tenant-scoped resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/403",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "The caller is not permitted to access this resource.",
                  "code": "request_failed",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error. The correlationId is safe to quote in a support request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://httpstatuses.io/500",
                  "title": "Internal Server Error",
                  "status": 500,
                  "detail": "An unexpected error occurred while processing the request.",
                  "code": "unexpected_error",
                  "correlationId": "0HN7B2M3QK4L5:00000003"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AcceptInvitationRequest": {
        "required": [
          "inviteCode",
          "userId"
        ],
        "type": "object",
        "properties": {
          "inviteCode": {
            "type": "string",
            "description": "Server-issued, single-use invite code from the acceptance link."
          },
          "userId": {
            "type": "string",
            "description": "External user identifier of the accepting identity."
          }
        },
        "description": "Request to accept an outstanding invitation (PRXSAAS-BE-0041). The invite code\r\nis the only secret needed: it is embedded in the acceptance link and is\r\nsingle-use, so possession of the code is sufficient authorisation. The owning\r\ntenant is resolved from the authenticated principal and the granted role is\r\ntaken from the invitation, never from the request body."
      },
      "ActivateArtifactPublicationRequest": {
        "required": [
          "accessToken"
        ],
        "type": "object",
        "properties": {
          "accessToken": {
            "type": "string"
          }
        },
        "description": "Request contract to activate a draft publication by embedding its secure\r\naccess token."
      },
      "ActivateDeviceRequest": {
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "description": "Identifier of the device being activated."
          },
          "seatReservationId": {
            "type": "string",
            "description": "Identifier of the reserved seat the device is activating against."
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional idempotency key. When provided, repeated calls with the same key\r\nwill return the same activation result, ensuring exactly-once semantics."
          }
        },
        "description": "Request to activate a device against a previously reserved seat."
      },
      "ActivateDeviceResponse": {
        "type": "object",
        "properties": {
          "activationId": {
            "type": "string",
            "description": "Server-assigned activation identifier."
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns the activation."
          },
          "deviceId": {
            "type": "string",
            "description": "Device that was activated."
          },
          "seatReservationId": {
            "type": "string",
            "description": "Reservation the activation consumed."
          },
          "status": {
            "description": "Current activation status.",
            "$ref": "#/components/schemas/DeviceActivationStatus"
          },
          "activatedUtc": {
            "type": "string",
            "description": "UTC time the device was activated.",
            "format": "date-time"
          }
        },
        "description": "Response returned after a device is activated against a reserved seat."
      },
      "ActivateEvaluationRequest": {
        "required": [
          "idempotencyKey",
          "planId"
        ],
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string",
            "description": "Client-supplied idempotency key (8-128 characters)."
          },
          "planId": {
            "type": "string",
            "description": "Identifier of the evaluation plan to activate. Must reference an active plan.",
            "format": "uuid"
          },
          "emailDomainHash": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional hex-encoded SHA-256 hash of the normalized email domain. Enables per-domain abuse\r\nsignals without storing the raw email (PRXSAAS-BE-0208)."
          },
          "deviceHash": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional hex-encoded SHA-256 hash of the normalized device identifier. Enables per-device\r\nabuse signals without storing the raw device data (PRXSAAS-BE-0208)."
          }
        },
        "description": "Request to activate an evaluation (trial) for the authenticated tenant\r\n(PRXSAAS-BE-0205)."
      },
      "ActivateEvaluationResponse": {
        "required": [
          "idempotencyKey",
          "state",
          "replayed",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string",
            "description": "Idempotency key the outcome belongs to."
          },
          "state": {
            "description": "State of the attempt.",
            "$ref": "#/components/schemas/EvaluationActivationStateContract"
          },
          "evaluation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The activated evaluation state when the attempt completed; null otherwise.",
                "$ref": "#/components/schemas/EvaluationTenantStateDto"
              }
            ]
          },
          "plan": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The evaluation plan that was activated; null on replay of a failed attempt.",
                "$ref": "#/components/schemas/EvaluationPlanDto"
              }
            ]
          },
          "replayed": {
            "type": "boolean",
            "description": "`true` when this response was replayed from a prior attempt."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the attempt was first reserved.",
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the attempt reached a terminal state; null while pending.",
            "format": "date-time"
          }
        },
        "description": "Outcome of an idempotent evaluation activation attempt (PRXSAAS-BE-0205)."
      },
      "AddSupportDiagnosticIntakeRequest": {
        "type": "object",
        "properties": {
          "environment": {
            "type": [
              "null",
              "string"
            ],
            "description": "OS / runtime environment description."
          },
          "appVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Application or product version the issue was observed on."
          },
          "deviceInfo": {
            "type": [
              "null",
              "string"
            ],
            "description": "Device or machine identifier where the issue occurred."
          },
          "logExcerpt": {
            "type": [
              "null",
              "string"
            ],
            "description": "Relevant log excerpt."
          },
          "stepsToReproduce": {
            "type": [
              "null",
              "string"
            ],
            "description": "Steps required to reproduce the issue."
          },
          "diagnosticsJson": {
            "type": [
              "null",
              "string"
            ],
            "description": "Structured diagnostic payload (for example a JSON blob of telemetry)."
          },
          "submittedByUserId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Identifier of the user who submitted the intake, when authenticated."
          }
        },
        "description": "Request to append a diagnostic intake entry to an existing support request."
      },
      "AdvanceOnboardingWizardRequest": {
        "type": "object",
        "properties": {
          "nextStepKey": {
            "type": "string",
            "description": "Stable key of the next step."
          },
          "nextStepIndex": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "1-based ordinal of the next step.",
            "format": "int32"
          }
        },
        "description": "PRXSAAS-BE-0101. Request to advance the onboarding wizard to the next step."
      },
      "AgentSkillArtifactChannelCatalogResponse": {
        "required": [
          "channelId",
          "artifacts"
        ],
        "type": "object",
        "properties": {
          "channelId": {
            "type": "string",
            "format": "uuid"
          },
          "artifacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentSkillArtifactResponse"
            }
          }
        },
        "description": "Response contract for a release channel and the agent skill artifacts it\r\ncurrently advertises (PRXSAAS-BE-0225)."
      },
      "AgentSkillArtifactResponse": {
        "required": [
          "id",
          "tenantId",
          "releaseChannelId",
          "skillName",
          "version",
          "sdkCompatibility",
          "packageChecksum",
          "packageSignature",
          "evaluationStatus",
          "evaluationNotes",
          "installCommand",
          "requiredEntitlement",
          "state",
          "publishedAtUtc",
          "deprecatedAtUtc",
          "deprecationReason",
          "migrationGuideUri",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "releaseChannelId": {
            "type": "string",
            "format": "uuid"
          },
          "skillName": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "sdkCompatibility": {
            "type": "string"
          },
          "packageChecksum": {
            "type": "string"
          },
          "packageSignature": {
            "type": "string"
          },
          "evaluationStatus": {
            "$ref": "#/components/schemas/AgentSkillEvaluationStatusDto"
          },
          "evaluationNotes": {
            "type": [
              "null",
              "string"
            ]
          },
          "installCommand": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredEntitlement": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/AgentSkillArtifactStateDto"
          },
          "publishedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "deprecatedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "deprecationReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "migrationGuideUri": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for one catalogued agent skill artifact. Plain data only -\r\nnever an EF entity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "AgentSkillArtifactStateDto": {
        "type": "integer",
        "description": "Lifecycle state of a customer-facing agent skill artifact (PRXSAAS-BE-0225).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "AgentSkillEvaluationStatusDto": {
        "type": "integer",
        "description": "Outcome of the automated evaluation run for a skill bundle (PRXSAAS-BE-0225)."
      },
      "ApiCredentialResponse": {
        "required": [
          "id",
          "tenantId",
          "name",
          "clientId",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc",
          "revokedAtUtc",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "revokedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "description": "Response contract describing an issued credential without its secret\r\n(PRXSAAS-BE-0097). Safe to return on read/list surfaces."
      },
      "ApproveCustomerProofRequest": {
        "required": [
          "approvedBy",
          "approverRole"
        ],
        "type": "object",
        "properties": {
          "approvedBy": {
            "type": "string",
            "description": "Subject performing the approval (recorded for audit)."
          },
          "approverRole": {
            "description": "Named role of the approver (recorded for audit; required).",
            "$ref": "#/components/schemas/CustomerProofApproverRoleContract"
          }
        },
        "description": "Request to approve a submitted proof (PRXSAAS-BE-0237)."
      },
      "ApproveTrustEvidenceRequest": {
        "required": [
          "approver",
          "effectiveDateUtc"
        ],
        "type": "object",
        "properties": {
          "approver": {
            "type": "string"
          },
          "effectiveDateUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Request payload for approving a submitted trust evidence record\r\n(PRXSAAS-BE-0250)."
      },
      "ArtifactPublicationResponse": {
        "required": [
          "id",
          "sdkArtifactId",
          "scope",
          "state",
          "accessToken",
          "expiresAtUtc",
          "activatedAtUtc",
          "revokedAtUtc",
          "revocationReason",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sdkArtifactId": {
            "type": "string",
            "format": "uuid"
          },
          "scope": {
            "$ref": "#/components/schemas/ArtifactPublicationScopeDto"
          },
          "state": {
            "$ref": "#/components/schemas/ArtifactPublicationStateDto"
          },
          "accessToken": {
            "type": "string"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "activatedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "revokedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "revocationReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for one secure artifact publication. Plain data only -\r\nnever an EF entity - so the OpenAPI surface stays stable and\r\nprovider-neutral. The owning tenant is omitted because the response is\r\nalready tenant-scoped."
      },
      "ArtifactPublicationScopeDto": {
        "type": "integer",
        "description": "Access scope of a secure artifact publication (PRXSAAS-BE-0092).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "ArtifactPublicationStateDto": {
        "type": "integer",
        "description": "Lifecycle state of a secure artifact publication (PRXSAAS-BE-0092)."
      },
      "AssignPharmaExceptionRequest": {
        "required": [
          "assignedTo"
        ],
        "type": "object",
        "properties": {
          "assignedTo": {
            "type": "string"
          }
        },
        "description": "Request to assign a case to an investigator."
      },
      "AuditEventResponse": {
        "required": [
          "id",
          "tenantId",
          "eventType",
          "actor",
          "payload",
          "outcome",
          "correlationId",
          "source",
          "occurredUtc",
          "createdUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "actor": {
            "type": "string"
          },
          "payload": {
            "type": [
              "null",
              "string"
            ]
          },
          "outcome": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": [
              "null",
              "string"
            ]
          },
          "occurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for one stored audit event. Plain data only - never an EF\r\nentity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "AuditEventsQueryResponse": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuditEventViewerResponse"
            },
            "description": "The audit events matching the query."
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Total number of events matching the query (before pagination).",
            "format": "int32"
          },
          "returnedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of events returned in this page.",
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether there are more events available beyond this page."
          },
          "offset": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Pagination offset used for this query.",
            "format": "int32"
          },
          "limit": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Pagination limit used for this query.",
            "format": "int32"
          }
        },
        "description": "PRXSAAS-BE-0103. Response contract for paginated audit events query."
      },
      "AuditEventViewerResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the audit event.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Identifier of the tenant that owns this audit event."
          },
          "eventType": {
            "type": "string",
            "description": "Type of event that occurred (e.g., \"UserLogin\", \"DataExport\")."
          },
          "actor": {
            "type": "string",
            "description": "Actor who performed the action (user ID, system, etc.)."
          },
          "occurredUtc": {
            "type": "string",
            "description": "UTC timestamp when the event occurred.",
            "format": "date-time"
          },
          "recordedUtc": {
            "type": "string",
            "description": "UTC timestamp when the event was recorded in the system.",
            "format": "date-time"
          },
          "outcome": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional outcome of the event (success, failure, etc.)."
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional correlation ID for tracing related events."
          },
          "source": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional source/system that generated the event."
          },
          "displayPayload": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional non-sensitive payload for display purposes."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags for categorizing and filtering audit events."
          }
        },
        "description": "PRXSAAS-BE-0103. Response contract for audit events viewable in the audit viewer.\r\nContains only the data needed for display in the UI - no EF entities or sensitive data."
      },
      "AuthenticationTokensResponse": {
        "required": [
          "sessionId",
          "refreshToken",
          "issuedAtUtc",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "Identifier of the session these tokens belong to.",
            "format": "uuid"
          },
          "accessToken": {
            "type": [
              "null",
              "string"
            ],
            "description": "Short-lived bearer JWT for API requests."
          },
          "refreshToken": {
            "type": "string",
            "description": "Opaque refresh token. Returned once; never stored in plain form."
          },
          "issuedAtUtc": {
            "type": "string",
            "description": "Issue instant, UTC.",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "description": "Instant the refresh token stops being usable, UTC.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0023. Credential pair issued by a successful login or refresh."
      },
      "BackupKind": {
        "type": "integer",
        "description": "Kind of backup captured for a tenant-owned data set (PRXSAAS-BE-0170).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "BackupOutcome": {
        "type": "integer",
        "description": "Outcome of a backup run (PRXSAAS-BE-0170).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "BackupResponse": {
        "required": [
          "id",
          "tenantId",
          "dataSet",
          "kind",
          "outcome",
          "startedAtUtc",
          "completedAtUtc",
          "restorePointUtc",
          "sizeInBytes",
          "storageLocation",
          "failureReason",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "dataSet": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/BackupKind"
          },
          "outcome": {
            "$ref": "#/components/schemas/BackupOutcome"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "restorePointUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "sizeInBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "storageLocation": {
            "type": [
              "null",
              "string"
            ]
          },
          "failureReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for a backup run record. Plain data only - never an EF\r\nentity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "BarcodeApiCredentialCreateRequest": {
        "required": [
          "displayName"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Human-readable credential name."
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional UTC instant when the credential expires.",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 256,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "Optional identifier of the creating principal."
          }
        },
        "description": "Request to create a barcode API credential."
      },
      "BarcodeApiCredentialIssueResponse": {
        "required": [
          "id",
          "tenantId",
          "displayName",
          "clientId",
          "secret",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "secret": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Response containing the issued barcode API credential and its plaintext secret."
      },
      "BarcodeApiCredentialResponse": {
        "required": [
          "id",
          "tenantId",
          "displayName",
          "clientId",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc",
          "revokedAtUtc",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "revokedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "description": "Response representing a barcode API credential (without secret)."
      },
      "BarcodeArtifactDownloadGrantResponse": {
        "required": [
          "grantToken",
          "expiresAtUtc",
          "downloadUrl"
        ],
        "type": "object",
        "properties": {
          "grantToken": {
            "type": "string"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "downloadUrl": {
            "type": "string"
          }
        },
        "description": "BC-C008. Response containing a short-lived, server-signed download grant.\r\nThe grant token is a bearer credential and must be treated as sensitive."
      },
      "BarcodeArtifactMetadata": {
        "required": [
          "artifactId",
          "mimeType",
          "contentLengthBytes",
          "expiresAt",
          "isExpired",
          "downloadGrantEndpoint"
        ],
        "type": "object",
        "properties": {
          "artifactId": {
            "type": "string",
            "description": "Unique artifact identifier.",
            "format": "uuid"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the stored artifact."
          },
          "contentLengthBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Size in bytes of the artifact content.",
            "format": "int64"
          },
          "expiresAt": {
            "type": "string",
            "description": "Expiry date/time of the artifact.",
            "format": "date-time"
          },
          "isExpired": {
            "type": "boolean",
            "description": "Indicates if the artifact is expired."
          },
          "downloadGrantEndpoint": {
            "type": "string",
            "description": "Download grant creation endpoint template for this artifact."
          }
        },
        "description": "BC-C009. Artifact metadata for history entries."
      },
      "BarcodeArtifactResponse": {
        "required": [
          "artifactId",
          "storageKey",
          "mimeType",
          "sha256Checksum",
          "width",
          "height"
        ],
        "type": "object",
        "properties": {
          "artifactId": {
            "type": "string",
            "format": "uuid"
          },
          "storageKey": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "sha256Checksum": {
            "type": "string"
          },
          "width": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "height": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "BC-C005. Persistent artifact metadata descriptor."
      },
      "BarcodeCapability": {
        "required": [
          "canonicalId",
          "slug",
          "displayName",
          "aliases",
          "technicalCategory",
          "industryTags",
          "useCaseTags",
          "rolloutTier",
          "fieldSchema",
          "characterSet",
          "checkDigitRule",
          "renderOptions",
          "outputFormats",
          "batchEligibilityMax",
          "providerHealth"
        ],
        "type": "object",
        "properties": {
          "canonicalId": {
            "type": "string",
            "description": "Stable, provider-neutral canonical identifier (e.g., \"upc-a\", \"ean-13\").\r\nDoes not depend on provider-specific enum names."
          },
          "slug": {
            "type": "string",
            "description": "Human-readable slug for UI use (e.g., \"upc-a\")."
          },
          "displayName": {
            "type": "string",
            "description": "Display name for the symbology (e.g., \"UPC-A\")."
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Alternative aliases for the symbology (e.g., [\"gtin-12\", \"upca\"])."
          },
          "technicalCategory": {
            "description": "Technical category: 1D, 2D, or GS1 family.",
            "$ref": "#/components/schemas/BarcodeTechnicalCategory"
          },
          "industryTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Industry use case tags for discovery (stable machine-readable identifiers)."
          },
          "useCaseTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Specific use case tags for discovery (stable machine-readable identifiers)."
          },
          "rolloutTier": {
            "description": "Rollout tier/maturity: Launch, Expansion, or Future.\r\nDoes not imply current support - check provider health separately.",
            "$ref": "#/components/schemas/BarcodeRolloutTier"
          },
          "fieldSchema": {
            "description": "Field schema definition for data validation.",
            "$ref": "#/components/schemas/BarcodeFieldSchema"
          },
          "characterSet": {
            "description": "Allowed character set and length restrictions.",
            "$ref": "#/components/schemas/BarcodeCharacterSet"
          },
          "checkDigitRule": {
            "description": "Check digit calculation and validation behavior.",
            "$ref": "#/components/schemas/BarcodeCheckDigitRule"
          },
          "renderOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BarcodeRenderOption"
            },
            "description": "Render options available for this symbology."
          },
          "outputFormats": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Available output formats (e.g., [\"svg\", \"png\", \"pdf\"]).\r\nNote: PDF417 is a symbology, PDF is an output format."
          },
          "batchEligibilityMax": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Maximum batch size allowed for this symbology.",
            "format": "int32"
          },
          "providerHealth": {
            "description": "Current health/support state from the provider.\r\nUnknown/disabled provider capability fails closed.",
            "$ref": "#/components/schemas/BarcodeProviderHealthStatus"
          }
        },
        "description": "Canonical barcode capability metadata returned by the capability catalog."
      },
      "BarcodeCapabilityCatalogResponse": {
        "required": [
          "symbologies",
          "generatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "symbologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BarcodeCapability"
            },
            "description": "List of all supported barcode symbologies with their metadata."
          },
          "generatedAtUtc": {
            "type": "string",
            "description": "Generated timestamp for cache validity.",
            "format": "date-time"
          }
        },
        "description": "Contract BC-C001: Barcode capability catalog response (PRXSAAS-BE-0252).\r\nProvides stable, provider-neutral barcode capability metadata for API consumers."
      },
      "BarcodeCharacterSet": {
        "required": [
          "minLength",
          "maxLength",
          "allowedCharacters",
          "allowsWhitespace"
        ],
        "type": "object",
        "properties": {
          "minLength": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Minimum allowed data length (in characters/data units).",
            "format": "int32"
          },
          "maxLength": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Maximum allowed data length (in characters/data units).\r\nNull indicates no maximum or symbology-specific limit.",
            "format": "int32"
          },
          "allowedCharacters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Allowed characters or character ranges (e.g., [\"0-9\", \"A-Z\", \"a-z\"]).\r\nEmpty list indicates no restrictions beyond MinLength/MaxLength."
          },
          "allowsWhitespace": {
            "type": "boolean",
            "description": "Whether whitespace characters are permitted in data."
          }
        },
        "description": "Character set and length restrictions for data encoding."
      },
      "BarcodeCheckDigitFeedback": {
        "required": [
          "algorithm",
          "isMandatory",
          "isValidated",
          "isValid"
        ],
        "type": "object",
        "properties": {
          "algorithm": {
            "type": "string"
          },
          "isMandatory": {
            "type": "boolean"
          },
          "isValidated": {
            "type": "boolean"
          },
          "isValid": {
            "type": "boolean"
          }
        },
        "description": "Check-digit validation feedback when the selected capability defines a checked digit."
      },
      "BarcodeCheckDigitRule": {
        "required": [
          "algorithm",
          "isMandatory",
          "position",
          "isValidated"
        ],
        "type": "object",
        "properties": {
          "algorithm": {
            "type": "string",
            "description": "Algorithm used for check digit calculation (e.g., \"modulo10\", \"modulo11\")."
          },
          "isMandatory": {
            "type": "boolean",
            "description": "Whether the check digit is mandatory for valid data."
          },
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Position of the check digit within the encoded data.\r\nNull indicates symbology-specific handling.",
            "format": "int32"
          },
          "isValidated": {
            "type": "boolean",
            "description": "Whether the check digit is validated during decoding."
          }
        },
        "description": "Check digit calculation and validation rules."
      },
      "BarcodeCreditBalanceContract": {
        "required": [
          "hasPurchasedWallet",
          "availableCredits"
        ],
        "type": "object",
        "properties": {
          "hasPurchasedWallet": {
            "type": "boolean"
          },
          "availableCredits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        },
        "description": "Persisted purchased balance; refunds may leave a debt after consumption."
      },
      "BarcodeCreditCheckoutContract": {
        "required": [
          "purchaseId",
          "status",
          "checkoutUrl",
          "credits"
        ],
        "type": "object",
        "properties": {
          "purchaseId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          },
          "checkoutUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "credits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Tenant-owned checkout and fulfillment status."
      },
      "BarcodeCreditOfferContract": {
        "required": [
          "offerKey",
          "currencyCode",
          "amountMinorUnits",
          "credits",
          "isAvailable"
        ],
        "type": "object",
        "properties": {
          "offerKey": {
            "type": "string"
          },
          "currencyCode": {
            "type": "string"
          },
          "amountMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "credits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "isAvailable": {
            "type": "boolean"
          }
        },
        "description": "Server-owned one-time offer; amounts use USD minor units."
      },
      "BarcodeEntitlementResponse": {
        "required": [
          "canGenerate",
          "batchMax",
          "isUnlimited",
          "allowedFormats",
          "sourcePlanKey",
          "effectiveAsOfUtc"
        ],
        "type": "object",
        "properties": {
          "canGenerate": {
            "type": "boolean",
            "description": "Whether the tenant has permission to generate barcodes."
          },
          "batchMax": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Maximum batch size allowed for the tenant (bounded at 30).",
            "format": "int32"
          },
          "isUnlimited": {
            "type": "boolean",
            "description": "Whether the tenant has unlimited barcode generation quota."
          },
          "remainingQuota": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Remaining quota units in current billing window (null if unlimited).",
            "format": "int32"
          },
          "totalQuota": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Total quota limit in current billing window (null if unlimited).",
            "format": "int32"
          },
          "allowedFormats": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Lower-case identifiers of allowed export formats (e.g. \"svg\", \"png\", \"pdf\")."
          },
          "sourcePlanKey": {
            "type": "string",
            "description": "Active plan key authorizing this entitlement."
          },
          "effectiveAsOfUtc": {
            "type": "string",
            "description": "Timestamp when entitlement was evaluated.",
            "format": "date-time"
          }
        },
        "description": "Contract BC-C010: Public tenant barcode generation entitlement response (PRXSAAS-BE-0278).\r\nFree of internal EF Core models or billing provider specific details."
      },
      "BarcodeFieldSchema": {
        "required": [
          "isNumericOnly",
          "isAlphanumeric",
          "isBinary",
          "supportsFnC1",
          "supportsStructuredAppend"
        ],
        "type": "object",
        "properties": {
          "isNumericOnly": {
            "type": "boolean",
            "description": "Whether the symbology encodes numeric-only data."
          },
          "isAlphanumeric": {
            "type": "boolean",
            "description": "Whether the symbology encodes alphanumeric data."
          },
          "isBinary": {
            "type": "boolean",
            "description": "Whether the symbology encodes binary/data bytes."
          },
          "supportsFnC1": {
            "type": "boolean",
            "description": "Whether the symbology supports FNC1 prefix for GS1 formatting."
          },
          "supportsStructuredAppend": {
            "type": "boolean",
            "description": "Whether the symbology supports structured append (multiple symbols)."
          }
        },
        "description": "Schema definition for the data fields encoded by this symbology."
      },
      "BarcodeGenerationDetailResponse": {
        "required": [
          "generationItemId",
          "batchId",
          "clientItemId",
          "symbology",
          "status",
          "maskedPayload",
          "canRegenerate",
          "createdAt",
          "quotaUnitsConsumed"
        ],
        "type": "object",
        "properties": {
          "generationItemId": {
            "type": "string",
            "description": "Unique identifier of the generation item.",
            "format": "uuid"
          },
          "batchId": {
            "type": "string",
            "description": "Batch identifier this item belongs to.",
            "format": "uuid"
          },
          "clientItemId": {
            "type": "string",
            "description": "Client-supplied item identifier for correlation."
          },
          "symbology": {
            "type": "string",
            "description": "Symbology that was processed."
          },
          "status": {
            "type": "string",
            "description": "Generation status."
          },
          "errorCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Error code when failed."
          },
          "errorMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Error message when failed."
          },
          "maskedPayload": {
            "type": "string",
            "description": "Masked payload per retention policy."
          },
          "artifact": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Artifact metadata when available.",
                "$ref": "#/components/schemas/BarcodeArtifactMetadata"
              }
            ]
          },
          "canRegenerate": {
            "type": "boolean",
            "description": "Indicates if the artifact can be regenerated."
          },
          "createdAt": {
            "type": "string",
            "description": "Timestamp when the generation item was created.",
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "null",
              "string"
            ],
            "description": "Timestamp when the generation item completed.",
            "format": "date-time"
          },
          "quotaUnitsConsumed": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Quota units consumed.",
            "format": "int32"
          }
        },
        "description": "BC-C009. Detailed response for a specific generation item."
      },
      "BarcodeHistoryEntry": {
        "required": [
          "generationItemId",
          "batchId",
          "clientItemId",
          "symbology",
          "status",
          "maskedPayload",
          "canRegenerate",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "generationItemId": {
            "type": "string",
            "description": "Unique identifier of the generation item.",
            "format": "uuid"
          },
          "batchId": {
            "type": "string",
            "description": "Batch identifier this item belongs to.",
            "format": "uuid"
          },
          "clientItemId": {
            "type": "string",
            "description": "Client-supplied item identifier for correlation."
          },
          "symbology": {
            "type": "string",
            "description": "Symbology that was processed (e.g., \"qr-code\", \"ean-13\")."
          },
          "status": {
            "type": "string",
            "description": "Generation status: \"Succeeded\", \"Failed\", or \"Skipped\"."
          },
          "errorCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable error code when Status is \"Failed\"."
          },
          "maskedPayload": {
            "type": "string",
            "description": "Masked payload prefix per retention policy (never raw payload)."
          },
          "artifact": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Artifact metadata when generation succeeded and artifact exists.",
                "$ref": "#/components/schemas/BarcodeArtifactMetadata"
              }
            ]
          },
          "canRegenerate": {
            "type": "boolean",
            "description": "Indicates if the artifact can be regenerated (not expired, within retention)."
          },
          "createdAt": {
            "type": "string",
            "description": "Timestamp when the generation item was created.",
            "format": "date-time"
          }
        },
        "description": "BC-C009. Single entry in barcode generation history.\r\nReturns safe/masked metadata only — no raw payload."
      },
      "BarcodeHistoryResponse": {
        "required": [
          "items",
          "hasMore",
          "totalCount"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BarcodeHistoryEntry"
            },
            "description": "History entries for the current page."
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ],
            "description": "Opaque cursor for the next page (null when no more pages)."
          },
          "hasMore": {
            "type": "boolean",
            "description": "Indicates if there are more pages available."
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Total items matching the query (approximate, may be capped).",
            "format": "int64"
          }
        },
        "description": "BC-C009. Paginated response for barcode generation history."
      },
      "BarcodeProviderHealthStatus": {
        "type": "integer",
        "description": "Health/support status of a barcode encoder provider."
      },
      "BarcodeRenderOption": {
        "required": [
          "id",
          "name",
          "description"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier for the render option (e.g., \"standard\", \"with-border\")."
          },
          "name": {
            "type": "string",
            "description": "Human-readable name for the render option."
          },
          "description": {
            "type": "string",
            "description": "Description of what the render option does."
          }
        },
        "description": "Available rendering options for barcode symbologies."
      },
      "BarcodeRenderOptionsDto": {
        "type": "object",
        "properties": {
          "moduleSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "quietZoneModules": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "foregroundHexColor": {
            "type": [
              "null",
              "string"
            ]
          },
          "backgroundHexColor": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "BC-C005. Optional rendering customizations."
      },
      "BarcodeRolloutTier": {
        "type": "integer",
        "description": "Rollout tier indicating availability and support commitment.\r\nValues represent Launch, Expansion, and Future without implying current support."
      },
      "BarcodeTechnicalCategory": {
        "type": "integer",
        "description": "Technical category classification for barcode symbologies."
      },
      "BarcodeValidationErrorResponse": {
        "required": [
          "fieldPath",
          "errorCode",
          "message"
        ],
        "type": "object",
        "properties": {
          "fieldPath": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "description": "Stable field-path validation error for UI mapping."
      },
      "BarcodeVerificationResourceLimits": {
        "type": "object",
        "properties": {
          "timeoutMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxArtifactBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "maxRasterPixels": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Resource bounds for generated-barcode verification through an approved decoder boundary (PRXSAAS-BE-0315)."
      },
      "BatchBarcodeItemOutcome": {
        "required": [
          "clientItemId",
          "symbology",
          "status"
        ],
        "type": "object",
        "properties": {
          "clientItemId": {
            "type": "string",
            "description": "Echo of the ClientItemId from the request for deterministic correlation."
          },
          "symbology": {
            "type": "string",
            "description": "Symbology that was processed."
          },
          "status": {
            "type": "string",
            "description": "Outcome status: \"Succeeded\", \"Failed\", or \"Skipped\"."
          },
          "errorCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable machine-readable error code when Status is \"Failed\"."
          },
          "errorMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable error detail when Status is \"Failed\"."
          },
          "artifact": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Generated artifact metadata when Status is \"Succeeded\".",
                "$ref": "#/components/schemas/BarcodeArtifactResponse"
              }
            ]
          },
          "quotaUnitsConsumed": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Quota units consumed for this item (0 when Status is \"Failed\" or \"Skipped\").",
            "format": "int32"
          }
        },
        "description": "BC-C012. Outcome for a single item within a batch response.",
        "example": {
          "clientItemId": "line-01",
          "symbology": "qr-code",
          "status": "Succeeded",
          "quotaUnitsConsumed": 1
        }
      },
      "BeginMfaEnrollmentRequest": {
        "required": [
          "method",
          "label"
        ],
        "type": "object",
        "properties": {
          "method": {
            "description": "Mechanism to enrol.",
            "$ref": "#/components/schemas/MfaMethodContract"
          },
          "label": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional user-facing label, e.g. the device name."
          }
        },
        "description": "PRXSAAS-BE-0028. Request to start enrolling a second factor."
      },
      "BeginMfaEnrollmentResponse": {
        "required": [
          "enrollment",
          "provisioningUri"
        ],
        "type": "object",
        "properties": {
          "enrollment": {
            "description": "The pending enrolment.",
            "$ref": "#/components/schemas/MfaEnrollmentResponse"
          },
          "provisioningUri": {
            "type": "string",
            "description": "One-time provisioning URI to render as a QR code."
          }
        },
        "description": "PRXSAAS-BE-0028. Response to a started enrolment."
      },
      "BenchmarkApprovalStatus": {
        "type": "integer",
        "description": "Contract-surface approval status. Mirrors the domain enum; kept dependency-free\r\nso public OpenAPI contracts never expose the domain model."
      },
      "BenchmarkDto": {
        "required": [
          "id",
          "methodology",
          "corpusVersion",
          "componentVersion",
          "metricsJson",
          "evidenceType",
          "artifactHash",
          "visibility",
          "approvalStatus",
          "supersededBy",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "methodology": {
            "type": "string"
          },
          "corpusVersion": {
            "type": "string"
          },
          "componentVersion": {
            "type": "string"
          },
          "metricsJson": {
            "type": "string"
          },
          "evidenceType": {
            "$ref": "#/components/schemas/BenchmarkEvidenceType"
          },
          "artifactHash": {
            "type": "string"
          },
          "visibility": {
            "$ref": "#/components/schemas/EvidenceVisibility"
          },
          "approvalStatus": {
            "$ref": "#/components/schemas/BenchmarkApprovalStatus"
          },
          "supersededBy": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Data transfer object for a benchmark."
      },
      "BenchmarkEvidenceType": {
        "type": "integer",
        "description": "Contract-surface evidence type for a benchmark. Deliberately distinct from the\r\ndomain `BenchmarkEvidenceType` so a domain rename never breaks the wire\r\ncontract; the application layer maps between the two."
      },
      "BenchmarkPublicSnapshotDto": {
        "required": [
          "id",
          "title",
          "engine",
          "deviceProfile",
          "corpusVersion",
          "componentVersion",
          "sourceEvidenceId",
          "methodology",
          "sampleSize",
          "metricsJson",
          "includesCustomerTelemetry",
          "telemetryConsentReference",
          "approvalStatus",
          "isPublished",
          "integrityHash",
          "publishedAtUtc",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "engine": {
            "type": "string"
          },
          "deviceProfile": {
            "type": "string"
          },
          "corpusVersion": {
            "type": "string"
          },
          "componentVersion": {
            "type": "string"
          },
          "sourceEvidenceId": {
            "type": "string",
            "format": "uuid"
          },
          "methodology": {
            "type": "string"
          },
          "sampleSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "metricsJson": {
            "type": "string"
          },
          "includesCustomerTelemetry": {
            "type": "boolean"
          },
          "telemetryConsentReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "approvalStatus": {
            "$ref": "#/components/schemas/BenchmarkApprovalStatus"
          },
          "isPublished": {
            "type": "boolean"
          },
          "integrityHash": {
            "type": "string"
          },
          "publishedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Contract-surface DTO for a published benchmark snapshot (PRXSAAS-BE-0236).\r\nMirrors the domain aggregate but stays dependency-free so OpenAPI never\r\nleaks the domain model."
      },
      "BillingCustomerLinkContract": {
        "type": "object",
        "properties": {
          "providerKey": {
            "type": "string",
            "description": "Registered provider key the link belongs to."
          },
          "externalCustomerId": {
            "type": "string",
            "description": "Stable customer identifier issued by the billing provider."
          },
          "externalDefaultPaymentMethodId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Provider-issued reusable payment method reference, when known."
          },
          "paymentProfileStatus": {
            "type": "string",
            "description": "Provider-neutral payment profile state."
          },
          "paymentProfileActionReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Reason a customer action is required, when applicable."
          },
          "paymentProfileUpdatedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the payment profile last changed.",
            "format": "date-time"
          },
          "supersededByProviderKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Provider that replaced this profile, when this link is superseded."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the link was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the link last changed.",
            "format": "date-time"
          }
        },
        "description": "Provider-neutral view of a tenant's billing-customer link (PRXSAAS-BE-0062).\r\nDeliberately excludes the EF entity, its rowversion and any provider payload."
      },
      "BillingInterval": {
        "type": "integer",
        "description": "Billing cadence. Concrete amounts remain configurable per plan."
      },
      "BillingProviderRegistration": {
        "required": [
          "providerKey",
          "displayName",
          "isLive"
        ],
        "type": "object",
        "properties": {
          "providerKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isLive": {
            "type": "boolean"
          }
        },
        "description": "Provider-neutral descriptor for a registered billing provider, used by the\r\nApplication layer to reason about which provider is active without naming a\r\nconcrete implementation or SDK type conflicts."
      },
      "BillingStateContract": {
        "required": [
          "invoices"
        ],
        "type": "object",
        "properties": {
          "subscription": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SubscriptionProjectionContract"
              }
            ]
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceProjectionContract"
            }
          }
        }
      },
      "BillingWebhookEventContract": {
        "type": "object",
        "properties": {
          "providerKey": {
            "type": "string",
            "description": "Registered provider key that delivered the event."
          },
          "providerEventId": {
            "type": "string",
            "description": "Provider-assigned event identifier."
          },
          "eventType": {
            "type": "string",
            "description": "Normalized provider event type."
          },
          "receivedAtUtc": {
            "type": "string",
            "description": "UTC instant the event was first recorded.",
            "format": "date-time"
          },
          "isNewlyAccepted": {
            "type": "boolean",
            "description": "True when this call created the durable record; false when the same\r\nprovider event had already been recorded and was therefore not applied\r\na second time."
          }
        },
        "description": "Result of recording an inbound webhook event (PRXSAAS-BE-0062). A redelivered\r\nevent is reported as not newly accepted, which lets callers distinguish a\r\nfirst delivery from a duplicate without exposing storage details."
      },
      "BuildBillingEntitlementScenarioResponse": {
        "required": [
          "tenantId",
          "scenarioKey",
          "title",
          "description",
          "traceabilityStatus",
          "missingCoverageReasons",
          "createdAtUtc",
          "updatedAtUtc",
          "testMappings"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "scenarioKey": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceabilityStatus": {
            "$ref": "#/components/schemas/TraceabilityStatus"
          },
          "missingCoverageReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "testMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BuildBillingEntitlementScenarioTestMappingItem"
            }
          }
        },
        "description": "Response contract for a build billing and device entitlement scenario traceability record. Plain data only —\r\nnever an EF entity — so the OpenAPI surface stays stable and provider-neutral."
      },
      "BuildBillingEntitlementScenarioTestMappingItem": {
        "required": [
          "testLevel",
          "testIdentifier"
        ],
        "type": "object",
        "properties": {
          "testLevel": {
            "$ref": "#/components/schemas/TestLevel"
          },
          "testIdentifier": {
            "type": "string"
          }
        },
        "description": "Test level a scenario can be traced to (PRXSAAS-BE-0179). Mirrors the\r\nDomain enum; kept dependency-free so public OpenAPI contracts never expose\r\nEF/Domain types."
      },
      "BuildDeviceResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the device.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (read-only; never rebound from client input)."
          },
          "deviceIdentifier": {
            "type": "string",
            "description": "Stable hardware/serial identifier of the device."
          },
          "displayName": {
            "type": "string",
            "description": "Human-readable name shown in the console."
          },
          "status": {
            "description": "Current lifecycle status of the device.",
            "$ref": "#/components/schemas/BuildDeviceStatus"
          },
          "lastHeartbeatUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant of the last reported heartbeat, when the device has reported in.",
            "format": "date-time"
          },
          "installedReleaseId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional id of the release currently installed on the device.",
            "format": "uuid"
          },
          "createdUtc": {
            "type": "string",
            "description": "UTC instant the device was registered.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0138. Response contract describing a build device. Exposes a stable,\r\ncontract-safe projection of the domain entity and contains no EF entities or\r\nbilling-provider SDK types."
      },
      "BuildDeviceStatus": {
        "type": "integer",
        "description": "PRXSAAS-BE-0138. Lifecycle status of a build device managed in the internal\r\nadministration console. Mirrors the domain status enum so responses stay\r\ncontract-safe and never expose EF entities."
      },
      "BuildJobQueueMetricsResponse": {
        "required": [
          "pendingCount",
          "processingCount",
          "deadLetteredCount",
          "oldestPendingAgeSeconds",
          "totalFailedAttempts"
        ],
        "type": "object",
        "properties": {
          "pendingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "processingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "deadLetteredCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "oldestPendingAgeSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalFailedAttempts": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Point-in-time build/background job queue metrics (PRXSAAS-BE-0142)."
      },
      "BuildRevenueAnalyticsRequest": {
        "required": [
          "periodStartUtc",
          "periodEndUtc",
          "currencyCode",
          "recurringRevenue",
          "newRevenue",
          "expansionRevenue",
          "contractionRevenue",
          "churnedRevenue",
          "activeSubscribers",
          "trialSubscribers",
          "computedUtc"
        ],
        "type": "object",
        "properties": {
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "currencyCode": {
            "type": "string"
          },
          "recurringRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "newRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "expansionRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "contractionRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "churnedRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "activeSubscribers": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "trialSubscribers": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "computedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "schemaVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 1
          }
        },
        "description": "Request contract to build (create or recompute) an internal revenue analytics\r\nsnapshot for the authenticated tenant. Only coarse, provider-neutral monetary\r\ntotals and subscriber counts are accepted — never raw billing-provider payloads,\r\ncustomer identities or invoice lines — so the operation cannot reverse the\r\nsnapshot into individual customer billing data. The tenant is derived from the\r\nauthenticated caller's claims by the serving service."
      },
      "BuildWebhookOperationResponse": {
        "required": [
          "id",
          "providerKey",
          "providerEventId",
          "eventType",
          "receivedAtUtc",
          "verifiedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "providerKey": {
            "type": "string"
          },
          "providerEventId": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "receivedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "verifiedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Tenant-scoped webhook operation lookup response (PRXSAAS-BE-0142)."
      },
      "CancelSubscriptionRequest": {
        "required": [
          "tenantId",
          "externalSubscriptionId"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "externalSubscriptionId": {
            "type": "string"
          },
          "cancelImmediately": {
            "type": "boolean"
          },
          "cancellationReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "feedback": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request to cancel a subscription (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "CancelSubscriptionResponse": {
        "required": [
          "tenantId",
          "externalSubscriptionId",
          "status",
          "canceledAtUtc",
          "effectiveCancellationDateUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "externalSubscriptionId": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SubscriptionLifecycleStatusContract"
          },
          "canceledAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "effectiveCancellationDateUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response for subscription cancellation (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "CapabilityStatusDto": {
        "type": "integer",
        "description": "Public lifecycle status of a product capability in the roadmap/release/deprecation feed (PRXSAAS-BE-0240).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts never expose EF/Domain types."
      },
      "CertificationStatusContract": {
        "type": "integer",
        "description": "Certification status exposed on the public contract (PRXSAAS-BE-0212)."
      },
      "ChangeSubscriptionQuantityRequest": {
        "required": [
          "tenantId",
          "externalSubscriptionId",
          "newQuantity"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "externalSubscriptionId": {
            "type": "string"
          },
          "newQuantity": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "prorationBehavior": {
            "$ref": "#/components/schemas/ProrationBehaviorContract"
          }
        },
        "description": "Request to change subscription seat/device quantity (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "ChangeSubscriptionQuantityResponse": {
        "required": [
          "tenantId",
          "externalSubscriptionId",
          "oldQuantity",
          "newQuantity",
          "effectiveDateUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "externalSubscriptionId": {
            "type": "string"
          },
          "oldQuantity": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "newQuantity": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "effectiveDateUtc": {
            "type": "string",
            "format": "date-time"
          },
          "prorationAmount": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        },
        "description": "Response for subscription quantity change (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "CiGateCategory": {
        "type": "integer",
        "description": "Category of a CI quality/security gate definition (PRXSAAS-BE-0158).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "CiGateCheckItem": {
        "required": [
          "checkKey",
          "checkName",
          "isRequired"
        ],
        "type": "object",
        "properties": {
          "checkKey": {
            "type": "string"
          },
          "checkName": {
            "type": "string"
          },
          "isRequired": {
            "type": "boolean"
          }
        },
        "description": "One check inside a CI gate definition (PRXSAAS-BE-0158). A gate is a\r\nlogical set of checks with a single enforcement rule."
      },
      "CiGateEnforcement": {
        "type": "integer",
        "description": "Enforcement mode of a CI gate (PRXSAAS-BE-0158)."
      },
      "CiGateResponse": {
        "required": [
          "tenantId",
          "gateKey",
          "displayName",
          "category",
          "enforcement",
          "isEnabled",
          "description",
          "minScore",
          "createdAtUtc",
          "updatedAtUtc",
          "checks"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "gateKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/CiGateCategory"
          },
          "enforcement": {
            "$ref": "#/components/schemas/CiGateEnforcement"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "minScore": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CiGateCheckItem"
            }
          }
        },
        "description": "Response contract for a CI gate definition. Plain data only - never an EF\r\nentity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "CompleteBackupFailureRequest": {
        "required": [
          "backupId",
          "completedAtUtc",
          "failureReason"
        ],
        "type": "object",
        "properties": {
          "backupId": {
            "type": "string",
            "format": "uuid"
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "failureReason": {
            "type": "string"
          }
        },
        "description": "Request contract to close a backup run as failed."
      },
      "CompleteBackupSuccessRequest": {
        "required": [
          "backupId",
          "completedAtUtc",
          "restorePointUtc",
          "sizeInBytes",
          "storageLocation"
        ],
        "type": "object",
        "properties": {
          "backupId": {
            "type": "string",
            "format": "uuid"
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "restorePointUtc": {
            "type": "string",
            "format": "date-time"
          },
          "sizeInBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "storageLocation": {
            "type": "string"
          }
        },
        "description": "Request contract to close a backup run as successful."
      },
      "CompleteRetentionJobRequest": {
        "type": "object",
        "properties": {
          "resultRef": {
            "type": [
              "null",
              "string"
            ]
          },
          "errorMessage": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract carrying the provider-neutral result reference for a\r\nsucceeded retention job, or the failure detail for a failed one."
      },
      "ComponentHealthResponse": {
        "required": [
          "id",
          "tenantId",
          "componentName",
          "status",
          "observedAtUtc",
          "probeDuration",
          "detail",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "componentName": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ComponentHealthStatus"
          },
          "observedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "probeDuration": {
            "pattern": "^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$",
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for a single component's health observation record. Plain\r\ndata only - never an EF entity - so the OpenAPI surface stays stable and\r\nprovider-neutral. Named `ComponentHealthResponse` to avoid colliding in\r\nthe OpenAPI schema with the operational probe `HealthCheckResponse` in\r\n`Vision.Scan.Contracts.Common`."
      },
      "ComponentHealthStatus": {
        "type": "integer",
        "description": "Health state reported for one monitored platform component (PRXSAAS-BE-0170).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "ConfigurationValueSourceContract": {
        "type": "integer",
        "description": "Public representation of where a configuration value comes from\r\n(PRXSAAS-BE-0161)."
      },
      "ConfigureConnectorInstanceRequest": {
        "type": "object",
        "properties": {
          "secretReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Server-assigned secret reference (pointer only, never the secret)."
          },
          "hasMappingProfile": {
            "type": "boolean",
            "description": "Whether a mapping/configuration profile is recorded."
          }
        },
        "description": "Request to supply or replace the configuration/secret reference for a connector\r\ninstance (PRXSAAS-BE-0229). The secret material is never sent in the body; only\r\nthe server-assigned reference pointer is provided."
      },
      "ConfirmMfaEnrollmentRequest": {
        "required": [
          "enrollmentId",
          "code"
        ],
        "type": "object",
        "properties": {
          "enrollmentId": {
            "type": "string",
            "description": "Enrolment being confirmed.",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "Code produced by the factor."
          }
        },
        "description": "PRXSAAS-BE-0028. Request to confirm possession of an enrolled factor."
      },
      "ConnectorAuthSchemeContract": {
        "type": "integer",
        "description": "Authentication scheme a connector expects (PRXSAAS-BE-0227)."
      },
      "ConnectorCatalogContract": {
        "required": [
          "id",
          "connectorKey",
          "displayName",
          "type",
          "direction",
          "lifecycleStatus",
          "authScheme",
          "schemaVersion",
          "connectorVersion",
          "isActive",
          "supportedProviders",
          "dataClasses"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the catalog entry.",
            "format": "uuid"
          },
          "connectorKey": {
            "type": "string",
            "description": "Stable, URL-safe connector key."
          },
          "displayName": {
            "type": "string",
            "description": "Human-readable connector name."
          },
          "type": {
            "description": "Provider-neutral connector category.",
            "$ref": "#/components/schemas/ConnectorTypeContract"
          },
          "direction": {
            "description": "Direction of data flow across the connector boundary.",
            "$ref": "#/components/schemas/ConnectorDirectionContract"
          },
          "lifecycleStatus": {
            "description": "Release maturity of the connector definition.",
            "$ref": "#/components/schemas/ConnectorLifecycleStatusContract"
          },
          "authScheme": {
            "description": "Authentication scheme the connector expects.",
            "$ref": "#/components/schemas/ConnectorAuthSchemeContract"
          },
          "schemaVersion": {
            "type": "string",
            "description": "Tracked schema version (semantic)."
          },
          "connectorVersion": {
            "type": "string",
            "description": "Tracked connector version (semantic)."
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the catalog entry is currently offered."
          },
          "supportedProviders": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Provider-neutral names implemented behind this entry."
          },
          "dataClasses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectorDataClassContract"
            },
            "description": "Business data classes this connector is capable of exchanging."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional description of the connector's purpose and scope."
          }
        },
        "description": "Public representation of a connector catalog entry (PRXSAAS-BE-0227).\r\nCatalog metadata only — never includes tenant secrets or bindings."
      },
      "ConnectorConnectionTestResultContract": {
        "required": [
          "status",
          "testedAtUtc",
          "timeoutMilliseconds"
        ],
        "type": "object",
        "properties": {
          "status": {
            "description": "Status of the bounded connection test.",
            "$ref": "#/components/schemas/ConnectorConnectionTestStatusContract"
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Short, non-sensitive message describing the outcome."
          },
          "testedAtUtc": {
            "type": "string",
            "description": "UTC instant the test completed.",
            "format": "date-time"
          },
          "timeoutMilliseconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Server-enforced upper bound on the test duration (milliseconds).",
            "format": "int32"
          }
        },
        "description": "Public result of a bounded connector connection test (PRXSAAS-BE-0229). Holds\r\nonly the outcome and a non-sensitive message; secret material is never returned."
      },
      "ConnectorConnectionTestStatusContract": {
        "type": "integer",
        "description": "Connection-test status exposed through the public OpenAPI surface (PRXSAAS-BE-0229).\r\nNever carries secret material — only the outcome and a non-sensitive message."
      },
      "ConnectorDataClassContract": {
        "type": "integer",
        "description": "Business data classes a connector is capable of exchanging (PRXSAAS-BE-0227)."
      },
      "ConnectorDirectionContract": {
        "type": "integer",
        "description": "Direction of data flow across a connector boundary (PRXSAAS-BE-0227)."
      },
      "ConnectorInstanceContract": {
        "required": [
          "id",
          "connectorKey",
          "siteId",
          "displayName",
          "onboardingState",
          "hasMappingProfile",
          "lastTestStatus",
          "isEnabled",
          "isDeleted",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the instance.",
            "format": "uuid"
          },
          "connectorKey": {
            "type": "string",
            "description": "Connector key this instance is bound to."
          },
          "siteId": {
            "type": "string",
            "description": "Tenant site this instance is scoped to (empty = tenant-wide)."
          },
          "displayName": {
            "type": "string",
            "description": "Human-readable instance name."
          },
          "onboardingState": {
            "description": "Current resumable onboarding state.",
            "$ref": "#/components/schemas/ConnectorOnboardingStateContract"
          },
          "secretReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Server-assigned pointer to the tenant's connector secret (not the secret)."
          },
          "hasMappingProfile": {
            "type": "boolean",
            "description": "Whether a valid mapping/configuration profile has been recorded."
          },
          "lastTestStatus": {
            "description": "Last bounded connection-test status.",
            "$ref": "#/components/schemas/ConnectorConnectionTestStatusContract"
          },
          "lastTestResultMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Short, non-sensitive message from the last connection test."
          },
          "lastTestAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the last connection test completed.",
            "format": "date-time"
          },
          "isEnabled": {
            "type": "boolean",
            "description": "Whether the instance is enabled."
          },
          "isDeleted": {
            "type": "boolean",
            "description": "Whether the instance has been soft-deleted (history retained)."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the instance was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the instance was last modified.",
            "format": "date-time"
          }
        },
        "description": "Public representation of a tenant's ERP/WMS connector instance (PRXSAAS-BE-0229).\r\nCarries the secret reference pointer, never the secret material."
      },
      "ConnectorLifecycleStatusContract": {
        "type": "integer",
        "description": "Release maturity of a connector definition (PRXSAAS-BE-0227)."
      },
      "ConnectorOnboardingStateContract": {
        "type": "integer",
        "description": "Resumable onboarding states exposed through the public OpenAPI surface\r\n(PRXSAAS-BE-0229). Mirrors `Vision.Scan.Domain.Connectors.ConnectorOnboardingState`;\r\nkept dependency-free so public contracts never expose EF/Domain types."
      },
      "ConnectorTypeContract": {
        "type": "integer",
        "description": "Provider-neutral connector categories exposed through the public OpenAPI\r\nsurface (PRXSAAS-BE-0227). Mirrors `Vision.Scan.Domain.Connectors.ConnectorType`;\r\nkept dependency-free so public contracts never expose EF/Domain types."
      },
      "CreateApiCredentialRequest": {
        "required": [
          "name",
          "scopes"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Request contract to issue a new scoped API credential for the authenticated\r\ntenant (PRXSAAS-BE-0097). The tenant scope is derived from the authenticated\r\nprincipal; the contract carries no tenant field."
      },
      "CreateArtifactPublicationRequest": {
        "required": [
          "sdkArtifactId",
          "scope",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "sdkArtifactId": {
            "type": "string",
            "format": "uuid"
          },
          "scope": {
            "$ref": "#/components/schemas/ArtifactPublicationScopeDto"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Request contract to register a tenant-scoped secure publication for a\r\ncatalogued SDK artifact."
      },
      "CreateBarcodeArtifactDownloadGrantRequest": {
        "type": "object",
        "properties": {
          "expiresInMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 15
          }
        },
        "description": "BC-C008. Request to create a time-limited download grant for an existing\r\nbarcode artifact. The tenant is resolved from authenticated claims by the API\r\nlayer and is deliberately absent from the request body so a caller cannot\r\ncreate a grant inside another tenant."
      },
      "CreateBenchmarkPublicSnapshotRequest": {
        "required": [
          "title",
          "engine",
          "deviceProfile",
          "corpusVersion",
          "componentVersion",
          "sourceEvidenceId",
          "methodology",
          "sampleSize",
          "metricsJson",
          "includesCustomerTelemetry",
          "telemetryConsentReference"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "engine": {
            "type": "string"
          },
          "deviceProfile": {
            "type": "string"
          },
          "corpusVersion": {
            "type": "string"
          },
          "componentVersion": {
            "type": "string"
          },
          "sourceEvidenceId": {
            "type": "string",
            "format": "uuid"
          },
          "methodology": {
            "type": "string"
          },
          "sampleSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "metricsJson": {
            "type": "string"
          },
          "includesCustomerTelemetry": {
            "type": "boolean"
          },
          "telemetryConsentReference": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request to create a new benchmark public snapshot (PRXSAAS-BE-0236)."
      },
      "CreateBenchmarkRequest": {
        "required": [
          "methodology",
          "corpusVersion",
          "componentVersion",
          "metricsJson",
          "evidenceType",
          "artifactHash",
          "visibility",
          "approvalStatus"
        ],
        "type": "object",
        "properties": {
          "methodology": {
            "type": "string"
          },
          "corpusVersion": {
            "type": "string"
          },
          "componentVersion": {
            "type": "string"
          },
          "metricsJson": {
            "type": "string"
          },
          "evidenceType": {
            "$ref": "#/components/schemas/BenchmarkEvidenceType"
          },
          "artifactHash": {
            "type": "string"
          },
          "visibility": {
            "$ref": "#/components/schemas/EvidenceVisibility"
          },
          "approvalStatus": {
            "$ref": "#/components/schemas/BenchmarkApprovalStatus"
          }
        },
        "description": "Request to create a new benchmark."
      },
      "CreateBuildBillingEntitlementScenarioRequest": {
        "required": [
          "tenantId",
          "scenarioKey",
          "title",
          "description",
          "testMappings"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "scenarioKey": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "testMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BuildBillingEntitlementScenarioTestMappingItem"
            }
          }
        },
        "description": "Request contract to register a tenant-scoped build billing and device entitlement scenario for traceability."
      },
      "CreateBuildDeviceRequest": {
        "type": "object",
        "properties": {
          "deviceIdentifier": {
            "type": "string",
            "description": "Stable hardware/serial identifier of the device (required)."
          },
          "displayName": {
            "type": "string",
            "description": "Human-readable name shown in the console (required)."
          },
          "installedReleaseId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional id of the release currently installed on the device.",
            "format": "uuid"
          }
        },
        "description": "PRXSAAS-BE-0138. Request contract to register a build device. Tenant ownership\r\nis assigned by the server from the acting platform identity and is never\r\nrebound from the response, so the device stays isolated to a single tenant."
      },
      "CreateCiGateRequest": {
        "required": [
          "tenantId",
          "gateKey",
          "displayName",
          "category",
          "enforcement",
          "description",
          "minScore",
          "checks"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "gateKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/CiGateCategory"
          },
          "enforcement": {
            "$ref": "#/components/schemas/CiGateEnforcement"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "minScore": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CiGateCheckItem"
            }
          }
        },
        "description": "Request contract to define a tenant-scoped CI quality/security gate."
      },
      "CreateConnectorInstanceRequest": {
        "required": [
          "connectorKey",
          "siteId",
          "displayName"
        ],
        "type": "object",
        "properties": {
          "connectorKey": {
            "type": "string",
            "description": "Connector key to bind (e.g. `erpwms`)."
          },
          "siteId": {
            "type": "string",
            "description": "Tenant site to scope the instance to (empty = tenant-wide)."
          },
          "displayName": {
            "type": "string",
            "description": "Human-readable instance name."
          },
          "secretReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Server-assigned secret reference (pointer only, never the secret)."
          },
          "hasMappingProfile": {
            "type": "boolean",
            "description": "Whether a mapping/configuration profile is supplied with creation."
          }
        },
        "description": "Request to create a tenant-scoped ERP/WMS connector instance (PRXSAAS-BE-0229).\r\nThe secret material is NOT sent here: the client obtains a secret reference\r\nout-of-band from the secret store and supplies only the pointer."
      },
      "CreateCustomContractRequest": {
        "required": [
          "contractKey",
          "name",
          "startUtc",
          "endUtc"
        ],
        "type": "object",
        "properties": {
          "contractKey": {
            "type": "string",
            "description": "Tenant-unique contract key."
          },
          "name": {
            "type": "string",
            "description": "Non-blank contract display name."
          },
          "planKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional catalog plan key the contract builds on."
          },
          "termsText": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional free-form negotiated terms summary."
          },
          "startUtc": {
            "type": "string",
            "description": "UTC instant the contract window begins (inclusive).",
            "format": "date-time"
          },
          "endUtc": {
            "type": "string",
            "description": "UTC instant the contract window ends (exclusive); must be after DateTimeOffset CreateCustomContractRequest.StartUtc.",
            "format": "date-time"
          },
          "terms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomContractTermContract"
            },
            "description": "Negotiated price terms to configure on the new contract."
          }
        },
        "description": "Request contract to create a custom contract (PRXSAAS-BE-0058)."
      },
      "CreateCustomerProofMetricRequest": {
        "required": [
          "metricName",
          "evidenceReference",
          "calculationMethod"
        ],
        "type": "object",
        "properties": {
          "metricName": {
            "type": "string",
            "description": "Human-readable metric name."
          },
          "evidenceReference": {
            "type": "string",
            "description": "Non-sensitive evidence reference."
          },
          "calculationMethod": {
            "type": "string",
            "description": "Calculation method used to derive the metric."
          },
          "value": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional measured value."
          },
          "unit": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional unit of string? CreateCustomerProofMetricRequest.Value."
          }
        },
        "description": "One metric supplied at creation time (PRXSAAS-BE-0214). References evidence and\r\nthe calculation method; never a customer secret."
      },
      "CreateCustomerProofRequest": {
        "required": [
          "customerName",
          "title"
        ],
        "type": "object",
        "properties": {
          "customerName": {
            "type": "string",
            "description": "Name of the customer the proof is about."
          },
          "title": {
            "type": "string",
            "description": "Short title of the case study."
          },
          "summary": {
            "type": [
              "null",
              "string"
            ],
            "description": "Longer narrative supporting the proof."
          },
          "confidential": {
            "type": "boolean",
            "description": "When true, customer-identifying details are withheld from the public registry."
          },
          "consentObtained": {
            "type": "boolean",
            "description": "Whether the customer granted consent to be referenced."
          },
          "quoteUsageApproved": {
            "type": "boolean",
            "description": "Whether the customer approved use of their quote."
          },
          "logoUsageApproved": {
            "type": "boolean",
            "description": "Whether the customer approved use of their logo."
          },
          "publicationChannels": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicationChannelContract"
            },
            "description": "Publication channels the proof may appear on."
          },
          "metrics": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CreateCustomerProofMetricRequest"
            },
            "description": "Evidence-backed metrics supporting the proof."
          }
        },
        "description": "Request to create a customer-proof draft (PRXSAAS-BE-0214). The owning tenant\r\nis derived from the authenticated principal and is deliberately absent from\r\nthis body: a caller cannot nominate the tenant the proof is created in."
      },
      "CreateDataRetentionPolicyRequest": {
        "type": "object",
        "properties": {
          "policyKey": {
            "type": "string",
            "description": "Stable policy key within the tenant."
          },
          "dataCategory": {
            "type": "string",
            "description": "Data category the policy applies to."
          },
          "retentionDays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Retention window in days (must be positive).",
            "format": "int32"
          },
          "isEnabled": {
            "type": "boolean",
            "description": "Whether the policy is enabled on creation."
          }
        },
        "description": "Request to create a data-retention policy (PRXSAAS-BE-0156)."
      },
      "CreateDownloadGrantRequest": {
        "required": [
          "sdkArtifactId",
          "granteeId",
          "maxDownloads",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "sdkArtifactId": {
            "type": "string",
            "format": "uuid"
          },
          "granteeId": {
            "type": "string"
          },
          "maxDownloads": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "artifactSha256": {
            "type": [
              "null",
              "string"
            ]
          },
          "entitlementRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "requiredFeatureKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "purpose": {
            "type": [
              "null",
              "string"
            ]
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "actorIdHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "credentialHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "ipAddressHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "deviceHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "deviceRiskSignals": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        },
        "description": "Request contract to issue a tenant-scoped entitled download grant for a\r\npublished SDK artifact."
      },
      "CreateEnterpriseSsoConnectionRequest": {
        "required": [
          "displayName",
          "protocol",
          "idpIssuer",
          "emailDomain",
          "metadataUrl"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "Administrator-facing name."
          },
          "protocol": {
            "description": "Federation protocol.",
            "$ref": "#/components/schemas/EnterpriseSsoProtocolContract"
          },
          "idpIssuer": {
            "type": "string",
            "description": "SAML entity id or OIDC issuer."
          },
          "emailDomain": {
            "type": "string",
            "description": "E-mail domain to claim."
          },
          "metadataUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional metadata document URL; must be absolute HTTPS."
          }
        },
        "description": "PRXSAAS-BE-0028. Request to stage a new enterprise SSO connection."
      },
      "CreateIntegrationTestFixtureRequest": {
        "required": [
          "fixtureKey",
          "displayName",
          "databaseLifecycle",
          "resetStrategy",
          "requiresSqlServer",
          "connectionEnvironmentVariable",
          "description",
          "seeds"
        ],
        "type": "object",
        "properties": {
          "fixtureKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "databaseLifecycle": {
            "$ref": "#/components/schemas/FixtureDatabaseLifecycle"
          },
          "resetStrategy": {
            "$ref": "#/components/schemas/FixtureResetStrategy"
          },
          "requiresSqlServer": {
            "type": "boolean"
          },
          "connectionEnvironmentVariable": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "seeds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IntegrationTestFixtureSeedItem"
            }
          }
        },
        "description": "Request contract to define a tenant-scoped SQL Server integration-test\r\nfixture."
      },
      "CreateInternalAdminAccessRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "Identifier of the tenant the internal admin is being granted isolated access to."
          },
          "adminPrincipal": {
            "type": "string",
            "description": "Principal (email or id) of the internal admin receiving the grant."
          },
          "purpose": {
            "type": "string",
            "description": "Mandatory business reason for granting the access."
          },
          "requestedBy": {
            "type": "string",
            "description": "Identity of the platform admin that requested/granted the access."
          },
          "expiresUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional UTC expiry. When omitted the grant is open-ended until revoked.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0129. Request contract to create an isolated internal admin access grant.\r\nCarries only the data needed to issue the grant. Tenant ownership is assigned by the\r\nserver from the acting platform identity and is never rebound from the response\r\ncontract, so the grant stays isolated to a single tenant."
      },
      "CreateInvitationRequest": {
        "required": [
          "email",
          "roleKey"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Invitee email address."
          },
          "roleKey": {
            "type": "string",
            "description": "Role key to grant on acceptance."
          }
        },
        "description": "Request to invite an external identity into the caller's tenant (PRXSAAS-BE-0040)."
      },
      "CreateLeadRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "Owning tenant. Required and server-assigned; never rebound from client on update."
          },
          "correlationId": {
            "type": "string",
            "description": "Client idempotency key used to deduplicate retries."
          },
          "firstName": {
            "type": "string",
            "description": "Contact first name."
          },
          "lastName": {
            "type": "string",
            "description": "Contact last name."
          },
          "email": {
            "type": "string",
            "description": "Contact email address."
          },
          "company": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional company name."
          },
          "phone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional phone number."
          },
          "topic": {
            "description": "Originating surface of the submission.",
            "$ref": "#/components/schemas/LeadTopicContract"
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional inquiry body."
          },
          "sourcePage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional source page URL."
          },
          "consentToContact": {
            "type": "boolean",
            "description": "Whether the contact consented to be contacted."
          }
        },
        "description": "Request to capture a contact/marketing lead (PRXSAAS-BE-0018)."
      },
      "CreateLifecycleNotificationRequest": {
        "required": [
          "eventType",
          "channel",
          "recipient",
          "subject",
          "body",
          "correlationId"
        ],
        "type": "object",
        "properties": {
          "eventType": {
            "$ref": "#/components/schemas/NotificationEventTypeContract"
          },
          "channel": {
            "$ref": "#/components/schemas/NotificationChannelContract"
          },
          "recipient": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "correlationId": {
            "type": "string"
          }
        }
      },
      "CreateMembershipRequest": {
        "required": [
          "userId",
          "roleKey"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "description": "External user identifier."
          },
          "roleKey": {
            "type": "string",
            "description": "Role key to grant."
          }
        },
        "description": "Request to create a membership for an external identity (PRXSAAS-BE-0040)."
      },
      "CreateNotificationTemplateRequest": {
        "required": [
          "eventType",
          "channel",
          "locale",
          "subject",
          "bodyTemplate"
        ],
        "type": "object",
        "properties": {
          "eventType": {
            "$ref": "#/components/schemas/NotificationEventTypeContract"
          },
          "channel": {
            "$ref": "#/components/schemas/NotificationChannelContract"
          },
          "locale": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "bodyTemplate": {
            "type": "string"
          }
        }
      },
      "CreatePermissionRequest": {
        "required": [
          "key",
          "description"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Unique permission key within the tenant."
          },
          "description": {
            "type": "string",
            "description": "Human-readable description of what this permission allows."
          }
        },
        "description": "Request to create or idempotently fetch a tenant-scoped permission."
      },
      "CreatePlanRequest": {
        "required": [
          "planKey",
          "name"
        ],
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Tenant-unique plan key."
          },
          "name": {
            "type": "string",
            "description": "Non-blank plan name."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional description."
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanPriceContract"
            },
            "description": "Prices to configure on the new plan."
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanFeatureContract"
            },
            "description": "Features to grant on the new plan."
          }
        },
        "description": "Request contract to create a catalog plan (PRXSAAS-BE-0046)."
      },
      "CreatePortalBannerRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (assigned server-side; never rebound from input)."
          },
          "message": {
            "type": "string",
            "description": "Banner message shown to users."
          },
          "severity": {
            "description": "Visual severity.",
            "$ref": "#/components/schemas/PortalBannerSeverityContract"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the banner is active on creation."
          },
          "startsUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional visibility start instant.",
            "format": "date-time"
          },
          "endsUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional visibility end instant.",
            "format": "date-time"
          },
          "createdBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional identity that created the banner."
          }
        },
        "description": "Request to create a new portal banner."
      },
      "CreatePortalSessionRequest": {
        "required": [
          "tenantId",
          "returnUrl"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "returnUrl": {
            "type": "string"
          }
        },
        "description": "Request to create a customer billing portal session (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "CreatePortalSessionResponse": {
        "required": [
          "tenantId",
          "portalUrl",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "portalUrl": {
            "type": "string"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response for customer billing portal session creation (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "CreatePrivacyConsentRequest": {
        "type": "object",
        "properties": {
          "subjectIdentifier": {
            "type": "string",
            "description": "Data subject the consent concerns."
          },
          "purpose": {
            "type": "string",
            "description": "Purpose the consent is collected for."
          },
          "lawfulBasis": {
            "type": "string",
            "description": "Lawful basis the consent rests on."
          }
        },
        "description": "Request to create a privacy-consent record (PRXSAAS-BE-0156)."
      },
      "CreateQuarantineRequest": {
        "type": "object",
        "properties": {
          "buildDeviceId": {
            "type": "string",
            "description": "Identifier of the build device being quarantined (required).",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "description": "Mandatory business reason for the quarantine (required)."
          }
        },
        "description": "PRXSAAS-BE-0138. Request contract to quarantine a build device. Tenant\r\nownership is assigned by the server from the acting platform identity."
      },
      "CreateReleaseCertificationGateRequest": {
        "required": [
          "tenantId",
          "releaseKey",
          "releaseVersion",
          "title",
          "pilotOwner",
          "targetPilotStartUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "releaseKey": {
            "type": "string"
          },
          "releaseVersion": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "pilotOwner": {
            "type": "string"
          },
          "targetPilotStartUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CreateReleaseChannelRequest": {
        "required": [
          "channelKey",
          "displayName",
          "stability",
          "description"
        ],
        "type": "object",
        "properties": {
          "channelKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "stability": {
            "$ref": "#/components/schemas/ReleaseChannelStabilityDto"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to create a tenant-scoped SDK release channel."
      },
      "CreateReleaseRequest": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Semantic version of the release, e.g. \"1.2.3\" (required)."
          },
          "channel": {
            "description": "Distribution channel the release targets.",
            "$ref": "#/components/schemas/ReleaseChannel"
          },
          "artifactReference": {
            "type": "string",
            "description": "Reference to the published artifact in the secure artifact store (required)."
          },
          "releaseNotes": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional human-readable release notes."
          }
        },
        "description": "PRXSAAS-BE-0138. Request contract to create a build release. Tenant ownership\r\nis assigned by the server from the acting platform identity."
      },
      "CreateRetentionJobRequest": {
        "required": [
          "jobType",
          "jobName",
          "periodStartUtc",
          "periodEndUtc",
          "scheduledUtc"
        ],
        "type": "object",
        "properties": {
          "jobType": {
            "type": "string"
          },
          "jobName": {
            "type": [
              "null",
              "string"
            ]
          },
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "scheduledUtc": {
            "type": "string",
            "format": "date-time"
          },
          "schemaVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 1
          }
        },
        "description": "Request contract to queue a new internal retention-analysis job for the\r\nauthenticated tenant. The tenant is never taken from the request body: it is\r\nderived from the authenticated caller's claims by the serving service."
      },
      "CreateRoleRequest": {
        "required": [
          "key",
          "name",
          "description"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Unique role key within the tenant."
          },
          "name": {
            "type": "string",
            "description": "Human-readable display name."
          },
          "description": {
            "type": "string",
            "description": "Description of what this role is responsible for."
          }
        },
        "description": "Request to create or idempotently fetch a tenant-scoped role."
      },
      "CreateSandboxCredentialRequest": {
        "required": [
          "displayName",
          "scopes"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rateLimitPerMinute": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Request contract to issue a sandbox API credential for the authenticated\r\ntenant (PRXSAAS-BE-0226). The tenant is resolved from authenticated claims by\r\nthe API layer; it is deliberately absent from the body so a caller cannot\r\ncreate a credential inside another tenant."
      },
      "CreateSdkApiCredentialRequest": {
        "required": [
          "displayName",
          "scopes",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Request contract to create a tenant-scoped SDK API credential."
      },
      "CreateSdkArtifactCatalogDownloadGrantRequest": {
        "required": [
          "sdkArtifactId"
        ],
        "type": "object",
        "properties": {
          "sdkArtifactId": {
            "type": "string",
            "format": "uuid"
          },
          "granteeId": {
            "type": [
              "null",
              "string"
            ]
          },
          "maxDownloads": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "credentialClientId": {
            "type": [
              "null",
              "string"
            ]
          },
          "credentialSecret": {
            "type": [
              "null",
              "string"
            ]
          },
          "entitlementRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "requiredFeatureKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "hostVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "runtimePlatform": {
            "type": [
              "null",
              "string"
            ]
          },
          "architecture": {
            "type": [
              "null",
              "string"
            ]
          },
          "purpose": {
            "type": [
              "null",
              "string"
            ]
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "actorIdHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "credentialHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "ipAddressHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "deviceHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "deviceRiskSignals": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        },
        "description": "Entitlement-aware request to issue a short-lived download grant from the SDK\r\ncatalog surface. Tenant identity is resolved by the API layer; optional SDK\r\ncredential material is used only for fail-closed artifact-download scope\r\nvalidation and is never echoed."
      },
      "CreateServiceIncidentRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (assigned server-side; never rebound from input)."
          },
          "title": {
            "type": "string",
            "description": "Short summary."
          },
          "impact": {
            "description": "Business impact.",
            "$ref": "#/components/schemas/ServiceIncidentImpactContract"
          },
          "affectsComponentId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional affected component identifier.",
            "format": "uuid"
          },
          "createdBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional identity that opened the incident."
          }
        },
        "description": "Request to open a new status-page incident."
      },
      "CreateServiceStatusComponentRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (assigned server-side; never rebound from input)."
          },
          "name": {
            "type": "string",
            "description": "Component name."
          },
          "currentState": {
            "description": "Initial operational state.",
            "$ref": "#/components/schemas/ServiceComponentStateContract"
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional longer description of the component."
          }
        },
        "description": "Request to register a monitored status-page component."
      },
      "CreateSiteRequest": {
        "required": [
          "code",
          "name"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Tenant-unique site code (1-32 uppercase letters, digits or hyphens)."
          },
          "name": {
            "type": "string",
            "description": "Site display name."
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional IANA time-zone identifier."
          }
        },
        "description": "Request to create a site (PRXSAAS-BE-0031)."
      },
      "CreateSupportRequestRequest": {
        "type": "object",
        "properties": {
          "category": {
            "description": "Functional category of the request.",
            "$ref": "#/components/schemas/SupportRequestCategoryContract"
          },
          "priority": {
            "description": "Business priority of the request.",
            "$ref": "#/components/schemas/SupportRequestPriorityContract"
          },
          "subject": {
            "type": "string",
            "description": "Short summary shown in lists."
          },
          "description": {
            "type": "string",
            "description": "Full description of the issue."
          },
          "requesterName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional requester name."
          },
          "requesterEmail": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional requester e-mail used for follow-up."
          },
          "requesterUserId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional authenticated requester identifier."
          },
          "initialDiagnostic": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Optional diagnostic intake captured at submission time.",
                "$ref": "#/components/schemas/AddSupportDiagnosticIntakeRequest"
              }
            ]
          }
        },
        "description": "Request to create a new support request. The plaintext diagnostic intake is\r\noptional at creation time; more can be appended later."
      },
      "CreateTenantRequest": {
        "required": [
          "code",
          "name"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Globally unique tenant code (2-64 lowercase letters, digits or hyphens)."
          },
          "name": {
            "type": "string",
            "description": "Tenant display name."
          }
        },
        "description": "Request to register a tenant (PRXSAAS-BE-0031)."
      },
      "CreateTestRequirementRequest": {
        "required": [
          "tenantId",
          "requirementKey",
          "title",
          "criticality",
          "isTenantScoped",
          "description",
          "coverages"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "requirementKey": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "criticality": {
            "$ref": "#/components/schemas/RequirementCriticality"
          },
          "isTenantScoped": {
            "type": "boolean"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "coverages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCoverageItem"
            }
          }
        },
        "description": "Request contract to register a tenant-scoped requirement for traceability."
      },
      "CreateThreatModelRequest": {
        "required": [
          "artifactKey",
          "revision",
          "title",
          "systemScope",
          "owningTeam",
          "mitigations"
        ],
        "type": "object",
        "properties": {
          "artifactKey": {
            "type": "string"
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "systemScope": {
            "type": "string"
          },
          "owningTeam": {
            "type": "string"
          },
          "mitigations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThreatMitigationItem"
            }
          }
        },
        "description": "Request contract to create a tenant-scoped threat-model artifact together\r\nwith its initial mitigation backlog. The tenant is never taken from the\r\nrequest body: it is derived from the authenticated caller's claims."
      },
      "CreateTrustEvidenceRequest": {
        "required": [
          "tenantId",
          "owner",
          "category",
          "title",
          "summary",
          "evidenceUri",
          "visibility",
          "effectiveDateUtc",
          "expiresOnUtc",
          "retentionClass"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "owner": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/TrustEvidenceCategory"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "evidenceUri": {
            "type": [
              "null",
              "string"
            ]
          },
          "visibility": {
            "$ref": "#/components/schemas/TrustEvidenceVisibility"
          },
          "effectiveDateUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "expiresOnUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "retentionClass": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request payload for creating a trust/compliance evidence record (PRXSAAS-BE-0250)."
      },
      "CreateUserRequest": {
        "required": [
          "login",
          "password"
        ],
        "type": "object",
        "properties": {
          "login": {
            "type": "string",
            "description": "Login identifier (e-mail or username)."
          },
          "password": {
            "type": "string",
            "description": "Plain credential, hashed by the application layer and never persisted."
          }
        },
        "description": "PRXSAAS-BE-0021. Request to create a user."
      },
      "CustomBillingIntervalContract": {
        "type": "integer",
        "description": "Billing interval a custom-contract term is charged on (PRXSAAS-BE-0058)."
      },
      "CustomContractContract": {
        "required": [
          "contractKey",
          "name",
          "status",
          "startUtc",
          "endUtc",
          "terms",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "contractKey": {
            "type": "string",
            "description": "Stable, tenant-unique contract key (e.g. `ACME-2026-ENT`)."
          },
          "name": {
            "type": "string",
            "description": "Human-readable contract name."
          },
          "planKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Catalog plan key this contract builds on, when one applies."
          },
          "termsText": {
            "type": [
              "null",
              "string"
            ],
            "description": "Free-form negotiated terms summary."
          },
          "status": {
            "description": "Lifecycle state of the contract.",
            "$ref": "#/components/schemas/CustomContractStatusContract"
          },
          "startUtc": {
            "type": "string",
            "description": "UTC instant the contract window begins (inclusive).",
            "format": "date-time"
          },
          "endUtc": {
            "type": "string",
            "description": "UTC instant the contract window ends (exclusive).",
            "format": "date-time"
          },
          "terms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomContractTermContract"
            },
            "description": "Negotiated price terms, ordered deterministically by interval then currency."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant this record was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant this record was last modified.",
            "format": "date-time"
          }
        },
        "description": "Operator-facing projection of one negotiated custom contract (PRXSAAS-BE-0058)."
      },
      "CustomContractsResponse": {
        "required": [
          "contracts"
        ],
        "type": "object",
        "properties": {
          "contracts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomContractContract"
            },
            "description": "Contracts visible to the requesting tenant, ordered by contract key."
          }
        },
        "description": "Response contract carrying a custom-contract administration page (PRXSAAS-BE-0058)."
      },
      "CustomContractStatusContract": {
        "type": "integer",
        "description": "Lifecycle state of a negotiated custom contract (PRXSAAS-BE-0058). Mirrors the\r\nDomain enum; kept dependency-free so public OpenAPI contracts never expose EF\r\nor Domain types."
      },
      "CustomContractTermContract": {
        "required": [
          "interval",
          "currencyCode",
          "amountMinorUnits"
        ],
        "type": "object",
        "properties": {
          "interval": {
            "description": "Billing interval this amount is charged on.",
            "$ref": "#/components/schemas/CustomBillingIntervalContract"
          },
          "currencyCode": {
            "type": "string",
            "description": "ISO-4217 alphabetic currency code (e.g. `USD`)."
          },
          "amountMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Negotiated amount in integral minor units of string CustomContractTermContract.CurrencyCode.",
            "format": "int64"
          }
        },
        "description": "One negotiated price line on a custom contract (PRXSAAS-BE-0058)."
      },
      "CustomerProofApproverRoleContract": {
        "type": "integer"
      },
      "CustomerProofMetricDto": {
        "required": [
          "id",
          "metricName",
          "evidenceReference",
          "calculationMethod"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Metric identifier.",
            "format": "uuid"
          },
          "metricName": {
            "type": "string",
            "description": "Human-readable metric name."
          },
          "evidenceReference": {
            "type": "string",
            "description": "Non-sensitive evidence reference."
          },
          "calculationMethod": {
            "type": "string",
            "description": "Calculation method used to derive the metric."
          },
          "value": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional measured value."
          },
          "unit": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional unit of string? CustomerProofMetricDto.Value."
          }
        },
        "description": "One evidence-backed metric on the contract surface (PRXSAAS-BE-0214). Each\r\nmetric carries the evidence reference and the calculation method so a public\r\nclaim is always traceable to its source."
      },
      "CustomerProofResponse": {
        "required": [
          "id",
          "customerName",
          "title",
          "confidential",
          "consentObtained",
          "quoteUsageApproved",
          "logoUsageApproved",
          "publicationChannels",
          "status",
          "isWithdrawn",
          "metrics",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Proof identifier.",
            "format": "uuid"
          },
          "customerName": {
            "type": "string",
            "description": "Customer name, or an anonymized label when the proof is confidential."
          },
          "title": {
            "type": "string",
            "description": "Short title of the case study."
          },
          "summary": {
            "type": [
              "null",
              "string"
            ],
            "description": "Longer narrative supporting the proof (omitted from the public listing)."
          },
          "confidential": {
            "type": "boolean",
            "description": "Whether customer-identifying details are withheld from the public registry."
          },
          "consentObtained": {
            "type": "boolean",
            "description": "Whether the customer granted consent to be referenced."
          },
          "quoteUsageApproved": {
            "type": "boolean",
            "description": "Whether the customer approved use of their quote."
          },
          "logoUsageApproved": {
            "type": "boolean",
            "description": "Whether the customer approved use of their logo."
          },
          "publicationChannels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicationChannelContract"
            },
            "description": "Publication channels the proof may appear on."
          },
          "status": {
            "description": "Current approval status.",
            "$ref": "#/components/schemas/CustomerProofStatusContract"
          },
          "isWithdrawn": {
            "type": "boolean",
            "description": "Whether the proof has been withdrawn from publication."
          },
          "submittedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the proof was submitted for review.",
            "format": "date-time"
          },
          "approvedBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Subject that approved the proof."
          },
          "approvedByRole": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Named role of the approver; null until the proof is approved (PRXSAAS-BE-0237).",
                "$ref": "#/components/schemas/CustomerProofApproverRoleContract"
              }
            ]
          },
          "metricVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Monotonic version of the proof's metric set (PRXSAAS-BE-0237).",
            "format": "int32"
          },
          "approvedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the proof was approved.",
            "format": "date-time"
          },
          "rejectedReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Reason the proof was rejected."
          },
          "publishedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the proof was published.",
            "format": "date-time"
          },
          "publishedExpiryUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant publication expires.",
            "format": "date-time"
          },
          "withdrawnUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the proof was withdrawn.",
            "format": "date-time"
          },
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerProofMetricDto"
            },
            "description": "Evidence-backed metrics supporting the proof."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the row was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the row was last modified.",
            "format": "date-time"
          }
        },
        "description": "Public representation of a customer proof (PRXSAAS-BE-0214). The tenant id is\r\nnever exposed; when bool CustomerProofResponse.Confidential is set, the public listing\r\nsubstitutes an anonymized label for string CustomerProofResponse.CustomerName so the\r\ncustomer's identity is never leaked."
      },
      "CustomerProofStatusContract": {
        "type": "integer",
        "description": "Public representation of the customer-proof approval status (PRXSAAS-BE-0214).\r\nContract enum, deliberately distinct from the domain `CustomerProofStatus`\r\nso the persistence model may evolve without changing the published surface."
      },
      "DailyUsageAggregateResponse": {
        "required": [
          "id",
          "tenantId",
          "aggregationDateUtc",
          "eventType",
          "totalCount",
          "eventCount",
          "schemaVersion",
          "windowStartUtc",
          "windowEndUtc",
          "createdUtc",
          "updatedUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "aggregationDateUtc": {
            "type": "string",
            "format": "date-time"
          },
          "eventType": {
            "type": "string"
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "eventCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "schemaVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "windowStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "windowEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "eventCategory": {
            "type": [
              "null",
              "string"
            ]
          },
          "productId": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Response contract for one daily usage aggregation rollup. Plain data only —\r\nnever an EF entity — so the OpenAPI surface stays stable and provider-neutral."
      },
      "DataRetentionClassDto": {
        "type": "integer"
      },
      "DataRetentionPolicyResponse": {
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Surrogate key.",
            "format": "int32"
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns the policy."
          },
          "policyKey": {
            "type": "string",
            "description": "Stable policy key within the tenant."
          },
          "dataCategory": {
            "type": "string",
            "description": "Data category the policy applies to."
          },
          "retentionDays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Retention window in days.",
            "format": "int32"
          },
          "isEnabled": {
            "type": "boolean",
            "description": "Whether the policy is currently in force."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "When the policy was created (UTC).",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "When the policy was last updated (UTC).",
            "format": "date-time"
          }
        },
        "description": "Response contract for a data retention policy (PRXSAAS-BE-0157)."
      },
      "DeclareInlineConfigurationEntryRequest": {
        "required": [
          "environment",
          "key",
          "value"
        ],
        "type": "object",
        "properties": {
          "environment": {
            "description": "Deployment environment the entry applies to.",
            "$ref": "#/components/schemas/DeploymentEnvironmentContract"
          },
          "key": {
            "type": "string",
            "description": "Configuration key in section:key form (maximum 256 characters)."
          },
          "value": {
            "type": "string",
            "description": "Literal, non-sensitive value (maximum 1024 characters)."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional non-sensitive operator-facing description."
          }
        },
        "description": "Request to declare or replace a non-sensitive inline configuration entry\r\n(PRXSAAS-BE-0161)."
      },
      "DeclareSecretConfigurationEntryRequest": {
        "required": [
          "environment",
          "key",
          "secretReference"
        ],
        "type": "object",
        "properties": {
          "environment": {
            "description": "Deployment environment the entry applies to.",
            "$ref": "#/components/schemas/DeploymentEnvironmentContract"
          },
          "key": {
            "type": "string",
            "description": "Configuration key in section:key form (maximum 256 characters)."
          },
          "secretReference": {
            "type": "string",
            "description": "Secret-store pointer, for example `keyvault://vision-scan/sql-password`\r\nor `env://VISIONSCAN_SQL_PASSWORD`, optionally suffixed with\r\n`@version`."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional non-sensitive operator-facing description."
          }
        },
        "description": "Request to declare or rebind a secret-backed configuration entry\r\n(PRXSAAS-BE-0161)."
      },
      "DefineDisasterRecoveryObjectiveRequest": {
        "required": [
          "tenantId",
          "dataSet",
          "tier",
          "recoveryPointObjectiveMinutes",
          "recoveryTimeObjectiveMinutes"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "dataSet": {
            "type": "string"
          },
          "tier": {
            "$ref": "#/components/schemas/RecoveryTier"
          },
          "recoveryPointObjectiveMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recoveryTimeObjectiveMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Request contract to define disaster-recovery objectives for a tenant-owned data set."
      },
      "DefineRowSecurityPolicyRequest": {
        "required": [
          "policyName",
          "targetSchema",
          "targetTable",
          "filterPredicate"
        ],
        "type": "object",
        "properties": {
          "policyName": {
            "type": "string"
          },
          "targetSchema": {
            "type": "string"
          },
          "targetTable": {
            "type": "string"
          },
          "filterPredicate": {
            "type": "string"
          }
        },
        "description": "Request to define a tenant-scoped SQL Server Row-Level Security policy\r\n(PRXSAAS-BE-0043). The tenant is supplied by the authenticated principal, so\r\nthe contract deliberately carries no tenant field — there is nothing to spoof."
      },
      "DeploymentEnvironmentContract": {
        "type": "integer",
        "description": "Public representation of a deployment environment (PRXSAAS-BE-0161)."
      },
      "DeprecateAgentSkillArtifactRequest": {
        "required": [
          "deprecatedAtUtc",
          "reason",
          "migrationGuideUri"
        ],
        "type": "object",
        "properties": {
          "deprecatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": "string"
          },
          "migrationGuideUri": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to deprecate a published skill with migration metadata."
      },
      "DeprecateSdkArtifactRequest": {
        "required": [
          "deprecatedAtUtc",
          "reason"
        ],
        "type": "object",
        "properties": {
          "deprecatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": "string"
          }
        },
        "description": "Request contract to deprecate a published artifact."
      },
      "DeviceActivationStatus": {
        "type": "integer",
        "description": "Lifecycle status of a device activation. This mirrors the domain\r\nDeviceActivationStatus."
      },
      "DeviceCapabilityContract": {
        "type": "object",
        "properties": {
          "capabilityId": {
            "type": "string",
            "description": "Unique identifier for the capability type."
          },
          "name": {
            "type": "string",
            "description": "Human-readable name for the capability."
          },
          "description": {
            "type": "string",
            "description": "Description of what the capability enables."
          },
          "status": {
            "description": "Current status of the capability.",
            "$ref": "#/components/schemas/DeviceCapabilityStatusContract"
          },
          "definedUtc": {
            "type": "string",
            "description": "Timestamp when the capability was defined.",
            "format": "date-time"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Configuration parameters for the capability."
          }
        },
        "description": "Represents a capability that a device can have."
      },
      "DeviceCapabilityRequest": {
        "type": "object",
        "properties": {
          "capabilityId": {
            "type": "string",
            "description": "Unique identifier for the capability type."
          },
          "name": {
            "type": "string",
            "description": "Human-readable name for the capability."
          },
          "description": {
            "type": "string",
            "description": "Description of what the capability enables."
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Configuration parameters for the capability."
          }
        },
        "description": "Request to define a device capability."
      },
      "DeviceCapabilityStatusContract": {
        "type": "integer",
        "description": "Status enumeration for device capability states."
      },
      "DeviceCertificationProfileResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the certification profile.",
            "format": "uuid"
          },
          "modelNumber": {
            "type": "string",
            "description": "Unique identifier for the device model/SKU."
          },
          "modelName": {
            "type": "string",
            "description": "Human-readable device name."
          },
          "manufacturer": {
            "type": "string",
            "description": "Manufacturer/OEM identifier."
          },
          "osBspVersion": {
            "type": "string",
            "description": "Operating System/Board Support Package version."
          },
          "certifiedSdkVersion": {
            "type": "string",
            "description": "Certified SDK/engine version."
          },
          "evidenceReference": {
            "type": "string",
            "description": "Certification evidence reference (immutable)."
          },
          "status": {
            "description": "Certification status.",
            "$ref": "#/components/schemas/CertificationStatusContract"
          },
          "aliasCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of device aliases that reference this profile.",
            "format": "int32"
          },
          "tenantPolicyCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of tenant policies that reference this profile.",
            "format": "int32"
          },
          "createdUtc": {
            "type": "string",
            "description": "Creation timestamp.",
            "format": "date-time"
          },
          "lastUpdatedUtc": {
            "type": "string",
            "description": "Last updated timestamp.",
            "format": "date-time"
          }
        },
        "description": "Detailed device certification profile response for administrative operations."
      },
      "DeviceCheckoutContract": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable identifier of the created checkout record.",
            "format": "uuid"
          },
          "deviceId": {
            "type": "string",
            "description": "Stable device identifier the subscription was purchased for."
          },
          "planKey": {
            "type": "string",
            "description": "Resolved plan key (for example \"PRO-MONTHLY\")."
          },
          "checkoutUtc": {
            "type": "string",
            "description": "UTC instant the checkout was recorded.",
            "format": "date-time"
          },
          "currentPeriodEndUtc": {
            "type": "string",
            "description": "UTC instant the current paid period ends.",
            "format": "date-time"
          },
          "providerKey": {
            "type": "string",
            "description": "Selected provider for this checkout."
          },
          "checkoutUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Hosted checkout URL when the provider supplies one."
          },
          "sessionReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Provider checkout/session reference."
          }
        },
        "description": "Provider-neutral result of starting a per-device checkout (PRXSAAS-BE-0064).\r\nDeliberately excludes the EF entity, its rowversion and any provider payload."
      },
      "DeviceContract": {
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "description": "Unique identifier for the device."
          },
          "name": {
            "type": "string",
            "description": "Human-readable name for the device."
          },
          "description": {
            "type": "string",
            "description": "Description of the device capabilities and purpose."
          },
          "status": {
            "description": "Current operational status of the device.",
            "$ref": "#/components/schemas/DeviceStatusContract"
          },
          "lifecycleStatus": {
            "description": "Fleet lifecycle state of the device (registered → active → retired → decommissioned).",
            "$ref": "#/components/schemas/DeviceLifecycleStatusContract"
          },
          "registeredUtc": {
            "type": "string",
            "description": "Timestamp when the device was registered.",
            "format": "date-time"
          },
          "lastSeenUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Timestamp when the device was last seen online.",
            "format": "date-time"
          },
          "capabilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeviceCapabilityContract"
            },
            "description": "Associated capabilities for this device."
          }
        },
        "description": "Represents a device in the Vision Scan system."
      },
      "DeviceEntitlementLicenseContract": {
        "type": "object",
        "properties": {
          "licenseId": {
            "type": "string",
            "description": "Server-assigned license identifier."
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns the license."
          },
          "deviceId": {
            "type": "string",
            "description": "Device the license was issued for."
          },
          "seatReservationId": {
            "type": "string",
            "description": "Reservation that entitled the device."
          },
          "signingKeyId": {
            "type": "string",
            "description": "Signing key identifier that produced the signature."
          },
          "keyId": {
            "type": "string",
            "description": "JWK key id (`kid`) published in the signed token."
          },
          "algorithm": {
            "type": "string",
            "description": "Signing algorithm (e.g. `RS256`, `ES256`, `EdDSA`)."
          },
          "licenseSerialNumber": {
            "type": "string",
            "description": "Human-readable, tenant-unique license serial number."
          },
          "status": {
            "description": "Current license status.",
            "$ref": "#/components/schemas/DeviceEntitlementLicenseStatus"
          },
          "issuedUtc": {
            "type": "string",
            "description": "UTC instant the license was issued.",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": "string",
            "description": "UTC instant the license expires.",
            "format": "date-time"
          },
          "revocationReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional reason recorded when the license was suspended or revoked."
          }
        },
        "description": "Representation of a signed device entitlement license as returned by read\r\nendpoints. The signed token is intentionally omitted from the read surface;\r\nclients obtain it through the issue/refresh flow."
      },
      "DeviceEntitlementLicenseStatus": {
        "type": "integer",
        "description": "Lifecycle status of a signed device entitlement license. This mirrors the\r\ndomain DeviceEntitlementLicenseStatus; the two are intentionally\r\nindependent so the contract surface never depends on the persistence model."
      },
      "DeviceLicenseLease": {
        "required": [
          "signedLicenseToken",
          "expiresUtc",
          "jwksUri"
        ],
        "type": "object",
        "properties": {
          "signedLicenseToken": {
            "type": "string"
          },
          "expiresUtc": {
            "type": "string",
            "format": "date-time"
          },
          "jwksUri": {
            "type": "string"
          }
        },
        "description": "A short-lived signed device entitlement. Never persist or log this response."
      },
      "DeviceLifecycleStatusContract": {
        "type": "integer",
        "description": "Fleet lifecycle state of a device, surfaced on the public contract layer. This\r\nmirrors the domain `Vision.Scan.Domain.Devices.DeviceLifecycleStatus`; the\r\ntwo are intentionally independent so the contract surface never depends on the\r\npersistence model (PRXSAAS-BE-0086)."
      },
      "DeviceStatusContract": {
        "type": "integer",
        "description": "Status enumeration for device operational states."
      },
      "DisasterRecoveryObjectiveResponse": {
        "required": [
          "id",
          "tenantId",
          "dataSet",
          "tier",
          "recoveryPointObjectiveMinutes",
          "recoveryTimeObjectiveMinutes",
          "createdAtUtc",
          "updatedAtUtc",
          "drills"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "dataSet": {
            "type": "string"
          },
          "tier": {
            "$ref": "#/components/schemas/RecoveryTier"
          },
          "recoveryPointObjectiveMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recoveryTimeObjectiveMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "drills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecoveryDrillResponse"
            }
          }
        },
        "description": "Response contract for a disaster-recovery objective record. Plain data only - never an EF\r\nentity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "DocumentApprovalStatusContract": {
        "type": "integer",
        "description": "Approval lifecycle exposed on the public contract (PRXSAAS-BE-0223)."
      },
      "DocumentVisibilityContract": {
        "type": "integer",
        "description": "Visibility band exposed on the public contract (PRXSAAS-BE-0223)."
      },
      "DownloadGrantResponse": {
        "required": [
          "id",
          "granteeId",
          "sdkArtifactId",
          "state",
          "maxDownloads",
          "downloadsUsed",
          "grantedAtUtc",
          "expiresAtUtc",
          "revokedAtUtc",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "granteeId": {
            "type": "string"
          },
          "sdkArtifactId": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "$ref": "#/components/schemas/DownloadGrantStateDto"
          },
          "maxDownloads": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "downloadsUsed": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "grantedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "revokedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "artifactSha256": {
            "type": [
              "null",
              "string"
            ]
          },
          "entitlementRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "requiredFeatureKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "purpose": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Response contract for one entitled download grant. Plain data only - never an\r\nEF entity - so the OpenAPI surface stays stable and provider-neutral. The\r\nowning tenant is omitted because the response is already tenant-scoped."
      },
      "DownloadGrantStateDto": {
        "type": "integer",
        "description": "Lifecycle state of a tenant-scoped entitled download grant (PRXSAAS-BE-0095)."
      },
      "EffectiveDeviceCertificationResponse": {
        "type": "object",
        "properties": {
          "modelNumber": {
            "type": "string",
            "description": "Unique identifier for the device model/SKU."
          },
          "modelName": {
            "type": "string",
            "description": "Human-readable device name."
          },
          "manufacturer": {
            "type": "string",
            "description": "Manufacturer/OEM identifier."
          },
          "osBspVersion": {
            "type": "string",
            "description": "Operating System/Board Support Package version."
          },
          "certifiedSdkVersion": {
            "type": "string",
            "description": "Certified SDK/engine version."
          },
          "evidenceReference": {
            "type": "string",
            "description": "Certification evidence reference (immutable)."
          },
          "status": {
            "description": "Certification status.",
            "$ref": "#/components/schemas/CertificationStatusContract"
          },
          "isAllowedByTenantPolicy": {
            "type": "boolean",
            "description": "Whether the tenant's policy allows this device model."
          },
          "lastUpdatedUtc": {
            "type": "string",
            "description": "Last updated timestamp.",
            "format": "date-time"
          }
        },
        "description": "The authenticated tenant's effective device certification entitlement (PRXSAAS-BE-0212)."
      },
      "EffectiveSupportContract": {
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Plan the entitlement derives from."
          },
          "slaTermVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Version of the approved SLA term applied, when one is effective.",
            "format": "int32"
          },
          "asOfUtc": {
            "type": "string",
            "description": "Instant the entitlement was resolved at.",
            "format": "date-time"
          },
          "channels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportChannelTypeContract"
            },
            "description": "Channels available to the tenant."
          },
          "targets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EffectiveSupportTargetContract"
            },
            "description": "Per-severity effective commitments."
          }
        },
        "description": "The authenticated tenant's effective support entitlement (PRXSAAS-BE-0221)."
      },
      "EffectiveSupportTargetContract": {
        "type": "object",
        "properties": {
          "severity": {
            "description": "Severity band.",
            "$ref": "#/components/schemas/SupportSeverityContract"
          },
          "firstResponseMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Effective first-response commitment in minutes.",
            "format": "int32"
          },
          "restorationTargetMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Effective restoration commitment in minutes, when committed.",
            "format": "int32"
          },
          "source": {
            "description": "Whether the value came from the plan term or a contractual override.",
            "$ref": "#/components/schemas/SupportSourceKindContract"
          }
        },
        "description": "A resolved effective commitment for one severity (PRXSAAS-BE-0221)."
      },
      "EffectiveWorkflowProfileResponse": {
        "required": [
          "profile",
          "isEntitled",
          "isCompatible",
          "deviceSdkVersion"
        ],
        "type": "object",
        "properties": {
          "profile": {
            "description": "The resolved workflow profile.",
            "$ref": "#/components/schemas/WorkflowProfileDto"
          },
          "isEntitled": {
            "type": "boolean",
            "description": "Whether the tenant holds all required entitlements for this profile."
          },
          "isCompatible": {
            "type": "boolean",
            "description": "Whether the device SDK meets minimum version requirements."
          },
          "deviceSdkVersion": {
            "type": "string",
            "description": "Evaluated device SDK version."
          },
          "missingEntitlements": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Any missing feature codes."
          },
          "precedenceSource": {
            "type": "string",
            "description": "Deterministic precedence source (e.g., \"TenantOverride\", \"DeviceAssignment\", \"ChannelDefault\")."
          },
          "incompatibilityReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Specific explanation when not entitled or incompatible."
          },
          "eTag": {
            "type": "string",
            "description": "Computed ETag for caching."
          }
        },
        "description": "Evaluated effective workflow profile response for an authenticated tenant/device (PRXSAAS-BE-0216)."
      },
      "EnrollmentTokenContract": {
        "type": "object",
        "properties": {
          "tokenId": {
            "type": "string",
            "description": "Unique identifier for the enrollment token."
          },
          "hashedToken": {
            "type": "string",
            "description": "The hashed token value used for verification."
          },
          "deviceId": {
            "type": "string",
            "description": "Associated device identifier."
          },
          "createdUtc": {
            "type": "string",
            "description": "Timestamp when the token was created.",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": "string",
            "description": "Timestamp when the token expires.",
            "format": "date-time"
          },
          "isUsed": {
            "type": "boolean",
            "description": "Indicates whether the token has been used."
          },
          "usedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Timestamp when the token was used (if applicable).",
            "format": "date-time"
          }
        },
        "description": "Represents a hashed enrollment token for device registration."
      },
      "EnterpriseSsoConnectionResponse": {
        "required": [
          "id",
          "displayName",
          "protocol",
          "idpIssuer",
          "emailDomain",
          "metadataUrl",
          "signingCertificateThumbprint",
          "clientId",
          "status",
          "isJustInTimeProvisioningEnabled",
          "isMfaRequired",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable connection identifier.",
            "format": "uuid"
          },
          "displayName": {
            "type": "string",
            "description": "Administrator-facing name."
          },
          "protocol": {
            "description": "Federation protocol.",
            "$ref": "#/components/schemas/EnterpriseSsoProtocolContract"
          },
          "idpIssuer": {
            "type": "string",
            "description": "SAML entity id or OIDC issuer."
          },
          "emailDomain": {
            "type": "string",
            "description": "Claimed e-mail domain, normalized to lower case."
          },
          "metadataUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Metadata document URL, when published."
          },
          "signingCertificateThumbprint": {
            "type": [
              "null",
              "string"
            ],
            "description": "Thumbprint of the trusted signing certificate."
          },
          "clientId": {
            "type": [
              "null",
              "string"
            ],
            "description": "OpenID Connect client identifier."
          },
          "status": {
            "description": "Lifecycle state.",
            "$ref": "#/components/schemas/EnterpriseSsoConnectionStatusContract"
          },
          "isJustInTimeProvisioningEnabled": {
            "type": "boolean",
            "description": "Whether first sign-in may create the local user."
          },
          "isMfaRequired": {
            "type": "boolean",
            "description": "Whether a local second factor is demanded as well."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "Creation instant, UTC.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "Last modification instant, UTC.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0028. Public representation of a tenant's enterprise SSO connection."
      },
      "EnterpriseSsoConnectionStatusContract": {
        "type": "integer",
        "description": "PRXSAAS-BE-0028. Lifecycle state of an enterprise SSO connection on the wire."
      },
      "EnterpriseSsoProtocolContract": {
        "type": "integer"
      },
      "EntitlementOverrideType": {
        "type": "integer",
        "description": "PRXSAAS-BE-0135. Type of time-bound entitlement/status override being applied."
      },
      "EnvironmentConfigurationEntryContract": {
        "required": [
          "id",
          "environment",
          "key",
          "source",
          "requiresSecretInjection",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable identifier of the entry.",
            "format": "uuid"
          },
          "environment": {
            "description": "Deployment environment the entry applies to.",
            "$ref": "#/components/schemas/DeploymentEnvironmentContract"
          },
          "key": {
            "type": "string",
            "description": "Configuration key."
          },
          "source": {
            "description": "Where the effective value comes from.",
            "$ref": "#/components/schemas/ConfigurationValueSourceContract"
          },
          "value": {
            "type": [
              "null",
              "string"
            ],
            "description": "Literal value for an inline entry; null for a secret-backed entry."
          },
          "secretReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Secret-store pointer for a secret-backed entry; null for an inline entry."
          },
          "requiresSecretInjection": {
            "type": "boolean",
            "description": "`true` when the value must be injected from a secret store."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Non-sensitive operator-facing description."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the entry was declared.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the entry was last modified.",
            "format": "date-time"
          }
        },
        "description": "Public projection of one environment configuration entry (PRXSAAS-BE-0161)."
      },
      "EnvironmentConfigurationSnapshotContract": {
        "required": [
          "environment",
          "entries",
          "pendingSecretInjectionKeys",
          "generatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "environment": {
            "description": "Deployment environment described by this snapshot.",
            "$ref": "#/components/schemas/DeploymentEnvironmentContract"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnvironmentConfigurationEntryContract"
            },
            "description": "Entries declared for the environment, ordered by key."
          },
          "pendingSecretInjectionKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Keys that resolve from a secret store rather than from this table."
          },
          "generatedAtUtc": {
            "type": "string",
            "description": "UTC instant the snapshot was produced.",
            "format": "date-time"
          }
        },
        "description": "Resolved configuration surface for one environment (PRXSAAS-BE-0161)."
      },
      "EvaluationAbuseOverrideRequest": {
        "required": [
          "signalHash",
          "reason"
        ],
        "type": "object",
        "properties": {
          "signalHash": {
            "type": "string",
            "description": "Hex-encoded SHA-256 hash of the normalized signal to override (email domain or device)."
          },
          "reason": {
            "type": "string",
            "description": "Non-sensitive reason the override was granted; recorded on the audit trail."
          }
        },
        "description": "Request to grant an auditable abuse override for a normalized signal\r\n(PRXSAAS-BE-0208). Overrides are the false-positive recovery path and are\r\nrecorded on the audit trail."
      },
      "EvaluationAbuseOverrideResponse": {
        "required": [
          "signalHash",
          "granted",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "signalHash": {
            "type": "string",
            "description": "The signal hash the override applies to."
          },
          "granted": {
            "type": "boolean",
            "description": "Whether the override was granted."
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the override expires.",
            "format": "date-time"
          }
        },
        "description": "Result of granting an abuse override (PRXSAAS-BE-0208)."
      },
      "EvaluationAbuseStatusResponse": {
        "required": [
          "tenantId",
          "policyVersion",
          "enabled",
          "maxAttemptsPerTenantWindow",
          "currentAttemptsInWindow",
          "overrideActive",
          "overrideExpiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "Authenticated tenant the status describes."
          },
          "policyVersion": {
            "type": "string",
            "description": "Policy/version marker in effect."
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the abuse controls are currently enforced."
          },
          "maxAttemptsPerTenantWindow": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Maximum activation attempts permitted per tenant within the configured window.",
            "format": "int32"
          },
          "currentAttemptsInWindow": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Activation attempts recorded for this tenant within the configured window.",
            "format": "int32"
          },
          "overrideActive": {
            "type": "boolean",
            "description": "Whether an override is currently active for this tenant's signals."
          },
          "overrideExpiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant any active override expires, or `null`.",
            "format": "date-time"
          }
        },
        "description": "Public status of the evaluation abuse controls for the authenticated tenant\r\n(PRXSAAS-BE-0208). Exposes only configured limits and non-sensitive counts."
      },
      "EvaluationActivationStateContract": {
        "type": "integer",
        "description": "Public representation of the state of an evaluation activation attempt\r\n(PRXSAAS-BE-0205). Contract enum, deliberately distinct from the domain\r\n`EvaluationActivationState`, so the persistence model may evolve without\r\nchanging the published OpenAPI surface."
      },
      "EvaluationConversionCheckoutRequest": {
        "required": [
          "targetPlanId",
          "billingInterval",
          "deviceSeatCount",
          "successUrl",
          "cancelUrl"
        ],
        "type": "object",
        "properties": {
          "targetPlanId": {
            "type": "string"
          },
          "billingInterval": {
            "type": "string"
          },
          "deviceSeatCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "successUrl": {
            "type": "string"
          },
          "cancelUrl": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request to initiate a commercial checkout conversion from an evaluation (PRXSAAS-BE-0206)."
      },
      "EvaluationConversionCheckoutResponse": {
        "required": [
          "checkoutSessionId",
          "checkoutUrl",
          "expiresAtUtc",
          "amountDue",
          "currency"
        ],
        "type": "object",
        "properties": {
          "checkoutSessionId": {
            "type": "string"
          },
          "checkoutUrl": {
            "type": "string"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "amountDue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "currency": {
            "type": "string"
          }
        },
        "description": "Response with server-created checkout handoff URL for evaluation conversion (PRXSAAS-BE-0206)."
      },
      "EvaluationLimitDto": {
        "required": [
          "featureCode",
          "isAllowed"
        ],
        "type": "object",
        "properties": {
          "featureCode": {
            "description": "The feature code for the limit.",
            "$ref": "#/components/schemas/EvaluationLimitFeatureCode"
          },
          "isAllowed": {
            "type": "boolean",
            "description": "Whether this limit is allowed (true) or not allowed (false) for the evaluation plan."
          }
        },
        "description": "Represents one machine-readable feature limit of an evaluation plan."
      },
      "EvaluationLimitFeatureCode": {
        "type": "integer",
        "description": "Machine-readable feature codes for evaluation limits."
      },
      "EvaluationPlanDto": {
        "required": [
          "name",
          "description",
          "durationInDays",
          "requiresPaymentMethod",
          "autoConvertToPaid",
          "isActive",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the evaluation plan.",
            "format": "uuid"
          },
          "name": {
            "maxLength": 200,
            "type": "string",
            "description": "Name of the evaluation plan."
          },
          "description": {
            "maxLength": 1000,
            "type": "string",
            "description": "Description of the evaluation plan."
          },
          "durationInDays": {
            "maximum": 365,
            "minimum": 1,
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Duration of the evaluation in days.",
            "format": "int32"
          },
          "requiresPaymentMethod": {
            "type": "boolean",
            "description": "Whether a payment method is required to start the evaluation."
          },
          "autoConvertToPaid": {
            "type": "boolean",
            "description": "Whether the evaluation automatically converts to a paid subscription at the end."
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the evaluation plan is currently active."
          },
          "createdAt": {
            "type": "string",
            "description": "Date and time when the evaluation plan was created.",
            "format": "date-time"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "description": "Date and time when the evaluation plan was last updated.",
            "format": "date-time"
          },
          "limits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EvaluationLimitDto"
            },
            "description": "Machine-readable limits associated with this evaluation plan."
          }
        },
        "description": "Represents an evaluation (trial) plan in the system."
      },
      "EvaluationState": {
        "type": "integer",
        "description": "Authoritative evaluation state and conversion eligibility (PRXSAAS-BE-0206)."
      },
      "EvaluationStatusResponse": {
        "required": [
          "tenantId",
          "state",
          "startedAtUtc",
          "expiresAtUtc",
          "daysRemaining",
          "maxDevicesAllowed",
          "activeDeviceCount",
          "isConversionEligible"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/EvaluationState"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "daysRemaining": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxDevicesAllowed": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "activeDeviceCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "isConversionEligible": {
            "type": "boolean"
          },
          "convertedSubscriptionId": {
            "type": [
              "null",
              "string"
            ]
          },
          "blockReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "isDevelopmentTestAccess": {
            "type": "boolean",
            "description": "When true, the caller is the explicitly designated Development test account\r\nand full test access is granted even after the normal evaluation period.\r\nOnly ever true in a Development environment; never set in Production."
          }
        },
        "description": "Authoritative evaluation status for the authenticated tenant (PRXSAAS-BE-0206)."
      },
      "EvaluationTenantLimitDto": {
        "required": [
          "featureCode",
          "isAllowed"
        ],
        "type": "object",
        "properties": {
          "featureCode": {
            "description": "The feature code for the decision.",
            "$ref": "#/components/schemas/EvaluationLimitFeatureCode"
          },
          "isAllowed": {
            "type": "boolean",
            "description": "Whether this feature is allowed during the evaluation."
          }
        },
        "description": "Represents one machine-readable feature allow/deny decision for a tenant's evaluation."
      },
      "EvaluationTenantStateDto": {
        "required": [
          "tenantId",
          "evaluationPlanId",
          "startedAt",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the tenant evaluation state.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Identifier of the tenant this evaluation belongs to.",
            "format": "uuid"
          },
          "evaluationPlanId": {
            "type": "string",
            "description": "Identifier of the evaluation plan being evaluated.",
            "format": "uuid"
          },
          "startedAt": {
            "type": "string",
            "description": "When the evaluation started (UTC).",
            "format": "date-time"
          },
          "endsAt": {
            "type": [
              "null",
              "string"
            ],
            "description": "When the evaluation ends (UTC), or null while active.",
            "format": "date-time"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the evaluation is currently active."
          },
          "limits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EvaluationTenantLimitDto"
            },
            "description": "Per-feature allow/deny decisions active for this tenant's evaluation."
          }
        },
        "description": "Represents tenant-scoped evaluation (trial) state."
      },
      "EvidenceVisibility": {
        "type": "integer",
        "description": "Contract-surface access control for benchmark evidence links."
      },
      "ExportFilter": {
        "type": "object",
        "properties": {
          "dataType": {
            "type": "string",
            "description": "Data type/entity to filter (e.g., \"AuditEvents\", \"UserSessions\")."
          },
          "field": {
            "type": "string",
            "description": "Field name to filter on."
          },
          "operation": {
            "type": "string",
            "description": "Filter operation (equals, contains, greater_than, etc.)."
          },
          "value": {
            "type": [
              "null",
              "string"
            ],
            "description": "Value to filter by."
          }
        },
        "description": "PRXSAAS-BE-0103. Filter definition for privacy-safe exports."
      },
      "ExportStatus": {
        "type": "integer",
        "description": "PRXSAAS-BE-0103. Status of a privacy-safe export operation."
      },
      "FeatureEntitlementResponse": {
        "required": [
          "featureKey",
          "isEntitled",
          "sourcePlanKey",
          "planStatus",
          "effectiveAsOfUtc"
        ],
        "type": "object",
        "properties": {
          "featureKey": {
            "type": "string",
            "description": "Lowercase dotted feature key the entitlement was resolved for."
          },
          "isEntitled": {
            "type": "boolean",
            "description": "Whether the tenant is entitled to the feature under its effective plan."
          },
          "limit": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Optional quota for the feature; `null` means unlimited.",
            "format": "int32"
          },
          "sourcePlanKey": {
            "type": "string",
            "description": "Plan key the entitlement was resolved from."
          },
          "planStatus": {
            "description": "Lifecycle state of the source plan at resolution time.",
            "$ref": "#/components/schemas/PlanStatusContract"
          },
          "effectiveAsOfUtc": {
            "type": "string",
            "description": "Instant the entitlement was resolved at (UTC).",
            "format": "date-time"
          }
        },
        "description": "Resolved entitlement of the authenticated tenant to a single plan feature,\r\nderived from the tenant's effective (active) plan (PRXSAAS-BE-0056).\r\nThis is a contract-only type: it carries no EF/Core identifiers, no\r\nrowversion, and no billing-provider types."
      },
      "FixtureDatabaseLifecycle": {
        "enum": [
          "PerRun",
          "PerCollection",
          "PerTest"
        ],
        "description": "Granularity at which the SQL Server integration-test harness gives a test\r\nits own database state (PRXSAAS-BE-0176). Mirrors the domain enum as a\r\nstable public contract so the Domain type never crosses the API boundary."
      },
      "FixtureReadinessStatus": {
        "enum": [
          "Undefined",
          "Incomplete",
          "Ready"
        ],
        "description": "Whether a fixture definition satisfies every harness rule (PRXSAAS-BE-0176)."
      },
      "FixtureResetStrategy": {
        "enum": [
          "DropAndMigrate",
          "TruncateTables",
          "TransactionRollback"
        ],
        "description": "How the harness returns a database to its baseline between tests\r\n(PRXSAAS-BE-0176)."
      },
      "GenerateBarcodeRequest": {
        "required": [
          "symbology",
          "payload"
        ],
        "type": "object",
        "properties": {
          "symbology": {
            "type": "string"
          },
          "payload": {
            "type": "string"
          },
          "format": {
            "type": [
              "null",
              "string"
            ]
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "clientItemId": {
            "type": [
              "null",
              "string"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BarcodeRenderOptionsDto"
              }
            ]
          }
        },
        "description": "BC-C005. Request to generate an authoritative single barcode.\r\nNotice: TenantId and UserId are NOT accepted in the request body; they must derive from authenticated context."
      },
      "GenerateBarcodeResponse": {
        "required": [
          "generationId",
          "clientItemId",
          "symbology",
          "normalizedPayload",
          "status",
          "artifact",
          "quotaUnitsConsumed",
          "createdAt",
          "correlationId"
        ],
        "type": "object",
        "properties": {
          "generationId": {
            "type": "string",
            "format": "uuid"
          },
          "clientItemId": {
            "type": "string"
          },
          "symbology": {
            "type": "string"
          },
          "normalizedPayload": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "artifact": {
            "$ref": "#/components/schemas/BarcodeArtifactResponse"
          },
          "quotaUnitsConsumed": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "correlationId": {
            "type": "string"
          },
          "isReplay": {
            "type": "boolean"
          }
        },
        "description": "BC-C005. Authoritative single barcode generation response with correlation tracking."
      },
      "GenerateBatchBarcodeRequest": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "description": "Items to generate in this batch. Minimum 1, maximum 30 (hard product ceiling).\r\nEach item must have a stable ClientItemId that will be echoed in the response."
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional idempotency key for the entire batch request."
          }
        },
        "description": "BC-C012. Request to generate a batch of barcodes with deterministic client-item correlation.\r\nThe hard product ceiling is 30 items; entitlement may set a lower plan max.",
        "example": {
          "items": [
            {
              "clientItemId": "line-01",
              "symbology": "qr-code",
              "payload": "https://example.com/1",
              "format": "svg"
            },
            {
              "clientItemId": "line-02",
              "symbology": "ean-13",
              "payload": "4006381333931",
              "format": "png"
            }
          ],
          "idempotencyKey": "batch-abc-123"
        }
      },
      "GenerateBatchBarcodeResponse": {
        "required": [
          "batchId",
          "status",
          "items",
          "totalItems",
          "succeededItems",
          "failedItems",
          "createdAt",
          "correlationId"
        ],
        "type": "object",
        "properties": {
          "batchId": {
            "type": "string",
            "description": "Unique identifier for the batch generation job.",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "description": "Overall batch status: \"Pending\", \"Processing\", \"Completed\", \"PartiallyCompleted\", or \"Failed\".\r\nFinal states (\"Completed\", \"PartiallyCompleted\", \"Failed\") guarantee Items contains final outcomes."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchBarcodeItemOutcome"
            },
            "description": "Per-item outcomes. Present and complete when Status is final (\"Completed\", \"PartiallyCompleted\", \"Failed\").\r\nMay be empty or partial when Status is \"Pending\" or \"Processing\"."
          },
          "totalItems": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Total items in the batch request.",
            "format": "int32"
          },
          "succeededItems": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of items that succeeded.",
            "format": "int32"
          },
          "failedItems": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of items that failed.",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "description": "Timestamp when the batch was created.",
            "format": "date-time"
          },
          "correlationId": {
            "type": "string",
            "description": "Correlation identifier for tracing the request."
          },
          "isReplay": {
            "type": "boolean",
            "description": "Indicates this response is a replay of a previous identical request."
          }
        },
        "description": "BC-C012. Batch barcode generation response.\r\nSupports synchronous completion (all items in Items) and asynchronous job status\r\n(when Status is \"Pending\" or \"Processing\", Items may be empty or partial).",
        "example": {
          "batchId": "00000000-0000-0000-0000-000000000001",
          "status": "Completed",
          "items": [
            {
              "clientItemId": "line-01",
              "symbology": "qr-code",
              "status": "Succeeded",
              "quotaUnitsConsumed": 1
            }
          ],
          "totalItems": 1,
          "succeededItems": 1,
          "failedItems": 0,
          "createdAt": "2026-09-04T00:00:00Z",
          "correlationId": "corr-123",
          "isReplay": false
        }
      },
      "GeneratedBarcodeVerificationRequest": {
        "required": [
          "artifactFormat",
          "artifactBytes",
          "expectedSymbology",
          "expectedPayload"
        ],
        "type": "object",
        "properties": {
          "artifactFormat": {
            "type": "string",
            "description": "Format of the artifact being verified (e.g., \"svg\", \"png\", \"pdf\")."
          },
          "artifactBytes": {
            "type": "string",
            "description": "Raw bytes of the barcode artifact to verify.",
            "format": "byte"
          },
          "expectedSymbology": {
            "type": "string",
            "description": "Expected symbology of the barcode (e.g., \"qr-code\", \"code-128\", \"ean-13\")."
          },
          "expectedPayload": {
            "type": "string",
            "description": "Expected payload/value that was encoded in the barcode."
          },
          "expectedIsGs1": {
            "type": "boolean",
            "description": "Whether the expected payload is GS1-encoded with Application Identifiers."
          },
          "expectedSemantics": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Expected GS1 Application Identifier key/value pairs when ExpectedIsGs1 is true."
          },
          "resourceLimits": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Resource limits for this verification request (optional, defaults apply).",
                "$ref": "#/components/schemas/BarcodeVerificationResourceLimits"
              }
            ]
          }
        },
        "description": "Request to verify a generated barcode artifact (PRXSAAS-BE-0319).\r\nThe tenant is resolved from authenticated claims by the API layer and is deliberately absent from the request body."
      },
      "GeneratedBarcodeVerificationResponse": {
        "type": "object",
        "properties": {
          "verified": {
            "type": "boolean",
            "description": "Whether the barcode was verified as matching the expected semantics."
          },
          "generationId": {
            "type": "string",
            "description": "The generation ID of the verified artifact.",
            "format": "uuid"
          },
          "artifactFormat": {
            "type": "string",
            "description": "The format of the artifact that was verified (e.g., \"svg\", \"png\")."
          },
          "decodeStatus": {
            "type": "string",
            "description": "The decode status of the barcode (e.g., \"Decoded\", \"NotDecoded\", \"DecodeFailed\")."
          },
          "mismatchReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Reason for mismatch if verification did not succeed (null when verified)."
          },
          "verificationTimestamp": {
            "type": "string",
            "description": "Timestamp when the verification was performed.",
            "format": "date-time"
          },
          "isIdempotent": {
            "type": "boolean",
            "description": "Whether the verification result is idempotent (safe to repeat)."
          }
        },
        "description": "Response returned from barcode verification API (PRXSAAS-BE-0319)."
      },
      "GeneratePackageRequest": {
        "required": [
          "tenantId"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "description": "Request for generating a private entitlement service package."
      },
      "HealthCheckEntryResponse": {
        "required": [
          "name",
          "status"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Stable check name."
          },
          "status": {
            "type": "string",
            "description": "Health status."
          }
        },
        "description": "A single readiness check result."
      },
      "HealthCheckResponse": {
        "required": [
          "status",
          "checks",
          "correlationId"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Aggregate health status."
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HealthCheckEntryResponse"
            },
            "description": "Named readiness checks; liveness intentionally has none."
          },
          "correlationId": {
            "type": "string",
            "description": "Request correlation identifier."
          }
        },
        "description": "Public health response used by operational probes and the OpenAPI contract."
      },
      "IntegrationTestFixtureResponse": {
        "required": [
          "fixtureKey",
          "displayName",
          "databaseLifecycle",
          "resetStrategy",
          "requiresSqlServer",
          "connectionEnvironmentVariable",
          "description",
          "readinessStatus",
          "missingReadinessReasons",
          "createdAtUtc",
          "updatedAtUtc",
          "seeds"
        ],
        "type": "object",
        "properties": {
          "fixtureKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "databaseLifecycle": {
            "$ref": "#/components/schemas/FixtureDatabaseLifecycle"
          },
          "resetStrategy": {
            "$ref": "#/components/schemas/FixtureResetStrategy"
          },
          "requiresSqlServer": {
            "type": "boolean"
          },
          "connectionEnvironmentVariable": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "readinessStatus": {
            "$ref": "#/components/schemas/FixtureReadinessStatus"
          },
          "missingReadinessReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "seeds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IntegrationTestFixtureSeedItem"
            }
          }
        },
        "description": "Response contract for a fixture definition. Plain data only — never an EF\r\nentity — so the OpenAPI surface stays stable and provider-neutral. The\r\nrowversion token and tenant id are deliberately not echoed to the client."
      },
      "IntegrationTestFixtureSeedItem": {
        "required": [
          "seedKey",
          "applyOrder",
          "isTenantScoped"
        ],
        "type": "object",
        "properties": {
          "seedKey": {
            "type": "string"
          },
          "applyOrder": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "isTenantScoped": {
            "type": "boolean"
          }
        },
        "description": "One seed dataset declared on a fixture (PRXSAAS-BE-0176)."
      },
      "InternalAdminAccessResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the grant.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (read-only; never rebound from client input)."
          },
          "adminPrincipal": {
            "type": "string",
            "description": "Principal (email or id) of the internal admin holding the grant."
          },
          "status": {
            "description": "Current lifecycle status of the grant.",
            "$ref": "#/components/schemas/InternalAdminAccessStatus"
          },
          "purpose": {
            "type": "string",
            "description": "Mandatory business reason the grant was created."
          },
          "grantedBy": {
            "type": "string",
            "description": "Identity of the platform admin that granted the access."
          },
          "grantedUtc": {
            "type": "string",
            "description": "UTC instant the grant was created.",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional UTC expiry; null means open-ended until revoked.",
            "format": "date-time"
          },
          "revokedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant of revocation, when InternalAdminAccessStatus InternalAdminAccessResponse.Status is `Revoked`.",
            "format": "date-time"
          },
          "revokedBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Identity that revoked the grant, when revoked."
          },
          "revocationReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Mandatory reason the grant was revoked, when revoked."
          }
        },
        "description": "PRXSAAS-BE-0129. Response contract describing an isolated internal admin access grant.\r\nExposes a stable, contract-safe projection of the domain grant and contains no EF\r\nentities or billing-provider SDK types."
      },
      "InternalAdminAccessStatus": {
        "type": "integer",
        "description": "PRXSAAS-BE-0129. Lifecycle status of an isolated internal admin access grant."
      },
      "InvitationContract": {
        "required": [
          "id",
          "tenantId",
          "email",
          "roleKey",
          "status",
          "createdAtUtc",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the invitation.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns the invitation."
          },
          "email": {
            "type": "string",
            "description": "Invitee email address."
          },
          "roleKey": {
            "type": "string",
            "description": "Role key granted on acceptance."
          },
          "status": {
            "description": "Lifecycle status.",
            "$ref": "#/components/schemas/InvitationStatusContract"
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the invitation was created.",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "description": "UTC instant the invitation expires.",
            "format": "date-time"
          },
          "acceptedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the invitation was accepted, if any.",
            "format": "date-time"
          }
        },
        "description": "Public representation of an invitation (PRXSAAS-BE-0040)."
      },
      "InvitationListResponse": {
        "required": [
          "invitations"
        ],
        "type": "object",
        "properties": {
          "invitations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvitationContract"
            },
            "description": "The invitations visible to the caller's tenant."
          }
        },
        "description": "Page of invitations belonging to the caller's tenant (PRXSAAS-BE-0040)."
      },
      "InvitationStatusContract": {
        "type": "integer",
        "description": "Lifecycle status of an invitation (PRXSAAS-BE-0040). Mirrors the domain enum."
      },
      "InvoiceProjectionContract": {
        "required": [
          "externalInvoiceId",
          "invoiceNumber",
          "status",
          "currencyCode",
          "amountDueMinorUnits",
          "amountPaidMinorUnits",
          "issuedAtUtc"
        ],
        "type": "object",
        "properties": {
          "externalInvoiceId": {
            "type": "string"
          },
          "invoiceNumber": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/InvoiceProjectionStatusContract"
          },
          "currencyCode": {
            "type": "string"
          },
          "amountDueMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "amountPaidMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "InvoiceProjectionStatusContract": {
        "type": "integer"
      },
      "IssueApiCredentialResponse": {
        "required": [
          "id",
          "name",
          "clientId",
          "secret",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "secret": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Response contract returned when a credential is issued (PRXSAAS-BE-0097). The\r\nplaintext secret is returned exactly once and must be surfaced to the caller\r\nhere; it is never stored or returned again."
      },
      "IssueDeviceEntitlementLicenseRequest": {
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "description": "Stable device identifier the license is issued for."
          },
          "seatReservationId": {
            "type": "string",
            "description": "Identifier of the verified seat reservation that entitles the device.\r\nA license cannot be issued without a non-empty reservation reference.",
            "format": "uuid"
          },
          "signingKeyId": {
            "type": "string",
            "description": "Identifier of the tenant-owned signing key (`kid` owner) used to sign\r\nthe license. The server rejects keys that are not active for the tenant.",
            "format": "uuid"
          },
          "expiresUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional UTC expiry for the issued license. When omitted the server applies\r\nthe entitlement window derived from the verified billing state.",
            "format": "date-time"
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional idempotency key for legitimate issue retries."
          },
          "credentialHash": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional normalized credential hash used only for abuse controls."
          },
          "ipAddressHash": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional normalized IP hash used only for abuse controls."
          },
          "deviceRiskSignals": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Privacy-safe device compromise/attestation signal count.",
            "format": "int32"
          }
        },
        "description": "Request to issue a signed device entitlement license. The tenant is supplied\r\nby the ambient authorization context, not by this payload. The seat\r\nreservation and signing key references are server-validated identifiers: the\r\nlicense is only ever issued from a verified, tenant-owned billing/seat state\r\nand signed with a tenant-owned active key."
      },
      "IssueDeviceEntitlementLicenseResponse": {
        "type": "object",
        "properties": {
          "licenseId": {
            "type": "string",
            "description": "Server-assigned license identifier."
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns the license."
          },
          "deviceId": {
            "type": "string",
            "description": "Device the license was issued for."
          },
          "seatReservationId": {
            "type": "string",
            "description": "Reservation that entitled the device."
          },
          "signingKeyId": {
            "type": "string",
            "description": "Signing key identifier that produced the signature."
          },
          "licenseSerialNumber": {
            "type": "string",
            "description": "Human-readable, tenant-unique license serial number."
          },
          "status": {
            "description": "Current license status.",
            "$ref": "#/components/schemas/DeviceEntitlementLicenseStatus"
          },
          "issuedUtc": {
            "type": "string",
            "description": "UTC instant the license was issued.",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": "string",
            "description": "UTC instant the license expires.",
            "format": "date-time"
          },
          "signedLicenseToken": {
            "type": "string",
            "description": "The signed license JWT presented to the device at activation."
          }
        },
        "description": "Response returned after a device entitlement license is issued."
      },
      "IssuedPlaygroundTokenResponse": {
        "required": [
          "id",
          "sandboxCredentialId",
          "token",
          "tokenPrefix",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sandboxCredentialId": {
            "type": "string",
            "format": "uuid"
          },
          "token": {
            "type": "string"
          },
          "tokenPrefix": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract returned exactly once at token issuance. Carries the full\r\nplaintext token. The token is never persisted; only its digest and a\r\nnon-secret prefix are stored."
      },
      "IssuedSandboxCredentialResponse": {
        "required": [
          "id",
          "displayName",
          "clientId",
          "secret",
          "secretPrefix",
          "rateLimitPerMinute",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "secret": {
            "type": "string"
          },
          "secretPrefix": {
            "type": "string"
          },
          "rateLimitPerMinute": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract returned exactly once at credential issuance. Carries the\r\nfull plaintext secret. The secret is never persisted by the domain; only its\r\ndigest and a non-secret prefix are stored, so this value can only be observed\r\nat creation time."
      },
      "IssuedSdkApiCredentialResponse": {
        "required": [
          "id",
          "clientId",
          "secret",
          "secretPrefix",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "clientId": {
            "type": "string"
          },
          "secret": {
            "type": "string"
          },
          "secretPrefix": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "previousSecretExpiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Response contract returned exactly once at creation or rotation. Carries the\r\nfull plaintext secret. Only the digest and a non-secret prefix are stored, so\r\nthis value can never be observed again afterwards."
      },
      "IssueEnrollmentTokenRequest": {
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "description": "Associated device identifier for validation context."
          },
          "expiresInMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Optional token lifetime. Defaults to 24 hours when omitted.",
            "format": "int32"
          }
        },
        "description": "Request to issue a single-use enrollment token for a known device identifier."
      },
      "IssueEnrollmentTokenResponse": {
        "type": "object",
        "properties": {
          "tokenValue": {
            "type": "string",
            "description": "Plaintext token value. This is never stored by the service and must be shown only once."
          },
          "token": {
            "description": "Stored token metadata.",
            "$ref": "#/components/schemas/EnrollmentTokenContract"
          }
        },
        "description": "Response from issuing an enrollment token. The plaintext token is returned once."
      },
      "IssuePlaygroundTokenRequest": {
        "required": [
          "scopes"
        ],
        "type": "object",
        "properties": {
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Request contract to issue a delegated playground token against a sandbox\r\ncredential (PRXSAAS-BE-0226). The tenant and credential ownership are resolved\r\nserver-side from claims and the credential id; the contract only carries the\r\ndesired delegated scopes and an optional short lifetime."
      },
      "JsonObject": {
        "type": "object"
      },
      "JwksResponse": {
        "required": [
          "keys"
        ],
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JsonObject"
            }
          }
        },
        "description": "JWKS (JSON Web Key Set) response."
      },
      "LeadStatusContract": {
        "type": "integer",
        "description": "Lifecycle state of a lead as exposed on the contract (PRXSAAS-BE-0018)."
      },
      "LeadSummaryContract": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Lead identifier.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Owning tenant."
          },
          "topic": {
            "description": "Originating surface of the submission.",
            "$ref": "#/components/schemas/LeadTopicContract"
          },
          "status": {
            "description": "Current lifecycle status.",
            "$ref": "#/components/schemas/LeadStatusContract"
          },
          "email": {
            "type": "string",
            "description": "Contact email address."
          },
          "company": {
            "type": [
              "null",
              "string"
            ],
            "description": "Contact company, when supplied."
          },
          "sourcePage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Source page URL, when supplied."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the lead was created.",
            "format": "date-time"
          }
        },
        "description": "Summary projection of a captured lead (PRXSAAS-BE-0018)."
      },
      "LeadTopicContract": {
        "type": "integer",
        "description": "Originating surface of a lead on the marketing site (PRXSAAS-BE-0018)."
      },
      "LicenseContract": {
        "type": "object",
        "properties": {
          "licenseId": {
            "type": "string",
            "description": "Unique identifier for the license."
          },
          "issuer": {
            "type": "string",
            "description": "The issuer of the license (e.g., vendor identifier)."
          },
          "tenantId": {
            "type": "string",
            "description": "The intended recipient/tenant of the license."
          },
          "issuedUtc": {
            "type": "string",
            "description": "When the license was issued (UTC).",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": "string",
            "description": "When the license expires (UTC).",
            "format": "date-time"
          },
          "signingAlgorithm": {
            "type": "string",
            "description": "The algorithm used to sign the license (e.g., RS256)."
          },
          "keyId": {
            "type": "string",
            "description": "The key ID of the signing key, as referenced in JWKS."
          },
          "claims": {
            "type": "object",
            "description": "Claims about the device entitlements."
          },
          "jwksUri": {
            "type": "string",
            "description": "JWKS URI for public key verification."
          },
          "contractVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Version of this license contract for compatibility tracking.",
            "format": "int32"
          },
          "planKey": {
            "type": "string",
            "description": "The commercial plan key from the tenant's commercial snapshot."
          },
          "isTrial": {
            "type": "boolean",
            "description": "Whether the tenant is currently represented by a trial entitlement."
          },
          "featureGrants": {
            "type": "string",
            "description": "Stable serialized feature grant vocabulary."
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Monotonic revision incremented whenever access-affecting state changes.",
            "format": "int64"
          },
          "effectiveFromUtc": {
            "type": "string",
            "description": "Inclusive instant from which this projection is effective.",
            "format": "date-time"
          },
          "effectiveToUtc": {
            "type": "string",
            "description": "Exclusive instant after which this projection must be recomputed.",
            "format": "date-time"
          }
        },
        "description": "Represents a signed license contract for a device.\r\nThis contract is authored by the backend and signed with the vendor's private key.\r\nClients must verify the signature using the public key from JWKS."
      },
      "LicenseValidationResult": {
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean",
            "description": "Whether the license is valid."
          },
          "errorCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Error code when invalid."
          },
          "errorMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable error message."
          },
          "failedClaims": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "Claims that failed validation."
          }
        },
        "description": "Result of license validation."
      },
      "LifecycleNotificationResponse": {
        "type": "object",
        "properties": {
          "notificationId": {
            "type": "string"
          },
          "tenantId": {
            "type": "string"
          },
          "eventType": {
            "$ref": "#/components/schemas/NotificationEventTypeContract"
          },
          "channel": {
            "$ref": "#/components/schemas/NotificationChannelContract"
          },
          "recipient": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/LifecycleNotificationStatusContract"
          },
          "correlationId": {
            "type": "string"
          },
          "attempts": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "lastAttemptedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "failureReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "LifecycleNotificationStatusContract": {
        "type": "integer"
      },
      "LinkBillingCustomerRequest": {
        "type": "object",
        "properties": {
          "providerKey": {
            "type": "string",
            "description": "Registered provider key the link belongs to, for example \"provider_key\"."
          },
          "externalCustomerId": {
            "type": "string",
            "description": "Stable customer identifier issued by the billing provider."
          },
          "externalDefaultPaymentMethodId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Provider-issued reusable payment method reference, when known."
          },
          "requiresCustomerAction": {
            "type": "boolean",
            "description": "True when this provider/customer profile cannot charge again without customer action."
          },
          "customerActionReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Provider-neutral reason shown to operators; never contains card data."
          }
        },
        "description": "Request to link the calling tenant to a billing-provider customer\r\n(PRXSAAS-BE-0062). The tenant is never carried in the body: it is derived from\r\nthe authenticated claims by the API layer, so a caller cannot link a customer\r\non behalf of another tenant. No provider SDK type is referenced."
      },
      "LinkExternalCaseRequest": {
        "required": [
          "provider",
          "reference"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          }
        },
        "description": "Request to link an external compliance-provider case reference."
      },
      "LocalizationConfigurationContract": {
        "type": "object",
        "properties": {
          "locales": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportedLocaleContract"
            },
            "description": "Locales the platform actively supports."
          },
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportedCurrencyContract"
            },
            "description": "Currencies the platform actively supports."
          },
          "timeZones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportedTimeZoneContract"
            },
            "description": "Timezones the platform actively supports."
          },
          "defaultLocale": {
            "type": "string",
            "description": "Platform-default BCP 47 locale."
          },
          "defaultCurrency": {
            "type": "string",
            "description": "Platform-default ISO 4217 currency."
          },
          "defaultTimeZone": {
            "type": "string",
            "description": "Platform-default IANA timezone."
          }
        },
        "description": "The full, cacheable locale/currency/timezone configuration published to\r\nclients (PRXSAAS-BE-0235). Defaults reflect the platform baseline; a tenant\r\noverrides them through its own persisted settings."
      },
      "LocalizationKind": {
        "type": "integer",
        "description": "Kind of localization value being validated (PRXSAAS-BE-0235)."
      },
      "LocalizationValidationContract": {
        "type": "object",
        "properties": {
          "kind": {
            "description": "The kind of value that was validated.",
            "$ref": "#/components/schemas/LocalizationKind"
          },
          "value": {
            "type": "string",
            "description": "The original value supplied by the caller."
          },
          "isValid": {
            "type": "boolean",
            "description": "True when the value is valid and supported."
          },
          "normalizedValue": {
            "type": [
              "null",
              "string"
            ],
            "description": "Canonical, normalized form of the value when valid."
          },
          "errorCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable ProblemDetails code when invalid."
          },
          "errorMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Non-sensitive human-readable message when invalid."
          }
        },
        "description": "Result of validating a single localization value (PRXSAAS-BE-0235)."
      },
      "LocalizationValidationRequestContract": {
        "type": "object",
        "properties": {
          "kind": {
            "description": "The kind of value to validate.",
            "$ref": "#/components/schemas/LocalizationKind"
          },
          "value": {
            "type": "string",
            "description": "The raw value to validate, e.g. \"en-US\", \"USD\", \"Europe/London\"."
          }
        },
        "description": "Request to validate one localization value (PRXSAAS-BE-0235)."
      },
      "LoginRequest": {
        "required": [
          "login",
          "password"
        ],
        "type": "object",
        "properties": {
          "login": {
            "type": "string",
            "description": "Login identifier."
          },
          "password": {
            "type": "string",
            "description": "Plain credential, verified against the stored hash and never persisted or logged."
          }
        },
        "description": "PRXSAAS-BE-0023. Request to authenticate with a login and password."
      },
      "LoginResponse": {
        "required": [
          "user",
          "tokens"
        ],
        "type": "object",
        "properties": {
          "user": {
            "description": "The authenticated user.",
            "$ref": "#/components/schemas/UserResponse"
          },
          "tokens": {
            "description": "The issued session credentials.",
            "$ref": "#/components/schemas/AuthenticationTokensResponse"
          }
        },
        "description": "PRXSAAS-BE-0023. Result of a successful login."
      },
      "LotReceiptEvidence": {
        "required": [
          "productSku",
          "lotNumber",
          "receiptReference"
        ],
        "type": "object",
        "properties": {
          "productSku": {
            "type": [
              "null",
              "string"
            ]
          },
          "lotNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "receiptReference": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Tenant receipt/lot evidence used for correlation. Sensitive identifiers\r\n(lot numbers, receipt references) must be provided as masked/hashed where\r\nthe caller already has them in that form; the boundary does not require raw\r\nsensitive values."
      },
      "MaintenanceWindowStateContract": {
        "type": "integer",
        "description": "Lifecycle state of a maintenance window, mirrored from the domain (PRXSAAS-BE-0248)."
      },
      "MatrixScanAnalytics": {
        "required": [
          "acceptedBarcodes",
          "framesProcessed",
          "duplicateObservations",
          "usageEventCount",
          "unsupportedUsageEvents",
          "isTruncated",
          "daily",
          "symbologies",
          "modes",
          "devices"
        ],
        "type": "object",
        "properties": {
          "acceptedBarcodes": {
            "type": "string"
          },
          "framesProcessed": {
            "type": "string"
          },
          "duplicateObservations": {
            "type": "string"
          },
          "usageEventCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unsupportedUsageEvents": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "isTruncated": {
            "type": "boolean"
          },
          "daily": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MatrixScanAnalyticsBucket"
            }
          },
          "symbologies": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "modes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MatrixScanDeviceAnalytics"
            }
          }
        },
        "description": "Native acceptance totals, not billing usage or unique product identities.\r\nUTC chart buckets use summary reporting time, not individual scan time.\r\nIsTruncated means all counters are lower bounds over the retained subset.\r\nUnsupportedUsageEvents are excluded, never inferred as one scan per event."
      },
      "MatrixScanAnalyticsBucket": {
        "required": [
          "dayUtc",
          "acceptedBarcodes",
          "cumulativeAcceptedBarcodes",
          "devicesSeen"
        ],
        "type": "object",
        "properties": {
          "dayUtc": {
            "type": "string",
            "format": "date-time"
          },
          "acceptedBarcodes": {
            "type": "string"
          },
          "cumulativeAcceptedBarcodes": {
            "type": "string"
          },
          "devicesSeen": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Exact decimal counters; strings avoid JavaScript int64 precision loss."
      },
      "MatrixScanDeviceAnalytics": {
        "required": [
          "deviceId",
          "acceptedBarcodes",
          "framesProcessed",
          "daysActive"
        ],
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "format": "uuid"
          },
          "acceptedBarcodes": {
            "type": "string"
          },
          "framesProcessed": {
            "type": "string"
          },
          "daysActive": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Customer-safe native usage for one registered device."
      },
      "MembershipContract": {
        "required": [
          "id",
          "tenantId",
          "userId",
          "roleKey",
          "status",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the membership.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns the membership."
          },
          "userId": {
            "type": "string",
            "description": "External user identifier."
          },
          "roleKey": {
            "type": "string",
            "description": "Role key granted by the membership."
          },
          "status": {
            "description": "Lifecycle status.",
            "$ref": "#/components/schemas/MembershipStatusContract"
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the membership was created.",
            "format": "date-time"
          },
          "displayName": {
            "type": [
              "null",
              "string"
            ],
            "description": "User display name if resolved (BUG-040)."
          },
          "email": {
            "type": [
              "null",
              "string"
            ],
            "description": "User email address if resolved (BUG-040)."
          }
        },
        "description": "Public representation of a membership (PRXSAAS-BE-0040)."
      },
      "MembershipListResponse": {
        "required": [
          "memberships"
        ],
        "type": "object",
        "properties": {
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MembershipContract"
            },
            "description": "The memberships visible to the caller's tenant."
          }
        },
        "description": "Page of memberships belonging to the caller's tenant (PRXSAAS-BE-0041)."
      },
      "MembershipStatusContract": {
        "type": "integer",
        "description": "Lifecycle status of a membership (PRXSAAS-BE-0040). Mirrors the domain enum."
      },
      "MfaEnrollmentResponse": {
        "required": [
          "id",
          "userId",
          "method",
          "status",
          "label",
          "isUsable",
          "isLockedOut",
          "createdAtUtc",
          "confirmedAtUtc",
          "lastVerifiedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable enrolment identifier.",
            "format": "uuid"
          },
          "userId": {
            "type": "string",
            "description": "Owning user.",
            "format": "uuid"
          },
          "method": {
            "description": "Mechanism enrolled.",
            "$ref": "#/components/schemas/MfaMethodContract"
          },
          "status": {
            "description": "Lifecycle state.",
            "$ref": "#/components/schemas/MfaEnrollmentStatusContract"
          },
          "label": {
            "type": [
              "null",
              "string"
            ],
            "description": "User-facing label, when one was supplied."
          },
          "isUsable": {
            "type": "boolean",
            "description": "Whether the factor currently satisfies an MFA requirement."
          },
          "isLockedOut": {
            "type": "boolean",
            "description": "Whether consecutive failures have locked the factor out."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "Creation instant, UTC.",
            "format": "date-time"
          },
          "confirmedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Instant possession was proved, UTC, when it has been.",
            "format": "date-time"
          },
          "lastVerifiedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Instant of the last successful verification, UTC.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0028. Public representation of a second-factor enrolment."
      },
      "MfaEnrollmentStatusContract": {
        "type": "integer",
        "description": "PRXSAAS-BE-0028. Lifecycle state of a second-factor enrolment on the wire."
      },
      "MfaMethodContract": {
        "type": "integer",
        "description": "PRXSAAS-BE-0028. Second-factor mechanism as exposed on the wire."
      },
      "MfaReadinessResponse": {
        "required": [
          "isMfaRequired",
          "isMfaSatisfied",
          "enrollments"
        ],
        "type": "object",
        "properties": {
          "isMfaRequired": {
            "type": "boolean",
            "description": "Whether policy demands a second factor."
          },
          "isMfaSatisfied": {
            "type": "boolean",
            "description": "Whether the user has at least one usable factor."
          },
          "enrollments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MfaEnrollmentResponse"
            },
            "description": "The user's enrolments."
          }
        },
        "description": "PRXSAAS-BE-0028. Effective second-factor requirement for a user."
      },
      "MitigationStatus": {
        "type": "integer",
        "description": "Lifecycle state of one mitigation backlog item (PRXSAAS-BE-0145)."
      },
      "NotificationChannelContract": {
        "type": "integer"
      },
      "NotificationDigestFrequencyContract": {
        "type": "integer"
      },
      "NotificationEventTypeContract": {
        "type": "integer"
      },
      "NotificationPreferenceResponse": {
        "type": "object",
        "properties": {
          "preferenceId": {
            "type": "string"
          },
          "tenantId": {
            "type": "string"
          },
          "userId": {
            "type": [
              "null",
              "string"
            ]
          },
          "eventType": {
            "$ref": "#/components/schemas/NotificationEventTypeContract"
          },
          "channel": {
            "$ref": "#/components/schemas/NotificationChannelContract"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "digestFrequency": {
            "$ref": "#/components/schemas/NotificationDigestFrequencyContract"
          },
          "isTenantDefault": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "NotificationTemplateResponse": {
        "type": "object",
        "properties": {
          "templateId": {
            "type": "string"
          },
          "tenantId": {
            "type": "string"
          },
          "eventType": {
            "$ref": "#/components/schemas/NotificationEventTypeContract"
          },
          "channel": {
            "$ref": "#/components/schemas/NotificationChannelContract"
          },
          "locale": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "bodyTemplate": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/NotificationTemplateStatusContract"
          },
          "version": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "publishedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "archivedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "revisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotificationTemplateRevisionContract"
            }
          }
        }
      },
      "NotificationTemplateRevisionContract": {
        "type": "object",
        "properties": {
          "revisionId": {
            "type": "string"
          },
          "version": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "subject": {
            "type": "string"
          },
          "bodyTemplate": {
            "type": "string"
          },
          "capturedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "NotificationTemplateStatusContract": {
        "type": "integer"
      },
      "OnboardingMilestoneContract": {
        "required": [
          "key",
          "name",
          "description",
          "stepOrder",
          "isActive",
          "createdUtc",
          "modifiedUtc"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Gets the milestone key."
          },
          "name": {
            "type": "string",
            "description": "Gets the milestone name."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Gets the milestone description."
          },
          "stepOrder": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Gets the step order.",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean",
            "description": "Gets whether the milestone is active."
          },
          "createdUtc": {
            "type": "string",
            "description": "Gets the creation timestamp (UTC).",
            "format": "date-time"
          },
          "modifiedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Gets the modification timestamp (UTC).",
            "format": "date-time"
          }
        },
        "description": "Contract for an onboarding milestone (PRXSAAS-BE-0222)."
      },
      "OnboardingWizardContract": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable identifier of the wizard session.",
            "format": "uuid"
          },
          "currentStepKey": {
            "type": "string",
            "description": "Key of the current step."
          },
          "currentStepIndex": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "1-based ordinal of the current step.",
            "format": "int32"
          },
          "totalSteps": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Total number of steps in the wizard.",
            "format": "int32"
          },
          "isCompleted": {
            "type": "boolean",
            "description": "Whether the wizard has been completed."
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the session was last updated.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0100. Provider-neutral snapshot of an onboarding wizard session.\r\nDeliberately excludes the EF entity, its rowversion, and any tenant identity\r\nbeyond what the caller is authorized to see."
      },
      "OnboardTenantRequest": {
        "required": [
          "tenant"
        ],
        "type": "object",
        "properties": {
          "tenant": {
            "description": "Tenant to create or return if already created.",
            "$ref": "#/components/schemas/CreateTenantRequest"
          },
          "initialSite": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Optional first site to create for the onboarded tenant.",
                "$ref": "#/components/schemas/CreateSiteRequest"
              }
            ]
          }
        },
        "description": "Request to onboard a tenant and, optionally, its first operational site\r\n(PRXSAAS-BE-0035)."
      },
      "OnboardTenantResponse": {
        "required": [
          "tenant"
        ],
        "type": "object",
        "properties": {
          "tenant": {
            "description": "The onboarded tenant.",
            "$ref": "#/components/schemas/TenantContract"
          },
          "initialSite": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The initial site, when requested or already present.",
                "$ref": "#/components/schemas/SiteContract"
              }
            ]
          }
        },
        "description": "Response from the idempotent tenant onboarding transaction\r\n(PRXSAAS-BE-0035)."
      },
      "OpenPharmaExceptionRequest": {
        "required": [
          "title",
          "description",
          "exceptionType",
          "serialNumber",
          "lotNumber",
          "productSku",
          "assignedTo"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "exceptionType": {
            "$ref": "#/components/schemas/PharmaExceptionTypeDto"
          },
          "serialNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "lotNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "productSku": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request to open a pharmaceutical exception case. Raw sensitive identifiers are\r\naccepted at the boundary, hashed and masked server-side, and never persisted\r\nor echoed back in clear text."
      },
      "PagedResultOfBenchmarkDto": {
        "required": [
          "items",
          "totalCount",
          "pageNumber",
          "pageSize"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenchmarkDto"
            }
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalPages": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "hasPreviousPage": {
            "type": "boolean"
          }
        },
        "description": "Server-paged result envelope (PRXSAAS-BE-0008). TotalPages / HasNextPage /\r\nHasPreviousPage are derived so callers render stable pagination without re-querying."
      },
      "PagedResultOfBenchmarkPublicSnapshotDto": {
        "required": [
          "items",
          "totalCount",
          "pageNumber",
          "pageSize"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenchmarkPublicSnapshotDto"
            }
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalPages": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "hasPreviousPage": {
            "type": "boolean"
          }
        },
        "description": "Server-paged result envelope (PRXSAAS-BE-0008). TotalPages / HasNextPage /\r\nHasPreviousPage are derived so callers render stable pagination without re-querying."
      },
      "PasswordResetConfirmRequest": {
        "required": [
          "userId",
          "token",
          "newPassword"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "description": "Account the token was issued to.",
            "format": "uuid"
          },
          "token": {
            "type": "string",
            "description": "The raw token delivered out-of-band; compared by hash and never persisted in plain form."
          },
          "newPassword": {
            "type": "string",
            "description": "New plain credential. Hashed by the application layer and never persisted or logged."
          }
        },
        "description": "Request to redeem a password-reset token and replace the account password."
      },
      "PasswordResetConfirmResponse": {
        "required": [
          "user"
        ],
        "type": "object",
        "properties": {
          "user": {
            "description": "Account whose password was reset.",
            "$ref": "#/components/schemas/UserResponse"
          }
        },
        "description": "Response returned after the password has been replaced."
      },
      "PasswordResetRequest": {
        "required": [
          "login"
        ],
        "type": "object",
        "properties": {
          "login": {
            "type": "string",
            "description": "Login identifier (e-mail address)."
          }
        },
        "description": "Request to send a password-reset link to the account login address."
      },
      "PasswordResetRequestResponse": {
        "required": [
          "accountExists",
          "resetLinkSent",
          "emailDeliveryDeferred",
          "expiresInMinutes"
        ],
        "type": "object",
        "properties": {
          "accountExists": {
            "type": "boolean",
            "description": "Whether an active account matched the supplied login in the resolved tenant."
          },
          "resetLinkSent": {
            "type": "boolean",
            "description": "Whether an e-mail reset link was sent."
          },
          "emailDeliveryDeferred": {
            "type": "boolean",
            "description": "Whether delivery is unavailable or deferred by the configured sender."
          },
          "expiresInMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Lifetime of a reset link when one is issued.",
            "format": "int32"
          }
        },
        "description": "Response for a password-reset request."
      },
      "PermissionContract": {
        "required": [
          "id",
          "key",
          "description",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the permission.",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "description": "Unique permission key within the tenant (e.g., \"users:read\", \"sites:write\").\r\nFormat: resource:action where resource and action are lowercase alphanumeric with hyphens."
          },
          "description": {
            "type": "string",
            "description": "Human-readable description of what this permission allows."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the permission was created.",
            "format": "date-time"
          }
        },
        "description": "Public representation of a permission (PRXSAAS-BE-0037).\r\nMirrors the Domain Permission entity; kept dependency-free so public OpenAPI\r\ncontracts never expose EF/Domain types."
      },
      "PermissionGuardResponse": {
        "required": [
          "roleKey",
          "permissionKey",
          "allowed"
        ],
        "type": "object",
        "properties": {
          "roleKey": {
            "type": "string",
            "description": "The role key that was checked."
          },
          "permissionKey": {
            "type": "string",
            "description": "The permission key that was checked."
          },
          "allowed": {
            "type": "boolean",
            "description": "Whether the role grants the permission inside this tenant."
          }
        },
        "description": "Response returned by permission guard checks."
      },
      "PermissionListResponse": {
        "required": [
          "permissions"
        ],
        "type": "object",
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionContract"
            },
            "description": "Permissions visible to the authenticated tenant."
          }
        },
        "description": "List response for tenant-scoped permissions."
      },
      "PharmaExceptionAuditEntryDto": {
        "required": [
          "action",
          "performedBy",
          "detail",
          "occurredAtUtc",
          "contractVersion"
        ],
        "type": "object",
        "properties": {
          "action": {
            "type": "string"
          },
          "performedBy": {
            "type": [
              "null",
              "string"
            ]
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "occurredAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "contractVersion": {
            "type": "string"
          }
        },
        "description": "Public, exportable audit entry for a case."
      },
      "PharmaExceptionResponse": {
        "required": [
          "id",
          "tenantId",
          "exceptionKey",
          "exceptionType",
          "status",
          "title",
          "description",
          "serialNumber",
          "lotNumber",
          "productSku",
          "externalCaseProvider",
          "externalCaseReference",
          "assignedTo",
          "openedAtUtc",
          "resolvedAtUtc",
          "closedAtUtc",
          "resolutionRole",
          "resolutionReason",
          "resolvedById",
          "createdAtUtc",
          "updatedAtUtc",
          "contractVersion",
          "auditTrail"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "exceptionKey": {
            "type": "string"
          },
          "exceptionType": {
            "$ref": "#/components/schemas/PharmaExceptionTypeDto"
          },
          "status": {
            "$ref": "#/components/schemas/PharmaExceptionStatusDto"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "serialNumber": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PharmaExceptionSensitiveIdentifierDto"
              }
            ]
          },
          "lotNumber": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PharmaExceptionSensitiveIdentifierDto"
              }
            ]
          },
          "productSku": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalCaseProvider": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalCaseReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "openedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "resolvedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "closedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "resolutionRole": {
            "type": [
              "null",
              "string"
            ]
          },
          "resolutionReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "resolvedById": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "contractVersion": {
            "type": "string"
          },
          "auditTrail": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PharmaExceptionAuditEntryDto"
            }
          }
        },
        "description": "Response contract for a pharmaceutical exception case. Plain data only — never\r\nan EF entity — so the OpenAPI surface stays stable and provider-neutral.\r\nSensitive identifiers appear only as masked + hashed values."
      },
      "PharmaExceptionSensitiveIdentifierDto": {
        "required": [
          "masked",
          "hash",
          "algorithm"
        ],
        "type": "object",
        "properties": {
          "masked": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "algorithm": {
            "type": "string"
          }
        },
        "description": "Privacy-safe projection of a sensitive identifier. The raw value is never\r\npresent; only a display mask and a stable hash travel across the contract."
      },
      "PharmaExceptionStatusDto": {
        "type": "integer"
      },
      "PharmaExceptionTypeDto": {
        "type": "integer",
        "description": "Public pharmaceutical exception type (PRXSAAS-BE-0232). Mirrors the Domain\r\nenum; dependency-free so the OpenAPI surface never exposes EF/Domain types."
      },
      "PlanBillingIntervalContract": {
        "type": "integer",
        "description": "Billing interval a plan price is charged on (PRXSAAS-BE-0046)."
      },
      "PlanCatalogResponse": {
        "required": [
          "plans"
        ],
        "type": "object",
        "properties": {
          "plans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanContract"
            },
            "description": "Plans visible to the requesting tenant, ordered by plan key."
          }
        },
        "description": "Response contract carrying a plan catalogue page (PRXSAAS-BE-0046)."
      },
      "PlanCatalogSyncContract": {
        "required": [
          "planKey",
          "externalCatalogId",
          "prices"
        ],
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Local plan key."
          },
          "externalCatalogId": {
            "type": "string",
            "description": "External provider-neutral catalog/product identifier."
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanPriceSyncContract"
            },
            "description": "Mapped prices, ordered deterministically."
          }
        },
        "description": "Durable synchronization state for one local plan catalog entry."
      },
      "PlanCheckoutContract": {
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string"
          },
          "interval": {
            "$ref": "#/components/schemas/BillingInterval"
          },
          "providerKey": {
            "type": "string"
          },
          "sessionReference": {
            "type": "string"
          },
          "checkoutUrl": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Hosted checkout session for a non-device plan."
      },
      "PlanContract": {
        "required": [
          "planKey",
          "name",
          "status",
          "prices",
          "features"
        ],
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Stable, tenant-unique plan key."
          },
          "name": {
            "type": "string",
            "description": "Human-readable plan name."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional description."
          },
          "status": {
            "description": "Lifecycle state of the plan.",
            "$ref": "#/components/schemas/PlanStatusContract"
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanPriceContract"
            },
            "description": "Configured prices, ordered deterministically by interval then currency."
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanFeatureContract"
            },
            "description": "Granted features, ordered deterministically by feature key."
          }
        },
        "description": "Public-safe projection of a catalog plan (PRXSAAS-BE-0046)."
      },
      "PlanFeatureContract": {
        "required": [
          "featureKey",
          "isEnabled"
        ],
        "type": "object",
        "properties": {
          "featureKey": {
            "type": "string",
            "description": "Lowercase dotted feature key (e.g. `scanning.devices`)."
          },
          "isEnabled": {
            "type": "boolean",
            "description": "Whether the feature is enabled for the plan."
          },
          "limit": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Optional quota; `null` means unlimited.",
            "format": "int32"
          }
        },
        "description": "One feature granted by a plan (PRXSAAS-BE-0046)."
      },
      "PlanPriceContract": {
        "required": [
          "interval",
          "currencyCode",
          "amountMinorUnits"
        ],
        "type": "object",
        "properties": {
          "interval": {
            "description": "Billing interval this amount is charged on.",
            "$ref": "#/components/schemas/PlanBillingIntervalContract"
          },
          "currencyCode": {
            "type": "string",
            "description": "ISO-4217 alphabetic currency code (e.g. `USD`)."
          },
          "amountMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Amount in integral minor units of string PlanPriceContract.CurrencyCode.",
            "format": "int64"
          }
        },
        "description": "One configurable price on a plan (PRXSAAS-BE-0046)."
      },
      "PlanPriceSyncContract": {
        "required": [
          "interval",
          "currencyCode",
          "amountMinorUnits",
          "externalPriceId"
        ],
        "type": "object",
        "properties": {
          "interval": {
            "description": "Mapped local billing interval.",
            "$ref": "#/components/schemas/PlanBillingIntervalContract"
          },
          "currencyCode": {
            "type": "string",
            "description": "Mapped local currency."
          },
          "amountMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Mapped local amount in minor units.",
            "format": "int64"
          },
          "externalPriceId": {
            "type": "string",
            "description": "External provider-neutral price identifier."
          }
        },
        "description": "One durable local-price to external-price mapping."
      },
      "PlanStatusContract": {
        "type": "integer",
        "description": "Lifecycle state of a catalog plan (PRXSAAS-BE-0046). Mirrors the Domain enum;\r\nkept dependency-free so public OpenAPI contracts never expose EF/Domain types."
      },
      "PlaygroundTokenResponse": {
        "required": [
          "id",
          "sandboxCredentialId",
          "tokenPrefix",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc",
          "revokedAtUtc",
          "lastUsedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sandboxCredentialId": {
            "type": "string",
            "format": "uuid"
          },
          "tokenPrefix": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "revokedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastUsedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Response contract describing a playground token without its secret\r\n(PRXSAAS-BE-0226). Safe to return on read/list surfaces."
      },
      "PortalBannerContract": {
        "type": "object",
        "properties": {
          "bannerId": {
            "type": "string",
            "description": "Surrogate identifier of the banner.",
            "format": "uuid"
          },
          "message": {
            "type": "string",
            "description": "Banner message shown to users."
          },
          "severity": {
            "description": "Visual severity.",
            "$ref": "#/components/schemas/PortalBannerSeverityContract"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the banner is currently active."
          },
          "startsUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional visibility start instant.",
            "format": "date-time"
          },
          "endsUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional visibility end instant.",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "description": "UTC instant the banner was created.",
            "format": "date-time"
          },
          "createdBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional identity that created the banner."
          }
        },
        "description": "Read-only projection of a portal banner."
      },
      "PortalBannerSeverityContract": {
        "type": "integer",
        "description": "Visual severity of a portal banner, mirrored from the domain."
      },
      "PostServiceIncidentUpdateRequest": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Update message."
          },
          "state": {
            "description": "State the incident is in after this update.",
            "$ref": "#/components/schemas/ServiceIncidentStateContract"
          },
          "postedBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional identity that posted the update."
          }
        },
        "description": "Request to post a timeline update on an existing incident."
      },
      "PrivacyConsentResponse": {
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Surrogate key.",
            "format": "int32"
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns the consent."
          },
          "subjectIdentifier": {
            "type": "string",
            "description": "Data subject the consent concerns."
          },
          "purpose": {
            "type": "string",
            "description": "Purpose the consent was collected for."
          },
          "lawfulBasis": {
            "type": "string",
            "description": "Lawful basis the consent rests on."
          },
          "isGranted": {
            "type": "boolean",
            "description": "Whether consent is currently granted."
          },
          "grantedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "When consent was granted (UTC), if granted.",
            "format": "date-time"
          },
          "withdrawnAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "When consent was withdrawn (UTC), if withdrawn.",
            "format": "date-time"
          },
          "createdAtUtc": {
            "type": "string",
            "description": "When the consent record was created (UTC).",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "When the consent record was last updated (UTC).",
            "format": "date-time"
          }
        },
        "description": "Response contract for a privacy consent record (PRXSAAS-BE-0157)."
      },
      "PrivacySafeExportConfiguration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this export configuration.",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Human-readable name of the export configuration."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Description of what this export contains."
          },
          "exportableDataTypes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of data types/entities that can be exported."
          },
          "anonymizePersonalData": {
            "type": "boolean",
            "description": "Whether personal identifiers should be removed/anonymized."
          },
          "includeTimestamps": {
            "type": "boolean",
            "description": "Whether to include temporal data (timestamps) in export."
          },
          "maxRecordsPerFile": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Maximum number of records to export in a single file.",
            "format": "int32"
          },
          "allowedFormats": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Allowed export formats (CSV, JSON, etc.)."
          },
          "createdUtc": {
            "type": "string",
            "description": "UTC timestamp when this configuration was created.",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "description": "UTC timestamp when this configuration was last updated.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0103. Contract for privacy-safe export configuration.\r\nDefines what data can be exported and how it should be anonymized/pseudonymized."
      },
      "PrivacySafeExportRequest": {
        "type": "object",
        "properties": {
          "configurationId": {
            "type": "string",
            "description": "ID of the export configuration to use.",
            "format": "uuid"
          },
          "exportFormat": {
            "type": "string",
            "description": "Format for the exported data (CSV, JSON, etc.)."
          },
          "filters": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ExportFilter"
            },
            "description": "Optional filters to apply to the export data."
          },
          "startTime": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC timestamp for export start time (inclusive).",
            "format": "date-time"
          },
          "endTime": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC timestamp for export end time (exclusive).",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0103. Request contract for initiating a privacy-safe export."
      },
      "PrivacySafeExportResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this export job.",
            "format": "uuid"
          },
          "configurationId": {
            "type": "string",
            "description": "ID of the export configuration used.",
            "format": "uuid"
          },
          "exportFormat": {
            "type": "string",
            "description": "Format of the exported data."
          },
          "recordCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of records exported.",
            "format": "int32"
          },
          "initiatedUtc": {
            "type": "string",
            "description": "UTC timestamp when the export was initiated.",
            "format": "date-time"
          },
          "completedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC timestamp when the export completed.",
            "format": "date-time"
          },
          "status": {
            "description": "Status of the export operation.",
            "$ref": "#/components/schemas/ExportStatus"
          },
          "downloadUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Download URL for the exported file (if available and completed)."
          },
          "downloadUrlExpiresUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Expires timestamp for the download URL.",
            "format": "date-time"
          },
          "errorMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Error message if the export failed."
          }
        },
        "description": "PRXSAAS-BE-0103. Response contract for a completed privacy-safe export.\r\nContains metadata about the export but not the actual data (for security)."
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProcurementDocumentCatalogResponse": {
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProcurementDocumentSummaryContract"
            },
            "description": "Approved, effective documents the caller is entitled to see."
          }
        },
        "description": "The tenant's current procurement/security document catalog (PRXSAAS-BE-0223)."
      },
      "ProcurementDocumentDetailContract": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "Document identifier.",
            "format": "uuid"
          },
          "documentType": {
            "description": "Document classification.",
            "$ref": "#/components/schemas/ProcurementDocumentTypeContract"
          },
          "title": {
            "type": "string",
            "description": "Human-readable title."
          },
          "owner": {
            "type": "string",
            "description": "Owning team or owner identity."
          },
          "visibility": {
            "description": "Visibility band.",
            "$ref": "#/components/schemas/DocumentVisibilityContract"
          },
          "approvalStatus": {
            "description": "Approval status.",
            "$ref": "#/components/schemas/DocumentApprovalStatusContract"
          },
          "version": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Current version number.",
            "format": "int32"
          },
          "effectiveFromUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Effective-from instant (null = immediately effective).",
            "format": "date-time"
          },
          "expiryUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Expiry instant, when the document expires.",
            "format": "date-time"
          },
          "checksumSha256": {
            "type": "string",
            "description": "SHA-256 of the current version content."
          },
          "contentType": {
            "type": "string",
            "description": "Content type of the current version."
          },
          "sizeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Size of the current version content in bytes.",
            "format": "int64"
          }
        },
        "description": "A single document's metadata (PRXSAAS-BE-0223). Carries the checksum and\r\nversion but never the binary content; download is a separate audited call."
      },
      "ProcurementDocumentSummaryContract": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "Document identifier.",
            "format": "uuid"
          },
          "documentType": {
            "description": "Document classification.",
            "$ref": "#/components/schemas/ProcurementDocumentTypeContract"
          },
          "title": {
            "type": "string",
            "description": "Human-readable title."
          },
          "owner": {
            "type": "string",
            "description": "Owning team or owner identity."
          },
          "visibility": {
            "description": "Visibility band.",
            "$ref": "#/components/schemas/DocumentVisibilityContract"
          },
          "approvalStatus": {
            "description": "Approval status (always DocumentApprovalStatusContract.Approved on the list).",
            "$ref": "#/components/schemas/DocumentApprovalStatusContract"
          },
          "version": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Current version number.",
            "format": "int32"
          },
          "effectiveFromUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Effective-from instant (null = immediately effective).",
            "format": "date-time"
          },
          "expiryUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Expiry instant, when the document expires.",
            "format": "date-time"
          },
          "checksumSha256": {
            "type": "string",
            "description": "SHA-256 of the current version content."
          },
          "contentType": {
            "type": "string",
            "description": "Content type of the current version."
          },
          "sizeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Size of the current version content in bytes.",
            "format": "int64"
          }
        },
        "description": "A catalog entry as listed in the tenant's current procurement/security\r\ndocument catalog (PRXSAAS-BE-0223). Only approved, effective documents are\r\never projected here, and confidential/restricted entries are gated by the\r\ncaller's entitlements before projection."
      },
      "ProcurementDocumentTypeContract": {
        "type": "integer",
        "description": "Document classification exposed on the public contract (PRXSAAS-BE-0223)."
      },
      "ProductCapabilityFeedItem": {
        "required": [
          "id",
          "tenantId",
          "capabilityKey",
          "title",
          "description",
          "status",
          "channelKey",
          "confidentialDate",
          "linkedArtifactId",
          "releaseNotes",
          "releasedAtUtc",
          "deprecationDate",
          "replacementCapabilityKey",
          "migrationLink",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "capabilityKey": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/CapabilityStatusDto"
          },
          "channelKey": {
            "type": "string"
          },
          "confidentialDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "linkedArtifactId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "releaseNotes": {
            "type": [
              "null",
              "string"
            ]
          },
          "releasedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "deprecationDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "replacementCapabilityKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "migrationLink": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for one capability in the public feed. Plain data only -\r\nnever an EF entity - so the OpenAPI surface stays stable and provider-neutral.\r\nThe confidential date is intentionally absent unless the caller is authorized."
      },
      "ProductFeedResponse": {
        "required": [
          "channelKey",
          "items",
          "generatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "channelKey": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductCapabilityFeedItem"
            }
          },
          "generatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for the versioned, cacheable product feed."
      },
      "ProjectBillingStateRequest": {
        "required": [
          "externalSubscriptionId",
          "planKey",
          "subscriptionStatus",
          "currentPeriodStartUtc",
          "currentPeriodEndUtc",
          "externalInvoiceId",
          "invoiceNumber",
          "invoiceStatus",
          "currencyCode",
          "amountDueMinorUnits",
          "amountPaidMinorUnits",
          "issuedAtUtc"
        ],
        "type": "object",
        "properties": {
          "externalSubscriptionId": {
            "type": "string"
          },
          "planKey": {
            "type": "string"
          },
          "subscriptionStatus": {
            "$ref": "#/components/schemas/SubscriptionProjectionStatusContract"
          },
          "currentPeriodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "currentPeriodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "externalInvoiceId": {
            "type": "string"
          },
          "invoiceNumber": {
            "type": "string"
          },
          "invoiceStatus": {
            "$ref": "#/components/schemas/InvoiceProjectionStatusContract"
          },
          "currencyCode": {
            "type": "string"
          },
          "amountDueMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "amountPaidMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ProrationBehaviorContract": {
        "enum": [
          "CreateProrations",
          "AlwaysInvoice",
          "None"
        ],
        "description": "Proration behavior for subscription quantity changes (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "ProvisioningResourceDto": {
        "required": [
          "type",
          "name",
          "isTenantSpecific",
          "connectionDescriptor",
          "metadata"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ProvisioningResourceType"
          },
          "name": {
            "type": "string"
          },
          "isTenantSpecific": {
            "type": "boolean"
          },
          "connectionDescriptor": {
            "type": [
              "null",
              "string"
            ]
          },
          "metadata": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "One provisioned backend runtime resource returned in the response manifest\r\n(PRXSAAS-BE-0165). Only non-sensitive descriptor values are exposed."
      },
      "ProvisioningResourceSpec": {
        "required": [
          "type",
          "name"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ProvisioningResourceType"
          },
          "name": {
            "type": "string"
          },
          "isTenantSpecific": {
            "type": "boolean",
            "default": false
          },
          "connectionDescriptor": {
            "type": [
              "null",
              "string"
            ]
          },
          "metadata": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "One backend runtime resource requested for provisioning (PRXSAAS-BE-0165).\r\nThe connection descriptor is a logical, non-sensitive endpoint label — never a\r\nsecret — so no provider credential can cross this contract."
      },
      "ProvisioningResourceType": {
        "enum": [
          "SqlServer",
          "ObjectStorage",
          "ApplicationRuntime"
        ],
        "description": "Kind of backend runtime resource described by a provisioning request\r\n(PRXSAAS-BE-0165). Mirrors the domain RuntimeTopologyType so the public\r\nOpenAPI contract never exposes a domain type."
      },
      "ProvisioningResponse": {
        "required": [
          "provisioningId",
          "tenantId",
          "idempotencyKey",
          "status",
          "resources",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "provisioningId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ProvisioningStatus"
          },
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningResourceDto"
            }
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for a provisioning request (PRXSAAS-BE-0165). A plain-data\r\nmanifest only — no EF entity or domain model crosses the API boundary."
      },
      "ProvisioningStatus": {
        "enum": [
          "Requested",
          "Conflict",
          "NotFound"
        ],
        "description": "Lifecycle status of a provisioning request (PRXSAAS-BE-0165). Mirrors the\r\ndomain `ProvisioningStatus` so the public contract stays dependency-free."
      },
      "ProvisionResourceRequest": {
        "required": [
          "idempotencyKey",
          "resources"
        ],
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string"
          },
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningResourceSpec"
            }
          }
        },
        "description": "Request contract to provision backend runtime resources (SQL Server, object\r\nstorage and application runtimes) for the authenticated tenant (PRXSAAS-BE-0165)."
      },
      "PublicationChannelContract": {
        "type": "integer",
        "description": "Public representation of a publication channel (PRXSAAS-BE-0214). Mirrors the\r\ndomain `PublicationChannel` enum for the contract surface."
      },
      "PublicCustomerProofResponse": {
        "required": [
          "id",
          "customerName",
          "title",
          "publicationChannels",
          "status",
          "isWithdrawn",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Proof identifier.",
            "format": "uuid"
          },
          "customerName": {
            "type": "string",
            "description": "Customer name, or an anonymized label when the proof is confidential."
          },
          "title": {
            "type": "string",
            "description": "Short title of the case study."
          },
          "publicationChannels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicationChannelContract"
            },
            "description": "Publication channels the proof may appear on."
          },
          "status": {
            "description": "Current approval status.",
            "$ref": "#/components/schemas/CustomerProofStatusContract"
          },
          "isWithdrawn": {
            "type": "boolean",
            "description": "Whether the proof has been withdrawn from publication."
          },
          "publishedExpiryUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant publication expires.",
            "format": "date-time"
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the row was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the row was last modified.",
            "format": "date-time"
          }
        },
        "description": "Public projection of a customer proof (PRXSAAS-BE-0237). Confidential proofs\r\nreplace the customer name with an anonymized label; the response omits\r\nsensitive fields (summary, approval details, metrics) and serves only the\r\nfields approved for public release."
      },
      "PublicDeviceCertificationCatalogResponse": {
        "type": "object",
        "properties": {
          "profiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicDeviceCertificationProfileResponse"
            },
            "description": "Publicly visible device certification profiles."
          }
        },
        "description": "Response listing the publicly visible device certification catalogue (PRXSAAS-BE-0212)."
      },
      "PublicDeviceCertificationProfileResponse": {
        "type": "object",
        "properties": {
          "modelNumber": {
            "type": "string",
            "description": "Unique identifier for the device model/SKU (e.g., \"MC930P-GL\")."
          },
          "modelName": {
            "type": "string",
            "description": "Human-readable device name."
          },
          "manufacturer": {
            "type": "string",
            "description": "Manufacturer/OEM identifier."
          },
          "osBspVersion": {
            "type": "string",
            "description": "Operating System/Board Support Package version."
          },
          "certifiedSdkVersion": {
            "type": "string",
            "description": "Certified SDK/engine version."
          },
          "evidenceReference": {
            "type": "string",
            "description": "Certification evidence reference (immutable)."
          },
          "status": {
            "description": "Certification status.",
            "$ref": "#/components/schemas/CertificationStatusContract"
          },
          "aliasCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of device aliases that reference this profile.",
            "format": "int32"
          },
          "lastUpdatedUtc": {
            "type": "string",
            "description": "Last updated timestamp.",
            "format": "date-time"
          }
        },
        "description": "A device certification profile as shown on the public certification page (PRXSAAS-BE-0212)."
      },
      "PublicEvaluationSignupRequest": {
        "required": [
          "userName",
          "email",
          "password",
          "organizationName",
          "country",
          "companyUrl"
        ],
        "type": "object",
        "properties": {
          "userName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "organizationName": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "companyUrl": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Public request to create an evaluation tenant and its first account."
      },
      "PublicEvaluationSignupResponse": {
        "required": [
          "signup",
          "tenant",
          "initialSite",
          "userName",
          "email",
          "organizationName",
          "country",
          "companyUrl",
          "emailVerificationRequired",
          "emailDeliveryDeferred"
        ],
        "type": "object",
        "properties": {
          "signup": {
            "$ref": "#/components/schemas/SignupResponse"
          },
          "tenant": {
            "$ref": "#/components/schemas/TenantContract"
          },
          "initialSite": {
            "$ref": "#/components/schemas/SiteContract"
          },
          "userName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "organizationName": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "companyUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "emailVerificationRequired": {
            "type": "boolean"
          },
          "emailDeliveryDeferred": {
            "type": "boolean"
          }
        },
        "description": "Result of public evaluation onboarding."
      },
      "PublicPlanCatalogResponse": {
        "required": [
          "currencyCode",
          "plans"
        ],
        "type": "object",
        "properties": {
          "currencyCode": {
            "type": "string",
            "description": "ISO-4217 currency every listing in this response is priced in."
          },
          "plans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPlanContract"
            },
            "description": "Visible listings, ordered by display order then plan key."
          }
        },
        "description": "Response contract carrying the public plan/pricing catalogue\r\n(PRXSAAS-BE-0052)."
      },
      "PublicPlanContract": {
        "required": [
          "planKey",
          "displayName",
          "displayOrder",
          "prices",
          "features"
        ],
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Stable plan key, safe to use as a client-side identifier."
          },
          "displayName": {
            "type": "string",
            "description": "Name rendered on the public pricing surface."
          },
          "tagline": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional short marketing line."
          },
          "displayOrder": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Ascending sort position on the public pricing surface.",
            "format": "int32"
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPlanPriceContract"
            },
            "description": "Prices in the listing's display currency, ordered by interval."
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPlanFeatureContract"
            },
            "description": "Enabled features only, ordered by feature key."
          }
        },
        "description": "Public-safe projection of one listed plan (PRXSAAS-BE-0052)."
      },
      "PublicPlanFeatureContract": {
        "required": [
          "featureKey"
        ],
        "type": "object",
        "properties": {
          "featureKey": {
            "type": "string",
            "description": "Lowercase dotted feature key (e.g. `scanning.devices`)."
          },
          "limit": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Optional quota; `null` means unlimited.",
            "format": "int32"
          }
        },
        "description": "One publicly advertised feature of a listed plan (PRXSAAS-BE-0052)."
      },
      "PublicPlanListingContract": {
        "required": [
          "planKey",
          "displayName",
          "displayOrder",
          "displayCurrencyCode",
          "visibility"
        ],
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Key of the listed plan."
          },
          "displayName": {
            "type": "string",
            "description": "Name rendered on the public pricing surface."
          },
          "tagline": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional short marketing line."
          },
          "displayOrder": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Ascending sort position on the public pricing surface.",
            "format": "int32"
          },
          "displayCurrencyCode": {
            "type": "string",
            "description": "ISO-4217 currency the public surface renders this listing in."
          },
          "visibility": {
            "description": "Whether the listing is currently offered publicly.",
            "$ref": "#/components/schemas/PublicPlanVisibilityContract"
          },
          "publishedFromUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Publication-window start; `null` while hidden.",
            "format": "date-time"
          },
          "publishedUntilUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Publication-window end; `null` means open-ended.",
            "format": "date-time"
          }
        },
        "description": "Operator-facing projection of a public plan listing (PRXSAAS-BE-0052)."
      },
      "PublicPlanPriceContract": {
        "required": [
          "interval",
          "currencyCode",
          "amountMinorUnits"
        ],
        "type": "object",
        "properties": {
          "interval": {
            "description": "Billing interval this amount is charged on.",
            "$ref": "#/components/schemas/PlanBillingIntervalContract"
          },
          "currencyCode": {
            "type": "string",
            "description": "ISO-4217 alphabetic currency code (e.g. `USD`)."
          },
          "amountMinorUnits": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Amount in integral minor units of string PublicPlanPriceContract.CurrencyCode.",
            "format": "int64"
          }
        },
        "description": "One publicly renderable price on a listed plan (PRXSAAS-BE-0052)."
      },
      "PublicPlanVisibilityContract": {
        "type": "integer",
        "description": "Public exposure state of a catalog plan (PRXSAAS-BE-0052). Mirrors the Domain\r\nenum; kept dependency-free so the public OpenAPI contract never exposes EF or\r\nDomain types."
      },
      "PublicStatusComponentContract": {
        "type": "object",
        "properties": {
          "componentId": {
            "type": "string",
            "description": "Stable surrogate identifier of the component. Never rebinds to a tenant.",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Human-readable component name (for example \"API\", \"Webhooks\")."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional longer description of the component."
          },
          "state": {
            "description": "Current operational state shown on the public status page.",
            "$ref": "#/components/schemas/ServiceComponentStateContract"
          },
          "lastChangedUtc": {
            "type": "string",
            "description": "UTC instant the state was last changed.",
            "format": "date-time"
          }
        },
        "description": "Read-only public projection of a monitored component (PRXSAAS-BE-0238)."
      },
      "PublicStatusIncidentContract": {
        "type": "object",
        "properties": {
          "incidentId": {
            "type": "string",
            "description": "Stable surrogate identifier of the incident. Never rebinds to a tenant.",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "description": "Short summary shown on the public status page."
          },
          "impact": {
            "description": "Business impact of the incident.",
            "$ref": "#/components/schemas/ServiceIncidentImpactContract"
          },
          "state": {
            "description": "Current lifecycle state.",
            "$ref": "#/components/schemas/ServiceIncidentStateContract"
          },
          "startedUtc": {
            "type": "string",
            "description": "UTC instant the incident was opened.",
            "format": "date-time"
          },
          "resolvedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the incident was resolved, when it has been.",
            "format": "date-time"
          },
          "regionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional affected region identifier (stable code, never a tenant key)."
          },
          "sla": {
            "description": "Approved SLA posture for this incident.",
            "$ref": "#/components/schemas/PublicStatusSlaContract"
          }
        },
        "description": "Read-only public projection of an SLA-aware incident (PRXSAAS-BE-0238)."
      },
      "PublicStatusMaintenanceContract": {
        "type": "object",
        "properties": {
          "maintenanceId": {
            "type": "string",
            "description": "Stable surrogate identifier of the maintenance window.",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "description": "Short summary of the maintenance activity."
          },
          "regionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional affected region identifier (stable code, never a tenant key)."
          },
          "startsUtc": {
            "type": "string",
            "description": "UTC instant the window starts.",
            "format": "date-time"
          },
          "endsUtc": {
            "type": "string",
            "description": "UTC instant the window ends.",
            "format": "date-time"
          },
          "state": {
            "description": "Current lifecycle state of the window.",
            "$ref": "#/components/schemas/PublicStatusMaintenanceState"
          }
        },
        "description": "Public maintenance window (PRXSAAS-BE-0238)."
      },
      "PublicStatusMaintenanceState": {
        "type": "integer",
        "description": "Lifecycle state of a public maintenance window (PRXSAAS-BE-0238)."
      },
      "PublicStatusNoticeAudience": {
        "type": "integer",
        "description": "Audience a public notice is relevant to (PRXSAAS-BE-0238). Notices are scoped to\r\na segment (plan tier or region) and never to a concrete tenant, so the portal\r\ncan show tenant-relevant guidance without disclosing tenant identity."
      },
      "PublicStatusNoticeContract": {
        "type": "object",
        "properties": {
          "noticeId": {
            "type": "string",
            "description": "Stable surrogate identifier of the notice.",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "description": "Short title of the notice."
          },
          "body": {
            "type": "string",
            "description": "Body of the notice."
          },
          "audience": {
            "description": "Audience the notice is relevant to.",
            "$ref": "#/components/schemas/PublicStatusNoticeAudience"
          },
          "audienceKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Audience key for segmented notices: a plan-tier id (for PublicStatusNoticeAudience.PlanTier)\r\nor a region code (for PublicStatusNoticeAudience.Region). Never a tenant identifier."
          },
          "postedUtc": {
            "type": "string",
            "description": "UTC instant the notice was posted.",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional UTC instant the notice expires.",
            "format": "date-time"
          }
        },
        "description": "Public notice scoped to an audience segment (PRXSAAS-BE-0238)."
      },
      "PublicStatusRegionContract": {
        "type": "object",
        "properties": {
          "regionId": {
            "type": "string",
            "description": "Stable region code (for example \"us-east\", \"eu-west\"). Not a tenant key."
          },
          "name": {
            "type": "string",
            "description": "Human-readable region name."
          }
        },
        "description": "Stable public region identifier (PRXSAAS-BE-0238)."
      },
      "PublicStatusSlaContract": {
        "type": "object",
        "properties": {
          "state": {
            "description": "Approved SLA posture.",
            "$ref": "#/components/schemas/PublicStatusSlaState"
          },
          "targetLabel": {
            "type": "string",
            "description": "Approved, non-numeric target label (for example \"Target resolution: 4h\")."
          }
        },
        "description": "Approved SLA posture for a publicly disclosed incident (PRXSAAS-BE-0238)."
      },
      "PublicStatusSlaState": {
        "type": "integer",
        "description": "Approved SLA posture of a publicly disclosed incident (PRXSAAS-BE-0238). The raw\r\nSLA arithmetic is computed internally and never leaves the backend; only this\r\nposture and an approved target label reach the public contract."
      },
      "PublicStatusSummaryContract": {
        "type": "object",
        "properties": {
          "overallState": {
            "description": "Aggregate operational state derived from the worst component.",
            "$ref": "#/components/schemas/ServiceComponentStateContract"
          },
          "openIncidentCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Count of currently open (unresolved) public incidents.",
            "format": "int32"
          },
          "generatedAtUtc": {
            "type": "string",
            "description": "UTC instant this summary was generated.",
            "format": "date-time"
          },
          "isStale": {
            "type": "boolean",
            "description": "True when the underlying snapshot is served from cache beyond its freshness\r\nwindow because the provider was unavailable. The public surface always\r\nadvertises staleness explicitly rather than failing."
          },
          "providerAvailable": {
            "type": "boolean",
            "description": "True when the most recent provider retrieval succeeded."
          },
          "retrievedAtUtc": {
            "type": "string",
            "description": "UTC instant the underlying snapshot was retrieved.",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "description": "UTC instant the underlying snapshot expires from cache.",
            "format": "date-time"
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicStatusComponentContract"
            },
            "description": "Publicly disclosed components."
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicStatusRegionContract"
            },
            "description": "Stable public regions."
          },
          "incidents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicStatusIncidentContract"
            },
            "description": "Publicly disclosed SLA-aware incidents."
          },
          "maintenance": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicStatusMaintenanceContract"
            },
            "description": "Public maintenance windows."
          },
          "notices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicStatusNoticeContract"
            },
            "description": "Notices relevant to the requested audience/region (tenant-relevant, never tenant-specific)."
          }
        },
        "description": "Aggregated public status summary with explicit staleness metadata (PRXSAAS-BE-0238)."
      },
      "PublicSupportCatalogResponse": {
        "type": "object",
        "properties": {
          "plans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSupportSlaContract"
            },
            "description": "Publicly visible plan SLAs."
          }
        },
        "description": "Response listing the publicly visible support catalogue (PRXSAAS-BE-0221)."
      },
      "PublicSupportMatrixEntryContract": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable identifier of the matrix row.",
            "format": "uuid"
          },
          "platform": {
            "type": "string",
            "description": "Platform label."
          },
          "sdkMajor": {
            "type": "string",
            "description": "SDK major version label."
          },
          "os": {
            "type": "string",
            "description": "Operating-system label."
          },
          "architecture": {
            "type": "string",
            "description": "Architecture label."
          },
          "status": {
            "description": "Release-support status.",
            "$ref": "#/components/schemas/SupportMatrixStatusContract"
          },
          "supportFromUtc": {
            "type": "string",
            "description": "Inclusive UTC instant support begins.",
            "format": "date-time"
          },
          "supportToUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Inclusive UTC instant support ends, or null when open-ended.",
            "format": "date-time"
          },
          "documentationUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional absolute documentation link."
          }
        },
        "description": "A published support-matrix entry as exposed on the public surface\r\n(PRXSAAS-BE-0211). Sensitive provider payloads and the publication/internal\r\nflags are never projected here."
      },
      "PublicSupportSlaContract": {
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Plan the SLA belongs to."
          },
          "version": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Version of the approved term.",
            "format": "int32"
          },
          "summary": {
            "type": "string",
            "description": "Human-readable summary of the commitment."
          },
          "effectiveFromUtc": {
            "type": "string",
            "description": "Inclusive UTC instant the term takes effect.",
            "format": "date-time"
          },
          "channels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportChannelContract"
            },
            "description": "Publicly listed channels."
          },
          "responseTargets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportResponseTargetContract"
            },
            "description": "Per-severity commitments."
          },
          "supportedVersions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Product versions supported under this plan."
          }
        },
        "description": "The publicly visible SLA of a plan (PRXSAAS-BE-0221)."
      },
      "PublicWorkflowProfileSummaryDto": {
        "type": "object",
        "properties": {
          "profileKey": {
            "type": "string",
            "description": "Unique slug identifier (e.g., \"receive-and-validate\")."
          },
          "displayName": {
            "type": "string",
            "description": "Human-readable profile title."
          },
          "description": {
            "type": "string",
            "description": "Detailed description and intended operational environment."
          },
          "engineMode": {
            "description": "Engine operational mode.",
            "$ref": "#/components/schemas/WorkflowEngineMode"
          },
          "version": {
            "type": "string",
            "description": "Semantic version of the profile definition (e.g., \"1.2.0\")."
          },
          "channel": {
            "description": "Release channel.",
            "$ref": "#/components/schemas/WorkflowProfileChannel"
          },
          "minSdkVersion": {
            "type": "string",
            "description": "Minimum compatible SDK engine version (e.g., \"1.0.0\")."
          },
          "digest": {
            "type": "string",
            "description": "SHA-256 integrity digest of the published profile specification."
          },
          "publishedAtUtc": {
            "type": "string",
            "description": "UTC publication timestamp.",
            "format": "date-time"
          }
        },
        "description": "Public summary of a workflow profile containing no private configuration (PRXSAAS-BE-0216)."
      },
      "PublishAgentSkillArtifactRequest": {
        "required": [
          "publishedAtUtc"
        ],
        "type": "object",
        "properties": {
          "publishedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Request contract to publish a registered draft skill so entitled tenants\r\ncan install it."
      },
      "PublishCustomerProofRequest": {
        "type": "object",
        "properties": {
          "publicationChannels": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicationChannelContract"
            },
            "description": "Optional override of the publication channels."
          },
          "expiryUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional UTC instant publication expires.",
            "format": "date-time"
          }
        },
        "description": "Request to publish an approved proof (PRXSAAS-BE-0214)."
      },
      "PublishProcurementDocumentRequest": {
        "type": "object",
        "properties": {
          "initialChecksumSha256": {
            "type": "string",
            "description": "SHA-256 of the initial content."
          },
          "initialContentType": {
            "type": "string",
            "description": "Content type of the initial content."
          },
          "initialSizeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Size of the initial content in bytes.",
            "format": "int64"
          },
          "initialContentStorageKey": {
            "type": "string",
            "description": "Object-storage key of the initial content."
          },
          "actorId": {
            "type": "string",
            "description": "Publishing/approving identity."
          },
          "documentType": {
            "description": "Document classification.",
            "$ref": "#/components/schemas/ProcurementDocumentTypeContract"
          },
          "title": {
            "type": "string",
            "description": "Human-readable title."
          },
          "owner": {
            "type": "string",
            "description": "Owning team or owner identity."
          },
          "visibility": {
            "description": "Visibility band.",
            "$ref": "#/components/schemas/DocumentVisibilityContract"
          },
          "effectiveFromUtc": {
            "type": "string",
            "description": "Inclusive effective-from instant.",
            "format": "date-time"
          },
          "expiryUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Exclusive expiry instant, when the document expires.",
            "format": "date-time"
          }
        },
        "description": "Request to publish the first version of a freshly created document, in one\r\nadministrative action (PRXSAAS-BE-0223)."
      },
      "PublishProcurementDocumentVersionRequest": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "Document identifier.",
            "format": "uuid"
          },
          "checksumSha256": {
            "type": "string",
            "description": "SHA-256 of the content being published."
          },
          "contentType": {
            "type": "string",
            "description": "Content type of the content being published."
          },
          "sizeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Size of the content in bytes.",
            "format": "int64"
          },
          "contentStorageKey": {
            "type": "string",
            "description": "Object-storage key of the content."
          },
          "publishedBy": {
            "type": "string",
            "description": "Publishing identity (for the audit trail)."
          }
        },
        "description": "Request to publish a new document version (PRXSAAS-BE-0223). The binary\r\ncontent is supplied out-of-band and stored under string PublishProcurementDocumentVersionRequest.ContentStorageKey;\r\nthe catalog records its metadata only."
      },
      "PublishPublicPlanRequest": {
        "required": [
          "planKey",
          "displayName",
          "displayCurrencyCode"
        ],
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Key of the tenant's plan to list."
          },
          "displayName": {
            "type": "string",
            "description": "Name to render on the public pricing surface."
          },
          "displayCurrencyCode": {
            "type": "string",
            "description": "ISO-4217 currency the public surface renders this listing in."
          },
          "tagline": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional short marketing line."
          },
          "displayOrder": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Ascending sort position; defaults to first.",
            "format": "int32"
          },
          "publishedFromUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional publication-window start; defaults to now.",
            "format": "date-time"
          },
          "publishedUntilUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional publication-window end; `null` means open-ended.",
            "format": "date-time"
          }
        },
        "description": "Request contract to publish a plan onto the public pricing surface\r\n(PRXSAAS-BE-0052)."
      },
      "PublishSdkArtifactRequest": {
        "required": [
          "publishedAtUtc"
        ],
        "type": "object",
        "properties": {
          "publishedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Request contract to publish a registered draft artifact."
      },
      "QuarantineResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the quarantine record.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (read-only; never rebound from client input)."
          },
          "buildDeviceId": {
            "type": "string",
            "description": "Identifier of the quarantined build device.",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "description": "Mandatory business reason for the quarantine."
          },
          "status": {
            "description": "Current lifecycle status of the quarantine.",
            "$ref": "#/components/schemas/QuarantineStatus"
          },
          "quarantinedUtc": {
            "type": "string",
            "description": "UTC instant the device was quarantined.",
            "format": "date-time"
          },
          "resolvedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the quarantine was resolved (released or escalated), when resolved.",
            "format": "date-time"
          },
          "resolvedBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Identity that resolved the quarantine, when resolved."
          },
          "resolutionReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Reason the quarantine was resolved, when resolved."
          }
        },
        "description": "PRXSAAS-BE-0138. Response contract describing a quarantine record. Exposes a\r\nstable, contract-safe projection of the domain entity and contains no EF\r\nentities or billing-provider SDK types."
      },
      "QuarantineStatus": {
        "type": "integer",
        "description": "PRXSAAS-BE-0138. Lifecycle status of a quarantine record. Mirrors the domain\r\nstatus enum so responses stay contract-safe."
      },
      "RecallDispositionStatus": {
        "type": "integer",
        "description": "Disposition status after an assessment. The boundary NEVER auto-dispositions;\r\nevery result requires tenant workflow."
      },
      "RecallExportRequest": {
        "required": [
          "exportReference"
        ],
        "type": "object",
        "properties": {
          "exportReference": {
            "type": "string"
          }
        },
        "description": "Request to produce an auditable export of a previously computed assessment."
      },
      "RecallExportResult": {
        "required": [
          "exportReference",
          "tenantId",
          "level",
          "recallSourceKind",
          "recallSourceVersion",
          "exportedAtUtc",
          "checksum",
          "contractVersion"
        ],
        "type": "object",
        "properties": {
          "exportReference": {
            "type": "string"
          },
          "tenantId": {
            "type": "string"
          },
          "level": {
            "$ref": "#/components/schemas/RecallImpactLevel"
          },
          "recallSourceKind": {
            "type": "string"
          },
          "recallSourceVersion": {
            "type": "string"
          },
          "exportedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "checksum": {
            "type": "string"
          },
          "contractVersion": {
            "type": "string"
          }
        },
        "description": "An auditable export record for a recall impact assessment. Append-only;\r\nonce written it remains exportable regardless of case status. Carries a\r\nstable checksum so consumers can verify integrity."
      },
      "RecallImpactLevel": {
        "type": "integer",
        "description": "Outcome of correlating tenant receipts to a recall notice.\r\nDistinguishable per acceptance criteria: confirmed, possible, unavailable."
      },
      "RecallImpactRequest": {
        "required": [
          "recallNotice",
          "tenantReceipts"
        ],
        "type": "object",
        "properties": {
          "recallNotice": {
            "$ref": "#/components/schemas/RecallNoticeReference"
          },
          "tenantReceipts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LotReceiptEvidence"
            }
          }
        },
        "description": "Request to assess lot-impact for a tenant's receipts against a recall notice\r\nreference supplied by the caller (the source/version are retained, not\r\nre-fetched, so the assessment is reproducible)."
      },
      "RecallImpactResult": {
        "required": [
          "tenantId",
          "level",
          "totalReceipts",
          "matchedReceipts",
          "confirmedLotMatches",
          "dispositionRequired",
          "dispositionStatus",
          "exportReference",
          "contractVersion"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "level": {
            "$ref": "#/components/schemas/RecallImpactLevel"
          },
          "totalReceipts": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "matchedReceipts": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "confirmedLotMatches": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "dispositionRequired": {
            "type": "boolean"
          },
          "dispositionStatus": {
            "$ref": "#/components/schemas/RecallDispositionStatus"
          },
          "exportReference": {
            "type": "string"
          },
          "contractVersion": {
            "type": "string"
          }
        },
        "description": "Result of a recall lot-impact assessment. Always marks disposition as\r\nrequired (tenant workflow) and carries an auditable export reference."
      },
      "RecallNoticeReference": {
        "required": [
          "sourceKind"
        ],
        "type": "object",
        "properties": {
          "sourceKind": {
            "$ref": "#/components/schemas/RecallSourceKind"
          },
          "sourceVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "sourceIdentifier": {
            "type": [
              "null",
              "string"
            ]
          },
          "productSku": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "issuedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "A reference to a recall notice retained from a source, with its source and\r\nversion captured. Immutable record; the source/version are never dropped."
      },
      "RecallSourceKind": {
        "type": "integer",
        "description": "Origin system of a recall notice. Retained on every result so downstream\r\nconsumers know which source produced the notice and which version of that\r\nsource's data was correlated."
      },
      "RecordAuditEventRequest": {
        "required": [
          "eventType",
          "actor"
        ],
        "type": "object",
        "properties": {
          "eventType": {
            "type": "string"
          },
          "actor": {
            "type": "string"
          },
          "payload": {
            "type": [
              "null",
              "string"
            ]
          },
          "outcome": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": [
              "null",
              "string"
            ]
          },
          "occurredUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Request contract to record one append-only audit event. The tenant is never\r\ntaken from the request body: it is derived from the authenticated caller's\r\nclaims by the producing service before the domain entity is created."
      },
      "RecordBillingWebhookEventRequest": {
        "type": "object",
        "properties": {
          "providerKey": {
            "type": "string",
            "description": "Registered provider key that delivered the event."
          },
          "providerEventId": {
            "type": "string",
            "description": "Provider-assigned event identifier used for idempotency."
          },
          "eventType": {
            "type": "string",
            "description": "Normalized provider event type, for example \"invoice.paid\"."
          }
        },
        "description": "Request to record an inbound billing-provider webhook event\r\n(PRXSAAS-BE-0062). Only normalized metadata crosses the boundary; the raw\r\nprovider payload is intentionally absent so it can never be persisted or\r\nlogged."
      },
      "RecordDisasterRecoveryDrillRequest": {
        "required": [
          "objectiveId",
          "executedAtUtc",
          "observedDataLoss",
          "observedDowntime"
        ],
        "type": "object",
        "properties": {
          "objectiveId": {
            "type": "string",
            "format": "uuid"
          },
          "executedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "observedDataLoss": {
            "pattern": "^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$",
            "type": "string"
          },
          "observedDowntime": {
            "pattern": "^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$",
            "type": "string"
          },
          "restored": {
            "type": "boolean",
            "default": true
          }
        },
        "description": "Request contract to record a completed disaster-recovery drill."
      },
      "RecordHealthCheckRequest": {
        "required": [
          "tenantId",
          "componentName",
          "status",
          "observedAtUtc",
          "probeDuration",
          "detail"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "componentName": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ComponentHealthStatus"
          },
          "observedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "probeDuration": {
            "pattern": "^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$",
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "description": "Request contract to record a health observation for a tenant-owned component."
      },
      "RecordReleaseCertificationGateEvidenceRequest": {
        "required": [
          "area",
          "status",
          "evidenceReference"
        ],
        "type": "object",
        "properties": {
          "area": {
            "$ref": "#/components/schemas/ReleaseCertificationGateArea"
          },
          "status": {
            "$ref": "#/components/schemas/ReleaseCertificationGateStatus"
          },
          "evidenceReference": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RecordSdkTelemetryRequest": {
        "required": [
          "idempotencyKey",
          "eventType",
          "deviceId",
          "sdkVersion",
          "occurredUtc",
          "entitlementState",
          "trialState",
          "retentionClass",
          "schemaVersion"
        ],
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string"
          },
          "eventType": {
            "$ref": "#/components/schemas/SdkTelemetryEventType"
          },
          "deviceId": {
            "type": "string",
            "format": "uuid"
          },
          "sdkVersion": {
            "type": "string"
          },
          "occurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "entitlementState": {
            "$ref": "#/components/schemas/SdkEntitlementState"
          },
          "trialState": {
            "$ref": "#/components/schemas/SdkTrialState"
          },
          "retentionClass": {
            "$ref": "#/components/schemas/SdkTelemetryRetentionClass"
          },
          "schemaVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ]
          },
          "diagnosticPayload": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to record one privacy-safe SDK telemetry event. The tenant\r\nis deliberately absent: it is derived from the authenticated caller's claims\r\nby the producing service before the domain entity is created, so a client can\r\nnever attribute an event to a tenant it does not own."
      },
      "RecordTelemetryRequest": {
        "required": [
          "kind",
          "severity",
          "privacyClass",
          "message"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/TelemetryKind"
          },
          "severity": {
            "$ref": "#/components/schemas/TelemetrySeverity"
          },
          "privacyClass": {
            "$ref": "#/components/schemas/TelemetryPrivacyClass"
          },
          "message": {
            "type": "string"
          },
          "operationName": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "attributesJson": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to record a tenant-scoped telemetry signal (PRXSAAS-BE-0167)."
      },
      "RecordUsageEventRequest": {
        "required": [
          "eventType",
          "count",
          "schemaVersion",
          "occurredUtc"
        ],
        "type": "object",
        "properties": {
          "eventType": {
            "type": "string"
          },
          "count": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "schemaVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "occurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "eventCategory": {
            "type": [
              "null",
              "string"
            ]
          },
          "channel": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to record one privacy-safe usage event. The tenant is never\r\ntaken from the request body: it is derived from the authenticated caller's\r\nclaims by the producing service before the domain entity is created."
      },
      "RecordVerifiedWebhookInboxRequest": {
        "type": "object",
        "properties": {
          "providerKey": {
            "type": "string"
          },
          "providerEventId": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "receivedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Request to record receipt of a verified webhook event (PRXSAAS-BE-0068).\r\nOnly non-sensitive routing metadata is accepted; provider payloads and secrets\r\nare never sent to or stored by this endpoint."
      },
      "RecoveryDrillOutcome": {
        "type": "integer",
        "description": "Outcome of a disaster-recovery drill (PRXSAAS-BE-0170).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "RecoveryDrillResponse": {
        "required": [
          "id",
          "executedAtUtc",
          "observedDataLoss",
          "observedDowntime",
          "outcome"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "executedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "observedDataLoss": {
            "pattern": "^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$",
            "type": "string"
          },
          "observedDowntime": {
            "pattern": "^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$",
            "type": "string"
          },
          "outcome": {
            "$ref": "#/components/schemas/RecoveryDrillOutcome"
          }
        },
        "description": "Response contract for one disaster-recovery drill executed against an objective."
      },
      "RecoveryTier": {
        "type": "integer",
        "description": "Criticality tier that fixes how aggressive a data set's recovery objectives\r\nmust be (PRXSAAS-BE-0170).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "RefreshRequest": {
        "required": [
          "sessionId",
          "refreshToken"
        ],
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "Session the refresh token was issued for.",
            "format": "uuid"
          },
          "refreshToken": {
            "type": "string",
            "description": "The opaque refresh token previously issued."
          }
        },
        "description": "PRXSAAS-BE-0023. Request to exchange a refresh token for a new one."
      },
      "RefreshResponse": {
        "required": [
          "tokens"
        ],
        "type": "object",
        "properties": {
          "tokens": {
            "description": "The newly issued session credentials.",
            "$ref": "#/components/schemas/AuthenticationTokensResponse"
          }
        },
        "description": "PRXSAAS-BE-0023. Result of a successful refresh."
      },
      "RegionCatalogContract": {
        "type": "object",
        "properties": {
          "catalogVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Monotonic catalog version; bumped when the region set or matrix changes.",
            "format": "int32"
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegionContract"
            },
            "description": "All known regions."
          }
        },
        "description": "Versioned public region catalog (PRXSAAS-BE-0234)."
      },
      "RegionContract": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "geography": {
            "type": "string"
          },
          "dataClasses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "storageLocation": {
            "type": "string"
          },
          "processingLocation": {
            "type": "string"
          },
          "allowedTransferTo": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "eligibility": {
            "type": "string"
          },
          "releaseStatus": {
            "type": "string"
          },
          "dataResidencyClaimable": {
            "type": "boolean",
            "description": "True only when the region has passed the approved-deployment review and may\r\nback a data-residency claim. The internal evidence reference is never exposed."
          }
        },
        "description": "Public region catalog entry (PRXSAAS-BE-0234). Contains no infrastructure secrets."
      },
      "RegisterAgentSkillArtifactRequest": {
        "required": [
          "releaseChannelId",
          "skillName",
          "version",
          "sdkCompatibility",
          "packageChecksum",
          "packageSignature",
          "evaluationStatus",
          "evaluationNotes",
          "installCommand",
          "requiredEntitlement"
        ],
        "type": "object",
        "properties": {
          "releaseChannelId": {
            "type": "string",
            "format": "uuid"
          },
          "skillName": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "sdkCompatibility": {
            "type": "string"
          },
          "packageChecksum": {
            "type": "string"
          },
          "packageSignature": {
            "type": "string"
          },
          "evaluationStatus": {
            "$ref": "#/components/schemas/AgentSkillEvaluationStatusDto"
          },
          "evaluationNotes": {
            "type": [
              "null",
              "string"
            ]
          },
          "installCommand": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredEntitlement": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to register a signed `SKILL.md` bundle into a release\r\nchannel. The bundle itself is never uploaded through this contract; only its\r\ndigest, signature and metadata are catalogued."
      },
      "RegisterDeviceCertificationProfileRequest": {
        "type": "object",
        "properties": {
          "modelNumber": {
            "type": "string",
            "description": "Unique identifier for the device model/SKU (e.g., \"MC930P-GL\")."
          },
          "modelName": {
            "type": "string",
            "description": "Human-readable device name."
          },
          "manufacturer": {
            "type": "string",
            "description": "Manufacturer/OEM identifier."
          },
          "osBspVersion": {
            "type": "string",
            "description": "Operating System/Board Support Package version."
          },
          "certifiedSdkVersion": {
            "type": "string",
            "description": "Certified SDK/engine version."
          },
          "evidenceReference": {
            "type": "string",
            "description": "Certification evidence reference (immutable)."
          }
        },
        "description": "Request to register a new device certification profile (PRXSAAS-BE-0212).\r\nThe profile is created in the Pending state; certification is granted by a\r\nsubsequent approve operation."
      },
      "RegisterDeviceRequest": {
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "description": "Unique identifier for the device."
          },
          "name": {
            "type": "string",
            "description": "Human-readable name for the device."
          },
          "description": {
            "type": "string",
            "description": "Description of the device capabilities and purpose."
          },
          "capabilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeviceCapabilityRequest"
            },
            "description": "Initial capabilities for the device."
          }
        },
        "description": "Request to register a new device."
      },
      "RegisterProductCapabilityRequest": {
        "required": [
          "capabilityKey",
          "title",
          "description",
          "channelKey",
          "confidentialDate"
        ],
        "type": "object",
        "properties": {
          "capabilityKey": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "channelKey": {
            "type": "string"
          },
          "confidentialDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Request contract to register a roadmap product capability. The capability key\r\nis supplied by the caller and is stable, so clients can resolve it by name."
      },
      "RegisterSdkArtifactRequest": {
        "required": [
          "releaseChannelId",
          "platform",
          "version",
          "sha256",
          "sizeInBytes",
          "storageLocation"
        ],
        "type": "object",
        "properties": {
          "releaseChannelId": {
            "type": "string",
            "format": "uuid"
          },
          "platform": {
            "$ref": "#/components/schemas/SdkPlatformDto"
          },
          "version": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "sizeInBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "storageLocation": {
            "type": "string"
          },
          "signatureAlgorithm": {
            "type": [
              "null",
              "string"
            ]
          },
          "signature": {
            "type": [
              "null",
              "string"
            ]
          },
          "releaseNotes": {
            "type": [
              "null",
              "string"
            ]
          },
          "minimumHostVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "maximumHostVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "compatibilityPlatforms": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "description": "Request contract to register a binary produced by the portable core pipeline\r\ninto a release channel. The binary itself is never uploaded through this\r\ncontract; only its digest, size and storage reference are catalogued."
      },
      "RegisterSigningKeyRequest": {
        "required": [
          "keyId",
          "algorithm",
          "publicKeyJwk",
          "privateKeyJwk"
        ],
        "type": "object",
        "properties": {
          "keyId": {
            "type": "string"
          },
          "algorithm": {
            "type": "string"
          },
          "publicKeyJwk": {
            "type": "string"
          },
          "privateKeyJwk": {
            "type": "string"
          },
          "expiresUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Request contract to register a new tenant-owned signing key.\r\nThe tenant is derived from the authenticated caller by the service layer.\r\nThe public and private JWK material are supplied by the caller (generated\r\noffline or by a key-management service) and stored as opaque strings."
      },
      "RejectCustomerProofRequest": {
        "required": [
          "reason"
        ],
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "description": "Reason the proof was rejected."
          }
        },
        "description": "Request to reject a submitted proof (PRXSAAS-BE-0214)."
      },
      "RejectTrustEvidenceRequest": {
        "required": [
          "reason"
        ],
        "type": "object",
        "properties": {
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request payload for rejecting a submitted trust evidence record\r\n(PRXSAAS-BE-0250)."
      },
      "ReleaseCertificationGateArea": {
        "type": "integer"
      },
      "ReleaseCertificationGateResponse": {
        "required": [
          "tenantId",
          "releaseKey",
          "releaseVersion",
          "title",
          "pilotOwner",
          "targetPilotStartUtc",
          "performanceStatus",
          "performanceEvidenceReference",
          "accessibilityStatus",
          "accessibilityEvidenceReference",
          "securityStatus",
          "securityEvidenceReference",
          "externalPilotStatus",
          "externalPilotEvidenceReference",
          "certificationStatus",
          "blockingReasons",
          "createdAtUtc",
          "updatedAtUtc",
          "certifiedAtUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "releaseKey": {
            "type": "string"
          },
          "releaseVersion": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "pilotOwner": {
            "type": "string"
          },
          "targetPilotStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "performanceStatus": {
            "$ref": "#/components/schemas/ReleaseCertificationGateStatus"
          },
          "performanceEvidenceReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "accessibilityStatus": {
            "$ref": "#/components/schemas/ReleaseCertificationGateStatus"
          },
          "accessibilityEvidenceReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "securityStatus": {
            "$ref": "#/components/schemas/ReleaseCertificationGateStatus"
          },
          "securityEvidenceReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalPilotStatus": {
            "$ref": "#/components/schemas/ReleaseCertificationGateStatus"
          },
          "externalPilotEvidenceReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "certificationStatus": {
            "$ref": "#/components/schemas/ReleaseCertificationStatus"
          },
          "blockingReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "certifiedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ReleaseCertificationGateStatus": {
        "type": "integer"
      },
      "ReleaseCertificationStatus": {
        "type": "integer"
      },
      "ReleaseChannel": {
        "type": "integer",
        "description": "PRXSAAS-BE-0138. Distribution channel a release is published to. Mirrors the\r\ndomain channel enum so responses stay contract-safe."
      },
      "ReleaseChannelCatalogResponse": {
        "required": [
          "channel",
          "artifacts"
        ],
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/ReleaseChannelResponse"
          },
          "artifacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SdkArtifactResponse"
            }
          },
          "entitlementRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "downloadEntitled": {
            "type": "boolean",
            "default": false
          }
        },
        "description": "Response contract for a channel and the artifacts it currently advertises."
      },
      "ReleaseChannelResponse": {
        "required": [
          "id",
          "channelKey",
          "displayName",
          "stability",
          "state",
          "description",
          "acceptsPublications",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "channelKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "stability": {
            "$ref": "#/components/schemas/ReleaseChannelStabilityDto"
          },
          "state": {
            "$ref": "#/components/schemas/ReleaseChannelStateDto"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "acceptsPublications": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for a release channel. Plain data only - never an EF\r\nentity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "ReleaseChannelStabilityDto": {
        "type": "integer",
        "description": "Stability tier advertised by a release channel (PRXSAAS-BE-0089).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "ReleaseChannelStateDto": {
        "type": "integer",
        "description": "Lifecycle state of a release channel (PRXSAAS-BE-0089)."
      },
      "ReleaseResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the release.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (read-only; never rebound from client input)."
          },
          "version": {
            "type": "string",
            "description": "Semantic version of the release."
          },
          "channel": {
            "description": "Distribution channel the release targets.",
            "$ref": "#/components/schemas/ReleaseChannel"
          },
          "status": {
            "description": "Current lifecycle status of the release.",
            "$ref": "#/components/schemas/ReleaseStatus"
          },
          "artifactReference": {
            "type": "string",
            "description": "Reference to the published artifact in the secure artifact store."
          },
          "releaseNotes": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional human-readable release notes."
          },
          "publishedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the release was published, when published.",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "description": "UTC instant the release was created.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0138. Response contract describing a build release. Exposes a\r\nstable, contract-safe projection of the domain entity and contains no EF\r\nentities or billing-provider SDK types."
      },
      "ReleaseStatus": {
        "type": "integer",
        "description": "PRXSAAS-BE-0138. Lifecycle status of a build release. Mirrors the domain\r\nstatus enum so responses stay contract-safe."
      },
      "RequirementCriticality": {
        "type": "integer",
        "description": "How strictly a requirement must be traced (PRXSAAS-BE-0173)."
      },
      "ReserveSeatRequest": {
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "description": "Identifier of the device the seat is reserved for."
          },
          "preferredReservationCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional preferred reservation code. When omitted the server mints a\r\ntenant-unique code. Client-supplied codes are rejected if already in use."
          },
          "expiresInMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Optional reservation lifetime in minutes from the moment of creation.\r\nWhen omitted the server applies its default reservation window.",
            "format": "int32"
          },
          "idempotencyKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional idempotency key. When provided, repeated calls with the same key\r\nwill return the same reservation result, ensuring exactly-once semantics."
          }
        },
        "description": "Request to reserve a seat (license slot) for a device within the caller's\r\ntenant. The tenant is supplied by the ambient authorization context, not by\r\nthis payload. The reservation code is server-minted."
      },
      "ReserveSeatResponse": {
        "type": "object",
        "properties": {
          "reservationId": {
            "type": "string",
            "description": "Server-assigned reservation identifier."
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns the reservation."
          },
          "deviceId": {
            "type": "string",
            "description": "Device the seat is reserved for."
          },
          "reservationCode": {
            "type": "string",
            "description": "Server-minted, tenant-unique reservation code."
          },
          "status": {
            "description": "Current reservation status.",
            "$ref": "#/components/schemas/SeatReservationStatus"
          },
          "reservedUtc": {
            "type": "string",
            "description": "UTC time the reservation was created.",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": "string",
            "description": "UTC time the reservation expires if not activated.",
            "format": "date-time"
          },
          "activatedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC time the reservation was activated, if applicable.",
            "format": "date-time"
          }
        },
        "description": "Response returned after a seat reservation is created."
      },
      "ResolvedLocalizationContract": {
        "type": "object",
        "properties": {
          "locale": {
            "type": "string",
            "description": "Effective BCP 47 locale."
          },
          "currency": {
            "type": "string",
            "description": "Effective ISO 4217 currency."
          },
          "timeZone": {
            "type": "string",
            "description": "Effective IANA timezone."
          },
          "currencyDerivedFromPlan": {
            "type": "boolean",
            "description": "True when the effective currency was derived from the active plan currency."
          }
        },
        "description": "A tenant's resolved effective locale/currency/timezone (PRXSAAS-BE-0235)."
      },
      "ResolveLocalizationRequestContract": {
        "type": "object",
        "properties": {
          "tenantLocale": {
            "type": [
              "null",
              "string"
            ],
            "description": "The tenant's persisted default BCP 47 locale, if any."
          },
          "tenantCurrency": {
            "type": [
              "null",
              "string"
            ],
            "description": "The tenant's persisted default ISO 4217 currency, if any."
          },
          "tenantTimeZone": {
            "type": [
              "null",
              "string"
            ],
            "description": "The tenant's persisted default IANA timezone, if any."
          },
          "planCurrency": {
            "type": [
              "null",
              "string"
            ],
            "description": "The active plan's price currency (ISO 4217). When present and valid the\r\neffective currency follows the plan rather than the tenant default."
          }
        },
        "description": "Request to resolve a tenant's effective locale/currency/timezone (PRXSAAS-BE-0235).\r\nThe caller supplies the tenant's currently persisted defaults together with\r\nthe active plan's price currency; the service derives the effective values\r\nand reports when the currency was overridden by the plan."
      },
      "ResolvePharmaExceptionRequest": {
        "required": [
          "resolutionRole",
          "resolutionReason",
          "resolvedById"
        ],
        "type": "object",
        "properties": {
          "resolutionRole": {
            "type": "string"
          },
          "resolutionReason": {
            "type": "string"
          },
          "resolvedById": {
            "type": "string"
          }
        },
        "description": "Request to resolve a case. A resolution requires both a role and a reason."
      },
      "ResolveQuarantineRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "description": "Mandatory business reason for the resolution (required)."
          }
        },
        "description": "PRXSAAS-BE-0139. Request contract to release or escalate an active quarantine.\r\nThe acting principal (derived from authenticated claims) is recorded as the\r\nresolver; only the business reason is supplied by the client."
      },
      "ResumeSubscriptionRequest": {
        "required": [
          "tenantId",
          "externalSubscriptionId"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "externalSubscriptionId": {
            "type": "string"
          }
        },
        "description": "Request to resume a canceled/paused subscription (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "ResumeSubscriptionResponse": {
        "required": [
          "tenantId",
          "externalSubscriptionId",
          "status",
          "resumedAtUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "externalSubscriptionId": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SubscriptionLifecycleStatusContract"
          },
          "resumedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response for resuming a subscription (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "RetentionJobResponse": {
        "required": [
          "id",
          "tenantId",
          "jobType",
          "jobName",
          "status",
          "periodStartUtc",
          "periodEndUtc",
          "scheduledUtc",
          "startedUtc",
          "completedUtc",
          "resultRef",
          "errorMessage",
          "schemaVersion",
          "createdUtc",
          "updatedUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "jobType": {
            "type": "string"
          },
          "jobName": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": "string"
          },
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "scheduledUtc": {
            "type": "string",
            "format": "date-time"
          },
          "startedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "completedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "resultRef": {
            "type": [
              "null",
              "string"
            ]
          },
          "errorMessage": {
            "type": [
              "null",
              "string"
            ]
          },
          "schemaVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for one tenant-scoped internal retention-analysis job\r\nledger entry. Plain data only — never an EF entity."
      },
      "RevenueAnalyticsSnapshotResponse": {
        "required": [
          "id",
          "tenantId",
          "periodStartUtc",
          "periodEndUtc",
          "currencyCode",
          "recurringRevenue",
          "newRevenue",
          "expansionRevenue",
          "contractionRevenue",
          "churnedRevenue",
          "activeSubscribers",
          "trialSubscribers",
          "schemaVersion",
          "computedUtc",
          "createdUtc",
          "updatedUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "currencyCode": {
            "type": "string"
          },
          "recurringRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "newRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "expansionRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "contractionRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "churnedRevenue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "activeSubscribers": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "trialSubscribers": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "schemaVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "computedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for one tenant-scoped internal revenue analytics snapshot.\r\nPlain data only — never an EF entity — so the OpenAPI surface stays stable\r\nand provider-neutral."
      },
      "ReviseCustomerProofMetricRequest": {
        "required": [
          "metricName",
          "evidenceReference",
          "calculationMethod"
        ],
        "type": "object",
        "properties": {
          "metricName": {
            "type": "string",
            "description": "Human-readable metric name."
          },
          "evidenceReference": {
            "type": "string",
            "description": "Non-sensitive evidence reference."
          },
          "calculationMethod": {
            "type": "string",
            "description": "Calculation method used to derive the metric."
          },
          "value": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional measured value."
          },
          "unit": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional unit of string? ReviseCustomerProofMetricRequest.Value."
          }
        },
        "description": "One metric supplied at revision time (PRXSAAS-BE-0237). The caller can provide\r\na new value or keep the existing one by omitting it; validation is delegated\r\nto the domain because the metric must reference evidence and calculation method."
      },
      "ReviseCustomerProofMetricsRequest": {
        "required": [
          "metrics",
          "createNewVersion"
        ],
        "type": "object",
        "properties": {
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReviseCustomerProofMetricRequest"
            },
            "description": "The revised metric set."
          },
          "createNewVersion": {
            "type": "boolean",
            "description": "When true, bumps the metric version and resets the approval lifecycle so\r\nthe new version must pass through Submit→Approve→Publish again. Required\r\nto edit metrics on an already-approved proof; forbidden on a draft."
          }
        },
        "description": "Request to revise the metric set of a customer proof (PRXSAAS-BE-0237).\r\nExisting metrics not present in the list are dropped; omitted metrics keep\r\ntheir current value/unit while name/evidence/method must match."
      },
      "RevokeArtifactPublicationRequest": {
        "required": [
          "revokedAtUtc",
          "reason"
        ],
        "type": "object",
        "properties": {
          "revokedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": "string"
          }
        },
        "description": "Request contract to revoke an active publication."
      },
      "RevokeDownloadGrantRequest": {
        "required": [
          "reason"
        ],
        "type": "object",
        "properties": {
          "reason": {
            "type": "string"
          }
        },
        "description": "Request contract to revoke an entitled download grant."
      },
      "RevokeInternalAdminAccessRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "description": "Mandatory business reason for the revocation."
          }
        },
        "description": "Request contract to revoke an isolated internal admin access grant."
      },
      "RoiAssumptionDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Unique machine-readable key (e.g., \"scan_speed_improvement_pct\")."
          },
          "category": {
            "type": "string",
            "description": "Display category (e.g., \"Scanning Efficiency\", \"Error Reduction\")."
          },
          "name": {
            "type": "string",
            "description": "Human-readable label."
          },
          "description": {
            "type": "string",
            "description": "Detailed description and methodology rationale."
          },
          "unit": {
            "type": "string",
            "description": "Unit of measure (e.g., \"%\", \"seconds\", \"USD/hr\")."
          },
          "defaultValue": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Governed baseline default value.",
            "format": "double"
          },
          "minAllowed": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Minimum allowed input value for custom scenarios.",
            "format": "double"
          },
          "maxAllowed": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Maximum allowed input value for custom scenarios.",
            "format": "double"
          },
          "owner": {
            "type": "string",
            "description": "Governing team / engineer owner."
          },
          "version": {
            "type": "string",
            "description": "Version of the assumption model."
          },
          "evidenceStatus": {
            "description": "Evidence backing status.",
            "$ref": "#/components/schemas/RoiEvidenceStatus"
          },
          "lastReviewedUtc": {
            "type": "string",
            "description": "Timestamp of last governance review.",
            "format": "date-time"
          }
        },
        "description": "A governed default parameter or assumption used in ROI calculations (PRXSAAS-BE-0239)."
      },
      "RoiCalculationRequest": {
        "type": "object",
        "properties": {
          "deviceCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of active warehouse/field devices.",
            "format": "int32"
          },
          "hourlyWageUsd": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Average hourly warehouse labor cost in USD.",
            "format": "double"
          },
          "dailyScansPerDevice": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Average daily scan volume per device.",
            "format": "int32"
          },
          "operatingDaysPerYear": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Operating days per year (typically 250 - 365).",
            "format": "int32"
          },
          "baselineSecondsPerScan": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Current baseline seconds per scan cycle.",
            "format": "double"
          },
          "baselineErrorRatePercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Baseline barcode error/rescan rate percentage (0 - 100).",
            "format": "double"
          },
          "exceptionHandlingSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Estimated manual exception resolution time in seconds per mis-scan.",
            "format": "double"
          },
          "customEfficiencyGainPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "description": "Custom efficiency gain percentage override (optional, null to use governed default).",
            "format": "double"
          },
          "consentToStoreInputs": {
            "type": "boolean",
            "description": "Whether user consented to anonymized telemetry (inputs are not stored without consent)."
          }
        },
        "description": "Customer-provided inputs for calculating receiving and warehouse ROI (PRXSAAS-BE-0239)."
      },
      "RoiCalculationResponse": {
        "type": "object",
        "properties": {
          "metrics": {
            "description": "Scenario calculation results.",
            "$ref": "#/components/schemas/RoiScenarioMetrics"
          },
          "modelVersion": {
            "type": "string",
            "description": "Model governance version."
          },
          "disclaimer": {
            "type": "string",
            "description": "Standard non-guarantee and methodology disclaimer."
          },
          "calculatedAtUtc": {
            "type": "string",
            "description": "UTC calculation timestamp.",
            "format": "date-time"
          }
        },
        "description": "Complete ROI calculation response including disclaimers and governance metadata (PRXSAAS-BE-0239)."
      },
      "RoiEvidenceStatus": {
        "type": "integer",
        "description": "Status of evidence supporting an ROI calculation assumption (PRXSAAS-BE-0239)."
      },
      "RoiScenarioMetrics": {
        "type": "object",
        "properties": {
          "baselineAnnualLaborHours": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Annual baseline labor hours spent on scanning and exceptions.",
            "format": "double"
          },
          "baselineAnnualCostUsd": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Annual baseline labor cost in USD.",
            "format": "double"
          },
          "projectedAnnualLaborHours": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Projected annual labor hours with Vision Scan optimization.",
            "format": "double"
          },
          "projectedAnnualCostUsd": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Projected annual labor cost in USD.",
            "format": "double"
          },
          "annualSavingsUsd": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Annual net labor savings in USD.",
            "format": "double"
          },
          "annualHoursSaved": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Annual hours saved across the operation.",
            "format": "double"
          },
          "estimatedPaybackMonths": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Estimated payback period in months.",
            "format": "double"
          },
          "sensitivityLowSavingsUsd": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Conservative sensitivity range (low estimate savings, e.g. -20%).",
            "format": "double"
          },
          "sensitivityHighSavingsUsd": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "description": "Optimistic sensitivity range (high estimate savings, e.g. +20%).",
            "format": "double"
          }
        },
        "description": "Calculated financial and operational savings scenario (PRXSAAS-BE-0239)."
      },
      "RoleContract": {
        "required": [
          "id",
          "key",
          "name",
          "description",
          "createdAtUtc",
          "permissions"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the role.",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "description": "Unique role key within the tenant (e.g., \"admin\", \"operator\", \"viewer\").\r\nMust be lowercase alphanumeric with hyphens/underscores allowed."
          },
          "name": {
            "type": "string",
            "description": "Human-readable display name of the role."
          },
          "description": {
            "type": "string",
            "description": "Description of what this role is responsible for."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the role was created.",
            "format": "date-time"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionContract"
            },
            "description": "The permissions granted by this role (as PermissionContracts)."
          }
        },
        "description": "Public representation of a role (PRXSAAS-BE-0037).\r\nMirrors the Domain Role entity; kept dependency-free so public OpenAPI\r\ncontracts never expose EF/Domain types."
      },
      "RoleListResponse": {
        "required": [
          "roles"
        ],
        "type": "object",
        "properties": {
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleContract"
            },
            "description": "Roles visible to the authenticated tenant."
          }
        },
        "description": "List response for tenant-scoped roles."
      },
      "RotateSdkApiCredentialRequest": {
        "required": [
          "overlapMinutes"
        ],
        "type": "object",
        "properties": {
          "overlapMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Request contract to rotate an SDK API credential. The overlap window keeps\r\nthe previous secret valid for the requested number of minutes so customers\r\ncan migrate without downtime; zero retires the previous secret immediately."
      },
      "RowSecurityPolicyEnabledRequest": {
        "required": [
          "enabled"
        ],
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "description": "Request to enable or suspend a tenant-scoped RLS policy (PRXSAAS-BE-0043)."
      },
      "RowSecurityPolicyListResponse": {
        "type": "object",
        "properties": {
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RowSecurityPolicyResponse"
            },
            "description": "The policies visible to the authenticated tenant."
          }
        },
        "description": "Collection of tenant-scoped RLS policies (PRXSAAS-BE-0043)."
      },
      "RowSecurityPolicyResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate key.",
            "format": "uuid"
          },
          "policyName": {
            "type": "string",
            "description": "Stable policy name within the tenant."
          },
          "targetSchema": {
            "type": "string",
            "description": "SQL schema of the protected table."
          },
          "targetTable": {
            "type": "string",
            "description": "SQL table protected by this policy."
          },
          "filterPredicate": {
            "type": "string",
            "description": "Validated predicate template enforced per row."
          },
          "isEnabled": {
            "type": "boolean",
            "description": "Whether the policy is currently enforced."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant this policy was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant this policy was last mutated.",
            "format": "date-time"
          }
        },
        "description": "Contract describing one tenant-scoped RLS policy (PRXSAAS-BE-0043). The\r\nstored predicate is exposed read-only; the application fills the tenant\r\nbinding at apply time rather than returning executable SQL."
      },
      "RunSdkMeteringReconciliationRequest": {
        "required": [
          "reconciliationDateUtc"
        ],
        "type": "object",
        "properties": {
          "reconciliationDateUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Manual SDK metering reconciliation request (PRXSAAS-BE-0142)."
      },
      "SandboxCredentialResponse": {
        "required": [
          "id",
          "displayName",
          "clientId",
          "secretPrefix",
          "status",
          "rateLimitPerMinute",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc",
          "revokedAtUtc",
          "lastUsedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "secretPrefix": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SandboxCredentialStatusDto"
          },
          "rateLimitPerMinute": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "revokedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastUsedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Response contract describing a sandbox credential without its secret\r\n(PRXSAAS-BE-0226). Safe to return on read/list surfaces."
      },
      "SandboxCredentialStatusDto": {
        "type": "integer",
        "description": "Lifecycle status advertised for a sandbox API credential (PRXSAAS-BE-0226).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "ScanAttachmentResponse": {
        "type": "object",
        "properties": {
          "attachmentId": {
            "type": "string",
            "description": "Attachment id.",
            "format": "uuid"
          },
          "scanStatus": {
            "type": "string",
            "description": "Resulting scan status."
          }
        },
        "description": "PRXSAAS-BE-0200. Scan-trigger response."
      },
      "SdkApiCredentialResponse": {
        "required": [
          "id",
          "displayName",
          "clientId",
          "secretPrefix",
          "status",
          "scopes",
          "issuedAtUtc",
          "expiresAtUtc",
          "revokedAtUtc",
          "lastUsedAtUtc",
          "previousSecretExpiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "secretPrefix": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SdkCredentialStatusDto"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "issuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "revokedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastUsedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "previousSecretExpiresAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Response contract for an SDK API credential. Metadata only — the plaintext\r\nsecret is never included in list/get responses."
      },
      "SdkArtifactCatalogDownloadGrantBinding": {
        "required": [
          "tenantId",
          "actorId",
          "credentialClientId",
          "artifactSha256",
          "entitlementRevision",
          "requiredFeatureKey",
          "purpose",
          "expiresAtUtc",
          "hostVersion",
          "runtimePlatform",
          "architecture"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "actorId": {
            "type": "string"
          },
          "credentialClientId": {
            "type": [
              "null",
              "string"
            ]
          },
          "artifactSha256": {
            "type": "string"
          },
          "entitlementRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "requiredFeatureKey": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "hostVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "runtimePlatform": {
            "type": [
              "null",
              "string"
            ]
          },
          "architecture": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Server-evaluated eligibility context bound to an issued catalog download\r\ngrant."
      },
      "SdkArtifactCatalogDownloadGrantResponse": {
        "required": [
          "grant",
          "artifact"
        ],
        "type": "object",
        "properties": {
          "grant": {
            "$ref": "#/components/schemas/DownloadGrantResponse"
          },
          "artifact": {
            "$ref": "#/components/schemas/SdkArtifactResponse"
          },
          "binding": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SdkArtifactCatalogDownloadGrantBinding"
              }
            ]
          }
        },
        "description": "Download-grant response enriched with artifact integrity and compatibility\r\nmetadata so the portal can render safe-download context in one round trip."
      },
      "SdkArtifactResponse": {
        "required": [
          "id",
          "releaseChannelId",
          "channelKey",
          "platform",
          "version",
          "sha256",
          "sizeInBytes",
          "storageLocation",
          "state",
          "publishedAtUtc",
          "deprecatedAtUtc",
          "deprecationReason",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "releaseChannelId": {
            "type": "string",
            "format": "uuid"
          },
          "channelKey": {
            "type": "string"
          },
          "platform": {
            "$ref": "#/components/schemas/SdkPlatformDto"
          },
          "version": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "sizeInBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "storageLocation": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/SdkArtifactStateDto"
          },
          "publishedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "deprecatedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "deprecationReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "signatureAlgorithm": {
            "type": [
              "null",
              "string"
            ],
            "description": "Detached signature algorithm used for integrity verification."
          },
          "signature": {
            "type": [
              "null",
              "string"
            ],
            "description": "Detached signature or signed-manifest reference for the artifact."
          },
          "releaseNotes": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable release notes for portal/catalog display."
          },
          "minimumHostVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Minimum compatible host/runtime version, when constrained."
          },
          "maximumHostVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Maximum compatible host/runtime version, when constrained."
          },
          "compatibilityPlatforms": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Optional platform compatibility tags advertised with the artifact."
          }
        },
        "description": "Response contract for one catalogued SDK artifact."
      },
      "SdkArtifactStateDto": {
        "type": "integer",
        "description": "Lifecycle state of a catalogued SDK artifact (PRXSAAS-BE-0089)."
      },
      "SdkCredentialStatusDto": {
        "type": "integer",
        "description": "Lifecycle status advertised for an SDK API credential (PRXSAAS-BE-0245).\r\nMirrors the Domain enum; kept dependency-free so public OpenAPI contracts\r\nnever expose EF/Domain types."
      },
      "SdkEntitlementState": {
        "type": "integer",
        "description": "Commercial entitlement state reported by the SDK, mirroring the\r\nunlimited-scan-per-active-device entitlement model (PRXSAAS-BE-0217)."
      },
      "SdkMeteringReconciliationOperationResponse": {
        "required": [
          "id",
          "tenantId",
          "reconciliationDateUtc",
          "activeSeats",
          "activeDevices",
          "trialDevices",
          "expiredDevices",
          "graceDevices",
          "suspendedDevices",
          "revokedDevices",
          "unlicensedDevices",
          "enforcementState",
          "customerVisibleReason",
          "supportCorrelationId",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "reconciliationDateUtc": {
            "type": "string",
            "format": "date-time"
          },
          "activeSeats": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "activeDevices": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "trialDevices": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "expiredDevices": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "graceDevices": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "suspendedDevices": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "revokedDevices": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unlicensedDevices": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "enforcementState": {
            "type": "string"
          },
          "customerVisibleReason": {
            "type": "string"
          },
          "supportCorrelationId": {
            "type": "string",
            "format": "uuid"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Manual SDK metering reconciliation response (PRXSAAS-BE-0142)."
      },
      "SdkPlatformDto": {
        "type": "integer",
        "description": "Target platform an SDK artifact is built for (PRXSAAS-BE-0089)."
      },
      "SdkTelemetryCustomerUsageResponse": {
        "required": [
          "tenantId",
          "windowStartUtc",
          "windowEndUtc",
          "generatedUtc",
          "deviceCount",
          "totalEventCount",
          "devices"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "windowStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "windowEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "generatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "deviceCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalEventCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SdkTelemetryDeviceUsageProjection"
            }
          },
          "scanAnalytics": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MatrixScanAnalytics"
              }
            ]
          }
        },
        "description": "Customer API response: tenant-scoped SDK usage, trial/license visibility,\r\nlast event time, SDK versions and sanitized error summaries over a bounded\r\nwindow (PRXSAAS-BE-0244). The projection is reproducible: recomputing it for\r\nthe same window and data yields byte-identical content."
      },
      "SdkTelemetryDeviceUsageProjection": {
        "required": [
          "deviceId",
          "latestSdkVersion",
          "lastEventUtc",
          "eventCount",
          "usageByEventType",
          "entitlementState",
          "errorSummary"
        ],
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "format": "uuid"
          },
          "latestSdkVersion": {
            "type": "string"
          },
          "lastEventUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "eventCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usageByEventType": {
            "type": "object",
            "additionalProperties": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "entitlementState": {
            "$ref": "#/components/schemas/SdkVisibilityEntitlementState"
          },
          "errorSummary": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SdkTelemetryErrorCategorySummary"
            }
          }
        },
        "description": "Customer-safe usage projection for one device: tenant-scoped usage counters,\r\nthe latest reported SDK version, last event time, the backend-derived\r\nentitlement state and sanitized error summaries. Deliberately carries no\r\ncorrelation ids and no diagnostic payload text."
      },
      "SdkTelemetryErrorCategorySummary": {
        "required": [
          "category",
          "count"
        ],
        "type": "object",
        "properties": {
          "category": {
            "type": "string"
          },
          "count": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Sanitized error/diagnostic category with an occurrence count. Only a coarse\r\ncategory label is exposed — never raw diagnostic payload text (PRXSAAS-BE-0244)."
      },
      "SdkTelemetryEventOutcome": {
        "required": [
          "idempotencyKey",
          "status"
        ],
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SdkTelemetryEventOutcomeStatus"
          },
          "errorCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Outcome of one event inside an ingestion batch. Only sanitized,\r\nmachine-readable codes are returned — never internal exception text,\r\nstack traces or persistence details."
      },
      "SdkTelemetryEventOutcomeStatus": {
        "type": "integer",
        "description": "Per-event terminal status reported back to the SDK after an ingestion\r\nattempt. SdkTelemetryEventOutcomeStatus.Accepted means a durable, immutable record was\r\nwritten; SdkTelemetryEventOutcomeStatus.Duplicate means the idempotency key already exists\r\nfor this tenant and the original record stands (replay-safe success);\r\nSdkTelemetryEventOutcomeStatus.Rejected means the event was refused and nothing was stored."
      },
      "SdkTelemetryEventType": {
        "type": "integer",
        "description": "Stable, closed set of SDK telemetry event types. The backend validates that\r\nevery ingested event carries one of these discriminators; an unknown value\r\nis rejected rather than silently stored, so the analytics surface cannot be\r\npolluted by an uncooperative or compromised client build."
      },
      "SdkTelemetryIngestRequest": {
        "required": [
          "events"
        ],
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecordSdkTelemetryRequest"
            }
          }
        },
        "description": "PRXSAAS-BE-0243. Request contract for one batched SDK telemetry ingestion\r\ncall. The tenant is deliberately absent — it is derived from the\r\nauthenticated caller's claims by the API layer (TenantIdentityMiddleware),\r\nnever from the body, so a client can never attribute events to a tenant or\r\ndevice it does not own."
      },
      "SdkTelemetryIngestResponse": {
        "required": [
          "correlationId",
          "acceptedCount",
          "duplicateCount",
          "rejectedCount",
          "outcomes",
          "retry"
        ],
        "type": "object",
        "properties": {
          "correlationId": {
            "type": "string"
          },
          "acceptedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "duplicateCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rejectedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "outcomes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SdkTelemetryEventOutcome"
            }
          },
          "retry": {
            "$ref": "#/components/schemas/SdkTelemetryRetryGuidance"
          }
        },
        "description": "Response contract for a batched SDK telemetry ingestion call. Includes a\r\ncorrelation id (caller-supplied when present, otherwise server-generated),\r\nper-event outcomes and retry guidance."
      },
      "SdkTelemetryRetentionClass": {
        "type": "integer",
        "description": "Retention class for a telemetry event. Drives the lifecycle/retention policy\r\n(PRXSAAS-BE-0169) so operational logs, diagnostics, billing evidence and\r\ncompliance records are kept for appropriately different windows."
      },
      "SdkTelemetryRetryGuidance": {
        "required": [
          "retryAfterSeconds",
          "policy"
        ],
        "type": "object",
        "properties": {
          "retryAfterSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "policy": {
            "type": "string"
          }
        },
        "description": "Retry guidance attached to every ingestion response so an SDK host knows\r\ndeterministically when to resubmit rejected or throttled batches."
      },
      "SdkTelemetrySupportDeviceDetail": {
        "required": [
          "deviceId",
          "lastEventUtc",
          "latestSdkVersion",
          "entitlementState",
          "correlationIds",
          "diagnosticCategories",
          "eventCount"
        ],
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "format": "uuid"
          },
          "lastEventUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "latestSdkVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "entitlementState": {
            "$ref": "#/components/schemas/SdkVisibilityEntitlementState"
          },
          "correlationIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "diagnosticCategories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SdkTelemetryErrorCategorySummary"
            }
          },
          "eventCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Internal support projection entry for one device. Extends the customer-safe\r\nview with support correlation ids and diagnostic categories, while still\r\nexcluding raw images, secrets and unredacted barcode payloads\r\n(PRXSAAS-BE-0244)."
      },
      "SdkTelemetrySupportProjectionResponse": {
        "required": [
          "tenantId",
          "windowStartUtc",
          "windowEndUtc",
          "generatedUtc",
          "deviceCount",
          "devices"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "windowStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "windowEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "generatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "deviceCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SdkTelemetrySupportDeviceDetail"
            }
          }
        },
        "description": "Internal support projection response (PRXSAAS-BE-0244). Served only to\r\nauthorized support operators; never exposes diagnostic payload text even\r\nthough it widens the customer projection."
      },
      "SdkTrialState": {
        "type": "integer",
        "description": "Trial lifecycle state reported by the SDK (PRXSAAS-BE-0207 evaluation expiry,\r\ngrace and conversion jobs)."
      },
      "SdkVisibilityEntitlementState": {
        "type": "integer",
        "description": "Backend-authoritative entitlement visibility state for a telemetry device\r\n(PRXSAAS-BE-0244). Unlike SdkEntitlementState — which is what\r\nthe SDK self-reports at ingest time — this enum is derived by the backend\r\nfrom its own license and evaluation records, so the customer dashboard can\r\nnever be fooled by a stale or lying client build."
      },
      "SeatReservationStatus": {
        "type": "integer",
        "description": "Lifecycle status of a seat reservation. This mirrors the domain\r\nSeatReservationStatus; the two are intentionally independent so the\r\ncontract surface never depends on the persistence model."
      },
      "SelectRegionRequest": {
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string",
            "description": "Target region code (e.g. `us-east`)."
          },
          "reason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Mandatory reason: a region selection can never change silently."
          }
        },
        "description": "Request to select (or change) a tenant's region (PRXSAAS-BE-0234)."
      },
      "ServiceComponentStateContract": {
        "type": "integer",
        "description": "Operational state of a monitored component, mirrored from the domain."
      },
      "ServiceIncidentContract": {
        "type": "object",
        "properties": {
          "incidentId": {
            "type": "string",
            "description": "Surrogate identifier of the incident.",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "description": "Short summary."
          },
          "impact": {
            "description": "Business impact.",
            "$ref": "#/components/schemas/ServiceIncidentImpactContract"
          },
          "state": {
            "description": "Current lifecycle state.",
            "$ref": "#/components/schemas/ServiceIncidentStateContract"
          },
          "affectsComponentId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional affected component identifier.",
            "format": "uuid"
          },
          "startedUtc": {
            "type": "string",
            "description": "UTC instant the incident was opened.",
            "format": "date-time"
          },
          "resolvedUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the incident was resolved, when it has been.",
            "format": "date-time"
          },
          "createdBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional identity that opened the incident."
          },
          "updates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServiceIncidentUpdateContract"
            },
            "description": "Timeline updates, oldest first."
          }
        },
        "description": "Read-only projection of a status-page incident with its timeline."
      },
      "ServiceIncidentImpactContract": {
        "type": "integer",
        "description": "Business impact of a status-page incident, mirrored from the domain."
      },
      "ServiceIncidentStateContract": {
        "type": "integer",
        "description": "Lifecycle state of a status-page incident, mirrored from the domain."
      },
      "ServiceIncidentUpdateContract": {
        "type": "object",
        "properties": {
          "updateId": {
            "type": "string",
            "description": "Surrogate identifier of the update.",
            "format": "uuid"
          },
          "incidentId": {
            "type": "string",
            "description": "Owning incident identifier.",
            "format": "uuid"
          },
          "message": {
            "type": "string",
            "description": "Update message."
          },
          "state": {
            "description": "Incident state at the time the update was posted.",
            "$ref": "#/components/schemas/ServiceIncidentStateContract"
          },
          "postedBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional identity that posted the update."
          },
          "postedUtc": {
            "type": "string",
            "description": "UTC instant the update was posted.",
            "format": "date-time"
          }
        },
        "description": "Read-only projection of a single incident timeline update."
      },
      "ServiceMaintenanceWindowContract": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the maintenance window.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns this maintenance window."
          },
          "title": {
            "type": "string",
            "description": "Short summary shown on the status page."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional longer description of the maintenance activity."
          },
          "affectsComponentId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional affected component identifier.",
            "format": "uuid"
          },
          "startsUtc": {
            "type": "string",
            "description": "UTC instant the maintenance window starts.",
            "format": "date-time"
          },
          "endsUtc": {
            "type": "string",
            "description": "UTC instant the maintenance window ends.",
            "format": "date-time"
          },
          "state": {
            "description": "Current lifecycle state of the window.",
            "$ref": "#/components/schemas/MaintenanceWindowStateContract"
          }
        },
        "description": "Maintenance window entity mirrored from the domain (PRXSAAS-BE-0248).\r\nTenant-scoped so clients only see their own maintenance windows."
      },
      "ServiceStatusComponentContract": {
        "type": "object",
        "properties": {
          "componentId": {
            "type": "string",
            "description": "Surrogate identifier of the component.",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Component name."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional longer description of the component."
          },
          "currentState": {
            "description": "Current operational state.",
            "$ref": "#/components/schemas/ServiceComponentStateContract"
          },
          "lastChangedUtc": {
            "type": "string",
            "description": "UTC instant the state was last changed.",
            "format": "date-time"
          }
        },
        "description": "Read-only projection of a monitored status-page component."
      },
      "SessionListResponse": {
        "required": [
          "sessions",
          "evaluatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "sessions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionSummary"
            },
            "description": "Sessions owned by the caller, most recent first."
          },
          "evaluatedAtUtc": {
            "type": "string",
            "description": "Server instant bool SessionSummary.IsActive was evaluated against.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0025. The sessions belonging to the authenticated user."
      },
      "SessionRevocationResponse": {
        "required": [
          "revokedCount",
          "revokedAtUtc"
        ],
        "type": "object",
        "properties": {
          "revokedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Number of sessions this call revoked.",
            "format": "int32"
          },
          "revokedAtUtc": {
            "type": "string",
            "description": "Server instant the revocation was stamped.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0025. Outcome of a revocation request."
      },
      "SessionSummary": {
        "required": [
          "sessionId",
          "startedAtUtc",
          "expiresAtUtc",
          "revokedAtUtc",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "Identifier used to revoke this session.",
            "format": "uuid"
          },
          "startedAtUtc": {
            "type": "string",
            "description": "UTC instant the session started.",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "description": "UTC instant the session stops being usable.",
            "format": "date-time"
          },
          "revokedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the session was revoked, when it has been.",
            "format": "date-time"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the session was neither revoked nor expired when the server evaluated it."
          }
        },
        "description": "PRXSAAS-BE-0025. A session as exposed to the session-management surface."
      },
      "SetPortalBannerActiveRequest": {
        "type": "object",
        "properties": {
          "isActive": {
            "type": "boolean",
            "description": "The new active state."
          }
        },
        "description": "Request to toggle a portal banner's active flag."
      },
      "SetServiceComponentStateRequest": {
        "type": "object",
        "properties": {
          "state": {
            "description": "Target operational state (must be concrete).",
            "$ref": "#/components/schemas/ServiceComponentStateContract"
          },
          "changedBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional identity that changed the state."
          }
        },
        "description": "Request to move a monitored component to a new operational state."
      },
      "SetTenantLocalizationDefaultsRequestContract": {
        "type": "object",
        "properties": {
          "locale": {
            "type": [
              "null",
              "string"
            ],
            "description": "Preferred BCP 47 locale, or null to clear."
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "Preferred ISO 4217 currency code, or null to clear."
          },
          "timeZone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Preferred IANA timezone identifier, or null to clear."
          }
        },
        "description": "Request to persist a tenant's preferred locale/currency/timezone defaults\r\n(PRXSAAS-BE-0235). All three values are optional: a null value clears the\r\npersisted default so resolution falls back to the platform baseline. Values\r\nare validated against the supported catalog before being stored."
      },
      "SigningKeyResponse": {
        "required": [
          "id",
          "tenantId",
          "keyId",
          "algorithm",
          "publicKeyJwk",
          "status",
          "createdUtc",
          "expiresUtc",
          "activatedUtc",
          "retiredUtc",
          "revokedUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "keyId": {
            "type": "string"
          },
          "algorithm": {
            "type": "string"
          },
          "publicKeyJwk": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SigningKeyStatus"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "activatedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "retiredUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "revokedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "Response contract for a stored signing key. Plain data only - never an EF\r\nentity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "SigningKeyStatus": {
        "type": "integer",
        "description": "PRXSAAS-BE-0150. Lifecycle states of a tenant-owned JWT signing key as exposed on public contracts."
      },
      "SignupRequest": {
        "required": [
          "login",
          "password"
        ],
        "type": "object",
        "properties": {
          "login": {
            "type": "string",
            "description": "Login identifier (e-mail address)."
          },
          "password": {
            "type": "string",
            "description": "Plain credential. Hashed by the application layer and never persisted or logged."
          }
        },
        "description": "PRXSAAS-BE-0023. Request to register a new account."
      },
      "SignupResponse": {
        "required": [
          "user",
          "verificationToken"
        ],
        "type": "object",
        "properties": {
          "user": {
            "description": "The created user.",
            "$ref": "#/components/schemas/UserResponse"
          },
          "verificationToken": {
            "description": "Metadata of the issued e-mail verification token.",
            "$ref": "#/components/schemas/VerificationTokenResponse"
          }
        },
        "description": "PRXSAAS-BE-0023. Result of a successful signup."
      },
      "SiteContract": {
        "required": [
          "id",
          "code",
          "name",
          "status",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the site.",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "Tenant-unique site code."
          },
          "name": {
            "type": "string",
            "description": "Site display name."
          },
          "status": {
            "description": "Operational state of the site.",
            "$ref": "#/components/schemas/SiteStatusContract"
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional IANA time-zone identifier."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the site was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the site was last modified.",
            "format": "date-time"
          }
        },
        "description": "Public representation of a tenant-owned site (PRXSAAS-BE-0031)."
      },
      "SiteListResponse": {
        "required": [
          "sites"
        ],
        "type": "object",
        "properties": {
          "sites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteContract"
            },
            "description": "The sites visible to the caller's tenant."
          }
        },
        "description": "Page of sites belonging to the caller's tenant (PRXSAAS-BE-0031)."
      },
      "SiteStatusContract": {
        "type": "integer",
        "description": "Operational state of a site (PRXSAAS-BE-0031). Mirrors the Domain enum."
      },
      "SsoRouteRequest": {
        "required": [
          "emailAddress"
        ],
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "description": "Address presented at the sign-in prompt."
          }
        },
        "description": "PRXSAAS-BE-0029. Request to resolve a sign-in address to a federation route."
      },
      "SsoRouteResponse": {
        "required": [
          "isFederated",
          "connectionId",
          "protocol",
          "isMfaRequired"
        ],
        "type": "object",
        "properties": {
          "isFederated": {
            "type": "boolean",
            "description": "Whether the address routes to an enterprise connection."
          },
          "connectionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Connection to use, when federated.",
            "format": "uuid"
          },
          "protocol": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Protocol to start, when federated.",
                "$ref": "#/components/schemas/EnterpriseSsoProtocolContract"
              }
            ]
          },
          "isMfaRequired": {
            "type": "boolean",
            "description": "Whether a local second factor is demanded after federation."
          }
        },
        "description": "PRXSAAS-BE-0028. Result of resolving a sign-in address to a federation route."
      },
      "StartBackupRequest": {
        "required": [
          "tenantId",
          "dataSet",
          "kind",
          "startedAtUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "dataSet": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/BackupKind"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Request contract to start a backup run for a tenant-owned data set."
      },
      "StartBarcodeCreditCheckoutRequest": {
        "required": [
          "requestId"
        ],
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "format": "uuid"
          },
          "customerName": {
            "type": [
              "null",
              "string"
            ]
          },
          "customerPhone": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Stable client retry identifier, not tenant, price or credit authority."
      },
      "StartDeviceCheckoutRequest": {
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "description": "Stable device identifier the subscription is being purchased for."
          },
          "planKey": {
            "type": "string",
            "description": "Stable, tenant-unique plan key (for example \"PRO-MONTHLY\" or \"PRO-YEARLY\").\r\nAmounts are resolved from server-side plan configuration and are never\r\naccepted from the client."
          },
          "interval": {
            "description": "Requested billing cadence for the device subscription.",
            "$ref": "#/components/schemas/BillingInterval"
          },
          "seatReservationId": {
            "type": "string",
            "description": "Tenant-owned reserved seat consumed when payment completes.",
            "format": "uuid"
          },
          "signingKeyId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional existing tenant signing key. When omitted, the backend creates\r\nand binds a key only after a verified payment event.",
            "format": "uuid"
          }
        },
        "description": "Request to start a monthly/yearly per-device checkout (PRXSAAS-BE-0064).\r\nThe tenant is never carried in the body: it is derived from the authenticated\r\nclaims by the API layer, so a caller cannot check out a device on behalf of\r\nanother tenant. No provider SDK type, EF entity or billing amount is referenced."
      },
      "StartOnboardingWizardRequest": {
        "type": "object",
        "properties": {
          "resumeStepKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable key of the step the tenant wishes to resume at (for example\r\n\"organization\"). When omitted the wizard starts at the first step."
          },
          "resumeStepIndex": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "1-based ordinal of the step to resume at. Must be between 1 and the\r\ntotal step count; ignored when string? StartOnboardingWizardRequest.ResumeStepKey is unset.",
            "format": "int32"
          },
          "totalSteps": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Total number of steps in the wizard (server-defined default).",
            "format": "int32"
          }
        },
        "description": "PRXSAAS-BE-0100. Request to begin or resume the onboarding wizard for the\r\nauthenticated tenant. The tenant is never carried in the body: it is derived\r\nfrom the authenticated claims by the API layer. No provider SDK type, EF\r\nentity, or billing amount is referenced."
      },
      "StartPlanCheckoutRequest": {
        "type": "object",
        "properties": {
          "planKey": {
            "type": "string",
            "description": "Commercial plan key from the public catalog."
          },
          "interval": {
            "description": "Billing interval for the selected plan.",
            "$ref": "#/components/schemas/BillingInterval"
          }
        },
        "description": "Request to start a hosted checkout for a plan that is not bound to a device seat."
      },
      "StartTenantOffboardingRequest": {
        "required": [
          "requestedBy"
        ],
        "type": "object",
        "properties": {
          "requestedBy": {
            "type": "string"
          }
        },
        "description": "PRXSAAS-BE-0247. Request to offboard a tenant. The target tenant is derived\r\nfrom the authenticated caller's claims by default; supplying a different\r\ntenant id is rejected as cross-tenant access before any work runs."
      },
      "SubscriptionGracePeriodStatusResponse": {
        "required": [
          "tenantId",
          "externalSubscriptionId",
          "isInGracePeriod"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "externalSubscriptionId": {
            "type": "string"
          },
          "isInGracePeriod": {
            "type": "boolean"
          },
          "gracePeriodEndsAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "DTO representing grace period state for a subscription (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "SubscriptionLifecycleStatusContract": {
        "enum": [
          "Active",
          "InGracePeriod",
          "PastDue",
          "Canceled",
          "Paused"
        ],
        "description": "Lifecycle status of a tenant's subscription (PRXSAAS-BE-0072 / PRXSAAS-BE-0073)."
      },
      "SubscriptionProjectionContract": {
        "required": [
          "externalSubscriptionId",
          "planKey",
          "status",
          "currentPeriodStartUtc",
          "currentPeriodEndUtc"
        ],
        "type": "object",
        "properties": {
          "externalSubscriptionId": {
            "type": "string"
          },
          "planKey": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SubscriptionProjectionStatusContract"
          },
          "currentPeriodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "currentPeriodEndUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SubscriptionProjectionStatusContract": {
        "type": "integer"
      },
      "SupersedeBenchmarkRequest": {
        "required": [
          "supersededById"
        ],
        "type": "object",
        "properties": {
          "supersededById": {
            "type": "string",
            "format": "uuid"
          }
        },
        "description": "Request to supersede a benchmark with another."
      },
      "SupportChannelContract": {
        "type": "object",
        "properties": {
          "channelType": {
            "description": "Channel kind.",
            "$ref": "#/components/schemas/SupportChannelTypeContract"
          },
          "coverageDescription": {
            "type": "string",
            "description": "Human-readable coverage window."
          },
          "coverageHoursPerWeek": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Weekly coverage hours.",
            "format": "int32"
          }
        },
        "description": "A support channel as shown on the public support page (PRXSAAS-BE-0221)."
      },
      "SupportChannelTypeContract": {
        "type": "integer",
        "description": "Support channel kind exposed on the public contract (PRXSAAS-BE-0221)."
      },
      "SupportDiagnosticIntakeContract": {
        "type": "object",
        "properties": {
          "intakeId": {
            "type": "string",
            "description": "Surrogate identifier of the intake."
          },
          "environment": {
            "type": [
              "null",
              "string"
            ],
            "description": "OS / runtime environment description."
          },
          "appVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Application or product version the issue was observed on."
          },
          "deviceInfo": {
            "type": [
              "null",
              "string"
            ],
            "description": "Device or machine identifier where the issue occurred."
          },
          "logExcerpt": {
            "type": [
              "null",
              "string"
            ],
            "description": "Relevant log excerpt."
          },
          "stepsToReproduce": {
            "type": [
              "null",
              "string"
            ],
            "description": "Steps required to reproduce the issue."
          },
          "diagnosticsJson": {
            "type": [
              "null",
              "string"
            ],
            "description": "Structured diagnostic payload."
          },
          "submittedByUserId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Identifier of the user who submitted the intake, when authenticated."
          },
          "submittedAtUtc": {
            "type": "string",
            "description": "UTC instant the intake was captured.",
            "format": "date-time"
          }
        },
        "description": "Read-only projection of a diagnostic intake suitable for API responses."
      },
      "SupportedCurrencyContract": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "ISO 4217 alphabetic code, upper-case, e.g. \"USD\"."
          },
          "numericCode": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "ISO 4217 numeric code when known.",
            "format": "int32"
          },
          "decimalPlaces": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Minor-units (decimal places) the currency is quoted to.",
            "format": "int32"
          },
          "englishName": {
            "type": "string",
            "description": "English display name; for client-neutral labelling only."
          }
        },
        "description": "A currency supported by the platform, expressed as an ISO 4217 code\r\n(PRXSAAS-BE-0235). Presentation (symbol placement, decimal separators) is\r\nintentionally left to the client."
      },
      "SupportedLocaleContract": {
        "type": "object",
        "properties": {
          "bcp47Tag": {
            "type": "string",
            "description": "Canonical BCP 47 language tag, e.g. \"en-US\"."
          },
          "language": {
            "type": "string",
            "description": "ISO 639 language subtag, lower-case, e.g. \"en\"."
          },
          "region": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO 3166-1 alpha-2 region subtag when present, upper-case, e.g. \"US\"."
          },
          "englishName": {
            "type": "string",
            "description": "English display name; for client-neutral labelling only."
          },
          "isRightToLeft": {
            "type": "boolean",
            "description": "True when the locale reads right-to-left."
          }
        },
        "description": "A locale supported by the platform, expressed as a BCP 47 language tag\r\n(PRXSAAS-BE-0235). The contract carries only neutral identifiers and an\r\nEnglish label — never locale-specific number/date formatting — so clients\r\nremain responsible for their own presentation."
      },
      "SupportedTimeZoneContract": {
        "type": "object",
        "properties": {
          "ianaId": {
            "type": "string",
            "description": "Canonical IANA identifier, e.g. \"America/New_York\"."
          },
          "windowsId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Equivalent Windows timezone identifier when a mapping exists."
          },
          "englishName": {
            "type": "string",
            "description": "English display name; for client-neutral labelling only."
          },
          "utcOffsetExample": {
            "type": "string",
            "description": "Illustrative UTC offset, e.g. \"UTC-05:00\" (northern winter)."
          }
        },
        "description": "A timezone supported by the platform, expressed as an IANA identifier\r\n(PRXSAAS-BE-0235)."
      },
      "SupportEscalationContract": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the escalation.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Tenant that owns this escalation."
          },
          "incidentId": {
            "type": "string",
            "description": "Owning incident identifier.",
            "format": "uuid"
          },
          "correlationId": {
            "type": "string",
            "description": "Sanitized SDK correlation id suitable for customer display (PRXSAAS-BE-0244)."
          },
          "recordedUtc": {
            "type": "string",
            "description": "UTC instant the escalation was recorded.",
            "format": "date-time"
          }
        },
        "description": "Support escalation entity mirrored from the domain (PRXSAAS-BE-0248).\r\nTenant-scoped so clients only see their own escalations."
      },
      "SupportMatrixHistoryContract": {
        "type": "object",
        "properties": {
          "generatedAtUtc": {
            "type": "string",
            "description": "UTC instant the snapshot was generated.",
            "format": "date-time"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportMatrixHistoryEntryContract"
            },
            "description": "All matrix rows, including superseded and not-yet-published entries."
          }
        },
        "description": "The full, versioned support-matrix history returned to authenticated tenants\r\n(PRXSAAS-BE-0211). Superseded rows remain traceable here."
      },
      "SupportMatrixHistoryEntryContract": {
        "type": "object",
        "properties": {
          "isPublished": {
            "type": "boolean",
            "description": "Whether the row is currently published on the public surface."
          },
          "id": {
            "type": "string",
            "description": "Stable identifier of the matrix row.",
            "format": "uuid"
          },
          "platform": {
            "type": "string",
            "description": "Platform label."
          },
          "sdkMajor": {
            "type": "string",
            "description": "SDK major version label."
          },
          "os": {
            "type": "string",
            "description": "Operating-system label."
          },
          "architecture": {
            "type": "string",
            "description": "Architecture label."
          },
          "status": {
            "description": "Release-support status.",
            "$ref": "#/components/schemas/SupportMatrixStatusContract"
          },
          "supportFromUtc": {
            "type": "string",
            "description": "Inclusive UTC instant support begins.",
            "format": "date-time"
          },
          "supportToUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "Inclusive UTC instant support ends, or null when open-ended.",
            "format": "date-time"
          },
          "documentationUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional absolute documentation link."
          }
        },
        "description": "A single historical entry. Extends the public contract with the publication\r\nflag so authenticated tenants can see both published and superseded rows\r\n(PRXSAAS-BE-0211)."
      },
      "SupportMatrixStatusContract": {
        "type": "integer",
        "description": "Release-support status as exposed on the public contract (PRXSAAS-BE-0211).\r\nValues mirror `Vision.Scan.Domain.SupportMatrix.SupportMatrixStatus` and\r\nmust stay in lock-step with it."
      },
      "SupportRequestCategoryContract": {
        "type": "integer",
        "description": "Functional category of a support request, mirrored from the domain."
      },
      "SupportRequestContract": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Surrogate identifier of the request."
          },
          "category": {
            "description": "Functional category of the request.",
            "$ref": "#/components/schemas/SupportRequestCategoryContract"
          },
          "priority": {
            "description": "Business priority of the request.",
            "$ref": "#/components/schemas/SupportRequestPriorityContract"
          },
          "status": {
            "description": "Current lifecycle status.",
            "$ref": "#/components/schemas/SupportRequestStatusContract"
          },
          "subject": {
            "type": "string",
            "description": "Short summary shown in lists."
          },
          "description": {
            "type": "string",
            "description": "Full description of the issue."
          },
          "requesterName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional requester name."
          },
          "requesterEmail": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional requester e-mail used for follow-up."
          },
          "requesterUserId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional authenticated requester identifier."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the request was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the request was last modified.",
            "format": "date-time"
          },
          "resolvedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the request was resolved, when it has been.",
            "format": "date-time"
          },
          "closedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the request was closed, when it has been.",
            "format": "date-time"
          },
          "diagnostics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportDiagnosticIntakeContract"
            },
            "description": "Diagnostic intake entries attached to the request."
          }
        },
        "description": "Read-only projection of a support request suitable for API responses. The\r\nowning tenant is intentionally never exposed; the caller is always reading\r\nwithin their own tenant."
      },
      "SupportRequestListResponse": {
        "type": "object",
        "properties": {
          "requests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportRequestContract"
            },
            "description": "The tenant's support requests, newest first."
          }
        },
        "description": "Envelope for a page of support requests (PRXSAAS-BE-0124)."
      },
      "SupportRequestPriorityContract": {
        "type": "integer",
        "description": "Business priority of a support request, mirrored from the domain."
      },
      "SupportRequestStatusContract": {
        "type": "integer",
        "description": "Lifecycle status of a support request, mirrored from the domain."
      },
      "SupportRequestTransition": {
        "type": "integer",
        "description": "Lifecycle transition a caller may request on an existing support request\r\n(PRXSAAS-BE-0124)."
      },
      "SupportResponseTargetContract": {
        "type": "object",
        "properties": {
          "severity": {
            "description": "Severity band.",
            "$ref": "#/components/schemas/SupportSeverityContract"
          },
          "firstResponseMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Promised first-response time in whole minutes.",
            "format": "int32"
          },
          "restorationTargetMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Promised restoration time in whole minutes, when committed.",
            "format": "int32"
          }
        },
        "description": "A per-severity response commitment (PRXSAAS-BE-0221)."
      },
      "SupportSeverityContract": {
        "type": "integer",
        "description": "Severity band exposed on the public contract (PRXSAAS-BE-0221)."
      },
      "SupportSourceKindContract": {
        "type": "integer",
        "description": "Origin of a resolved effective commitment (PRXSAAS-BE-0221)."
      },
      "SyncPlanCatalogRequest": {
        "required": [
          "externalCatalogId",
          "prices"
        ],
        "type": "object",
        "properties": {
          "externalCatalogId": {
            "type": "string",
            "description": "External provider-neutral catalog/product identifier."
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SyncPlanPriceRequest"
            },
            "description": "Mappings for every configured local plan price."
          }
        },
        "description": "Request to record the external catalog identifiers backing a local plan\r\n(PRXSAAS-BE-0050)."
      },
      "SyncPlanPriceRequest": {
        "required": [
          "interval",
          "currencyCode",
          "externalPriceId"
        ],
        "type": "object",
        "properties": {
          "interval": {
            "description": "Local billing interval to map.",
            "$ref": "#/components/schemas/PlanBillingIntervalContract"
          },
          "currencyCode": {
            "type": "string",
            "description": "Local ISO-4217 currency code to map."
          },
          "externalPriceId": {
            "type": "string",
            "description": "External provider-neutral price identifier."
          }
        },
        "description": "One local price to external-catalog price mapping supplied by a catalog sync\r\nrequest (PRXSAAS-BE-0050)."
      },
      "TelemetryKind": {
        "enum": [
          "Log",
          "Metric",
          "Trace"
        ],
        "description": "Kind of telemetry signal a record carries (PRXSAAS-BE-0167). Mirrors the\r\ndomain `Vision.Scan.Domain.Platform.TelemetryKind` so the public contract\r\nstays free of domain types."
      },
      "TelemetryPrivacyClass": {
        "enum": [
          "Public",
          "Internal",
          "Confidential"
        ],
        "description": "Privacy classification of a telemetry signal (PRXSAAS-BE-0167). Mirrors the\r\ndomain `TelemetryPrivacyClass` so retention/export controls can be\r\nexpressed on the public contract without leaking a domain type."
      },
      "TelemetryRecordDto": {
        "required": [
          "id",
          "tenantId",
          "kind",
          "severity",
          "privacyClass",
          "message",
          "operationName",
          "traceId",
          "occurredUtc",
          "createdUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/TelemetryKind"
          },
          "severity": {
            "$ref": "#/components/schemas/TelemetrySeverity"
          },
          "privacyClass": {
            "$ref": "#/components/schemas/TelemetryPrivacyClass"
          },
          "message": {
            "type": "string"
          },
          "operationName": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "occurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for a recorded telemetry signal (PRXSAAS-BE-0167). Plain\r\ndata only — no EF entity or domain model crosses the API boundary."
      },
      "TelemetrySeverity": {
        "enum": [
          "Trace",
          "Debug",
          "Information",
          "Warning",
          "Error",
          "Critical"
        ],
        "description": "Severity of a telemetry signal (PRXSAAS-BE-0167). Mirrors the domain\r\n`TelemetrySeverity` and aligns with OpenTelemetry severity levels."
      },
      "TenantConnectorContract": {
        "required": [
          "id",
          "connectorKey",
          "isEnabled",
          "isEntitled",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the binding.",
            "format": "uuid"
          },
          "connectorKey": {
            "type": "string",
            "description": "Connector key of the bound catalog entry."
          },
          "isEnabled": {
            "type": "boolean",
            "description": "Whether the tenant has enabled this connector binding."
          },
          "isEntitled": {
            "type": "boolean",
            "description": "Whether the tenant is entitled to use the connector."
          },
          "secretReference": {
            "type": [
              "null",
              "string"
            ],
            "description": "Server-assigned pointer to the tenant's connector secret (not the secret)."
          },
          "configurationFingerprint": {
            "type": [
              "null",
              "string"
            ],
            "description": "Stable fingerprint of the effective configuration at last validation."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the binding was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the binding was last modified.",
            "format": "date-time"
          }
        },
        "description": "Public representation of a tenant's connector binding (PRXSAAS-BE-0227).\r\nCarries the secret reference pointer, never the secret material."
      },
      "TenantContract": {
        "required": [
          "id",
          "code",
          "name",
          "status",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Surrogate identifier of the tenant.",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "Globally unique, immutable tenant code."
          },
          "name": {
            "type": "string",
            "description": "Tenant display name."
          },
          "status": {
            "description": "Lifecycle state of the tenant.",
            "$ref": "#/components/schemas/TenantStatusContract"
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the tenant was created.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "UTC instant the tenant was last modified.",
            "format": "date-time"
          }
        },
        "description": "Public representation of a tenant (PRXSAAS-BE-0031)."
      },
      "TenantDataExportItemResponse": {
        "required": [
          "sourceRecordId",
          "dataType",
          "retentionClass",
          "capturedAtUtc",
          "fields"
        ],
        "type": "object",
        "properties": {
          "sourceRecordId": {
            "type": "string",
            "format": "uuid"
          },
          "dataType": {
            "type": "string"
          },
          "retentionClass": {
            "$ref": "#/components/schemas/DataRetentionClassDto"
          },
          "capturedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "fields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "description": "PRXSAAS-BE-0247. One redacted item of a tenant data export. Payload fields\r\nare a closed whitelist: free-form content (log excerpts, diagnostics blobs,\r\nactor identifiers, device serials) never leaves the store — sensitive keys\r\nare replaced with a fixed redaction marker by the producing service."
      },
      "TenantDataExportPageResponse": {
        "required": [
          "tenantId",
          "page",
          "pageSize",
          "totalItems",
          "totalPages",
          "items"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalItems": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalPages": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantDataExportItemResponse"
            }
          }
        },
        "description": "PRXSAAS-BE-0247. One page of a tenant-scoped, redacted data export. The\r\ntenant id is always the authenticated caller's tenant — it is echoed back so\r\nan auditor can bind the export file to a subject."
      },
      "TenantLocalizationDefaultsContract": {
        "type": "object",
        "properties": {
          "locale": {
            "type": [
              "null",
              "string"
            ],
            "description": "Persisted BCP 47 locale, or null for platform default."
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "Persisted ISO 4217 currency code, or null for platform default."
          },
          "timeZone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Persisted IANA timezone identifier, or null for platform default."
          }
        },
        "description": "A tenant's persisted locale/currency/timezone defaults (PRXSAAS-BE-0235).\r\nA null value for a field means the platform default applies."
      },
      "TenantOffboardingResponse": {
        "required": [
          "id",
          "tenantId",
          "status",
          "idempotentReplay",
          "startedAtUtc",
          "completedAtUtc",
          "retentionSummary"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "idempotentReplay": {
            "type": "boolean"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "retentionSummary": {
            "type": "string"
          }
        },
        "description": "PRXSAAS-BE-0247. Response describing one (idempotent) offboarding run.\r\nWhen bool TenantOffboardingResponse.IdempotentReplay is true the run had already completed and\r\nno destructive work was executed again."
      },
      "TenantOnboardingRequest": {
        "required": [
          "idempotencyKey",
          "code",
          "name",
          "initialSiteCode",
          "initialSiteName"
        ],
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string",
            "description": "Client-supplied idempotency key (8-128 characters)."
          },
          "code": {
            "type": "string",
            "description": "Globally unique tenant code to provision (2-64 lowercase letters, digits or hyphens)."
          },
          "name": {
            "type": "string",
            "description": "Tenant display name."
          },
          "initialSiteCode": {
            "type": "string",
            "description": "Code of the initial site created with the tenant."
          },
          "initialSiteName": {
            "type": "string",
            "description": "Display name of the initial site created with the tenant."
          }
        },
        "description": "Request to onboard a tenant idempotently (PRXSAAS-BE-0034)."
      },
      "TenantOnboardingResponse": {
        "required": [
          "idempotencyKey",
          "state",
          "replayed",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string",
            "description": "Idempotency key the outcome belongs to."
          },
          "state": {
            "description": "State of the attempt.",
            "$ref": "#/components/schemas/TenantOnboardingStateContract"
          },
          "tenant": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The onboarded tenant when the attempt completed; null otherwise.",
                "$ref": "#/components/schemas/TenantContract"
              }
            ]
          },
          "initialSite": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The initial site when the attempt completed; null otherwise.",
                "$ref": "#/components/schemas/SiteContract"
              }
            ]
          },
          "replayed": {
            "type": "boolean",
            "description": "`true` when this response was replayed from a prior attempt."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "UTC instant the attempt was first reserved.",
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "UTC instant the attempt reached a terminal state; null while pending.",
            "format": "date-time"
          }
        },
        "description": "Outcome of an idempotent tenant onboarding attempt (PRXSAAS-BE-0034)."
      },
      "TenantOnboardingStateContract": {
        "type": "integer",
        "description": "Public representation of the state of a tenant onboarding attempt\r\n(PRXSAAS-BE-0034)."
      },
      "TenantOperationalDetailResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the operational detail record.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (read-only; never rebound from client input)."
          },
          "status": {
            "description": "Current operational status of the tenant.",
            "$ref": "#/components/schemas/TenantOperationalStatus"
          },
          "summary": {
            "type": "string",
            "description": "Human-readable summary of the tenant's current operational state."
          },
          "primaryContact": {
            "type": "string",
            "description": "Primary operational contact (email or id)."
          },
          "escalationContact": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional escalation contact when the primary contact is unavailable."
          },
          "updatedBy": {
            "type": "string",
            "description": "Identity that last updated the record."
          },
          "updatedUtc": {
            "type": "string",
            "description": "UTC instant of the last update.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0132. Response contract describing the operational detail record of a\r\nbuild tenant. Exposes a stable, contract-safe projection of the domain record."
      },
      "TenantOperationalStatus": {
        "type": "integer",
        "description": "PRXSAAS-BE-0132. Operational status of a build tenant as exposed through the\r\nversioned API contracts. Mirrors the domain enum without leaking domain types."
      },
      "TenantRegionSelectionContract": {
        "type": "object",
        "properties": {
          "selectedRegionCode": {
            "type": "string"
          },
          "selectedCatalogVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "previousRegionCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "changedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedBy": {
            "type": "string"
          },
          "changeReason": {
            "type": "string",
            "description": "The mandatory reason recorded for the most recent change."
          }
        },
        "description": "Tenant's current region selection, auditable (PRXSAAS-BE-0234)."
      },
      "TenantStatusContract": {
        "type": "integer",
        "description": "Lifecycle state of a tenant (PRXSAAS-BE-0031). Mirrors the Domain enum; kept\r\ndependency-free so public OpenAPI contracts never expose EF/Domain types."
      },
      "TestConnectorConnectionRequest": {
        "type": "object",
        "properties": {
          "timeoutMilliseconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Optional client hint for the connection-test timeout (milliseconds).",
            "format": "int32"
          }
        },
        "description": "Request to run a bounded, auditable connection test against a connector instance\r\n(PRXSAAS? PRXSAAS-BE-0229). The per-attempt timeout is enforced server-side; this\r\nbody carries no secret material."
      },
      "TestCoverageItem": {
        "required": [
          "testLevel",
          "testIdentifier",
          "isNegativePath"
        ],
        "type": "object",
        "properties": {
          "testLevel": {
            "$ref": "#/components/schemas/TestLevel"
          },
          "testIdentifier": {
            "type": "string"
          },
          "isNegativePath": {
            "type": "boolean"
          }
        },
        "description": "One test mapped to a requirement (PRXSAAS-BE-0173)."
      },
      "TestLevel": {
        "type": "integer",
        "description": "Test level a requirement can be traced to (PRXSAAS-BE-0173). Mirrors the\r\nDomain enum; kept dependency-free so public OpenAPI contracts never expose\r\nEF/Domain types."
      },
      "TestRequirementResponse": {
        "required": [
          "tenantId",
          "requirementKey",
          "title",
          "criticality",
          "isTenantScoped",
          "description",
          "traceabilityStatus",
          "missingCoverageReasons",
          "createdAtUtc",
          "updatedAtUtc",
          "coverages"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "requirementKey": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "criticality": {
            "$ref": "#/components/schemas/RequirementCriticality"
          },
          "isTenantScoped": {
            "type": "boolean"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceabilityStatus": {
            "$ref": "#/components/schemas/TraceabilityStatus"
          },
          "missingCoverageReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "coverages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCoverageItem"
            }
          }
        },
        "description": "Response contract for a requirement traceability record. Plain data only —\r\nnever an EF entity — so the OpenAPI surface stays stable and provider-neutral."
      },
      "ThreatCategory": {
        "type": "integer",
        "description": "STRIDE classification of a modelled threat (PRXSAAS-BE-0145). Mirrors the\r\nDomain enum; kept dependency-free so public OpenAPI contracts never expose\r\nEF/Domain types."
      },
      "ThreatMitigationItem": {
        "required": [
          "threatKey",
          "category",
          "severity",
          "description",
          "mitigationOwner"
        ],
        "type": "object",
        "properties": {
          "threatKey": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/ThreatCategory"
          },
          "severity": {
            "$ref": "#/components/schemas/ThreatSeverity"
          },
          "description": {
            "type": "string"
          },
          "mitigationOwner": {
            "type": "string"
          }
        },
        "description": "One mitigation backlog item supplied when creating a threat-model artifact."
      },
      "ThreatMitigationResponse": {
        "required": [
          "threatKey",
          "category",
          "severity",
          "description",
          "mitigationOwner",
          "status",
          "verificationReference",
          "riskAcceptanceRationale",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "threatKey": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/ThreatCategory"
          },
          "severity": {
            "$ref": "#/components/schemas/ThreatSeverity"
          },
          "description": {
            "type": "string"
          },
          "mitigationOwner": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/MitigationStatus"
          },
          "verificationReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "riskAcceptanceRationale": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response contract for one mitigation backlog item. Plain data only - never\r\nan EF entity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "ThreatModelResponse": {
        "required": [
          "tenantId",
          "artifactKey",
          "revision",
          "title",
          "systemScope",
          "owningTeam",
          "status",
          "isApprovable",
          "openBacklogCount",
          "createdAtUtc",
          "updatedAtUtc",
          "approvedAtUtc",
          "approvedBy",
          "mitigations"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "artifactKey": {
            "type": "string"
          },
          "revision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "systemScope": {
            "type": "string"
          },
          "owningTeam": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ThreatModelStatus"
          },
          "isApprovable": {
            "type": "boolean"
          },
          "openBacklogCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "approvedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "approvedBy": {
            "type": [
              "null",
              "string"
            ]
          },
          "mitigations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThreatMitigationResponse"
            }
          }
        },
        "description": "Response contract for a threat-model artifact and its mitigation backlog."
      },
      "ThreatModelStatus": {
        "type": "integer",
        "description": "Review state of a threat-model artifact (PRXSAAS-BE-0145)."
      },
      "ThreatSeverity": {
        "type": "integer",
        "description": "Risk rating of a modelled threat (PRXSAAS-BE-0145)."
      },
      "TimeBoundEntitlementOverrideResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the override record.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Owning tenant identifier (read-only; never rebound from client input)."
          },
          "overrideType": {
            "description": "Type of override being applied.",
            "$ref": "#/components/schemas/EntitlementOverrideType"
          },
          "description": {
            "type": "string",
            "description": "Human-readable description of what the override accomplishes."
          },
          "startUtc": {
            "type": "string",
            "description": "UTC instant when the override window begins (inclusive).",
            "format": "date-time"
          },
          "endUtc": {
            "type": "string",
            "description": "UTC instant when the override window ends (exclusive). Never null: overrides are time-bound.",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string",
            "description": "Identity that last updated the record."
          },
          "updatedUtc": {
            "type": "string",
            "description": "UTC instant of the last update.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0135. Response contract describing the time-bound entitlement/status override record of a\r\nbuild tenant. Exposes a stable, contract-safe projection of the domain record."
      },
      "TraceabilityStatus": {
        "type": "integer",
        "description": "Traceability verdict for one requirement (PRXSAAS-BE-0173)."
      },
      "TransitionSupportRequestRequest": {
        "type": "object",
        "properties": {
          "transition": {
            "description": "The transition to apply.",
            "$ref": "#/components/schemas/SupportRequestTransition"
          }
        },
        "description": "Request body carrying the lifecycle transition to apply (PRXSAAS-BE-0124)."
      },
      "TrustEvidenceApprovalStatus": {
        "type": "integer",
        "description": "Approval lifecycle of a trust evidence record (PRXSAAS-BE-0250)."
      },
      "TrustEvidenceCategory": {
        "type": "integer",
        "description": "Category of a trust/compliance evidence record (PRXSAAS-BE-0250). These are the\r\ngoverned evidence classes a procurement or security review expects to see\r\ncentralized rather than scattered across website copy."
      },
      "TrustEvidenceResponse": {
        "required": [
          "tenantId",
          "id",
          "owner",
          "approver",
          "category",
          "title",
          "summary",
          "evidenceUri",
          "visibility",
          "approvalStatus",
          "rejectionReason",
          "effectiveDateUtc",
          "expiresOnUtc",
          "retentionClass",
          "blockingReasons",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "owner": {
            "type": "string"
          },
          "approver": {
            "type": [
              "null",
              "string"
            ]
          },
          "category": {
            "$ref": "#/components/schemas/TrustEvidenceCategory"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "evidenceUri": {
            "type": [
              "null",
              "string"
            ]
          },
          "visibility": {
            "$ref": "#/components/schemas/TrustEvidenceVisibility"
          },
          "approvalStatus": {
            "$ref": "#/components/schemas/TrustEvidenceApprovalStatus"
          },
          "rejectionReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "effectiveDateUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "expiresOnUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "retentionClass": {
            "type": [
              "null",
              "string"
            ]
          },
          "blockingReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Response payload returned by the trust evidence registry APIs\r\n(PRXSAAS-BE-0250)."
      },
      "TrustEvidenceVisibility": {
        "type": "integer",
        "description": "Audience of a trust evidence record (PRXSAAS-BE-0250)."
      },
      "UpdateBenchmarkApprovalRequest": {
        "required": [
          "approvalStatus"
        ],
        "type": "object",
        "properties": {
          "approvalStatus": {
            "$ref": "#/components/schemas/BenchmarkApprovalStatus"
          }
        },
        "description": "Request to update a benchmark's approval status."
      },
      "UpdateBenchmarkVisibilityRequest": {
        "required": [
          "visibility"
        ],
        "type": "object",
        "properties": {
          "visibility": {
            "$ref": "#/components/schemas/EvidenceVisibility"
          }
        },
        "description": "Request to update a benchmark's visibility."
      },
      "UpdateCustomContractRequest": {
        "required": [
          "name",
          "startUtc",
          "endUtc"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "New non-blank contract display name."
          },
          "planKey": {
            "type": [
              "null",
              "string"
            ],
            "description": "New optional catalog plan key."
          },
          "termsText": {
            "type": [
              "null",
              "string"
            ],
            "description": "New optional free-form negotiated terms summary."
          },
          "startUtc": {
            "type": "string",
            "description": "New UTC window start (inclusive).",
            "format": "date-time"
          },
          "endUtc": {
            "type": "string",
            "description": "New UTC window end (exclusive); must be after DateTimeOffset UpdateCustomContractRequest.StartUtc.",
            "format": "date-time"
          }
        },
        "description": "Request contract to update the editable administration fields of a custom\r\ncontract (PRXSAAS-BE-0058). Lifecycle transitions have their own endpoints in\r\nthe application-service story (PRXSAAS-BE-0059) so each mutation is auditable."
      },
      "UpdateEnterpriseSsoConnectionRequest": {
        "required": [
          "displayName",
          "metadataUrl",
          "signingCertificateThumbprint",
          "clientId",
          "isJustInTimeProvisioningEnabled",
          "isMfaRequired"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "Administrator-facing name."
          },
          "metadataUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Metadata document URL; must be absolute HTTPS when supplied."
          },
          "signingCertificateThumbprint": {
            "type": [
              "null",
              "string"
            ],
            "description": "SAML signing-certificate thumbprint."
          },
          "clientId": {
            "type": [
              "null",
              "string"
            ],
            "description": "OpenID Connect client identifier."
          },
          "isJustInTimeProvisioningEnabled": {
            "type": "boolean",
            "description": "Whether first sign-in may create the local user."
          },
          "isMfaRequired": {
            "type": "boolean",
            "description": "Whether a local second factor is demanded as well."
          }
        },
        "description": "PRXSAAS-BE-0028. Request to update a staged connection's trust material."
      },
      "UpdateIntegrationTestFixtureRequest": {
        "required": [
          "fixtureKey",
          "displayName",
          "databaseLifecycle",
          "resetStrategy",
          "requiresSqlServer",
          "connectionEnvironmentVariable",
          "description"
        ],
        "type": "object",
        "properties": {
          "fixtureKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "databaseLifecycle": {
            "$ref": "#/components/schemas/FixtureDatabaseLifecycle"
          },
          "resetStrategy": {
            "$ref": "#/components/schemas/FixtureResetStrategy"
          },
          "requiresSqlServer": {
            "type": "boolean"
          },
          "connectionEnvironmentVariable": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to update an existing fixture definition."
      },
      "UpdateLeadStatusRequest": {
        "type": "object",
        "properties": {
          "status": {
            "description": "Target lifecycle status.",
            "$ref": "#/components/schemas/LeadStatusContract"
          }
        },
        "description": "Request to update a lead's status (PRXSAAS-BE-0019)."
      },
      "UpdateNotificationTemplateRequest": {
        "required": [
          "subject",
          "bodyTemplate"
        ],
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "bodyTemplate": {
            "type": "string"
          }
        }
      },
      "UpdateProductCapabilityStatusRequest": {
        "required": [
          "status",
          "linkedArtifactId",
          "releaseNotes",
          "deprecationDate",
          "replacementCapabilityKey",
          "migrationLink"
        ],
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CapabilityStatusDto"
          },
          "linkedArtifactId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "releaseNotes": {
            "type": [
              "null",
              "string"
            ]
          },
          "deprecationDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "replacementCapabilityKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "migrationLink": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to advance a capability's lifecycle status. Only the fields\r\nrelevant to the target status are consumed; the service validates the\r\ntransition and its required linkage metadata."
      },
      "UpdateReleaseCertificationGateRequest": {
        "required": [
          "releaseVersion",
          "title",
          "pilotOwner",
          "targetPilotStartUtc"
        ],
        "type": "object",
        "properties": {
          "releaseVersion": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "pilotOwner": {
            "type": "string"
          },
          "targetPilotStartUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "UpdateReleaseChannelRequest": {
        "required": [
          "displayName",
          "description"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request contract to rename/redescribe an existing release channel. The\r\nchannel key is immutable because clients resolve channels by it."
      },
      "UpdateSiteRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "New site display name."
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ],
            "description": "New IANA time-zone identifier, or `null` to clear it."
          }
        },
        "description": "Request to update the mutable descriptive fields of a site (PRXSAAS-BE-0031).\r\nThe site code and owning tenant are immutable and therefore absent."
      },
      "UpdateTenantRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "New tenant display name."
          }
        },
        "description": "Request to rename a tenant (PRXSAAS-BE-0031). The tenant code is immutable\r\nand therefore deliberately absent."
      },
      "UpdateTrustEvidenceRequest": {
        "required": [
          "title",
          "summary",
          "evidenceUri",
          "visibility",
          "expiresOnUtc",
          "retentionClass"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "evidenceUri": {
            "type": [
              "null",
              "string"
            ]
          },
          "visibility": {
            "$ref": "#/components/schemas/TrustEvidenceVisibility"
          },
          "expiresOnUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "retentionClass": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Request payload for updating the mutable details of a draft/rejected\r\ntrust evidence record (PRXSAAS-BE-0250)."
      },
      "UploadAttachmentRequest": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Original client file name."
          },
          "contentType": {
            "type": "string",
            "description": "Content type of the upload."
          },
          "content": {
            "type": "string",
            "description": "Raw file bytes (base64 not used; multipart in transport).",
            "format": "byte"
          }
        },
        "description": "PRXSAAS-BE-0200. Upload request for a diagnostic attachment."
      },
      "UploadAttachmentResponse": {
        "type": "object",
        "properties": {
          "attachmentId": {
            "type": "string",
            "description": "Attachment id.",
            "format": "uuid"
          },
          "storageKey": {
            "type": "string",
            "description": "Storage key in private quarantine."
          },
          "scanStatus": {
            "type": "string",
            "description": "Initial scan status (always `Quarantined`)."
          }
        },
        "description": "PRXSAAS-BE-0200. Upload response referencing the quarantined attachment."
      },
      "UpsertNotificationPreferenceRequest": {
        "required": [
          "userId",
          "eventType",
          "channel",
          "isEnabled",
          "digestFrequency"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": [
              "null",
              "string"
            ]
          },
          "eventType": {
            "$ref": "#/components/schemas/NotificationEventTypeContract"
          },
          "channel": {
            "$ref": "#/components/schemas/NotificationChannelContract"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "digestFrequency": {
            "$ref": "#/components/schemas/NotificationDigestFrequencyContract"
          }
        }
      },
      "UpsertOnboardingMilestoneRequest": {
        "required": [
          "key",
          "name",
          "stepOrder",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Gets or sets the milestone key (e.g., \"account\", \"plan\", \"site\")."
          },
          "name": {
            "type": "string",
            "description": "Gets or sets the milestone name."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Gets or sets the milestone description."
          },
          "stepOrder": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Gets or sets the display order of this milestone in the onboarding flow.",
            "format": "int32"
          },
          "isActive": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Gets or sets whether the milestone is active."
          }
        },
        "description": "Request for creating or updating an onboarding milestone (PRXSAAS-BE-0222)."
      },
      "UpsertTenantOperationalDetailRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "Identifier of the tenant the operational detail describes."
          },
          "summary": {
            "type": "string",
            "description": "Mandatory human-readable summary of the tenant's current operational state."
          },
          "status": {
            "description": "Current operational status of the tenant.",
            "$ref": "#/components/schemas/TenantOperationalStatus"
          },
          "primaryContact": {
            "type": "string",
            "description": "Mandatory primary operational contact (email or id)."
          },
          "escalationContact": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional escalation contact when the primary contact is unavailable."
          }
        },
        "description": "PRXSAAS-BE-0132. Request contract to create or replace the operational detail\r\nrecord for a build tenant. Carries only the data needed to describe the tenant's\r\ncurrent operational state; it contains no EF entities and no billing-provider SDK\r\ntypes. Tenant ownership is validated server-side from the authenticated context."
      },
      "UpsertTimeBoundEntitlementOverrideRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "Identifier of the tenant the override describes."
          },
          "overrideType": {
            "description": "Type of override being applied.",
            "$ref": "#/components/schemas/EntitlementOverrideType"
          },
          "description": {
            "type": "string",
            "description": "Mandatory human-readable description of what the override accomplishes."
          },
          "startUtc": {
            "type": "string",
            "description": "UTC instant when the override window begins (inclusive).",
            "format": "date-time"
          },
          "endUtc": {
            "type": "string",
            "description": "UTC instant when the override window ends (exclusive). Never null: overrides are time-bound.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0135. Request contract to create or replace a time-bound entitlement/status override\r\nrecord for a build tenant. Carries only the data needed to describe the override; it contains no EF entities\r\nand no billing-provider SDK types. Tenant ownership is validated server-side from the authenticated context."
      },
      "UsageEventResponse": {
        "required": [
          "id",
          "tenantId",
          "eventType",
          "count",
          "schemaVersion",
          "occurredUtc",
          "createdUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "count": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "schemaVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "occurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "eventCategory": {
            "type": [
              "null",
              "string"
            ]
          },
          "channel": {
            "type": [
              "null",
              "string"
            ]
          },
          "source": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Response contract for one stored privacy-safe usage event. Plain data only -\r\nnever an EF entity - so the OpenAPI surface stays stable and provider-neutral."
      },
      "UserResponse": {
        "required": [
          "id",
          "tenantId",
          "login",
          "status",
          "isLoginVerified",
          "createdAtUtc",
          "updatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable user identifier.",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "description": "Owning tenant."
          },
          "login": {
            "type": "string",
            "description": "Login identifier as entered."
          },
          "status": {
            "description": "Lifecycle state.",
            "$ref": "#/components/schemas/UserStatusContract"
          },
          "isLoginVerified": {
            "type": "boolean",
            "description": "Whether the login address has been proven."
          },
          "createdAtUtc": {
            "type": "string",
            "description": "Creation instant, UTC.",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "description": "Last modification instant, UTC.",
            "format": "date-time"
          }
        },
        "description": "PRXSAAS-BE-0021. Public representation of a user."
      },
      "UserStatusContract": {
        "type": "integer",
        "description": "PRXSAAS-BE-0021. Lifecycle state of a user as exposed on the wire."
      },
      "ValidateBarcodeRequest": {
        "required": [
          "symbology",
          "payload"
        ],
        "type": "object",
        "properties": {
          "symbology": {
            "type": "string"
          },
          "payload": {
            "type": "string"
          },
          "format": {
            "type": [
              "null",
              "string"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BarcodeRenderOptionsDto"
              }
            ]
          }
        },
        "description": "Request for validating a barcode payload without generating an artifact (PRXSAAS-BE-0302)."
      },
      "ValidateBarcodeResponse": {
        "required": [
          "symbology",
          "normalizedPayload",
          "isValid",
          "errors",
          "correlationId"
        ],
        "type": "object",
        "properties": {
          "symbology": {
            "type": "string"
          },
          "normalizedPayload": {
            "type": "string"
          },
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BarcodeValidationErrorResponse"
            }
          },
          "checkDigitFeedback": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BarcodeCheckDigitFeedback"
              }
            ]
          },
          "correlationId": {
            "type": "string"
          }
        },
        "description": "Response from validating a barcode payload without consuming generation quota."
      },
      "ValidateEnrollmentTokenRequest": {
        "type": "object",
        "properties": {
          "tokenValue": {
            "type": "string",
            "description": "The token value to validate (plaintext, will be hashed server-side)."
          },
          "deviceId": {
            "type": "string",
            "description": "Associated device identifier for validation context."
          }
        },
        "description": "Request to validate and consume an enrollment token."
      },
      "ValidateEnrollmentTokenResponse": {
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean",
            "description": "Indicates whether the token is valid and unused."
          },
          "token": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Associated enrollment token contract if valid.",
                "$ref": "#/components/schemas/EnrollmentTokenContract"
              }
            ]
          }
        },
        "description": "Response from validating an enrollment token."
      },
      "ValidateLicenseRequest": {
        "required": [
          "licenseToken"
        ],
        "type": "object",
        "properties": {
          "licenseToken": {
            "type": "string"
          }
        },
        "description": "Request to validate a license contract."
      },
      "ValidatePackageRequest": {
        "required": [
          "packageData",
          "packageVersion",
          "generatedAt",
          "expiresAt",
          "signature"
        ],
        "type": "object",
        "properties": {
          "packageData": {
            "type": "string",
            "format": "byte"
          },
          "packageVersion": {
            "type": "string"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "signature": {
            "type": "string"
          }
        },
        "description": "Request for validating a private entitlement service package signature."
      },
      "ValidateWorkflowCompatibilityRequest": {
        "type": "object",
        "properties": {
          "profileKey": {
            "type": "string",
            "description": "Profile key to evaluate."
          },
          "version": {
            "type": [
              "null",
              "string"
            ],
            "description": "Requested version, or null for latest on active channel."
          },
          "deviceSdkVersion": {
            "type": "string",
            "description": "Device's installed SDK runtime version."
          },
          "entitledFeatureCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of feature codes currently entitled to the tenant/device."
          }
        },
        "description": "Request to validate device/tenant entitlement against a workflow profile (PRXSAAS-BE-0215)."
      },
      "VerificationPurposeContract": {
        "type": "integer",
        "description": "PRXSAAS-BE-0021. Reason a verification token was issued."
      },
      "VerificationRequest": {
        "required": [
          "userId",
          "token"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "description": "Account the token was issued to.",
            "format": "uuid"
          },
          "token": {
            "type": "string",
            "description": "The raw token delivered out-of-band; compared by hash and never persisted in plain form."
          }
        },
        "description": "PRXSAAS-BE-0024. Request to redeem an e-mail verification token."
      },
      "VerificationResendRequest": {
        "required": [
          "login"
        ],
        "type": "object",
        "properties": {
          "login": {
            "type": "string",
            "description": "Login identifier (e-mail address)."
          }
        },
        "description": "Request to send a fresh verification link to an unverified account."
      },
      "VerificationResendResponse": {
        "required": [
          "accountExists",
          "alreadyVerified",
          "verificationSent",
          "emailDeliveryDeferred",
          "expiresInMinutes"
        ],
        "type": "object",
        "properties": {
          "accountExists": {
            "type": "boolean",
            "description": "Whether a matching account exists."
          },
          "alreadyVerified": {
            "type": "boolean",
            "description": "Whether the account was already verified."
          },
          "verificationSent": {
            "type": "boolean",
            "description": "Whether a new verification e-mail was sent."
          },
          "emailDeliveryDeferred": {
            "type": "boolean",
            "description": "Whether delivery is unavailable or deferred."
          },
          "expiresInMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Lifetime of a newly issued verification link.",
            "format": "int32"
          }
        },
        "description": "Result of requesting another e-mail verification link."
      },
      "VerificationTokenResponse": {
        "required": [
          "id",
          "purpose",
          "issuedAtUtc",
          "expiresAtUtc",
          "isConsumed"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Token identifier.",
            "format": "uuid"
          },
          "purpose": {
            "description": "Why the token was issued.",
            "$ref": "#/components/schemas/VerificationPurposeContract"
          },
          "issuedAtUtc": {
            "type": "string",
            "description": "Issue instant, UTC.",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "description": "Expiry instant, UTC.",
            "format": "date-time"
          },
          "isConsumed": {
            "type": "boolean",
            "description": "Whether the token has been redeemed."
          }
        },
        "description": "PRXSAAS-BE-0021. Public representation of an issued verification token."
      },
      "VerifiedWebhookInboxRecordedResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "providerKey": {
            "type": "string"
          },
          "providerEventId": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "receivedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "verifiedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Public response for a recorded verified webhook inbox event (PRXSAAS-BE-0068).\r\nDeliberately excludes the EF entity, its rowversion and the tenant id so no\r\ninternal or sensitive values leak through the API surface."
      },
      "VerifyMfaChallengeRequest": {
        "required": [
          "enrollmentId",
          "code"
        ],
        "type": "object",
        "properties": {
          "enrollmentId": {
            "type": "string",
            "description": "Enrolment being exercised.",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "Code produced by the factor."
          }
        },
        "description": "PRXSAAS-BE-0028. Request to verify a second factor during sign-in."
      },
      "WithdrawCustomerProofRequest": {
        "required": [
          "reason"
        ],
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "description": "Reason the proof was withdrawn."
          }
        },
        "description": "Request to withdraw a published proof (PRXSAAS-BE-0214)."
      },
      "WorkflowCompatibilityResultDto": {
        "type": "object",
        "properties": {
          "isCompatible": {
            "type": "boolean",
            "description": "Whether the tenant/device is fully compatible to run this profile."
          },
          "sdkVersionCompatible": {
            "type": "boolean",
            "description": "True if the device SDK meets or exceeds MinSdkVersion."
          },
          "missingFeatureCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Missing feature codes required by this profile that are not in the entitlement list."
          },
          "incompatibilityReason": {
            "type": [
              "null",
              "string"
            ],
            "description": "Specific incompatibility explanation when bool WorkflowCompatibilityResultDto.IsCompatible is false."
          },
          "profile": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The matching profile DTO if found.",
                "$ref": "#/components/schemas/WorkflowProfileDto"
              }
            ]
          }
        },
        "description": "Outcome of workflow profile compatibility evaluation (PRXSAAS-BE-0215)."
      },
      "WorkflowEngineMode": {
        "enum": [
          "ReceiveAndValidate",
          "ScanAndCount",
          "FindAndPick",
          "FocusedRescue",
          "BulkBatchVerification"
        ],
        "description": "Core engine scanning and verification mode for a workflow profile (PRXSAAS-BE-0215)."
      },
      "WorkflowProfileChannel": {
        "enum": [
          "Development",
          "Preview",
          "Beta",
          "Stable",
          "Deprecated"
        ],
        "description": "Release distribution channel for workflow profiles (PRXSAAS-BE-0215)."
      },
      "WorkflowProfileDto": {
        "type": "object",
        "properties": {
          "profileKey": {
            "type": "string",
            "description": "Unique slug identifier (e.g., \"receive-and-validate\")."
          },
          "displayName": {
            "type": "string",
            "description": "Human-readable profile title."
          },
          "description": {
            "type": "string",
            "description": "Detailed description and intended operational environment."
          },
          "engineMode": {
            "description": "Engine operational mode.",
            "$ref": "#/components/schemas/WorkflowEngineMode"
          },
          "version": {
            "type": "string",
            "description": "Semantic version of the profile definition (e.g., \"1.2.0\")."
          },
          "channel": {
            "description": "Release channel.",
            "$ref": "#/components/schemas/WorkflowProfileChannel"
          },
          "requiredFeatureCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Required platform/plan feature codes (e.g., \"feature_gs1_parser\", \"feature_ocr_rescue\")."
          },
          "uiHints": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "UI overlay/feedback mode hints (e.g., \"BoundingBoxOverlay\", \"AudioConfirmation\")."
          },
          "minSdkVersion": {
            "type": "string",
            "description": "Minimum compatible SDK engine version (e.g., \"2.4.0\")."
          },
          "digest": {
            "type": "string",
            "description": "SHA-256 integrity digest of the published profile specification."
          },
          "publishedAtUtc": {
            "type": "string",
            "description": "UTC publication timestamp.",
            "format": "date-time"
          }
        },
        "description": "DTO representing a versioned workflow profile (PRXSAAS-BE-0215)."
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "Bearer JWT issued by the configured authority. The tenant is derived from the token claims; requests to /api/** without a resolvable tenant are rejected with 401 and a problem document.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "barcodeApiKey": {
        "type": "apiKey",
        "description": "Developer API key issued by the barcode API credential endpoint. The credential must be active, unexpired, tenant-owned and scoped with `barcode:generate`.",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "bearerAuth": [ ]
    }
  ],
  "tags": [
    {
      "name": "Benchmarks"
    },
    {
      "name": "PublicBenchmarks"
    },
    {
      "name": "PublicRoi"
    },
    {
      "name": "SdkTelemetry"
    },
    {
      "name": "Health"
    },
    {
      "name": "EvaluationAbuse"
    },
    {
      "name": "DailyUsageAggregation"
    },
    {
      "name": "RetentionJob"
    },
    {
      "name": "RevenueAnalytics"
    },
    {
      "name": "UsageEvents"
    },
    {
      "name": "Invitations"
    },
    {
      "name": "Memberships"
    },
    {
      "name": "Rbac"
    },
    {
      "name": "RowSecurityPolicy"
    },
    {
      "name": "Sites"
    },
    {
      "name": "TenantOnboarding"
    },
    {
      "name": "Tenants"
    },
    {
      "name": "AuditEvent"
    },
    {
      "name": "DataRetentionPolicy"
    },
    {
      "name": "PrivacyConsent"
    },
    {
      "name": "PrivacyControls"
    },
    {
      "name": "SigningKey"
    },
    {
      "name": "ThreatModel"
    },
    {
      "name": "SdkCredential"
    },
    {
      "name": "BuildBillingEntitlementScenarios"
    },
    {
      "name": "IntegrationTestFixture"
    },
    {
      "name": "ReleaseCertificationGate"
    },
    {
      "name": "TestRequirements"
    },
    {
      "name": "TrustEvidenceRegistry"
    },
    {
      "name": "PrivateEntitlementPackager"
    },
    {
      "name": "CiGates"
    },
    {
      "name": "EnvironmentConfiguration"
    },
    {
      "name": "HealthBackupDr"
    },
    {
      "name": "Provisioning"
    },
    {
      "name": "Telemetry"
    },
    {
      "name": "CustomContract"
    },
    {
      "name": "PlanFeatureEntitlement"
    },
    {
      "name": "Plans"
    },
    {
      "name": "Leads"
    },
    {
      "name": "Authentication"
    },
    {
      "name": "MfaSso"
    },
    {
      "name": "Session"
    },
    {
      "name": "Users"
    },
    {
      "name": "DeviceEntitlementLicenses"
    },
    {
      "name": "AgentSkillArtifact"
    },
    {
      "name": "ApiCredential"
    },
    {
      "name": "ArtifactPublication"
    },
    {
      "name": "DownloadGrant"
    },
    {
      "name": "SdkCatalog"
    },
    {
      "name": "TenantDataGovernance"
    },
    {
      "name": "AuditEventViewer"
    },
    {
      "name": "OnboardingWizard"
    },
    {
      "name": "PrivacySafeExport"
    },
    {
      "name": "BarcodeCredit"
    },
    {
      "name": "BarcodeCreditReturn"
    },
    {
      "name": "BillingAdapter"
    },
    {
      "name": "Billing"
    },
    {
      "name": "DeviceCheckout"
    },
    {
      "name": "PaddleWebhook"
    },
    {
      "name": "PlanCheckout"
    },
    {
      "name": "RazorpayWebhook"
    },
    {
      "name": "StripeWebhook"
    },
    {
      "name": "SubscriptionLifecycle"
    },
    {
      "name": "VerifiedWebhookInbox"
    },
    {
      "name": "BuildDeviceConsole"
    },
    {
      "name": "BuildOperations"
    },
    {
      "name": "InternalAdminAccess"
    },
    {
      "name": "TenantOperationalDetail"
    },
    {
      "name": "TimeBoundEntitlementOverride"
    },
    {
      "name": "WorkflowProfile"
    },
    {
      "name": "WorkflowProfiles"
    },
    {
      "name": "LifecycleNotification"
    },
    {
      "name": "NotificationPreference"
    },
    {
      "name": "NotificationTemplate"
    },
    {
      "name": "PortalBanner"
    },
    {
      "name": "ServiceIncident"
    },
    {
      "name": "ServiceMaintenance"
    },
    {
      "name": "ServiceStatusComponent"
    },
    {
      "name": "SupportEscalation"
    },
    {
      "name": "SupportRequest"
    },
    {
      "name": "AttachmentQuarantine"
    },
    {
      "name": "SupportCatalog"
    },
    {
      "name": "PlaygroundToken"
    },
    {
      "name": "SandboxCredential"
    },
    {
      "name": "Regions"
    },
    {
      "name": "Recall"
    },
    {
      "name": "PublicSupportMatrix"
    },
    {
      "name": "PublicStatus"
    },
    {
      "name": "PublicCustomerProof"
    },
    {
      "name": "ProductFeed"
    },
    {
      "name": "ProcurementDocument"
    },
    {
      "name": "PharmaException"
    },
    {
      "name": "Localization"
    },
    {
      "name": "EvaluationActivation"
    },
    {
      "name": "EvaluationStatus"
    },
    {
      "name": "Devices"
    },
    {
      "name": "License"
    },
    {
      "name": "DeviceCertification"
    },
    {
      "name": "OnboardingMilestone"
    },
    {
      "name": "CustomerProof"
    },
    {
      "name": "Connector"
    },
    {
      "name": "ConnectorInstance"
    },
    {
      "name": "BarcodeArtifact"
    },
    {
      "name": "BarcodeBatch"
    },
    {
      "name": "BarcodeEntitlement"
    },
    {
      "name": "BarcodeGeneration"
    },
    {
      "name": "BarcodeHistory"
    },
    {
      "name": "BarcodeValidation"
    },
    {
      "name": "BarcodeVerification"
    },
    {
      "name": "BarcodeApiCredential"
    },
    {
      "name": "BarcodeCatalog"
    }
  ]
}
