{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-batch-call-input-schema.json",
  "title": "batchCallInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-call-api-openapi.yml#/components/schemas/batchCallInput",
  "properties": {
    "oppty_product_relation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uri"
        }
      },
      "description": "Specific opportunity line-item discussed on the call, when applicable.\n\nRelation to OpptyProductRelation, see: 'updateOpptyProductRelationInput' object for properties."
    },
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked account."
    },
    "caller_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the calling user."
    },
    "client_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the user the call was made with."
    },
    "contact_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked contact."
    },
    "lead_oppty_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked lead or opportunity, or empty when not linked."
    },
    "oppty_product_relation_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked opportunity product line-item."
    },
    "phone_number": {
      "type": "string",
      "description": "External phone number called or received, in E.164 format."
    },
    "product_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked product."
    },
    "transcription_id": {
      "type": "string",
      "description": "External transcription identifier from the calling provider."
    },
    "transcription_language": {
      "type": "string",
      "description": "Language requested for the transcription as a BCP-47 locale tag (e.g. \"en-US\")."
    },
    "transcription_summary": {
      "type": "string",
      "description": "AI-generated summary of the call transcription."
    },
    "twilio_call_log_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the call-log record from the calling provider that this call is associated with."
    },
    "audio_status": {
      "type": "string",
      "enum": [
        "NoRecording",
        "TranscriptionCompleted",
        "TranscriptionEmpty",
        "TranscriptionError",
        "TranscriptionInProgress",
        "UploadError",
        "Uploaded",
        "Uploading"
      ],
      "description": "This is a small hack to force creation of MediaEntity upon Call creation.\n        This field cannot be actually set. Instead, CallRepository.create method handles media creation,\n        if requested."
    },
    "id": {
      "description": "ID of object to update.",
      "type": "string",
      "format": "uuid"
    }
  }
}