{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nudg3-ai/json-schema/nudg3-ai-create-company-workspace-request-schema.json",
  "title": "CreateCompanyWorkspaceRequest",
  "description": "Request to create a new workspace within the company.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nudg3-ai-openapi.json#/components/schemas/CreateCompanyWorkspaceRequest",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Name"
    },
    "brand_name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Brand Name"
    },
    "brand_domain": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand Domain"
    },
    "brand_keywords": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Brand Keywords",
      "description": "Keywords for brand detection (max 50)"
    },
    "brand_aliases": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Brand Aliases",
      "description": "Alternative brand names (max 20)"
    },
    "industry": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Industry",
      "description": "Industry classification (e.g., 'Enterprise Software', 'Financial Services')"
    },
    "brand_description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand Description",
      "description": "Brief brand description for contextualizing competitor generation"
    },
    "target_market": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Market",
      "description": "Target market or customer segment (e.g., 'SMB', 'Enterprise', 'Healthcare')"
    },
    "provider_configs": {
      "additionalProperties": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "object",
      "title": "Provider Configs",
      "description": "Provider configurations. Supports dataforseo or serpapi for AI overviews"
    },
    "max_prompts": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Prompts",
      "description": "DEPRECATED: Use unified quota system (WorkspaceQuota) instead.",
      "deprecated": true
    },
    "settings": {
      "additionalProperties": true,
      "type": "object",
      "title": "Settings"
    },
    "default_location_country": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2,
          "minLength": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Location Country",
      "description": "Default ISO country code"
    },
    "default_location_city": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Location City",
      "description": "Default city"
    },
    "default_location_region": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Location Region",
      "description": "Default region/state"
    }
  },
  "type": "object",
  "required": [
    "name",
    "brand_name"
  ]
}