{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mrscraper/main/json-schema/mrscraper-auth-subscription-account-schema.json",
  "title": "auth.SubscriptionAccount",
  "x-generated": "2026-10-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mrscraper-scraper-service-gateway-openapi.yml#/components/schemas/auth.SubscriptionAccount",
  "type": "object",
  "properties": {
    "apiTokenName": {
      "type": "string"
    },
    "endsAt": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "isEnterprise": {
      "type": "boolean"
    },
    "maxConcurrency": {
      "type": "integer"
    },
    "quantity": {
      "type": "integer"
    },
    "rateLimit": {
      "type": "integer"
    },
    "rateTtl": {
      "type": "integer"
    },
    "stripeStatus": {
      "type": "string"
    },
    "stripeSubscriptionId": {
      "type": "string"
    },
    "subscriptionItemId": {
      "type": "string"
    },
    "tokenLimit": {
      "type": "integer"
    },
    "tokenUsage": {
      "type": "integer"
    },
    "trialEndsAt": {
      "type": "string"
    },
    "user": {
      "$ref": "#/$defs/auth.User"
    },
    "userId": {
      "type": "string"
    }
  },
  "$defs": {
    "auth.User": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string"
        },
        "avatar": {
          "type": "string"
        },
        "birthDate": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "createdById": {
          "type": "string"
        },
        "databaseConnectionString": {
          "type": "string"
        },
        "deletedAt": {
          "type": "string"
        },
        "deletedById": {
          "type": "string"
        },
        "domainTargets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "email": {
          "type": "string"
        },
        "gender": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "isVerified": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "onboardingCompletedAt": {
          "type": "string"
        },
        "otp": {},
        "phoneNumber": {
          "type": "string"
        },
        "rabbitMqQueueName": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        },
        "updatedById": {
          "type": "string"
        }
      }
    }
  }
}