{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tintin-x-com/json-schema/tintin-x-com-user-detail-response-schema.json",
  "title": "UserDetailResponse",
  "description": "Detailed user info.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/tintin-x-com-api-openapi.json#/components/schemas/UserDetailResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "plan": {
      "type": "string",
      "title": "Plan"
    },
    "max_agent_slots": {
      "type": "integer",
      "title": "Max Agent Slots"
    },
    "is_whitelisted": {
      "type": "boolean",
      "title": "Is Whitelisted"
    },
    "whitelisted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Whitelisted At"
    },
    "whitelist_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Whitelist Note"
    },
    "whitelist_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Whitelist Expires At"
    },
    "whitelist_no_expiration": {
      "type": "boolean",
      "title": "Whitelist No Expiration",
      "default": false
    },
    "credit_balance": {
      "type": "integer",
      "title": "Credit Balance"
    },
    "credit_subscription": {
      "type": "integer",
      "title": "Credit Subscription",
      "default": 0
    },
    "credit_bonus": {
      "type": "integer",
      "title": "Credit Bonus",
      "default": 0
    },
    "team_credit_balance": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Credit Balance"
    },
    "team_credit_subscription": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Credit Subscription"
    },
    "team_credit_bonus": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Credit Bonus"
    },
    "team_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Name"
    },
    "studio_credits": {
      "type": "number",
      "title": "Studio Credits",
      "default": 0
    },
    "studio_credits_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Credits Expires At"
    },
    "studio_bonus_credits": {
      "type": "number",
      "title": "Studio Bonus Credits",
      "default": 0
    },
    "studio_plan": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Plan"
    },
    "studio_billing_period": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Billing Period"
    },
    "studio_subscription_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Subscription Status"
    },
    "studio_current_period_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Current Period End"
    },
    "studio_cancel_at_period_end": {
      "type": "boolean",
      "title": "Studio Cancel At Period End",
      "default": false
    },
    "stripe_customer_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stripe Customer Id"
    },
    "stripe_subscription_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stripe Subscription Id"
    },
    "owned_team_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owned Team Id"
    },
    "owned_team_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owned Team Name"
    },
    "owned_team_studio_credits": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owned Team Studio Credits"
    },
    "owned_team_studio_bonus_credits": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owned Team Studio Bonus Credits"
    },
    "owned_team_studio_credits_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owned Team Studio Credits Expires At"
    },
    "owned_team_studio_subscription_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owned Team Studio Subscription Status"
    },
    "owned_team_studio_plan": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owned Team Studio Plan"
    },
    "owned_team_studio_current_period_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owned Team Studio Current Period End"
    },
    "agents": {
      "items": {
        "$ref": "#/$defs/AgentSummary"
      },
      "type": "array",
      "title": "Agents"
    },
    "connected_services": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Connected Services"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "email",
    "plan",
    "max_agent_slots",
    "is_whitelisted",
    "whitelisted_at",
    "whitelist_note",
    "credit_balance",
    "stripe_customer_id",
    "stripe_subscription_id",
    "agents",
    "connected_services",
    "created_at"
  ],
  "$defs": {
    "AgentSummary": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "iq_tier": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Iq Tier"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "status",
        "iq_tier",
        "created_at"
      ],
      "title": "AgentSummary",
      "description": "Agent info for user detail."
    }
  }
}