import type * as Samsara from "../index.js"; /** * Full Safety Event object */ export interface SafetyEventV2ObjectResponseBody { asset: Samsara.SafetyEventV2AssetObjectResponseBody; /** Unique user ID for the assigned coach. */ assignedCoach?: string | undefined; /** The most up-to-date behavior labels associated with the safety event. These labels can be updated by Safety Admins. */ behaviorLabels: Samsara.SafetyEventV2BehaviorLabelsResponseBody[]; /** The most up-to-date context labels associated with the safety event. AI generated labels can be updated by Safety Admins. */ contextLabels: Samsara.SafetyEventV2ContextLabelsResponseBody[]; /** UTC time the Safety Event was created in Samsara in RFC 3339 format. This field may differ from when the event was detected (`startMs`). */ createdAtTime: string; /** Camera streams that detected the safety event. */ detectedStreams?: Samsara.SafetyEventV2MediaResponseBody[] | undefined; dismissalReason?: Samsara.SafetyEventDismissalReasonResponseBody | undefined; driver: Samsara.SafetyEventV2DriverObjectResponseBody; /** UTC time the Safety Event detection ended in RFC 3339 format. */ endMs: string; /** The current state of the Safety Event. Valid values: `unknown`, `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized` */ eventState: SafetyEventV2ObjectResponseBody.EventState; /** The unique Samsara ID (uuid) of the safety event. */ id: string; /** A link to the Safety Event review page for the associated event. */ inboxEventUrl: string; /** If a harsh event, returns the URL of the associated incident report page. If a speeding event, returns the URL of the associated speeding report page. */ incidentReportUrl: string; location: Samsara.LocationResponseResponseBody; /** The maximum acceleration value as a multiplier on the force of gravity (g). */ maxAccelerationGForce: number; /** Media assets available for the safety event. */ media?: Samsara.SafetyEventV2MediaResponseBody[] | undefined; speedingMetadata?: Samsara.SafetyEventSpeedingMetadataResponseBody | undefined; /** UTC time the Safety Event was detected in RFC 3339 format. */ startMs: string; /** UTC time the trip ended in RFC 3339 format. Null when Safety Event occurs off-trip or the trip is ongoing. */ tripEndTime?: string | undefined; /** UTC time the trip started in RFC 3339 format. Null when Safety Event occurs off-trip. */ tripStartTime?: string | undefined; /** UTC time the Safety Event was updated in Samsara in RFC 3339 format. */ updatedAtTime: string; /** The user ID associated with the user who made the event state change. Only returned if the event state changes. */ updatedByUserId?: string | undefined; } export declare namespace SafetyEventV2ObjectResponseBody { /** The current state of the Safety Event. Valid values: `unknown`, `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized` */ const EventState: { readonly Unknown: "unknown"; readonly NeedsReview: "needsReview"; readonly Reviewed: "reviewed"; readonly NeedsCoaching: "needsCoaching"; readonly Coached: "coached"; readonly Dismissed: "dismissed"; readonly NeedsRecognition: "needsRecognition"; readonly Recognized: "recognized"; }; type EventState = (typeof EventState)[keyof typeof EventState]; }