{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-customer-response-schema.json",
  "title": "CustomerResponse",
  "description": "Customer object returned by the /customer read+write endpoints.\n\nNests the full budget response model so server-managed budget fields\n(budget_reset_at, created_at) survive response_model filtering, rather than\nthe narrow write-allowlist shape LiteLLM_EndUserTable carries for internal use.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-customer-management-api-openapi.yml#/components/schemas/CustomerResponse",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id"
    },
    "blocked": {
      "type": "boolean",
      "title": "Blocked"
    },
    "alias": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Alias"
    },
    "spend": {
      "type": "number",
      "title": "Spend",
      "default": 0.0
    },
    "allowed_model_region": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "eu",
            "us"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Model Region"
    },
    "default_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Model"
    },
    "budget_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Id"
    },
    "litellm_budget_table": {
      "anyOf": [
        {
          "$ref": "#/$defs/LiteLLM_BudgetTableFull"
        },
        {
          "type": "null"
        }
      ]
    },
    "object_permission_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Object Permission Id"
    },
    "object_permission": {
      "anyOf": [
        {
          "$ref": "#/$defs/LiteLLM_ObjectPermissionTable"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "user_id",
    "blocked"
  ],
  "$defs": {
    "LiteLLM_BudgetTableFull": {
      "properties": {
        "budget_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Id"
        },
        "soft_budget": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Soft Budget"
        },
        "max_budget": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Budget"
        },
        "max_parallel_requests": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Parallel Requests"
        },
        "tpm_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tpm Limit"
        },
        "rpm_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rpm Limit"
        },
        "model_max_budget": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Max Budget"
        },
        "budget_duration": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Duration"
        },
        "allowed_models": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Allowed Models"
        },
        "budget_reset_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Reset At"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "created_at"
      ],
      "title": "LiteLLM_BudgetTableFull",
      "description": "LiteLLM_BudgetTable + server-managed fields returned on API responses."
    },
    "LiteLLM_ObjectPermissionTable": {
      "properties": {
        "object_permission_id": {
          "type": "string",
          "title": "Object Permission Id"
        },
        "mcp_servers": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Servers",
          "default": []
        },
        "mcp_access_groups": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Access Groups",
          "default": []
        },
        "mcp_tool_permissions": {
          "anyOf": [
            {
              "additionalProperties": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Tool Permissions"
        },
        "vector_stores": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vector Stores",
          "default": []
        },
        "agents": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agents",
          "default": []
        },
        "agent_access_groups": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Access Groups",
          "default": []
        },
        "models": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Models",
          "default": []
        },
        "mcp_toolsets": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Toolsets"
        },
        "blocked_tools": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Blocked Tools",
          "default": []
        },
        "search_tools": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Search Tools",
          "default": []
        },
        "mcp_tool_search_enabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Tool Search Enabled"
        }
      },
      "type": "object",
      "required": [
        "object_permission_id"
      ],
      "title": "LiteLLM_ObjectPermissionTable",
      "description": "Represents a LiteLLM_ObjectPermissionTable record"
    }
  }
}