{
  "openapi": "3.1.1",
  "info": {
    "title": "Techvia TMS public API",
    "description": "Customer API keys only. Send `Authorization: Bearer tms_...` on every request.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://tms-api.techvia.software"
    }
  ],
  "paths": {
    "/api/public/v1/carriers": {
      "get": {
        "tags": [
          "PublicCarriers"
        ],
        "operationId": "PublicCarriers_List",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicCarrier"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PublicCarriers"
        ],
        "operationId": "PublicCarriers_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCarrierCreate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCarrierCreate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCarrierCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCarrier"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/carriers/{id}": {
      "get": {
        "tags": [
          "PublicCarriers"
        ],
        "operationId": "PublicCarriers_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCarrier"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "PublicCarriers"
        ],
        "operationId": "PublicCarriers_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCarrierUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCarrierUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCarrierUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCarrier"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/customers": {
      "get": {
        "tags": [
          "PublicCustomers"
        ],
        "operationId": "PublicCustomers_List",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicCustomer"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PublicCustomers"
        ],
        "operationId": "PublicCustomers_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerCreate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerCreate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomer"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/customers/{id}": {
      "get": {
        "tags": [
          "PublicCustomers"
        ],
        "operationId": "PublicCustomers_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomer"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "PublicCustomers"
        ],
        "operationId": "PublicCustomers_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomer"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/dispatchers": {
      "get": {
        "tags": [
          "PublicDispatchers"
        ],
        "operationId": "PublicDispatchers_List",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicDispatcher"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/loads/{id}/documents": {
      "get": {
        "tags": [
          "PublicDocuments"
        ],
        "operationId": "PublicDocuments_List",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicDocument"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/documents/{id}/link": {
      "get": {
        "tags": [
          "PublicDocuments"
        ],
        "operationId": "PublicDocuments_Link",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDocumentLink"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/drivers": {
      "get": {
        "tags": [
          "PublicDrivers"
        ],
        "operationId": "PublicDrivers_List",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicDriver"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/drivers/{id}": {
      "get": {
        "tags": [
          "PublicDrivers"
        ],
        "operationId": "PublicDrivers_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDriver"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/facilities": {
      "get": {
        "tags": [
          "PublicFacilities"
        ],
        "operationId": "PublicFacilities_List",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicFacility"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PublicFacilities"
        ],
        "operationId": "PublicFacilities_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicFacilityCreate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicFacilityCreate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicFacilityCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicFacility"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/facilities/{id}": {
      "patch": {
        "tags": [
          "PublicFacilities"
        ],
        "operationId": "PublicFacilities_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicFacilityUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicFacilityUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicFacilityUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicFacility"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/trailers": {
      "get": {
        "tags": [
          "PublicTrailers"
        ],
        "operationId": "PublicTrailers_List",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicTrailer"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/trailers/{id}": {
      "get": {
        "tags": [
          "PublicTrailers"
        ],
        "operationId": "PublicTrailers_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTrailer"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/trucks": {
      "get": {
        "tags": [
          "PublicTrucks"
        ],
        "operationId": "PublicTrucks_List",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicTruck"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/trucks/{id}": {
      "get": {
        "tags": [
          "PublicTrucks"
        ],
        "operationId": "PublicTrucks_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTruck"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/me": {
      "get": {
        "tags": [
          "PublicMe"
        ],
        "operationId": "PublicMe_Get",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicMeDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicMeDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicMeDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/loads": {
      "get": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_List",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "enum": [
                "PreBook",
                "Open",
                "Covered",
                "AtPickup",
                "EnRoute",
                "AtDelivery",
                "Delivered",
                "Completed",
                "Invoiced",
                "Cancelled",
                "TONU"
              ],
              "type": "string"
            }
          },
          {
            "name": "customerId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "driverId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "carrierId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pickupFrom",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "pickupTo",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "deliveryFrom",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "deliveryTo",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicLoadListItem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadCreate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadCreate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoad"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/loads/{id}": {
      "get": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoad"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadPatch"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadPatch"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoad"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/loads/{id}/status": {
      "patch": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_SetStatus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadStatusInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadStatusInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadStatusInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoadStatusResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/loads/{id}/assignment": {
      "put": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_Assign",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadAssign"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadAssign"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadAssign"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoad"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_Unassign",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "rowVersion",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "uint32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoad"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/loads/{id}/notes": {
      "post": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_AddNote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadNoteInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadNoteInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicLoadNoteInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoadNote"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/loads/{id}/stops/{stopId}/arrival": {
      "put": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_RecordArrival",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "stopId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PublicStopStampInput"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PublicStopStampInput"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PublicStopStampInput"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoad"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/loads/{id}/stops/{stopId}/departure": {
      "put": {
        "tags": [
          "PublicLoads"
        ],
        "operationId": "PublicLoads_RecordDeparture",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "stopId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PublicStopStampInput"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PublicStopStampInput"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PublicStopStampInput"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLoad"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/quotes": {
      "get": {
        "tags": [
          "PublicQuotes"
        ],
        "operationId": "PublicQuotes_List",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customerId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfPublicQuoteListItem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PublicQuotes"
        ],
        "operationId": "PublicQuotes_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteCreate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteCreate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuote"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/quotes/{id}": {
      "get": {
        "tags": [
          "PublicQuotes"
        ],
        "operationId": "PublicQuotes_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuote"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/quotes/{id}/status": {
      "patch": {
        "tags": [
          "PublicQuotes"
        ],
        "operationId": "PublicQuotes_SetStatus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteStatusInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteStatusInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteStatusInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuote"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/quotes/{id}/convert": {
      "post": {
        "tags": [
          "PublicQuotes"
        ],
        "operationId": "PublicQuotes_Convert",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteConvertResult"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteConvertResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AssetStatus": {
        "enum": [
          "Active",
          "Inactive",
          "InMaintenance",
          "OutOfService"
        ]
      },
      "AssignmentMode": {
        "enum": [
          "None",
          "Driver",
          "Carrier"
        ]
      },
      "CarrierStatus": {
        "enum": [
          "Active",
          "Inactive"
        ]
      },
      "CustomerStatus": {
        "enum": [
          "Active",
          "Inactive"
        ]
      },
      "DispatcherStatus": {
        "enum": [
          "Active",
          "Inactive"
        ]
      },
      "DocumentCategory": {
        "enum": [
          "BOL",
          "POD",
          "RateCon",
          "CarrierInvoice",
          "Receipt",
          "Other"
        ]
      },
      "DocumentSource": {
        "enum": [
          "Uploaded",
          "Generated"
        ]
      },
      "DriverStatus": {
        "enum": [
          "Active",
          "Inactive",
          "OnLeave",
          "Terminated"
        ]
      },
      "EquipmentType": {
        "enum": [
          "DryVan",
          "Flatbed",
          "Reefer",
          "Tanker",
          "StepDeck",
          "Other",
          null
        ]
      },
      "FacilityStatus": {
        "enum": [
          "Active",
          "Inactive"
        ]
      },
      "LoadStatus": {
        "enum": [
          "PreBook",
          "Open",
          "Covered",
          "AtPickup",
          "EnRoute",
          "AtDelivery",
          "Delivered",
          "Completed",
          "Invoiced",
          "Cancelled",
          "TONU"
        ]
      },
      "LoadType": {
        "enum": [
          "Spot",
          "Dedicated",
          "Contract"
        ]
      },
      "PagedResultOfPublicCarrier": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicCarrier"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "PagedResultOfPublicCustomer": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicCustomer"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "PagedResultOfPublicDispatcher": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicDispatcher"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "PagedResultOfPublicDriver": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicDriver"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "PagedResultOfPublicFacility": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFacility"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "PagedResultOfPublicLoadListItem": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicLoadListItem"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "PagedResultOfPublicQuoteListItem": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicQuoteListItem"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "PagedResultOfPublicTrailer": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTrailer"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "PagedResultOfPublicTruck": {
        "required": [
          "items",
          "page",
          "pageSize",
          "total",
          "hasMore",
          "sort"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTruck"
            }
          },
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SortSpec"
            }
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicApiQuota": {
        "required": [
          "meter",
          "used",
          "limit",
          "remaining",
          "resetsAt"
        ],
        "type": "object",
        "properties": {
          "meter": {
            "type": "string"
          },
          "used": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "limit": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "remaining": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "resetsAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PublicApiRateLimit": {
        "required": [
          "scope",
          "limit",
          "windowSeconds"
        ],
        "type": "object",
        "properties": {
          "scope": {
            "type": "string"
          },
          "limit": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "windowSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PublicCarrier": {
        "required": [
          "id",
          "name",
          "mcNumber",
          "dotNumber",
          "status",
          "insuranceExpiry",
          "phone",
          "email",
          "scac",
          "rowVersion"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "mcNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "dotNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CarrierStatus"
          },
          "insuranceExpiry": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "scac": {
            "type": [
              "null",
              "string"
            ]
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint32"
          }
        }
      },
      "PublicCarrierCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "dotNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "mcNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "scac": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactName": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "liabilityExpiry": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "autoExpiry": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "cargoExpiry": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "PublicCarrierUpdate": {
        "type": "object",
        "properties": {
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "dotNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "mcNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "scac": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactName": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "liabilityExpiry": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "autoExpiry": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "cargoExpiry": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "PublicCustomer": {
        "required": [
          "id",
          "name",
          "mcType",
          "mcNumber",
          "city",
          "state",
          "status",
          "contactName",
          "phone",
          "email",
          "rowVersion"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "mcType": {
            "type": [
              "null",
              "string"
            ]
          },
          "mcNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CustomerStatus"
          },
          "contactName": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint32"
          }
        }
      },
      "PublicCustomerCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "mcType": {
            "type": [
              "null",
              "string"
            ]
          },
          "mcNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "street": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "zip": {
            "type": [
              "null",
              "string"
            ]
          },
          "country": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactName": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "confirmNew": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PublicCustomerUpdate": {
        "type": "object",
        "properties": {
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "mcType": {
            "type": [
              "null",
              "string"
            ]
          },
          "mcNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "street": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "zip": {
            "type": [
              "null",
              "string"
            ]
          },
          "country": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactName": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "confirmNew": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PublicDispatcher": {
        "required": [
          "id",
          "name",
          "status"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/DispatcherStatus"
          }
        }
      },
      "PublicDocument": {
        "required": [
          "id",
          "loadId",
          "category",
          "fileName",
          "contentType",
          "sizeBytes",
          "source",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "loadId": {
            "type": "string",
            "format": "uuid"
          },
          "category": {
            "$ref": "#/components/schemas/DocumentCategory"
          },
          "fileName": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "sizeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "source": {
            "$ref": "#/components/schemas/DocumentSource"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PublicDocumentLink": {
        "required": [
          "url",
          "expiresAt"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PublicDriver": {
        "required": [
          "id",
          "name",
          "status",
          "phone",
          "currentTruck",
          "currentLoadNumber"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/DriverStatus"
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "currentTruck": {
            "type": [
              "null",
              "string"
            ]
          },
          "currentLoadNumber": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicFacility": {
        "required": [
          "id",
          "name",
          "code",
          "street",
          "city",
          "state",
          "zip",
          "timeZoneId",
          "status",
          "rowVersion"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "street": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "zip": {
            "type": [
              "null",
              "string"
            ]
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/FacilityStatus"
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint32"
          }
        }
      },
      "PublicFacilityCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "street": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "zip": {
            "type": [
              "null",
              "string"
            ]
          },
          "country": {
            "type": [
              "null",
              "string"
            ]
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "confirmNew": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PublicFacilityUpdate": {
        "type": "object",
        "properties": {
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "confirmNew": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PublicLoad": {
        "required": [
          "id",
          "loadNumber",
          "workOrderNumber",
          "status",
          "type",
          "equipment",
          "customer",
          "dispatcherName",
          "assignment",
          "rowVersion",
          "stops",
          "createdAt",
          "updatedAt",
          "isSample",
          "notes"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "loadNumber": {
            "type": "string"
          },
          "workOrderNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/LoadStatus"
          },
          "type": {
            "$ref": "#/components/schemas/LoadType"
          },
          "equipment": {
            "enum": [
              "DryVan",
              "Flatbed",
              "Reefer",
              "Tanker",
              "StepDeck",
              "Other",
              null
            ],
            "type": [
              "null",
              "string"
            ]
          },
          "customer": {
            "$ref": "#/components/schemas/PublicLoadCustomer"
          },
          "dispatcherName": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignment": {
            "$ref": "#/components/schemas/PublicLoadAssignment"
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "stops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicLoadStop"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isSample": {
            "type": "boolean"
          },
          "notes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicLoadNote"
            }
          },
          "rate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "finalRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "otherCharges": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicLoadCharge"
            }
          },
          "autoCharges": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicLoadCharge"
            }
          }
        }
      },
      "PublicLoadAssign": {
        "type": "object",
        "properties": {
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "carrierId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "carrierDriverIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "carrierTruckId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "carrierCost": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "driverIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "truckId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "trailerId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PublicLoadAssignment": {
        "required": [
          "mode",
          "driverNames",
          "truck",
          "trailer",
          "carrierName"
        ],
        "type": "object",
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/AssignmentMode"
          },
          "driverNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "truck": {
            "type": [
              "null",
              "string"
            ]
          },
          "trailer": {
            "type": [
              "null",
              "string"
            ]
          },
          "carrierName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicLoadCharge": {
        "required": [
          "id",
          "type",
          "description",
          "amount"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "amount": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PublicLoadChargeInput": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "amount": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PublicLoadCreate": {
        "required": [
          "customerId",
          "stops"
        ],
        "type": "object",
        "properties": {
          "customerId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "stops": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicLoadStopInput"
            }
          },
          "dispatcherId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "workOrderNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipment": {
            "enum": [
              "DryVan",
              "Flatbed",
              "Reefer",
              "Tanker",
              "StepDeck",
              "Other"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "Spot",
              "Dedicated",
              "Contract"
            ],
            "type": "string"
          },
          "rate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "otherCharges": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicLoadChargeInput"
            }
          },
          "allowDuplicate": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PublicLoadCustomer": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "PublicLoadListItem": {
        "required": [
          "id",
          "loadNumber",
          "workOrderNumber",
          "status",
          "equipment",
          "customerName",
          "dispatcherName",
          "origin",
          "destination",
          "pickupDate",
          "pickupLocal",
          "pickupTimeZoneId",
          "deliveryDate",
          "deliveryLocal",
          "deliveryTimeZoneId",
          "assignmentMode",
          "assignedTo",
          "rowVersion",
          "isSample"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "loadNumber": {
            "type": "string"
          },
          "workOrderNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/LoadStatus"
          },
          "equipment": {
            "enum": [
              "DryVan",
              "Flatbed",
              "Reefer",
              "Tanker",
              "StepDeck",
              "Other",
              null
            ],
            "type": [
              "null",
              "string"
            ]
          },
          "customerName": {
            "type": "string"
          },
          "dispatcherName": {
            "type": [
              "null",
              "string"
            ]
          },
          "origin": {
            "type": [
              "null",
              "string"
            ]
          },
          "destination": {
            "type": [
              "null",
              "string"
            ]
          },
          "pickupDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "pickupLocal": {
            "type": [
              "null",
              "string"
            ]
          },
          "pickupTimeZoneId": {
            "type": [
              "null",
              "string"
            ]
          },
          "deliveryDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "deliveryLocal": {
            "type": [
              "null",
              "string"
            ]
          },
          "deliveryTimeZoneId": {
            "type": [
              "null",
              "string"
            ]
          },
          "assignmentMode": {
            "$ref": "#/components/schemas/AssignmentMode"
          },
          "assignedTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "isSample": {
            "type": "boolean"
          },
          "finalRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PublicLoadNote": {
        "required": [
          "id",
          "createdAt",
          "by",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "by": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "PublicLoadNoteInput": {
        "required": [
          "text"
        ],
        "type": "object",
        "properties": {
          "text": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicLoadPatch": {
        "type": "object",
        "properties": {
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "workOrderNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipment": {
            "enum": [
              "DryVan",
              "Flatbed",
              "Reefer",
              "Tanker",
              "StepDeck",
              "Other"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "Spot",
              "Dedicated",
              "Contract"
            ],
            "type": "string"
          },
          "rate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "stops": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicLoadStopPatch"
            }
          },
          "allowDuplicate": {
            "type": "boolean",
            "default": false
          },
          "addCharges": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicLoadChargeInput"
            }
          },
          "removeChargeIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "PublicLoadStatusInput": {
        "required": [
          "status",
          "rowVersion"
        ],
        "type": "object",
        "properties": {
          "status": {
            "enum": [
              "Open",
              "Covered",
              "AtPickup",
              "EnRoute",
              "AtDelivery",
              "Delivered"
            ],
            "type": "string"
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint32"
          }
        }
      },
      "PublicLoadStatusResult": {
        "required": [
          "id",
          "loadNumber",
          "status",
          "rowVersion"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "loadNumber": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/LoadStatus"
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint32"
          }
        }
      },
      "PublicLoadStop": {
        "required": [
          "id",
          "order",
          "type",
          "facilityName",
          "scheduledDate",
          "scheduledLocal",
          "timeZoneId",
          "appointmentConfirmed",
          "commodity",
          "quantity",
          "weightLbs",
          "referenceNumber",
          "notes",
          "arrivedAt",
          "departedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "type": {
            "$ref": "#/components/schemas/StopType"
          },
          "facilityName": {
            "type": "string"
          },
          "scheduledDate": {
            "type": "string",
            "format": "date-time"
          },
          "scheduledLocal": {
            "type": [
              "null",
              "string"
            ]
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ]
          },
          "appointmentConfirmed": {
            "type": "boolean"
          },
          "commodity": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantity": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "weightLbs": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "referenceNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "arrivedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "departedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "PublicLoadStopInput": {
        "type": "object",
        "properties": {
          "facilityId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "address": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PublicStopAddress"
              }
            ]
          },
          "type": {
            "enum": [
              "Shipper",
              "Consignee"
            ],
            "type": "string"
          },
          "scheduledDate": { },
          "appointmentConfirmed": {
            "type": "boolean",
            "default": false
          },
          "commodity": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantity": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "weightLbs": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "referenceNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicLoadStopPatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "facilityId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "type": {
            "enum": [
              "Shipper",
              "Consignee"
            ],
            "type": "string"
          },
          "scheduledDate": { },
          "appointmentConfirmed": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "commodity": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantity": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "weightLbs": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "referenceNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicMeDto": {
        "required": [
          "tenantName",
          "keyName",
          "scopes",
          "expiresAt",
          "quota",
          "rateLimits"
        ],
        "type": "object",
        "properties": {
          "tenantName": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expiresAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "quota": {
            "$ref": "#/components/schemas/PublicApiQuota"
          },
          "rateLimits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicApiRateLimit"
            }
          }
        }
      },
      "PublicQuote": {
        "required": [
          "id",
          "quoteNumber",
          "status",
          "customerId",
          "customerName",
          "dispatcherName",
          "originCity",
          "originState",
          "destCity",
          "destState",
          "originFacilityId",
          "originFacilityName",
          "destFacilityId",
          "destFacilityName",
          "equipment",
          "commodity",
          "weightLbs",
          "pickupDate",
          "deliveryDate",
          "miles",
          "quotedRate",
          "suggestedRate",
          "validUntil",
          "sentAt",
          "wonAt",
          "lostAt",
          "lostReason",
          "lostNotes",
          "convertedLoadId",
          "notes",
          "rowVersion",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "quoteNumber": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "customerId": {
            "type": "string",
            "format": "uuid"
          },
          "customerName": {
            "type": "string"
          },
          "dispatcherName": {
            "type": [
              "null",
              "string"
            ]
          },
          "originCity": {
            "type": "string"
          },
          "originState": {
            "type": "string"
          },
          "destCity": {
            "type": "string"
          },
          "destState": {
            "type": "string"
          },
          "originFacilityId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "originFacilityName": {
            "type": [
              "null",
              "string"
            ]
          },
          "destFacilityId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "destFacilityName": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipment": {
            "type": [
              "null",
              "string"
            ]
          },
          "commodity": {
            "type": [
              "null",
              "string"
            ]
          },
          "weightLbs": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pickupDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "deliveryDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "miles": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "quotedRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "suggestedRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "validUntil": {
            "type": "string",
            "format": "date"
          },
          "sentAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "wonAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lostAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lostReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "lostNotes": {
            "type": [
              "null",
              "string"
            ]
          },
          "convertedLoadId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PublicQuoteConvertResult": {
        "required": [
          "outcome",
          "load"
        ],
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string"
          },
          "load": {
            "$ref": "#/components/schemas/PublicLoad"
          }
        }
      },
      "PublicQuoteCreate": {
        "type": "object",
        "properties": {
          "customerId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "originCity": {
            "type": [
              "null",
              "string"
            ]
          },
          "originState": {
            "type": [
              "null",
              "string"
            ]
          },
          "destCity": {
            "type": [
              "null",
              "string"
            ]
          },
          "destState": {
            "type": [
              "null",
              "string"
            ]
          },
          "quotedRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "dispatcherId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "originFacilityId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "destFacilityId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "equipment": {
            "enum": [
              "DryVan",
              "Flatbed",
              "Reefer",
              "Tanker",
              "StepDeck",
              "Other"
            ],
            "type": "string"
          },
          "commodity": {
            "type": [
              "null",
              "string"
            ]
          },
          "weightLbs": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pickupDate": { },
          "deliveryDate": { },
          "validUntil": { },
          "miles": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicQuoteListItem": {
        "required": [
          "id",
          "quoteNumber",
          "status",
          "customerName",
          "originCity",
          "originState",
          "destCity",
          "destState",
          "quotedRate",
          "validUntil",
          "convertedLoadId",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "quoteNumber": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "customerName": {
            "type": "string"
          },
          "originCity": {
            "type": "string"
          },
          "originState": {
            "type": "string"
          },
          "destCity": {
            "type": "string"
          },
          "destState": {
            "type": "string"
          },
          "quotedRate": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "validUntil": {
            "type": "string",
            "format": "date"
          },
          "convertedLoadId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PublicQuoteStatusInput": {
        "required": [
          "status",
          "rowVersion"
        ],
        "type": "object",
        "properties": {
          "status": {
            "enum": [
              "Draft",
              "Sent",
              "Won",
              "Lost"
            ],
            "type": "string"
          },
          "rowVersion": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint32"
          },
          "lostReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "lostNotes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicStopAddress": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "street": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": [
              "null",
              "string"
            ]
          },
          "zip": {
            "type": [
              "null",
              "string"
            ]
          },
          "country": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicStopStampInput": {
        "type": "object",
        "properties": {
          "at": { }
        }
      },
      "PublicTrailer": {
        "required": [
          "id",
          "unitNumber",
          "type",
          "status"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "unitNumber": {
            "type": "string"
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/AssetStatus"
          }
        }
      },
      "PublicTruck": {
        "required": [
          "id",
          "unitNumber",
          "type",
          "status",
          "currentDriverName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "unitNumber": {
            "type": "string"
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/AssetStatus"
          },
          "currentDriverName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SortSpec": {
        "required": [
          "field",
          "dir"
        ],
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "dir": {
            "type": "string"
          }
        }
      },
      "StopType": {
        "enum": [
          "Shipper",
          "Consignee"
        ]
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "description": "A customer API key (tms_...), created by a workspace admin in Settings.",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "apiKey": [ ]
    }
  ],
  "tags": [
    {
      "name": "PublicCarriers"
    },
    {
      "name": "PublicCustomers"
    },
    {
      "name": "PublicDispatchers"
    },
    {
      "name": "PublicDocuments"
    },
    {
      "name": "PublicDrivers"
    },
    {
      "name": "PublicFacilities"
    },
    {
      "name": "PublicTrailers"
    },
    {
      "name": "PublicTrucks"
    },
    {
      "name": "PublicMe"
    },
    {
      "name": "PublicLoads"
    },
    {
      "name": "PublicQuotes"
    }
  ]
}