{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openpo-st/json-schema/openpo-st-account-response-schema.json",
  "title": "AccountResponse",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openpo-st-openapi.json#/components/schemas/AccountResponse",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "account_avatar_url": {
      "description": "Account avatar URL",
      "type": "string"
    },
    "account_id": {
      "description": "Platform-specific account ID",
      "type": "string"
    },
    "account_kind": {
      "description": "Normalized identity kind, such as person, organization, creator, or business",
      "type": "string"
    },
    "account_username": {
      "description": "Account username",
      "type": "string"
    },
    "alias": {
      "description": "Internal account label. Does not change the provider identity.",
      "type": "string"
    },
    "capability_checked_at": {
      "description": "When account-specific publishing limits were last verified",
      "format": "date-time",
      "type": "string"
    },
    "fediverse_software": {
      "description": "Detected Fediverse server software (mastodon, pixelfed, peertube, lemmy, piefed, or a compatible implementation)",
      "type": "string"
    },
    "grant_destination_count": {
      "description": "Number of active destinations using this provider authorization",
      "format": "int64",
      "type": "integer"
    },
    "id": {
      "description": "Account ID",
      "type": "string"
    },
    "instance_url": {
      "description": "Instance URL (Mastodon/Bluesky)",
      "type": "string"
    },
    "is_active": {
      "description": "Whether the account is active",
      "type": "boolean"
    },
    "limit_profile": {
      "description": "Account-specific publishing limit profile",
      "enum": [
        "standard",
        "x-premium"
      ],
      "type": "string"
    },
    "messages_enabled": {
      "deprecated": true,
      "description": "Deprecated compatibility shim. Use GET /account-features for messaging enabled state.",
      "type": "boolean"
    },
    "messaging_supported": {
      "deprecated": true,
      "description": "Deprecated compatibility shim. Use GET /account-features for messaging availability and enabled state.",
      "type": "boolean"
    },
    "platform": {
      "description": "Platform name",
      "type": "string"
    },
    "provider_installation_id": {
      "description": "Operator connector installation used by this account",
      "type": "string"
    },
    "shared_grant": {
      "description": "Whether revoking this authorization disconnects other destinations",
      "type": "boolean"
    },
    "slug": {
      "description": "User-editable account slug for CLI selectors",
      "type": "string"
    },
    "thread_replies_supported": {
      "description": "Whether this account supports thread replies in current server config",
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "slug",
    "platform",
    "account_id",
    "account_username",
    "account_avatar_url",
    "instance_url",
    "is_active",
    "thread_replies_supported",
    "messaging_supported",
    "messages_enabled",
    "grant_destination_count",
    "shared_grant"
  ],
  "type": "object"
}