{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blockvectra/json-schema/blockvectra-session-response-schema.json",
  "title": "SessionResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/console.yaml#/components/schemas/SessionResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "session",
    "account_created"
  ],
  "properties": {
    "session": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "token",
        "expires_at",
        "idle_timeout_secs"
      ],
      "properties": {
        "token": {
          "type": "string",
          "pattern": "^rgs_[0-9a-f]{64}$",
          "description": "Session token, displayed only this once."
        },
        "expires_at": {
          "$ref": "#/$defs/Timestamp",
          "description": "Absolute expiration timestamp (issued at + 7 days)."
        },
        "idle_timeout_secs": {
          "type": "integer",
          "description": "Idle timeout (seconds)."
        }
      }
    },
    "account_created": {
      "type": "boolean",
      "description": "Whether this login created a new account."
    }
  },
  "$defs": {
    "Timestamp": {
      "type": "string",
      "format": "date-time",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$",
      "description": "RFC 3339 UTC, second precision, ending in `Z` (`2026-09-26T08:00:00Z`); no fractional seconds, without `+00:00` timezone offsets."
    }
  }
}