{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-account-api-openapi.yml#/components/schemas/Account",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "display_currency": {
      "type": "string"
    },
    "support_email": {
      "type": [
        "string",
        "null"
      ]
    },
    "subdomain": {
      "type": [
        "string",
        "null"
      ]
    },
    "ai_email_signature": {
      "type": [
        "string",
        "null"
      ]
    },
    "ai_email_signature_enabled": {
      "type": "boolean"
    },
    "custom_instructions": {
      "type": [
        "string",
        "null"
      ]
    },
    "customer_retention_days": {
      "type": [
        "number",
        "null"
      ]
    },
    "avatar_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "social_links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SocialLink"
      }
    }
  },
  "required": [
    "id",
    "object",
    "name",
    "slug",
    "domain",
    "display_currency",
    "support_email",
    "subdomain",
    "ai_email_signature",
    "ai_email_signature_enabled",
    "custom_instructions",
    "customer_retention_days",
    "avatar_url",
    "description",
    "social_links"
  ],
  "$defs": {
    "SocialLink": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string",
          "enum": [
            "facebook",
            "twitter",
            "instagram",
            "linkedin",
            "youtube",
            "tiktok",
            "pinterest",
            "discord",
            "twitch",
            "telegram",
            "email",
            "url"
          ]
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "platform",
        "url"
      ]
    }
  }
}