{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/specky-space/json-schema/specky-space-signal-create-request-schema.json",
  "title": "SignalCreateRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/specky-space-api-openapi.json#/components/schemas/SignalCreateRequest",
  "type": "object",
  "required": [],
  "properties": {
    "content": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000,
      "description": "Required unless signals is sent."
    },
    "source": {
      "type": "string"
    },
    "source_type": {
      "type": "string",
      "enum": [
        "FEEDBACK",
        "SUPPORT",
        "SLACK",
        "GITHUB",
        "CUSTOM"
      ]
    },
    "metadata": {
      "type": "object",
      "description": "Free-form metadata.",
      "additionalProperties": true
    },
    "customer_id": {
      "type": "string"
    },
    "customer_email": {
      "type": "string",
      "format": "email"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "signals": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "description": "Send up to 100 signals at once instead of a single content field.",
      "items": {
        "type": "object",
        "required": [
          "content"
        ],
        "properties": {
          "content": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000
          },
          "source": {
            "type": "string"
          },
          "source_type": {
            "type": "string",
            "enum": [
              "FEEDBACK",
              "SUPPORT",
              "SLACK",
              "GITHUB",
              "CUSTOM"
            ]
          },
          "metadata": {
            "type": "object",
            "description": "Free-form metadata.",
            "additionalProperties": true
          },
          "customer_id": {
            "type": "string"
          },
          "customer_email": {
            "type": "string",
            "format": "email"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}