{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/liftli-ai/json-schema/liftli-ai-subscription-response-schema.json",
  "title": "SubscriptionResponse",
  "description": "Response model for subscription data.",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/app-liftli-ai-openapi.json#/components/schemas/SubscriptionResponse",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "user_id": {
      "type": "integer",
      "title": "User Id"
    },
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "billing_cycle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Cycle"
    },
    "auto_renews": {
      "type": "boolean",
      "title": "Auto Renews"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "current_period_start": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Period Start"
    },
    "current_period_end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Period End"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    },
    "cancelled_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cancelled At"
    },
    "days_until_expiry": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Days Until Expiry"
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active"
    },
    "is_trial": {
      "type": "boolean",
      "title": "Is Trial"
    },
    "is_cancelled": {
      "type": "boolean",
      "title": "Is Cancelled"
    },
    "is_recurring": {
      "type": "boolean",
      "title": "Is Recurring"
    },
    "has_paddle_subscription": {
      "type": "boolean",
      "title": "Has Paddle Subscription"
    },
    "cancel_confirmed_by_paddle": {
      "type": "boolean",
      "title": "Cancel Confirmed By Paddle",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "id",
    "user_id",
    "tier",
    "status",
    "billing_cycle",
    "auto_renews",
    "expires_at",
    "current_period_start",
    "current_period_end",
    "created_at",
    "updated_at",
    "cancelled_at",
    "days_until_expiry",
    "is_active",
    "is_trial",
    "is_cancelled",
    "is_recurring",
    "has_paddle_subscription"
  ]
}