{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clipugc-com/json-schema/clipugc-com-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clipugc-com-openapi.yml#/components/schemas/Account",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "email_verified_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "subscription": {
      "type": "object",
      "properties": {
        "is_subscribed": {
          "type": "boolean"
        },
        "is_trialing": {
          "type": "boolean"
        },
        "active_subscription": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "uuid": {
              "type": "string"
            },
            "status": {
              "type": "string"
            },
            "ends_at": {
              "type": "string"
            }
          },
          "required": [
            "uuid",
            "status",
            "ends_at"
          ]
        },
        "plan_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Your current plan."
        }
      },
      "required": [
        "is_subscribed",
        "is_trialing",
        "active_subscription",
        "plan_name"
      ]
    },
    "credits": {
      "type": "object",
      "properties": {
        "general_credits": {
          "type": "integer",
          "description": "Your credit balance."
        },
        "video_credits_used": {
          "type": "integer"
        },
        "video_credits_limit": {
          "type": "integer"
        },
        "video_credits_remaining": {
          "type": "integer"
        },
        "video_generation_cost": {
          "type": "integer",
          "const": 1
        },
        "ai_model_credits_used": {
          "type": "integer"
        },
        "ai_model_credits_limit": {
          "type": "integer"
        },
        "ai_model_credits_remaining": {
          "type": "integer"
        },
        "ai_model_generation_cost": {
          "type": "integer",
          "const": 5
        },
        "has_enough_video_credits": {
          "type": "boolean"
        },
        "has_enough_ai_model_credits": {
          "type": "boolean"
        }
      },
      "required": [
        "general_credits",
        "video_credits_used",
        "video_credits_limit",
        "video_credits_remaining",
        "video_generation_cost",
        "ai_model_credits_used",
        "ai_model_credits_limit",
        "ai_model_credits_remaining",
        "ai_model_generation_cost",
        "has_enough_video_credits",
        "has_enough_ai_model_credits"
      ]
    },
    "permissions": {
      "type": "object",
      "properties": {
        "can_generate_ai_influencer": {
          "type": "boolean"
        },
        "visible_ai_influencer_count": {
          "type": "integer"
        },
        "should_add_watermark": {
          "type": "boolean"
        }
      },
      "required": [
        "can_generate_ai_influencer",
        "visible_ai_influencer_count",
        "should_add_watermark"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "email",
    "email_verified_at",
    "created_at",
    "subscription",
    "credits",
    "permissions"
  ]
}