{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-oauth-join-response-schema.json",
  "title": "OAuthJoinResponse",
  "description": "The token user's membership in the application's team.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-oauth-api-openapi.yml#/components/schemas/OAuthJoinResponse",
  "properties": {
    "membership_id": {
      "type": "integer",
      "title": "Membership Id"
    },
    "team_id": {
      "type": "string",
      "format": "uuid",
      "title": "Team Id"
    },
    "role": {
      "type": "string",
      "enum": [
        "admin",
        "member",
        "external"
      ],
      "title": "Role"
    }
  },
  "type": "object",
  "required": [
    "membership_id",
    "team_id",
    "role"
  ]
}