> ## Documentation Index
> Fetch the complete documentation index at: https://docs.catenatelematics.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Dvir Logs

> List all Driver Vehicle Inspection Reports (DVIR).



## OpenAPI

````yaml https://api.catenatelematics.com/v2/telematics/openapi.json get /v2/telematics/dvir-logs
openapi: 3.1.0
info:
  title: Telematics Data Service - REST API
  description: Telematics Data Service REST API.
  version: 0.1.0
servers:
  - url: https://api.catenatelematics.com
    description: Catena Telematics API
security: []
tags:
  - name: Fleet Operations & Tracking
    description: >-
      Endpoints for tracking vehicles, trailers, assets, and trip activity —
      including locations, movements, and operational telemetry. Useful for
      monitoring utilization and real-time operational status.
  - name: Safety & Driver Behavior
    description: >-
      Endpoints that provide safety-related insights such as harsh braking,
      speeding, and other driver behavior events. Supports risk analysis and
      safety program automation.
  - name: Compliance & Regulation
    description: >-
      Endpoints covering regulated requirements including DVIR inspections,
      Hours of Service (HOS), violations, and IFTA fuel tax reporting. Helps
      organizations meet DOT/FMCSA and interstate regulatory obligations.
  - name: Maintenance & Vehicle Health
    description: >-
      Endpoints providing data for vehicle condition monitoring and maintenance
      workflows, such as DVIR defects and diagnostic sensor events. Enables
      early issue detection and reduced downtime.
  - name: Drivers & Users
    description: >-
      Endpoints related to driver and user identities, assignments, and
      operational context. Supports linking operational and safety data to
      specific individuals.
  - name: Reference Data (Supporting Tables)
    description: >-
      Lookup tables and enumerations that supply standardized codes, metadata,
      and classifications used across the API.
  - name: Analytics (deprecated)
    description: >-
      Endpoints providing analytical insights and aggregated data for vehicles,
      fleets, drivers, and trailers.
