{
  "openapi": "3.0.1",
  "info": {
    "title": "ECBCloud API",
    "version": "v1"
  },
  "paths": {
    "/{tenantId}/api/Device/ConnectionInfo": {
      "get": {
        "tags": [
          "Device"
        ],
        "operationId": "ByTenantidApiDeviceConnectioninfoGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Device/Configuration": {
      "get": {
        "tags": [
          "Device"
        ],
        "operationId": "ByTenantidApiDeviceConfigurationGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Device/PostHealthStatus": {
      "post": {
        "tags": [
          "Device"
        ],
        "operationId": "ByTenantidApiDevicePosthealthstatusPost",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceHealthStatusModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceHealthStatusModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceHealthStatusModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceHealthStatusModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Device/PostStopArmEvent": {
      "post": {
        "tags": [
          "Device"
        ],
        "operationId": "ByTenantidApiDevicePoststoparmeventPost",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/StopArmEventModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StopArmEventModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StopArmEventModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StopArmEventModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/DeviceRegister": {
      "get": {
        "tags": [
          "DeviceRegister"
        ],
        "operationId": "ByTenantidApiDeviceregisterGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "DeviceRegister"
        ],
        "operationId": "ByTenantidApiDeviceregisterPut",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceRegistration"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceRegistration"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceRegistration"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceRegistration"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "DeviceRegister"
        ],
        "operationId": "ByTenantidApiDeviceregisterPost",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceRegistration"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceRegistration"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceRegistration"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceRegistration"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Files/UploadLogs": {
      "post": {
        "tags": [
          "Files"
        ],
        "operationId": "ByTenantidApiFilesUploadlogsPost",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Instructions": {
      "get": {
        "tags": [
          "Instructions"
        ],
        "operationId": "ByTenantidApiInstructionsGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Jurisdiction": {
      "get": {
        "tags": [
          "Jurisdiction"
        ],
        "operationId": "ByTenantidApiJurisdictionGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Jurisdiction"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Jurisdiction"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Jurisdiction"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Jurisdiction"
        ],
        "operationId": "ByTenantidApiJurisdictionPost",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PostModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PostModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PostModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Jurisdiction"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Jurisdiction"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Jurisdiction"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{tenantId}/api/Request/Complete/{id}": {
      "put": {
        "tags": [
          "Request"
        ],
        "operationId": "ByTenantidApiRequestCompleteByIdPut",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Request/dt": {
      "get": {
        "tags": [
          "Request"
        ],
        "operationId": "ByTenantidApiRequestDtGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/IDataTablesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IDataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IDataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IDataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/StopArm/event/{id}/blob": {
      "get": {
        "tags": [
          "StopArm"
        ],
        "operationId": "ByTenantidApiStoparmEventByIdBlobGet",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetBlobInformationModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBlobInformationModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBlobInformationModel"
                }
              }
            }
          }
        }
      }
    },
    "/{tenantId}/api/StopArm/event/{id}/blob/{fileName}": {
      "get": {
        "tags": [
          "StopArm"
        ],
        "operationId": "ByTenantidApiStoparmEventByIdBlobByFilenameGet",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "fileName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/StopArm/event/{id}": {
      "get": {
        "tags": [
          "StopArm"
        ],
        "operationId": "ByTenantidApiStoparmEventByIdGet",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StopArmEventForReviewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StopArmEventForReviewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StopArmEventForReviewModel"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "StopArm"
        ],
        "operationId": "ByTenantidApiStoparmEventByIdPost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/StopArmEventForReviewModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StopArmEventForReviewModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StopArmEventForReviewModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StopArmEventForReviewModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/StopArm/emailRecipients": {
      "get": {
        "tags": [
          "StopArm"
        ],
        "operationId": "ByTenantidApiStoparmEmailrecipientsGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/StopArm/event/{id}/shareFiles": {
      "post": {
        "tags": [
          "StopArm"
        ],
        "operationId": "ByTenantidApiStoparmEventByIdSharefilesPost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ShareEventFilesRequestBody"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareEventFilesRequestBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareEventFilesRequestBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ShareEventFilesRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/StopArm/event/{id}/lockStatus": {
      "get": {
        "tags": [
          "StopArm"
        ],
        "operationId": "ByTenantidApiStoparmEventByIdLockstatusGet",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "StopArm"
        ],
        "operationId": "ByTenantidApiStoparmEventByIdLockstatusPost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SetLockStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetLockStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetLockStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetLockStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/{tenantId}/api/Transfer/{id}/blob": {
      "get": {
        "tags": [
          "Transfer"
        ],
        "operationId": "ByTenantidApiTransferByIdBlobGet",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Units/{id}/requestLogs": {
      "post": {
        "tags": [
          "Units"
        ],
        "operationId": "ByTenantidApiUnitsByIdRequestlogsPost",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/{tenantId}/api/Units/{unitSerial}/logs": {
      "get": {
        "tags": [
          "Units"
        ],
        "operationId": "ByTenantidApiUnitsByUnitserialLogsGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "unitSerial",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeviceLogFileModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeviceLogFileModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeviceLogFileModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{tenantId}/api/UploadAuthorize/{fileName}": {
      "get": {
        "tags": [
          "UploadAuthorize"
        ],
        "operationId": "ByTenantidApiUploadauthorizeByFilenameGet",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "fileName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "UploadAuthorize"
        ],
        "operationId": "ByTenantidApiUploadauthorizeByFilenamePut",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "fileName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contentLength",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "requestId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "alarmVideosRemaining",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "alarmBytesRemaining",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CameraInfo": {
        "type": "object",
        "properties": {
          "cameraNumber": {
            "type": "integer",
            "format": "int32"
          },
          "cameraName": {
            "type": "string",
            "nullable": true
          },
          "thumbnail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeviceHealthStatusModel": {
        "type": "object",
        "properties": {
          "serial_number": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "event": {
            "type": "string",
            "nullable": true
          },
          "event_id": {
            "type": "string",
            "nullable": true
          },
          "log_messages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeviceLogFileModel": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "lastModified": {
            "type": "string",
            "format": "date-time"
          },
          "sizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "downloadUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeviceRegistration": {
        "required": [
          "code",
          "serial",
          "unitId"
        ],
        "type": "object",
        "properties": {
          "code": {
            "minLength": 1,
            "type": "string"
          },
          "serial": {
            "minLength": 1,
            "type": "string"
          },
          "unitId": {
            "minLength": 1,
            "type": "string"
          },
          "numberOfCameras": {
            "type": "integer",
            "format": "int32"
          },
          "timezone": {
            "type": "string",
            "nullable": true
          },
          "cameras": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CameraInfo"
            },
            "nullable": true
          },
          "tenantId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GetBlobInformationModel": {
        "type": "object",
        "properties": {
          "blobItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StopArmBlobItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IColumn": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "field": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isSearchable": {
            "type": "boolean",
            "readOnly": true
          },
          "search": {
            "$ref": "#/components/schemas/ISearch"
          },
          "isSortable": {
            "type": "boolean",
            "readOnly": true
          },
          "sort": {
            "$ref": "#/components/schemas/ISort"
          }
        },
        "additionalProperties": false
      },
      "IDataTablesRequest": {
        "type": "object",
        "properties": {
          "draw": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "start": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "length": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "search": {
            "$ref": "#/components/schemas/ISearch"
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IColumn"
            },
            "nullable": true,
            "readOnly": true
          },
          "additionalParameters": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ISearch": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isRegex": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ISort": {
        "type": "object",
        "properties": {
          "order": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "direction": {
            "$ref": "#/components/schemas/SortDirection"
          }
        },
        "additionalProperties": false
      },
      "Jurisdiction": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "geoJson": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "integer",
            "format": "int32"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "sensysGatsoPath": {
            "type": "string",
            "nullable": true
          },
          "lastModificationTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastModifierUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "creationTime": {
            "type": "string",
            "format": "date-time"
          },
          "creatorUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "id": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PostModel": {
        "type": "object",
        "properties": {
          "jurisdictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Jurisdiction"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetLockStatusRequest": {
        "type": "object",
        "properties": {
          "shouldLock": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ShareEventFilesRequestBody": {
        "type": "object",
        "properties": {
          "shareData": {
            "$ref": "#/components/schemas/StopArmEventShareData"
          },
          "model": {
            "$ref": "#/components/schemas/StopArmEventForReviewModel"
          }
        },
        "additionalProperties": false
      },
      "SortDirection": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32",
        "x-enumNames": [
          "Ascending",
          "Descending"
        ]
      },
      "StopArmAuditLogForReviewViewModel": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/StopArmAuditType"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "dateTime": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "StopArmAuditType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12
        ],
        "type": "integer",
        "format": "int32",
        "x-enumNames": [
          "MarkedInvalid",
          "Shared",
          "Reviewed",
          "NoteEdited",
          "FrontViewed",
          "RearViewed",
          "WideViewed",
          "SentToTicketing",
          "StatusChanged",
          "PlateUpdated",
          "PlateStateUpdated",
          "FileLocked",
          "FileUnlocked"
        ]
      },
      "StopArmBlobItem": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "cameraKind": {
            "type": "string",
            "nullable": true
          },
          "blobName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StopArmEventForReviewModel": {
        "type": "object",
        "properties": {
          "stopArmEventId": {
            "type": "integer",
            "format": "int32"
          },
          "unitName": {
            "type": "string",
            "nullable": true
          },
          "secondsInRed": {
            "type": "number",
            "format": "double"
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "eventDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "eventId": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/StopArmEventStatus"
          },
          "serial": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "latitude": {
            "type": "string",
            "nullable": true
          },
          "longitude": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "detectedPlate": {
            "type": "string",
            "nullable": true
          },
          "plateUserOverride": {
            "type": "string",
            "nullable": true
          },
          "plateState": {
            "type": "string",
            "nullable": true
          },
          "auditLog": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StopArmAuditLogForReviewViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StopArmEventModel": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "nullable": true
          },
          "cameraSn": {
            "type": "string",
            "nullable": true
          },
          "cameraFw": {
            "type": "string",
            "nullable": true
          },
          "busId": {
            "type": "string",
            "nullable": true
          },
          "busDvrSn": {
            "type": "string",
            "nullable": true
          },
          "busDvrFw": {
            "type": "string",
            "nullable": true
          },
          "eventDate": {
            "type": "string",
            "nullable": true
          },
          "eventTime": {
            "type": "string",
            "nullable": true
          },
          "eventLatitude": {
            "type": "string",
            "nullable": true
          },
          "eventLongitude": {
            "type": "string",
            "nullable": true
          },
          "secondsInRed": {
            "type": "number",
            "format": "double"
          },
          "detectedPlate": {
            "type": "string",
            "nullable": true
          },
          "eventAddress": {
            "type": "string",
            "nullable": true
          },
          "eventCity": {
            "type": "string",
            "nullable": true
          },
          "eventState": {
            "type": "string",
            "nullable": true
          },
          "eventZipCode": {
            "type": "string",
            "nullable": true
          },
          "pvCustomerName": {
            "type": "string",
            "nullable": true
          },
          "pvCustomerId": {
            "type": "string",
            "nullable": true
          },
          "sgCustomerId": {
            "type": "string",
            "nullable": true
          },
          "sgEventJurisdiction": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StopArmEventShareData": {
        "type": "object",
        "properties": {
          "recipients": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "shareDays": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "StopArmEventStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "type": "integer",
        "format": "int32",
        "x-enumNames": [
          "NeedsReview",
          "ReviewStarted",
          "Shared",
          "SentToTicketing",
          "InsufficientEvidence",
          "NoViolation",
          "ReviewDriverProcedure"
        ]
      }
    }
  }
}