{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiopod-ai/json-schema/audiopod-ai-user-update-schema.json",
  "title": "UserUpdate",
  "description": "Schema for updating user profile",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiopod-ai-auth-api-openapi.yml#/components/schemas/UserUpdate",
  "properties": {
    "full_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Full Name"
    },
    "image": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image"
    },
    "user_type": {
      "anyOf": [
        {
          "$ref": "#/$defs/UserType"
        },
        {
          "type": "null"
        }
      ]
    },
    "audio_usage": {
      "anyOf": [
        {
          "$ref": "#/$defs/AudioUsage"
        },
        {
          "type": "null"
        }
      ]
    },
    "onboarding_completed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Onboarding Completed"
    },
    "referral_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Referral Source"
    },
    "phone_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone Number"
    },
    "country_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country Code"
    },
    "onboarding_stage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Onboarding Stage"
    },
    "referred_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Referred By"
    }
  },
  "type": "object",
  "$defs": {
    "AudioUsage": {
      "type": "string",
      "enum": [
        "personal",
        "creator",
        "business",
        "voice_actor",
        "education",
        "engineer",
        "marketer",
        "other",
        "content_creator",
        "audiobook",
        "music_producer",
        "transcription",
        "voice_work",
        "developer",
        "exploring"
      ],
      "title": "AudioUsage"
    },
    "UserType": {
      "type": "string",
      "enum": [
        "individual",
        "company"
      ],
      "title": "UserType"
    }
  }
}