{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/markmesh-com/json-schema/markmesh-com-trademark-schema.json",
  "title": "trademark",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/markmesh-com-openapi.json#/components/schemas/trademark",
  "additionalProperties": false,
  "properties": {
    "attributes": {
      "additionalProperties": false,
      "description": "An attributes object for a trademark.",
      "properties": {
        "client_id": {
          "description": "UUID of the related client.",
          "format": "uuid",
          "type": "string"
        },
        "closed_reason": {
          "anyOf": [
            {
              "enum": [
                "manual",
                "organization_closed",
                "gdpr_request",
                "billing_enforcement",
                "system_cleanup"
              ],
              "type": [
                "string",
                "null"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Why the trademark was closed; drives selective restore on Organization.reopen."
        },
        "name": {
          "description": "The trademark name or text (e.g., brand name, slogan).",
          "type": "string"
        },
        "notes": {
          "anyOf": [
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Internal notes about the trademark. Marked sensitive because it routinely contains privileged attorney/strategy content."
        },
        "provenance": {
          "anyOf": [
            {
              "type": [
                "object",
                "null"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "States that this is a customer-authored record; office provenance lives on its filings."
        },
        "status": {
          "anyOf": [
            {
              "enum": [
                "active",
                "closed"
              ],
              "type": [
                "string",
                "null"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Trademark lifecycle: :active (default) or :closed (soft-deleted)."
        },
        "trademark_group_id": {
          "anyOf": [
            {
              "format": "uuid",
              "type": [
                "string",
                "null"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "UUID of the related trademark group."
        }
      },
      "required": [
        "name",
        "client_id"
      ],
      "type": "object"
    },
    "id": {
      "description": "Resource UUID.",
      "format": "uuid",
      "type": "string"
    },
    "relationships": {
      "additionalProperties": false,
      "description": "A relationships object for a trademark.",
      "properties": {
        "client": {
          "properties": {
            "data": {
              "additionalProperties": false,
              "description": "An identifier for client.",
              "properties": {
                "id": {
                  "type": "string"
                },
                "meta": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "id"
              ],
              "type": [
                "object",
                "null"
              ]
            }
          }
        },
        "trademark_group": {
          "properties": {
            "data": {
              "additionalProperties": false,
              "description": "An identifier for trademark_group.",
              "properties": {
                "id": {
                  "type": "string"
                },
                "meta": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "id"
              ],
              "type": [
                "object",
                "null"
              ]
            }
          }
        }
      },
      "type": "object"
    },
    "type": {
      "description": "JSON:API resource type. Always `\"trademark\"`.",
      "enum": [
        "trademark"
      ],
      "type": "string"
    }
  },
  "required": [
    "type",
    "id"
  ],
  "type": "object"
}