{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/streem-com/main/json-schema/streem-com-streem-api-create-group-reservation-request-schema.json",
  "title": "streem.api.CreateGroupReservationRequest",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/streem-com-api-openapi.yml#/components/schemas/streem.api.CreateGroupReservationRequest",
  "type": "object",
  "properties": {
    "external_user_id": {
      "type": "string"
    },
    "queue": {
      "type": "boolean"
    },
    "priority": {
      "type": "integer",
      "format": "int32"
    },
    "reserve_for_seconds": {
      "type": "integer",
      "format": "int32"
    },
    "details": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/streem.api.GroupReservation.Detail"
      }
    },
    "reference_id": {
      "type": "string"
    },
    "integration_id": {
      "type": "string"
    },
    "reconnect_previous_reservation_sid": {
      "type": "string"
    },
    "call_detail": {
      "$ref": "#/$defs/streem.api.CreateGroupReservationRequest.CallDetail"
    },
    "previous_reservation_sid": {
      "type": "string"
    },
    "reservation_type": {
      "type": "string",
      "enum": [
        "RESERVATION_TYPE_ORIGIN",
        "RESERVATION_TYPE_RECONNECT",
        "RESERVATION_TYPE_REQUEUE",
        "RESERVATION_TYPE_INVALID"
      ]
    }
  },
  "$defs": {
    "streem.api.CreateGroupReservationRequest.CallDetail": {
      "type": "object",
      "properties": {
        "call_source_code": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/streem.api.CreateGroupReservationRequest.CallDetail.Item"
          }
        },
        "customer": {
          "$ref": "#/$defs/streem.api.CreateGroupReservationRequest.CallDetail.Customer"
        }
      }
    },
    "streem.api.CreateGroupReservationRequest.CallDetail.Customer": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "plan_type": {
          "type": "string"
        },
        "contract_number": {
          "type": "string"
        },
        "calls_available": {
          "type": "integer",
          "format": "int32"
        },
        "address": {
          "type": "string"
        },
        "hvac_eligible": {
          "type": "boolean"
        }
      }
    },
    "streem.api.CreateGroupReservationRequest.CallDetail.Item": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "manufacturer": {
          "type": "string"
        },
        "brand": {
          "type": "string"
        },
        "model_number": {
          "type": "string"
        },
        "symptoms": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "trade_description": {
          "type": "string"
        }
      }
    },
    "streem.api.GroupReservation.Detail": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    }
  }
}