{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-oauth-token-response-schema.json",
  "title": "OAuthTokenResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-oauth-api-openapi.yml#/components/schemas/OAuthTokenResponse",
  "type": "object",
  "required": [
    "access_token",
    "token_type",
    "expires_in",
    "scope",
    "resource",
    "next_call"
  ],
  "additionalProperties": true,
  "properties": {
    "access_token": {
      "type": "string",
      "format": "password",
      "x-sensitive": true
    },
    "token_type": {
      "type": "string",
      "const": "Bearer"
    },
    "expires_in": {
      "type": "integer",
      "minimum": 1
    },
    "scope": {
      "type": "string",
      "description": "Granted scope; zero-secret public demo tokens return mcp:demo."
    },
    "resource": {
      "type": "string",
      "format": "uri",
      "description": "Resource selected at mint time; for anonymous demo access this is a convenience pre-binding across the two public surfaces."
    },
    "next_call": {
      "type": "object",
      "additionalProperties": true,
      "description": "Recommended next request with convenience resource and authorization bindings."
    }
  }
}