{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/policyforge-co/json-schema/policyforge-co-policy-create-request-schema.json",
  "title": "PolicyCreateRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/policyforge-co-openapi.json#/components/schemas/PolicyCreateRequest",
  "type": "object",
  "required": [
    "type",
    "business_type",
    "jurisdiction",
    "contact_email",
    "company_name"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "privacy_policy",
        "terms_of_service",
        "cookie_policy",
        "refund"
      ],
      "description": "The type of policy to generate"
    },
    "business_type": {
      "type": "string",
      "enum": [
        "e-commerce",
        "saas",
        "healthcare",
        "education",
        "financial",
        "real-estate",
        "non-profit",
        "consulting",
        "media",
        "other"
      ],
      "description": "Your business category"
    },
    "jurisdiction": {
      "type": "string",
      "enum": [
        "gdpr",
        "ccpa",
        "pipeda",
        "us",
        "eu",
        "ca",
        "uk",
        "global"
      ],
      "description": "Primary legal jurisdiction for compliance"
    },
    "company_name": {
      "type": "string",
      "description": "Your company or organization name"
    },
    "contact_email": {
      "type": "string",
      "format": "email",
      "description": "Contact email for privacy/legal inquiries"
    },
    "website_url": {
      "type": "string",
      "format": "uri",
      "description": "Your website URL"
    },
    "service_description": {
      "type": "string",
      "description": "Brief description of your service or product"
    },
    "data_collection": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Types of data your service collects"
    },
    "third_party_integrations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Third-party services you integrate with"
    },
    "data_retention": {
      "type": "string",
      "description": "How long you retain user data"
    },
    "user_accounts": {
      "type": "boolean",
      "default": false,
      "description": "Whether your service has user accounts"
    },
    "payments": {
      "type": "boolean",
      "default": false,
      "description": "Whether your service processes payments"
    },
    "marketing": {
      "type": "boolean",
      "default": false,
      "description": "Whether you send marketing communications"
    },
    "analytics": {
      "type": "boolean",
      "default": false,
      "description": "Whether you use analytics tracking"
    },
    "cookies": {
      "type": "boolean",
      "default": true,
      "description": "Whether your website uses cookies"
    },
    "children_data": {
      "type": "boolean",
      "default": false,
      "description": "Whether your service collects data from children under 13"
    },
    "hosting_enabled": {
      "type": "boolean",
      "default": true,
      "description": "Whether to host the policy at a public URL"
    }
  }
}