{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/streem-com/main/json-schema/streem-com-streem-internal-api-save-group-average-call-length-request-schema.json",
  "title": "streem.internal.api.SaveGroupAverageCallLengthRequest",
  "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.internal.api.SaveGroupAverageCallLengthRequest",
  "type": "object",
  "properties": {
    "company_sid": {
      "type": "string"
    },
    "group_sid": {
      "type": "string"
    },
    "metrics": {
      "$ref": "#/$defs/streem.internal.api.GroupReservationWaitMetrics"
    },
    "update_type": {
      "type": "string",
      "enum": [
        "WAIT_TIME_UPDATE_TYPE_CREATED",
        "WAIT_TIME_UPDATE_TYPE_REQUEUED",
        "WAIT_TIME_UPDATE_TYPE_POLLING",
        "WAIT_TIME_UPDATE_TYPE_USER_AVAILABILITY_UPDATED",
        "WAIT_TIME_UPDATE_TYPE_GROUP_RESERVATION_UPDATED",
        "WAIT_TIME_UPDATE_TYPE_INVALID"
      ]
    }
  },
  "$defs": {
    "google.protobuf.Duration": {
      "type": "object",
      "properties": {
        "seconds": {
          "type": "integer",
          "format": "int64"
        },
        "nanos": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "streem.internal.api.GroupReservationWaitMetrics": {
      "type": "object",
      "properties": {
        "average_call_length": {
          "$ref": "#/$defs/google.protobuf.Duration"
        },
        "estimated_wait_time": {
          "$ref": "#/$defs/google.protobuf.Duration"
        },
        "queue_position": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}