{
  "x-generator": "NSwag v13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v13.0.0.0))",
  "openapi": "3.0.0",
  "info": {
    "title": " 1.0",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://eventsdeliveryapi.wocentral.com"
    }
  ],
  "paths": {
    "/api/EventsDeliveryAPI/GetEventDelivery": {
      "get": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "GetEventDelivery",
        "parameters": [
          {
            "name": "eventId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "eventDeliveryId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          },
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDelivery"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/GetEventDeliveries": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "GetEventDeliveries",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventsDeliverySearchRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EventDelivery"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/GetEventDeliveryErrors": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "GetEventDeliveryErrors",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventErrorsSearchRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EventErrorsResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/EventDeliveryACK": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "EventDeliveryACK",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventDeliveryACKRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/UpdateEventDelivery": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "UpdateEventDelivery",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventsDeliveryUpdateRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/BulkUpdateEventDeliveries": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "BulkUpdateEventDeliveries",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventsDeliveryBulkUpdateRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDeliveryUpdateResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/MarkEventDeliveriesHandled": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "MarkEventDeliveriesHandled",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkEventDeliveriesHandledRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/DeleteEventDelivery": {
      "delete": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "DeleteEventDelivery",
        "parameters": [
          {
            "name": "eventId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/SubmitNewEvent": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "SubmitNewEvent",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitNewEventRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/GetBadMessages": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "GetBadMessages",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BadMessageSearchRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BadMessage"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/HandleBadMessage": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "HandleBadMessage",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BadMessageHandleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDeliveryAPI/GetIncompleteTests": {
      "post": {
        "tags": [
          "EventsDeliveryAPI"
        ],
        "operationId": "GetIncompleteTests",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncompleteTestsSearchRequest"
              }
            }
          },
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IncompleteTest"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/GetEventDelivery": {
      "get": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "GetEventDelivery2",
        "parameters": [
          {
            "name": "eventId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "eventDeliveryId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          },
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDelivery"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/GetEventDeliveries": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "GetEventDeliveries2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionEventsDeliverySearchRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResponseOfEventDelivery"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/GetEventDeliveryErrors": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "GetEventDeliveryErrors2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventErrorsSearchRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EventErrorsResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/EventDeliveryACK": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "EventDeliveryACK2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventDeliveryACKRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/UpdateEventDelivery": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "UpdateEventDelivery2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventsDeliveryUpdateRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/BulkUpdateEventDeliveries": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "BulkUpdateEventDeliveries2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventsDeliveryBulkUpdateRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDeliveryUpdateResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/MarkEventDeliveriesHandled": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "MarkEventDeliveriesHandled2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkEventDeliveriesHandledRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/SubmitNewEvent": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "SubmitNewEvent2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitNewEventRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/GetBadMessages": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "GetBadMessages2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BadMessageSearchRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BadMessage"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/HandleBadMessage": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "HandleBadMessage2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BadMessageHandleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/EventsDelivery/GetIncompleteTests": {
      "post": {
        "tags": [
          "EventsDelivery"
        ],
        "operationId": "GetIncompleteTests2",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncompleteTestsSearchRequest"
              }
            }
          },
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IncompleteTest"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Lookups/GetBroadcasters": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "operationId": "GetBroadcasters",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Broadcaster"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Lookups/GetEventTypes": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "operationId": "GetEventTypes",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EventType"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Status/ping": {
      "get": {
        "tags": [
          "Status"
        ],
        "operationId": "ping",
        "responses": {
          "204": {
            "description": ""
          }
        }
      }
    },
    "/api/v{version}/Status/ping": {
      "get": {
        "tags": [
          "Status"
        ],
        "operationId": "ping2",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "204": {
            "description": ""
          }
        }
      }
    },
    "/api/Status/pingsecure": {
      "get": {
        "tags": [
          "Status"
        ],
        "operationId": "pingsecure",
        "responses": {
          "204": {
            "description": ""
          }
        }
      }
    },
    "/api/v{version}/Status/pingsecure": {
      "get": {
        "tags": [
          "Status"
        ],
        "operationId": "pingsecure2",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "204": {
            "description": ""
          }
        }
      }
    },
    "/api/Status/Status": {
      "get": {
        "tags": [
          "Status"
        ],
        "operationId": "Status",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthReport"
                }
              }
            }
          },
          "500": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthReport"
                }
              }
            }
          }
        }
      }
    },
    "/api/v{version}/Status/Status": {
      "get": {
        "tags": [
          "Status"
        ],
        "operationId": "Status2",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthReport"
                }
              }
            }
          },
          "500": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthReport"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EventDelivery": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deliveryId": {
            "type": "string",
            "format": "guid"
          },
          "eventId": {
            "type": "string",
            "format": "guid"
          },
          "broadcasterInt": {
            "type": "integer",
            "format": "int32"
          },
          "systemId": {
            "type": "string",
            "format": "guid"
          },
          "eventType": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "createDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastAttemptDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "handledDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/DeliveryStatus"
          },
          "retryCount": {
            "type": "integer",
            "format": "int32"
          },
          "deliveryType": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/DeliveryTypeEnum"
              }
            ]
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "webhookUri": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "DeliveryStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "NotSent",
          "InProgress",
          "Delivered",
          "InRetry",
          "Error",
          "InvalidSubscription"
        ],
        "enum": [
          "NotSent",
          "InProgress",
          "Delivered",
          "InRetry",
          "Error",
          "InvalidSubscription"
        ]
      },
      "DeliveryTypeEnum": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Simple",
          "Custom",
          "BAS",
          "Email"
        ],
        "enum": [
          "Simple",
          "Custom",
          "BAS",
          "Email"
        ]
      },
      "EventsDeliverySearchRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "eventId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "deliveryId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "broadcasterInts": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "eventTypes": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "deliveryStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "deliveryTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isHandled": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "EventErrorsResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "eventErrorInt": {
            "type": "integer",
            "format": "int32"
          },
          "eventDeliveryInt": {
            "type": "integer",
            "format": "int32"
          },
          "eventId": {
            "type": "string",
            "format": "guid"
          },
          "deliveryId": {
            "type": "string",
            "format": "guid"
          },
          "contextKey": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/DeliveryStatus"
          },
          "email": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "createDate": {
            "type": "string",
            "format": "date-time"
          },
          "handledDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "EventErrorsSearchRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deliveryId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "eventId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "contextKey": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "includeHandled": {
            "type": "boolean"
          },
          "eventTypes": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EventDeliveryACKRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deliveryId": {
            "type": "string",
            "format": "guid"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string"
          }
        }
      },
      "EventsDeliveryUpdateRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deliveryId": {
            "type": "string",
            "format": "guid"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "forceRetry": {
            "type": "boolean"
          },
          "handleErrors": {
            "type": "boolean"
          },
          "eventTypes": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EventDeliveryUpdateResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventDeliveryUpdateResult"
            }
          },
          "summary": {
            "$ref": "#/components/schemas/EventDeliveryUpdateSummary"
          }
        }
      },
      "EventDeliveryUpdateResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deliveryId": {
            "type": "string",
            "format": "guid"
          },
          "success": {
            "type": "boolean"
          },
          "statusUpdated": {
            "type": "boolean"
          },
          "retryQueued": {
            "type": "boolean"
          },
          "errorsHandled": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "boolean"
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "secondsUntilRetryAllowed": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "EventDeliveryUpdateSummary": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "successful": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "EventsDeliveryBulkUpdateRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deliveryIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "handleErrors": {
            "type": "boolean"
          }
        }
      },
      "MarkEventDeliveriesHandledRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deliveryIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          }
        }
      },
      "SubmitNewEventRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "eventId": {
            "type": "string",
            "format": "guid"
          },
          "broadcasterInt": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventType": {
            "type": "string"
          },
          "contextKey": {
            "type": "string",
            "nullable": true
          },
          "notificationPayload": {
            "type": "string"
          },
          "emailDeliveryDetails": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmailDeliveryDetailsRequest"
              }
            ]
          }
        }
      },
      "EmailDeliveryDetailsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "emailTemplateCode": {
            "type": "string"
          },
          "recipientDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecipientDetailsRequest"
            }
          },
          "emailTemplateParams": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "RecipientDetailsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "email": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          }
        }
      },
      "BadMessage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "badMessageInt": {
            "type": "integer",
            "format": "int32"
          },
          "messageId": {
            "type": "string"
          },
          "broadcasterInt": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventType": {
            "type": "string",
            "nullable": true
          },
          "contextKey": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "type": "string"
          },
          "createDate": {
            "type": "string",
            "format": "date-time"
          },
          "handledDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "BadMessageSearchRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "badMessageInt": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "messageId": {
            "type": "string",
            "nullable": true
          },
          "broadcasterInt": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventType": {
            "type": "string",
            "nullable": true
          },
          "contextKey": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isHandled": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "BadMessageHandleRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "badMessageInt": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "IncompleteTest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "broadcasterTestInt": {
            "type": "integer",
            "format": "int32"
          },
          "eventId": {
            "type": "string",
            "format": "guid"
          },
          "broadcasterInt": {
            "type": "integer",
            "format": "int32"
          },
          "deliveryType": {
            "type": "integer",
            "format": "int32"
          },
          "createDate": {
            "type": "string",
            "format": "date-time"
          },
          "receiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "broadcaster": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/Broadcaster"
              }
            ]
          }
        }
      },
      "Broadcaster": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "broadcasterInt": {
            "type": "integer",
            "format": "int32"
          },
          "externalSystemId": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "byte"
          },
          "wideOrbitClient": {
            "type": "boolean"
          }
        }
      },
      "IncompleteTestsSearchRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "broadcasterInt": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "deliveryType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "PagedResponseOfEventDelivery": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventDelivery"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pageSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "SessionEventsDeliverySearchRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EventsDeliverySearchRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "pageNumber": {
                "type": "integer",
                "format": "int32",
                "nullable": true
              },
              "pageSize": {
                "type": "integer",
                "format": "int32",
                "nullable": true
              },
              "startDate": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "endDate": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            }
          }
        ]
      },
      "EventType": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "value": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "HealthReport": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "entries": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/HealthReportEntry"
            }
          },
          "status": {
            "$ref": "#/components/schemas/HealthStatus"
          },
          "totalDuration": {
            "type": "string",
            "format": "duration"
          }
        }
      },
      "HealthReportEntry": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": {}
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "string",
            "format": "duration"
          },
          "exception": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/Exception"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/HealthStatus"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Exception": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Message": {
            "type": "string"
          },
          "InnerException": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/Exception"
              }
            ]
          },
          "Source": {
            "type": "string",
            "nullable": true
          },
          "StackTrace": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "HealthStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Unhealthy",
          "Degraded",
          "Healthy"
        ],
        "enum": [
          "Unhealthy",
          "Degraded",
          "Healthy"
        ]
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\"",
        "name": "Authorization",
        "in": "header"
      }
    }
  }
}