{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connections-icu/json-schema/connections-icu-introduction-request-write-input-schema.json",
  "title": "IntroductionRequestWriteInput",
  "description": "Create a pending introduction request. target_contact_id and broker_contact_id must reference contacts owned by the credential. Protected requests stay redacted until the existing consent flow completes.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/connections-icu-introduction-requests-api-openapi.yml#/components/schemas/IntroductionRequestWriteInput",
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "target_contact_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "broker_contact_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "request_kind": {
      "type": "string",
      "enum": [
        "direct",
        "brokered",
        "unmatched"
      ]
    },
    "target_visibility": {
      "type": "string",
      "enum": [
        "broker_only",
        "requester_visible",
        "fully_redacted"
      ]
    },
    "broker_path": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "routing_metadata": {
      "type": "object"
    },
    "request_note": {
      "type": "string"
    },
    "broker_note": {
      "type": "string"
    },
    "redacted_summary": {
      "type": "string"
    }
  }
}