{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fractionalteams-com/json-schema/fractionalteams-com-me-schema.json",
  "title": "Me",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/fractionalteams-com-api-openapi.json#/components/schemas/Me",
  "type": "object",
  "required": [
    "client",
    "user",
    "scopes",
    "can_mark_leads",
    "outreach_owner"
  ],
  "properties": {
    "client": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "user": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        }
      }
    },
    "scopes": {
      "description": "\"*\" for full access, else the list of section keys in scope",
      "oneOf": [
        {
          "type": "string",
          "const": "*"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "seo",
              "aeo",
              "geo",
              "smm",
              "outreach",
              "paid_media",
              "plan"
            ]
          }
        }
      ]
    },
    "can_mark_leads": {
      "type": "boolean"
    },
    "outreach_owner": {
      "type": [
        "string",
        "null"
      ],
      "description": "Salesperson slug when the key is limited to one person's own LinkedIn-DM leads; null = sees every salesperson's leads in scope"
    }
  }
}