{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-plan-allowance-read-schema.json",
  "title": "PlanAllowanceRead",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-openapi.json#/components/schemas/PlanAllowanceRead",
  "properties": {
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "period_start": {
      "type": "string",
      "title": "Period Start"
    },
    "premium_actions_used": {
      "type": "integer",
      "title": "Premium Actions Used"
    },
    "premium_actions_cap": {
      "type": "integer",
      "title": "Premium Actions Cap"
    },
    "plan_runs_used": {
      "type": "integer",
      "title": "Plan Runs Used"
    },
    "plan_runs_cap": {
      "type": "integer",
      "title": "Plan Runs Cap"
    },
    "posts_per_plan_cap": {
      "type": "integer",
      "title": "Posts Per Plan Cap"
    },
    "weekly_posts_used": {
      "type": "integer",
      "title": "Weekly Posts Used",
      "default": 0
    },
    "weekly_posts_cap": {
      "type": "integer",
      "title": "Weekly Posts Cap",
      "default": 0
    },
    "weekly_posts_per_write": {
      "type": "integer",
      "title": "Weekly Posts Per Write",
      "default": 0
    },
    "week_resets_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Week Resets At"
    },
    "x_weekly_posts_used": {
      "type": "integer",
      "title": "X Weekly Posts Used",
      "default": 0
    },
    "x_weekly_posts_cap": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "X Weekly Posts Cap"
    },
    "total_ai_generations_used": {
      "type": "integer",
      "title": "Total Ai Generations Used"
    },
    "total_ai_generations_cap": {
      "type": "integer",
      "title": "Total Ai Generations Cap"
    },
    "brain_refreshes_used": {
      "type": "integer",
      "title": "Brain Refreshes Used",
      "default": 0
    },
    "brain_refreshes_cap": {
      "type": "integer",
      "title": "Brain Refreshes Cap",
      "default": 0
    },
    "brain_refreshes_monthly": {
      "type": "boolean",
      "title": "Brain Refreshes Monthly",
      "default": true
    },
    "ai_analytics_insights_used": {
      "type": "integer",
      "title": "Ai Analytics Insights Used"
    },
    "ai_analytics_insights_cap": {
      "type": "integer",
      "title": "Ai Analytics Insights Cap"
    },
    "x_posts_cap": {
      "type": "integer",
      "title": "X Posts Cap"
    },
    "non_x_scheduled_posts_cap": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Non X Scheduled Posts Cap"
    },
    "channel_cap": {
      "type": "integer",
      "title": "Channel Cap"
    },
    "x_account_cap": {
      "type": "integer",
      "title": "X Account Cap"
    },
    "platform_account_caps": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Platform Account Caps"
    },
    "seat_cap": {
      "type": "integer",
      "title": "Seat Cap"
    },
    "automation_rule_cap": {
      "type": "integer",
      "title": "Automation Rule Cap"
    }
  },
  "type": "object",
  "required": [
    "tier",
    "period_start",
    "premium_actions_used",
    "premium_actions_cap",
    "plan_runs_used",
    "plan_runs_cap",
    "posts_per_plan_cap",
    "total_ai_generations_used",
    "total_ai_generations_cap",
    "ai_analytics_insights_used",
    "ai_analytics_insights_cap",
    "x_posts_cap",
    "non_x_scheduled_posts_cap",
    "channel_cap",
    "x_account_cap",
    "seat_cap",
    "automation_rule_cap"
  ]
}