paths:
  /v2/telematics/dvir-logs:
    get:
      tags:
        - Compliance & Regulation
      summary: List Dvir Logs
      description: List all Driver Vehicle Inspection Reports (DVIR).
      operationId: list_dvir_logs
      parameters:
        - name: fleet_ids
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  format: uuid
                maxItems: 100
              - type: 'null'
            description: >-
              Limit results to specific fleets using Catena's fleet IDs. *For
              your own fleet identifiers, use `fleet_refs` instead* To specify
              multiple values, repeat the parameter for each value (e.g.,
              `?fleet_ids=id1&fleet_ids=id2`).
            title: Fleet Ids
          description: >-
            Limit results to specific fleets using Catena's fleet IDs. *For your
            own fleet identifiers, use `fleet_refs` instead* To specify multiple
            values, repeat the parameter for each value (e.g.,
            `?fleet_ids=id1&fleet_ids=id2`).
        - name: fleet_refs
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                maxItems: 100
              - type: 'null'
            description: >-
              Limit results to specific fleets using your organization's fleet
              reference identifiers. To specify multiple values, repeat the
              parameter for each value (e.g.,
              `?fleet_refs=ref1&fleet_refs=ref2`).
            title: Fleet Refs
          description: >-
            Limit results to specific fleets using your organization's fleet
            reference identifiers. To specify multiple values, repeat the
            parameter for each value (e.g., `?fleet_refs=ref1&fleet_refs=ref2`).
        - name: connection_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            description: >-
              Limit results to a specific provider connection. This is the UUID
              assigned by Catena when your fleet connects to a TSP.
            title: Connection Id
          description: >-
            Limit results to a specific provider connection. This is the UUID
            assigned by Catena when your fleet connects to a TSP.
        - name: from_datetime
          in: query
          required: false
          schema:
            type: string
            format: date-time
            description: >-
              Return only records that occurred on or after this date and time.
              **Format:** ISO 8601 (UTC) **Applies filter:** `occurred_at >=
              from_datetime` **Default value:** `now() - 1 day` **Restriction:**
              `to_datetime - from_datetime` cannot exceed 45 days
            examples:
              - '2026-06-25T15:05:51.529365Z'
            title: From Datetime
          description: >-
            Return only records that occurred on or after this date and time.
            **Format:** ISO 8601 (UTC) **Applies filter:** `occurred_at >=
            from_datetime` **Default value:** `now() - 1 day` **Restriction:**
            `to_datetime - from_datetime` cannot exceed 45 days
        - name: to_datetime
          in: query
          required: false
          schema:
            type: string
            format: date-time
            description: >-
              Return only records that occurred before this date and time.
              **Format:** ISO 8601 (UTC) **Applies filter:** `occurred_at <
              to_datetime` **Default value:** `now()` **Restriction:**
              `to_datetime - from_datetime` cannot exceed 45 days
            examples:
              - '2026-06-26T15:05:51.529502Z'
            title: To Datetime
          description: >-
            Return only records that occurred before this date and time.
            **Format:** ISO 8601 (UTC) **Applies filter:** `occurred_at <
            to_datetime` **Default value:** `now()` **Restriction:**
            `to_datetime - from_datetime` cannot exceed 45 days
        - name: include_source_data
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Include the raw data from the telematics provider. *Useful for
              auditing or accessing fields not normalized by Catena*
            default: false
            title: Include Source Data
          description: >-
            Include the raw data from the telematics provider. *Useful for
            auditing or accessing fields not normalized by Catena*
        - name: driver_ids
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  format: uuid
                maxItems: 100
              - type: 'null'
            description: >-
              Limit results to specific drivers. **Maximum:** 100 IDs To specify
              multiple values, repeat the parameter for each value (e.g.,
              `?driver_ids=id1&driver_ids=id2`).
            title: Driver Ids
          description: >-
            Limit results to specific drivers. **Maximum:** 100 IDs To specify
            multiple values, repeat the parameter for each value (e.g.,
            `?driver_ids=id1&driver_ids=id2`).
        - name: vehicle_ids
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  format: uuid
                maxItems: 100
              - type: 'null'
            description: >-
              Limit results to specific vehicles. **Maximum:** 100 IDs To
              specify multiple values, repeat the parameter for each value
              (e.g., `?vehicle_ids=id1&vehicle_ids=id2`).
            title: Vehicle Ids
          description: >-
            Limit results to specific vehicles. **Maximum:** 100 IDs To specify
            multiple values, repeat the parameter for each value (e.g.,
            `?vehicle_ids=id1&vehicle_ids=id2`).
        - name: sort_by
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              The name of the field to sort results by. If not provided, results
              will be ordered by `occurred_at`. 
            title: Sort By
          description: >-
            The name of the field to sort results by. If not provided, results
            will be ordered by `occurred_at`. 
        - name: sort_order
          in: query
          required: false
          schema:
            enum:
              - asc
              - desc
            type: string
            description: >-
              The order of sorting, either `asc` for ascending or `desc` for
              descending. Defaults to `asc` if `sort_by` is provided without
              `sort_order`.
            default: asc
            title: Sort Order
          description: >-
            The order of sorting, either `asc` for ascending or `desc` for
            descending. Defaults to `asc` if `sort_by` is provided without
            `sort_order`.
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Cursor for the next page
            title: Cursor
          description: Cursor for the next page
        - name: size
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            description: Page size
            default: 300
            title: Size
          description: Page size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/_CursorPage_DvirLogRead_'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
          description: Not Found
        '405':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MethodNotAllowed'
          description: Method Not Allowed
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conflict'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnprocessableEntity'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequests'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
          description: Internal Server Error
        '501':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotImplementedResponse'
          description: Not Implemented
      security:
        - Bearer:
            - telematics:read
