{
  "openapi": "3.1.0",
  "info": {
    "title": "Rivu Accounts & Product Telemetry",
    "description": "Accounts and consented product telemetry only. No financial ledger upload or query API. Browser mutations require the CSRF header; native clients use opaque bearer sessions.",
    "version": "0.9.1"
  },
  "paths": {
    "/healthz": {
      "get": {
        "summary": "Health",
        "operationId": "health_healthz_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/readyz": {
      "get": {
        "summary": "Ready",
        "operationId": "ready_readyz_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/metrics": {
      "get": {
        "summary": "Metrics",
        "operationId": "metrics_metrics_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "MetricsToken": []
          }
        ]
      }
    },
    "/api/v1/config": {
      "get": {
        "summary": "Capabilities",
        "operationId": "capabilities_api_v1_config_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/start": {
      "post": {
        "summary": "Start",
        "operationId": "start_api_v1_auth_start_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthStart"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/finish": {
      "post": {
        "summary": "Finish",
        "operationId": "finish_api_v1_auth_finish_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthFinish"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/feedback": {
      "post": {
        "summary": "Feedback",
        "operationId": "feedback_api_v1_feedback_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeedbackBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me": {
      "get": {
        "summary": "Me",
        "operationId": "me_api_v1_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": []
          }
        ]
      }
    },
    "/api/v1/logout": {
      "post": {
        "summary": "Logout",
        "operationId": "logout_api_v1_logout_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/sessions": {
      "get": {
        "summary": "Sessions",
        "operationId": "sessions_api_v1_sessions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": []
          }
        ]
      }
    },
    "/api/v1/sessions/revoke-others": {
      "post": {
        "summary": "Revoke Others",
        "operationId": "revoke_others_api_v1_sessions_revoke_others_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/consent": {
      "put": {
        "summary": "Consent",
        "operationId": "consent_api_v1_consent_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Consent"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/analytics": {
      "delete": {
        "summary": "Erase Analytics",
        "operationId": "erase_analytics_api_v1_analytics_delete",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/events": {
      "post": {
        "summary": "Ingest",
        "operationId": "ingest_api_v1_events_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Batch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/account/export": {
      "get": {
        "summary": "Export",
        "operationId": "export_api_v1_account_export_get",
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "After"
            }
          },
          {
            "name": "snapshot",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Snapshot"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": []
          }
        ]
      }
    },
    "/api/v1/account": {
      "delete": {
        "summary": "Delete Account",
        "operationId": "delete_account_api_v1_account_delete",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/admin/mfa/enroll": {
      "post": {
        "summary": "Enroll",
        "operationId": "enroll_api_v1_admin_mfa_enroll_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/admin/mfa/verify": {
      "post": {
        "summary": "Verify Admin",
        "operationId": "verify_admin_api_v1_admin_mfa_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Code"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/admin/overview": {
      "get": {
        "summary": "Overview",
        "operationId": "overview_api_v1_admin_overview_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": []
          }
        ]
      }
    },
    "/api/v1/admin/users": {
      "get": {
        "summary": "Users",
        "operationId": "users_api_v1_admin_users_get",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": []
          }
        ]
      }
    },
    "/api/v1/admin/users/{user_id}": {
      "patch": {
        "summary": "Member State",
        "operationId": "member_state_api_v1_admin_users__user_id__patch",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberChange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": [],
            "CsrfHeader": []
          }
        ]
      }
    },
    "/api/v1/admin/users/{user_id}/activity": {
      "get": {
        "summary": "Activity",
        "operationId": "activity_api_v1_admin_users__user_id__activity_get",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": []
          }
        ]
      }
    },
    "/api/v1/admin/audit": {
      "get": {
        "summary": "Audit Log",
        "operationId": "audit_log_api_v1_admin_audit_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "BearerSession": []
          },
          {
            "CookieSession": []
          }
        ]
      }
    },
    "/api/v1/oauth/mobile/start": {
      "post": {
        "summary": "Mobile Oauth Start",
        "operationId": "mobile_oauth_start_api_v1_oauth_mobile_start_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileOAuthStart"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/oauth/mobile/finish": {
      "post": {
        "summary": "Mobile Oauth Finish",
        "operationId": "mobile_oauth_finish_api_v1_oauth_mobile_finish_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileOAuthFinish"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/oauth/{provider}/start": {
      "get": {
        "summary": "Oauth Start",
        "operationId": "oauth_start_api_v1_oauth__provider__start_get",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          },
          {
            "name": "ticket",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Ticket"
            }
          },
          {
            "name": "accepted_terms",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Accepted Terms"
            }
          },
          {
            "name": "adult_confirmed",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Adult Confirmed"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/oauth/{provider}/callback": {
      "post": {
        "summary": "Oauth Callback",
        "operationId": "oauth_callback_post",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "Oauth Callback",
        "operationId": "oauth_callback_get",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AuthFinish": {
        "properties": {
          "challenge_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{30,64}$",
            "title": "Challenge Id"
          },
          "code": {
            "type": "string",
            "pattern": "^[0-9]{6}$",
            "title": "Code"
          },
          "client": {
            "type": "string",
            "enum": [
              "web",
              "mobile"
            ],
            "title": "Client",
            "default": "web"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "challenge_id",
          "code"
        ],
        "title": "AuthFinish"
      },
      "AuthStart": {
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "phone": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\+91[6-9][0-9]{9}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone"
          },
          "kind": {
            "type": "string",
            "enum": [
              "signup",
              "login",
              "email_otp",
              "reset",
              "phone"
            ],
            "title": "Kind"
          },
          "password": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "accepted_terms": {
            "type": "boolean",
            "title": "Accepted Terms",
            "default": false
          },
          "adult_confirmed": {
            "type": "boolean",
            "title": "Adult Confirmed",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind"
        ],
        "title": "AuthStart"
      },
      "Batch": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/TelemetryEvent"
            },
            "type": "array",
            "maxItems": 50,
            "minItems": 1,
            "title": "Events"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "events"
        ],
        "title": "Batch"
      },
      "Code": {
        "properties": {
          "code": {
            "type": "string",
            "pattern": "^[0-9]{6}$",
            "title": "Code"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "code"
        ],
        "title": "Code"
      },
      "Consent": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "version": {
            "type": "string",
            "enum": [
              "product-2026-11-v1",
              "product-2026-11-v2"
            ],
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "enabled",
          "version"
        ],
        "title": "Consent"
      },
      "FeedbackBody": {
        "properties": {
          "reason": {
            "type": "string",
            "enum": [
              "unsafe",
              "wrong_numbers",
              "unhelpful",
              "other"
            ],
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "reason"
        ],
        "title": "FeedbackBody"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "MemberChange": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "MemberChange"
      },
      "MobileOAuthFinish": {
        "properties": {
          "ticket": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{30,64}$",
            "title": "Ticket"
          },
          "secret": {
            "type": "string",
            "maxLength": 100,
            "minLength": 40,
            "title": "Secret"
          },
          "grant": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{30,64}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grant"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "ticket",
          "secret"
        ],
        "title": "MobileOAuthFinish"
      },
      "MobileOAuthStart": {
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "google",
              "apple"
            ],
            "title": "Provider"
          },
          "proof": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "title": "Proof"
          },
          "accepted_terms": {
            "type": "boolean",
            "title": "Accepted Terms"
          },
          "adult_confirmed": {
            "type": "boolean",
            "title": "Adult Confirmed",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "provider",
          "proof",
          "accepted_terms"
        ],
        "title": "MobileOAuthStart"
      },
      "TelemetryEvent": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "name": {
            "type": "string",
            "enum": [
              "screen_view",
              "screen_time",
              "action"
            ],
            "title": "Name"
          },
          "screen": {
            "type": "string",
            "enum": [
              "today",
              "activity",
              "plan",
              "together",
              "insights",
              "settings",
              "account",
              "automations",
              "import",
              "data",
              "assistant",
              "editor",
              "onboarding",
              "review",
              "group",
              "categories",
              "appearance",
              "help",
              "other"
            ],
            "title": "Screen"
          },
          "action": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "add_open",
                  "entry_edit_open",
                  "entry_saved",
                  "review_open",
                  "review_confirm",
                  "review_dismiss",
                  "import_open",
                  "backup_open",
                  "assistant_open",
                  "group_open",
                  "goal_open",
                  "capture_settings",
                  "appearance_open",
                  "help_open",
                  "account_open",
                  "streak_checkin",
                  "streak_undo",
                  "home_layout_changed",
                  "appearance_changed",
                  "motion_reduced",
                  "motion_standard",
                  "haptics_enabled",
                  "haptics_disabled",
                  "insight_open",
                  "story_open",
                  "web_settings_section",
                  "web_account_export"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Action"
          },
          "duration_ms": {
            "type": "integer",
            "maximum": 300000.0,
            "minimum": 0.0,
            "title": "Duration Ms",
            "default": 0
          },
          "platform": {
            "type": "string",
            "enum": [
              "android",
              "ios",
              "web"
            ],
            "title": "Platform"
          },
          "app_version": {
            "type": "string",
            "pattern": "^[0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3}(?:\\+[0-9]{1,10})?$",
            "title": "App Version"
          },
          "at": {
            "type": "integer",
            "minimum": 0.0,
            "title": "At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "session_id",
          "name",
          "screen",
          "platform",
          "app_version",
          "at"
        ],
        "title": "TelemetryEvent"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "BearerSession": {
        "type": "http",
        "scheme": "bearer",
        "description": "Opaque mobile session returned only after verification."
      },
      "CookieSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "rivu_session"
      },
      "CsrfHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Rivu-CSRF",
        "description": "Required with cookie authentication for mutations."
      },
      "MetricsToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "Separate operator scrape secret, never a user session."
      }
    }
  }
}
