import type * as Samsara from "../index.js"; /** * The response for POST/GET/PATCH a webhook */ export interface WebhookResponseResponseBody { /** The list of custom headers that users can include with their request */ customHeaders?: Samsara.CustomHeadersObjectResponseBody[] | undefined; /** The list of event types associated with a particular webhook. */ eventTypes?: WebhookResponseResponseBody.EventTypes.Item[] | undefined; /** The ID of the webhook. This will appear in both Samsara’s cloud dashboard and the API. This is the id of the webhook. This is system generated. */ id: string; /** The name of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time. */ name: string; /** The secret key of the webhook. This will appear in both Samsara’s cloud dashboard and the API. */ secretKey: string; /** The url of the webhook. This will appear in both Samsara’s cloud dashboard and the API. It can be set or updated through the Samsara Dashboard or through the API at any time. */ url: string; /** The version of the webhook. Valid values: `2018-01-01`, `2021-06-09` */ version: WebhookResponseResponseBody.Version; } export declare namespace WebhookResponseResponseBody { type EventTypes = EventTypes.Item[]; namespace EventTypes { /** This is the name of the event type. Valid values: `AddressCreated`, `AddressDeleted`, `AddressUpdated`, `AlertIncident`, `AlertObjectEvent`, `DocumentSubmitted`, `DriverCreated`, `DriverUpdated`, `DvirSubmitted`, `EngineFaultOff`, `EngineFaultOn`, `FormSubmitted`, `FormUpdated`, `GatewayUnplugged`, `GeofenceEntry`, `GeofenceExit`, `IssueCreated`, `MissingDvirPastDue`, `PredictiveMaintenanceAlert`, `RouteStopArrival`, `RouteStopDeparture`, `RouteStopEarlyLateArrival`, `RouteStopEtaUpdated`, `RouteStopResequence`, `SevereSpeedingEnded`, `SevereSpeedingStarted`, `ShipmentTrackingEvent`, `SpeedingEventEnded`, `SpeedingEventStarted`, `SuddenFuelLevelDrop`, `SuddenFuelLevelRise`, `VehicleCreated`, `VehicleUpdated`, `VisualSearchMatch`, `WorkOrderCreatedOrChanged` */ const Item: { readonly AddressCreated: "AddressCreated"; readonly AddressDeleted: "AddressDeleted"; readonly AddressUpdated: "AddressUpdated"; readonly AlertIncident: "AlertIncident"; readonly AlertObjectEvent: "AlertObjectEvent"; readonly DocumentSubmitted: "DocumentSubmitted"; readonly DriverCreated: "DriverCreated"; readonly DriverUpdated: "DriverUpdated"; readonly DvirSubmitted: "DvirSubmitted"; readonly EngineFaultOff: "EngineFaultOff"; readonly EngineFaultOn: "EngineFaultOn"; readonly FormSubmitted: "FormSubmitted"; readonly FormUpdated: "FormUpdated"; readonly GatewayUnplugged: "GatewayUnplugged"; readonly GeofenceEntry: "GeofenceEntry"; readonly GeofenceExit: "GeofenceExit"; readonly IssueCreated: "IssueCreated"; readonly MissingDvirPastDue: "MissingDvirPastDue"; readonly PredictiveMaintenanceAlert: "PredictiveMaintenanceAlert"; readonly RouteStopArrival: "RouteStopArrival"; readonly RouteStopDeparture: "RouteStopDeparture"; readonly RouteStopEarlyLateArrival: "RouteStopEarlyLateArrival"; readonly RouteStopEtaUpdated: "RouteStopEtaUpdated"; readonly RouteStopResequence: "RouteStopResequence"; readonly SevereSpeedingEnded: "SevereSpeedingEnded"; readonly SevereSpeedingStarted: "SevereSpeedingStarted"; readonly ShipmentTrackingEvent: "ShipmentTrackingEvent"; readonly SpeedingEventEnded: "SpeedingEventEnded"; readonly SpeedingEventStarted: "SpeedingEventStarted"; readonly SuddenFuelLevelDrop: "SuddenFuelLevelDrop"; readonly SuddenFuelLevelRise: "SuddenFuelLevelRise"; readonly VehicleCreated: "VehicleCreated"; readonly VehicleUpdated: "VehicleUpdated"; readonly VisualSearchMatch: "VisualSearchMatch"; readonly WorkOrderCreatedOrChanged: "WorkOrderCreatedOrChanged"; }; type Item = (typeof Item)[keyof typeof Item]; } /** The version of the webhook. Valid values: `2018-01-01`, `2021-06-09` */ const Version: { readonly TwoThousandEighteen0101: "2018-01-01"; readonly TwoThousandTwentyOne0609: "2021-06-09"; }; type Version = (typeof Version)[keyof typeof Version]; }