{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reeldrop-io/json-schema/reeldrop-io-me-out-schema.json",
  "title": "MeOut",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reeldrop-io-openapi.json#/components/schemas/MeOut",
  "properties": {
    "clerk_id": {
      "type": "string",
      "title": "Clerk Id"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "avatar_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avatar Url"
    },
    "role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Role"
    },
    "niches": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Niches",
      "default": []
    },
    "referral_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Referral Source"
    },
    "onboarding_completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Onboarding Completed At"
    },
    "email_ig_disconnected": {
      "type": "boolean",
      "title": "Email Ig Disconnected",
      "default": true
    },
    "email_publish_failed": {
      "type": "boolean",
      "title": "Email Publish Failed",
      "default": true
    },
    "email_weekly_digest": {
      "type": "boolean",
      "title": "Email Weekly Digest",
      "default": true
    },
    "email_monthly_digest": {
      "type": "boolean",
      "title": "Email Monthly Digest",
      "default": true
    },
    "email_product_updates": {
      "type": "boolean",
      "title": "Email Product Updates",
      "default": true
    },
    "email_referral_updates": {
      "type": "boolean",
      "title": "Email Referral Updates",
      "default": true
    },
    "email_plan_nudges": {
      "type": "boolean",
      "title": "Email Plan Nudges",
      "default": true
    },
    "email_milestones": {
      "type": "boolean",
      "title": "Email Milestones",
      "default": true
    },
    "referral_promo_seen": {
      "type": "integer",
      "title": "Referral Promo Seen",
      "default": 0
    },
    "admin_bootstrap": {
      "type": "boolean",
      "title": "Admin Bootstrap",
      "default": false
    },
    "personal_workspace": {
      "$ref": "#/$defs/routers__auth__WorkspaceOut"
    },
    "default_workspace_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Workspace Id"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "clerk_id",
    "email",
    "name",
    "avatar_url",
    "personal_workspace",
    "created_at"
  ],
  "$defs": {
    "WorkspacePlan": {
      "type": "string",
      "enum": [
        "starter",
        "influencer",
        "creator"
      ],
      "title": "WorkspacePlan"
    },
    "routers__auth__WorkspaceOut": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "slug": {
          "type": "string",
          "title": "Slug"
        },
        "plan": {
          "$ref": "#/$defs/WorkspacePlan"
        },
        "personal": {
          "type": "boolean",
          "title": "Personal"
        },
        "avatar_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Avatar Url"
        },
        "hook_photo_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hook Photo Url"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "slug",
        "plan",
        "personal",
        "avatar_url"
      ],
      "title": "WorkspaceOut"
    }
  }
}