{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-default-internal-user-params-schema.json",
  "title": "DefaultInternalUserParams",
  "description": "Default parameters to apply when a new user signs in via SSO or is created on the /user/new API endpoint",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-sso-settings-api-openapi.yml#/components/schemas/DefaultInternalUserParams",
  "properties": {
    "user_role": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "internal_user",
            "internal_user_viewer",
            "proxy_admin",
            "proxy_admin_viewer"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "User Role",
      "description": "Default role assigned to new users created",
      "default": "internal_user_viewer"
    },
    "max_budget": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Budget",
      "description": "Default maximum budget (in USD) for new users created"
    },
    "budget_duration": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Duration",
      "description": "Default budget duration for new users (e.g. 'daily', 'weekly', 'monthly')"
    },
    "models": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Models",
      "description": "Default list of models that new users can access"
    },
    "teams": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "items": {
            "$ref": "#/$defs/NewUserRequestTeam"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Teams",
      "description": "Default teams for new users created"
    }
  },
  "type": "object",
  "$defs": {
    "NewUserRequestTeam": {
      "properties": {
        "team_id": {
          "type": "string",
          "title": "Team Id"
        },
        "max_budget_in_team": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Budget In Team"
        },
        "user_role": {
          "type": "string",
          "enum": [
            "user",
            "admin"
          ],
          "title": "User Role",
          "default": "user"
        }
      },
      "type": "object",
      "required": [
        "team_id"
      ],
      "title": "NewUserRequestTeam"
    }
  }
}