{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-user-info-schema-schema.json",
  "title": "UserInfoSchema",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-mobile-manager-openapi.yml#/components/schemas/UserInfoSchema",
  "type": "object",
  "properties": {
    "isSignedIn": {
      "type": "boolean",
      "description": "The sign-in status"
    },
    "userName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The user's email address, null if unavalable"
    },
    "tid": {
      "type": [
        "string",
        "null"
      ],
      "description": "The user's TID UUID, null if unavailable"
    },
    "isOnDemand": {
      "type": "boolean",
      "description": "Is on demand session in progress"
    },
    "onDemandStart": {
      "type": [
        "string",
        "null"
      ],
      "description": "On Demand Start Time (ISO 8601 format), null if unavailable"
    },
    "onDemandExp": {
      "type": [
        "string",
        "null"
      ],
      "description": "DateTime On Demand Expiration (ISO 8601 format), null if unavailable"
    },
    "onDemandPools": {
      "type": [
        "array",
        "null"
      ],
      "description": "A list of available on-demand pools, null if unavailable",
      "items": {
        "$ref": "#/$defs/OnDemandPoolSchema"
      }
    }
  },
  "required": [
    "isOnDemand",
    "isSignedIn",
    "onDemandExp",
    "onDemandPools",
    "onDemandStart",
    "tid",
    "userName"
  ],
  "$defs": {
    "OnDemandPoolSchema": {
      "type": "object",
      "properties": {
        "poolName": {
          "type": "string",
          "description": "On Demand pool name"
        },
        "availableHours": {
          "type": "integer",
          "format": "int32",
          "description": "Available hours in the On Demand pool"
        }
      },
      "required": [
        "availableHours",
        "poolName"
      ]
    }
  }
}