{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/socialync-io/json-schema/socialync-io-me-schema.json",
  "title": "Me",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/socialync-io-openapi.json#/components/schemas/Me",
  "type": "object",
  "required": [
    "apiVersion",
    "plan",
    "canPost",
    "caps",
    "profiles"
  ],
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "plan": {
      "type": "string"
    },
    "canPost": {
      "type": "boolean"
    },
    "postsRemaining": {
      "description": "A number, or \"unlimited\"."
    },
    "reason": {
      "type": "string",
      "description": "Present when canPost is false."
    },
    "caps": {
      "type": "object",
      "properties": {
        "maxPostsPerProfilePerDay": {
          "type": "integer",
          "description": "Per profile per UTC publish day, across all platforms."
        },
        "maxPostsIncludingXOrYouTubePerProfilePerDay": {
          "type": "integer"
        },
        "maxInstagramTrialReelsPerProfilePerDay": {
          "type": "integer"
        },
        "maxScheduleMonths": {
          "type": "integer"
        },
        "dailyPlatformLimits": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "aiContentGeneration": {
      "type": "boolean"
    },
    "supportedPlatforms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "profiles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Profile"
      },
      "description": "The profiles this API key can use."
    }
  },
  "$defs": {
    "Profile": {
      "type": "object",
      "required": [
        "id",
        "name",
        "isDefault"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "isDefault": {
          "type": "boolean"
        },
        "connectedPlatformCount": {
          "type": "integer"
        }
      }
    }
  }
}