{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appy-to/json-schema/appy-to-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appy-to-account-api-openapi.yml#/components/schemas/Account",
  "type": "object",
  "required": [
    "id",
    "plan",
    "credential",
    "features",
    "limits",
    "usage"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "pro",
        "business",
        "enterprise"
      ]
    },
    "credential": {
      "type": "string",
      "enum": [
        "secret_key",
        "session"
      ],
      "description": "The kind of credential used for this request."
    },
    "features": {
      "type": "object",
      "required": [
        "api",
        "mcp",
        "sdk"
      ],
      "properties": {
        "api": {
          "type": "boolean",
          "description": "REST API access with secret keys."
        },
        "mcp": {
          "type": "boolean",
          "description": "The MCP server for AI assistants."
        },
        "sdk": {
          "type": "boolean",
          "description": "Apps",
          "the SDK endpoints and install attribution.": null
        }
      }
    },
    "limits": {
      "type": "object",
      "required": [
        "links"
      ],
      "properties": {
        "links": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Maximum number of links; null means unlimited."
        }
      }
    },
    "usage": {
      "type": "object",
      "required": [
        "links"
      ],
      "properties": {
        "links": {
          "type": "integer",
          "description": "Links the account has now."
        }
      }
    }
  }
}