components:
  schemas:
    _CursorPage_DvirLogRead_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/DvirLogRead'
          type: array
          title: Items
        total:
          type: integer
          minimum: 0
          title: Total
        current_page:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Page
          description: Cursor to refetch the current page
        current_page_backwards:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Page Backwards
          description: Cursor to refetch the current page starting from the last item
        previous_page:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous Page
          description: Cursor for the previous page
        next_page:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Page
          description: Cursor for the next page
      type: object
      required:
        - items
        - total
      title: _CursorPage[DvirLogRead]
    BadRequest:
      properties:
        code:
          type: integer
          title: Code
          default: 400
        message:
          type: string
          title: Message
          default: Bad Request
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
      type: object
      title: BadRequest
    Unauthorized:
      properties:
        code:
          type: integer
          title: Code
          default: 401
        message:
          type: string
          title: Message
          default: Unauthorized
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
      type: object
      title: Unauthorized
    Forbidden:
      properties:
        code:
          type: integer
          title: Code
          default: 403
        message:
          type: string
          title: Message
          default: Forbidden
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
      type: object
      title: Forbidden
    NotFound:
      properties:
        code:
          type: integer
          title: Code
          default: 404
        message:
          type: string
          title: Message
          default: Not Found
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
      type: object
      title: NotFound
    MethodNotAllowed:
      properties:
        code:
          type: integer
          title: Code
          default: 405
        message:
          type: string
          title: Message
          default: Method Not Allowed
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
      type: object
      title: MethodNotAllowed
    Conflict:
      properties:
        code:
          type: integer
          title: Code
          default: 409
        message:
          type: string
          title: Message
          default: Conflict
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
      type: object
      title: Conflict
    UnprocessableEntity:
      properties:
        code:
          type: integer
          title: Code
          default: 422
        message:
          type: string
          title: Message
          default: Invalid Request Body
        detail:
          anyOf:
            - items:
                $ref: '#/components/schemas/ValidationErrorDetail'
              type: array
            - type: 'null'
          title: Detail
      type: object
      title: UnprocessableEntity
    TooManyRequests:
      properties:
        code:
          type: integer
          title: Code
          default: 429
        message:
          type: string
          title: Message
          default: Too Many Requests
        detail:
          anyOf:
            - $ref: '#/components/schemas/RetryAfterDetail'
            - type: 'null'
      type: object
      title: TooManyRequests
    InternalServerError:
      properties:
        message:
          type: string
          title: Message
          default: Internal Server Error
      type: object
      title: InternalServerError
    NotImplementedResponse:
      properties:
        code:
          type: integer
          title: Code
          default: 501
        message:
          type: string
          title: Message
          default: Not Implemented
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
      type: object
      title: NotImplementedResponse
    DvirLogRead:
      properties:
        fleet_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Fleet Id
          description: Internal fleet identifier.
        fleet_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Fleet Ref
          description: External fleet reference in the partner system.
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier of the record at Catena Telematics.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: >-
            Immutable: The datetime the record was ingested into Catena
            Telematics.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: The dateime the record was last modified in Catena Telematics.
        deleted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deleted At
          description: >-
            The datetime the record was logically deleted from Catena
            Telematics.
        connection_id:
          type: string
          format: uuid
          title: Connection Id
          description: >-
            Unique identifier of the connection at Catena Telematics through
            which this record was ingested. A connection represents a Fleet/TSP
            pairing.
        tsp_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Tsp Id
          description: >-
            Unique identifier of the TSP at Catena Telematics from which this
            record was ingested.
        tsp_slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Tsp Slug
          description: >-
            Human readable slug of the TSP at Catena Telematics from which this
            record was ingested.
        source_name:
          $ref: '#/components/schemas/TspEnum'
          description: >-
            The underlying telematics platform that provided this data (e.g.,
            `samsara`, `motive`, `hos247`). Note: Some platforms like `hos247`
            offer white-labeling, so multiple TSPs may share the same
            source_name — use `tsp_id` or `tsp_slug` to identify the specific
            ELD provider.
        source_data:
          additionalProperties: true
          type: object
          title: Source Data
          description: >-
            Raw source payload as ingested from the TSP. **Note: use it for
            audit/debugging.**
        source_id:
          type: string
          title: Source Id
          description: >-
            Unique identifier of the record in the TSP. **Note: we generate a
            unique composite key based on available fields if the TSP does not
            provide an unique ID.**
        source_data_hash:
          type: string
          maxLength: 64
          title: Source Data Hash
          description: >-
            SHA-256 hash of the source data payload. **Note: we use it
            internally for idempotence and deduplication.**
        occurred_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Occurred At
          description: >-
            Datetime of when the underlying event/observation occurred, as
            reported by the TSP, or the moment it was ingested by us if not
            available in the source data.
        execution_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Execution Id
          description: >-
            Unique identifier for the execution that ingested this record into
            Catena Telematics. **Note: useful for tracing.**
        schedule_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Schedule Id
          description: >-
            Unique identifier for schedule that triggered this record's
            execution. **Note: useful for tracing.**
        extras:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Extras
          description: >-
            Additional data available in the TSP (e.g., we may have
            `external_id`, `provider_resource_id`, etc. — this field captures
            all those extra attributes in a flexible way).
        vehicle_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Vehicle Id
          description: Unique identifier for the vehicle associated with this DVIR log
        driver_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Driver Id
          description: Unique identifier for the driver submitting the DVIR log
        trailer_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Trailer Id
          description: >-
            Internal identifier for the trailer used in the DVIR, if provided by
            TSP
        source_driver_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Driver Id
          description: External system identifier for the driver (from the source system)
        source_vehicle_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Vehicle Id
          description: External system identifier for the vehicle (from the source system)
        source_trailer_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Trailer Id
          description: External system identifier for the trailer (from the source system)
        log_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Log Type
          description: Type of DVIR log (e.g., 'pre-trip', 'post-trip', 'daily', etc.)
        authority_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Authority Name
          description: >-
            Name of the authority conducting or receiving the inspection, if
            applicable
        authority_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Authority Address
          description: >-
            Address of the authority conducting or receiving the inspection, if
            applicable
        duration_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Duration Seconds
          description: Duration of the inspection in seconds, if available
        odometer_km:
          anyOf:
            - type: number
            - type: 'null'
          title: Odometer Km
          description: >-
            Vehicle odometer reading in kilometers at the time of the DVIR (To
            be deprecated in favor of odometer)
        odometer:
          anyOf:
            - type: number
            - type: 'null'
          title: Odometer
          description: Vehicle odometer reading in meters at the time of the DVIR
        engine_hours:
          anyOf:
            - type: number
            - type: 'null'
          title: Engine Hours
          description: Total engine hours recorded at the time of the DVIR
        location:
          anyOf:
            - $ref: '#/components/schemas/Point'
            - additionalProperties: true
              type: object
            - {}
            - type: 'null'
          title: Location
          description: Geographic location where the DVIR was recorded (latitude/longitude)
        h3_index_11:
          anyOf:
            - type: integer
            - type: 'null'
          title: H3 Index 11
          description: H3 geospatial index (resolution 11) derived from the location.
        inspected_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Inspected By
          description: Name of the inspector conducting the DVIR
        certify_comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Certify Comment
          description: Driver's certification comment acknowledging the inspection
        driver_comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Driver Comment
          description: Additional free-text comments provided by the driver
        defect_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Defect Count
          description: Total number of defects reported in this DVIR log
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
          description: Version identifier of the DVIR log record for tracking updates
        defects:
          anyOf:
            - items:
                $ref: '#/components/schemas/DvirDefectEnum'
              type: array
            - type: 'null'
          title: Defects
          description: List of defects reported in this DVIR log
        defects_detail:
          anyOf:
            - items:
                $ref: '#/components/schemas/DvirDefectDetail'
              type: array
            - type: 'null'
          title: Defects Detail
          description: Detailed defect entries with part and defect information
        is_safety_critical:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Safety Critical
          description: Indicates whether the DVIR log is safety-critical
      type: object
      required:
        - fleet_id
        - id
        - created_at
        - updated_at
        - connection_id
        - source_name
        - source_id
        - source_data_hash
      title: DvirLogRead
      description: DvirLog model for API responses
    ValidationErrorDetail:
      properties:
        path:
          type: string
          title: Path
        input:
          type: string
          title: Input
        message:
          type: string
          title: Message
        error_type:
          type: string
          title: Error Type
      type: object
      required:
        - path
        - input
        - message
        - error_type
      title: ValidationErrorDetail
    RetryAfterDetail:
      properties:
        retry_after_seconds:
          type: integer
          title: Retry After Seconds
        message:
          type: string
          title: Message
      type: object
      required:
        - retry_after_seconds
        - message
      title: RetryAfterDetail
    TspEnum:
      type: string
      enum:
        - ada
        - ai_eld
        - air_eld
        - alfa_eld
        - alpha_eld
        - als
        - anytrek_pro
        - anytrek_classic
        - apex_eld
        - apollo
        - apollocloud
        - ascend
        - att
        - awaregps
        - azuga
        - bigroad
        - bluehorse_eld
        - blueinktech
        - bouncie
        - budgetgps
        - catena_simulator
        - captain_eld
        - carrier_lynx
        - club_eld
        - counting_trucks_eld
        - cyntrx
        - digital_eld
        - dragon_eld
        - drive_hos
        - drive_hos_v2
        - driver_tech
        - dsg_elogs
        - dynamic_eld
        - eighteighteight_eld
        - eld_88
        - eld_books
        - eld_mandate
        - eld_mandate_prime
        - eroad
        - eva_eld
        - evo_eld
        - expressway_eld
        - extreme_eld
        - ezlogz
        - ez_lynk
        - factor_eld
        - firstgate
        - fleetcomplete
        - fleetcompletehub
        - fleethunt
        - fleetpulse
        - fleetsharp
        - fleetup
        - fm
        - forwardthinking
        - forza_eld
        - geotab
        - gpsinsight
        - gpstab
        - gpstrackit
        - grand_eld
        - greenlight
        - groundhog
        - hcss
        - hos247
        - hutch
        - intellishift
        - ironman_eld
        - isaac
        - jjkeller
        - kinexaiot
        - knight_eld
        - konexial
        - lioneight
        - linxup
        - loop_eld
        - lucid_eld
        - luna_eld
        - lytx
        - lytxv3
        - mapon
        - matrack
        - maven
        - mdm_eld
        - mobilefleet
        - moonlight_eld
        - motion_eld
        - motive
        - my_drivebook
        - my_logs_eld
        - nero
        - netradyne
        - new_eld_world
        - nextgen_eld
        - nextraq
        - omnitracs
        - onestep
        - ontime_eld
        - optima
        - orbcomm
        - orient_eld
        - panda_eld
        - payd
        - peak_eld
        - peoplenet
        - phillips_connect
        - phoenix
        - pop_eld
        - prologs
        - proride_eld
        - qualitylogs_eld
        - randmcnally
        - rastrac
        - raven
        - redfox
        - regulog_eld
        - ridehub
        - roadeazy
        - rock_eld
        - rollingtrans
        - routemate
        - royal_eld
        - safelane
        - samsara
        - selectivedrive
        - simba_eld
        - skybitz
        - smart_elds
        - sparkle_eld
        - spireon
        - sun_eld
        - surfsight
        - swift
        - switchboard
        - synergy_eld
        - teletracnavman
        - teletracnavman_director
        - telogis
        - tenna
        - thermo_king
        - think
        - tive
        - topcompliance_eld
        - traccar
        - trackease_eld
        - trackpro
        - traclog
        - transflo
        - trimble
        - truckford
        - truckspy
        - truckx
        - trueroad_eld
        - tt
        - txt_eld
        - us_fast_eld
        - verizon_connect
        - vista_eld
        - vistracks
        - vlog_eld
        - vulcansols_eld
        - wialon
        - webfleet
        - xplore_eld
        - zigzag_eld
        - zms_eld
        - zonar
        - zubie
      title: TspEnum
      description: Enum for TSPs
    Point:
      properties:
        bbox:
          anyOf:
            - prefixItems:
                - type: number
                - type: number
                - type: number
                - type: number
              type: array
              maxItems: 4
              minItems: 4
            - prefixItems:
                - type: number
                - type: number
                - type: number
                - type: number
                - type: number
                - type: number
              type: array
              maxItems: 6
              minItems: 6
            - type: 'null'
          title: Bbox
        type:
          type: string
          const: Point
          title: Type
        coordinates:
          anyOf:
            - $ref: '#/components/schemas/Position2D'
            - $ref: '#/components/schemas/Position3D'
          title: Coordinates
      type: object
      required:
        - type
        - coordinates
      title: Point
      description: Point Model
    DvirDefectEnum:
      type: string
      enum:
        - fluid_levels
        - battery
        - belts_hoses
        - radiator
        - frame_assembly
        - front_axle
        - starter
        - transmission
        - oil_pressure
        - defroster_heater
        - lights_front
        - windshield_clean
        - windshield_wiper_fluid
        - windshield_wipers
        - brakes
        - brake_check
        - clutch
        - mirrors
        - horn
        - safety_equipment
        - trip_recorder
        - air_conditioner
        - doors
        - stop_arm_control
        - steering_wheel
        - emergency_door_buzzer
        - entrance_steps
        - interior_floor
        - windows
        - exhaust
        - fifth_wheel
        - landing_gear
        - suspension
        - alignment
        - rims
        - tires
        - tire_chains
        - stop_arm
        - muffler
        - roof
        - wheels
        - wheels_rims
        - suspension_under
        - scratches
        - air_compressor
        - air_lines
        - brake_connections
        - coupling_devices
        - reflectors
        - lights_rear
        - rear_end
        - tire_chains_rear
        - brake_accessories
        - drive_line
        - engine
        - fuel_tanks
        - lights_general
        - other
        - unset
        - first_aid_kit
      title: DvirDefectEnum
      description: Enum for DVIR (Driver Vehicle Inspection Report) defects
    DvirDefectDetail:
      properties:
        part:
          anyOf:
            - $ref: '#/components/schemas/DvirPartEnum'
            - type: 'null'
        defect:
          anyOf:
            - $ref: '#/components/schemas/DvirDefectDetailEnum'
            - type: 'null'
        defect_repair_details:
          anyOf:
            - $ref: '#/components/schemas/DefectRepairDetails'
            - type: 'null'
        comment:
          anyOf:
            - $ref: '#/components/schemas/DefectComment'
            - type: 'null'
        source_part_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Part Id
        source_defect_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Defect Id
      type: object
      title: DvirDefectDetail
      description: Structured DVIR defect detail shared across services.
    Position2D:
      prefixItems:
        - type: number
          title: Longitude
        - type: number
          title: Latitude
      type: array
      maxItems: 2
      minItems: 2
    Position3D:
      prefixItems:
        - type: number
          title: Longitude
        - type: number
          title: Latitude
        - type: number
          title: Altitude
      type: array
      maxItems: 3
      minItems: 3
    DvirPartEnum:
      type: string
      enum:
        - other
        - unset
        - fluid_levels
        - battery
        - belts_hoses
        - radiator
        - frame_assembly
        - front_axle
        - starter
        - transmission
        - oil_pressure
        - defroster_heater
        - windshield_clean
        - windshield_wiper_fluid
        - windshield_wipers
        - brakes
        - parking_brakes
        - service_brakes
        - brake_check
        - brake_accessories
        - brake_connections
        - air_compressor
        - air_lines
        - air_conditioner
        - clutch
        - horn
        - mirrors
        - trip_recorder
        - doors
        - windows
        - interior_floor
        - entrance_steps
        - steering
        - steering_wheel
        - emergency_equipment
        - safety_equipment
        - first_aid_kit
        - emergency_door_buzzer
        - stop_arm
        - stop_arm_control
        - lights
        - lights_front
        - lights_rear
        - lights_and_reflectors
        - reflectors
        - exhaust
        - fifth_wheel
        - coupling_devices
        - landing_gear
        - suspension
        - suspension_under
        - alignment
        - rims
        - tires
        - tire_chains
        - tire_chains_rear
        - muffler
        - roof
        - wheels
        - wheels_rims
        - rear_end
        - drive_line
        - engine
        - fuel_tanks
        - scratches
      title: DvirPartEnum
      description: Enum for canonical DVIR inspectable parts and assemblies.
    DvirDefectDetailEnum:
      type: string
      enum:
        - air_compressor_not_working
        - bent_cracked_or_damaged
        - binds_or_grabs
        - broken_or_cracked
        - bulging_or_swelling
        - chatters_shudders_or_vibrates
        - cracked_or_broken
        - dragging
        - drifts_or_pulls_left
        - drifts_or_pulls_right
        - fifth_wheel_cracked_or_damaged
        - fire_extinguisher_missing
        - fire_extinguisher_not_charged
        - flags_or_flares_missing
        - flat_or_leaking_air
        - fluid_level_improper
        - handle_loose_or_missing
        - improper_spraying
        - improper_wiping
        - improperly_adjusted
        - improperly_aimed_headlight
        - improperly_inflated
        - inoperable_4_way_flasher
        - inoperable_air_horn
        - inoperable_brake_light
        - inoperable_electric_horn
        - inoperable_headlight_high_beam
        - inoperable_headlight_low_beam
        - inoperable_interior_light
        - inoperable_left_turn_signal
        - inoperable_right_turn_signal
        - inoperative
        - inoperative_4_way_flasher
        - inoperative_brake_light
        - inoperative_interior_light
        - inoperative_left_turn_signal
        - inoperative_right_turn_signal
        - insufficient_tread
        - leaking_air
        - leaking_fluid
        - leaking_seals
        - lock_broken_or_inoperative
        - locking_mechanism_won_t_disengage
        - locking_mechanism_won_t_engage
        - loose_or_excessive_wheel_play
        - loose_or_insecurely_mounted
        - loose_or_malfunctioning_connections
        - missing
        - overheating_or_running_hot
        - parts_loose_or_insecurely_mounted
        - parts_missing
        - pin_cracked_or_damaged
        - pintle_hook_assembly_cracked
        - pintle_hook_assembly_damaged
        - reflective_triangles_missing
        - rusty_or_corroded
        - safety_chains_cracked_or_damaged
        - seized
        - slow_to_release
        - spare_bulbs_or_fuses_missing
        - spare_seal_beam_missing
        - ties_broken_loose_or_missing
        - tread_or_sidewall_separation
        - warning_light_not_working
        - warning_light_on
        - weak_or_ineffective
        - will_not_release
      title: DvirDefectDetailEnum
      description: Enum for canonical DVIR defect details.
    DefectRepairDetails:
      properties:
        repair_status:
          anyOf:
            - $ref: '#/components/schemas/DefectRepairStatusEnum'
            - type: 'null'
        repair_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Repair User Id
        repair_date_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Repair Date Time
      type: object
      title: DefectRepairDetails
      description: Structured DVIR defect repair details
    DefectComment:
      properties:
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
        comment_date_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Comment Date Time
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
      type: object
      title: DefectComment
      description: Structured DVIR defect comment
    DefectRepairStatusEnum:
      type: string
      enum:
        - not_repaired
        - repaired
        - not_necessary
      title: DefectRepairStatusEnum
      description: Enum for DVIR defect repair status.
  securitySchemes:
    Bearer:
      type: oauth2
      flows:
        clientCredentials:
          refreshUrl: >-
            https://auth.catenatelematics.com/realms/catena/protocol/openid-connect/token
          scopes: {}
          tokenUrl: >-
            https://auth.catenatelematics.com/realms/catena/protocol/openid-connect/token
        authorizationCode:
          refreshUrl: >-
            https://auth.catenatelematics.com/realms/catena/protocol/openid-connect/token
          scopes: {}
          authorizationUrl: >-
            https://auth.catenatelematics.com/realms/catena/protocol/openid-connect/auth
          tokenUrl: >-
            https://auth.catenatelematics.com/realms/catena/protocol/openid-connect/token

````