@samsarahq/samsara 13.21.0 → 13.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/alerts/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/alerts/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/alerts/client/requests/AlertsPostConfigurationsRequestBody.d.ts +1 -1
  5. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +93 -8
  6. package/dist/cjs/api/resources/betaApIs/client/Client.js +271 -8
  7. package/dist/cjs/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.ts +1 -1
  8. package/dist/cjs/api/resources/betaApIs/client/requests/ListPreventiveMaintenanceSchedulesRequest.d.ts +12 -0
  9. package/dist/cjs/api/resources/betaApIs/client/requests/ListUpcomingPreventiveMaintenanceRequest.d.ts +14 -0
  10. package/dist/cjs/api/resources/betaApIs/client/requests/PlacesPatchPlaceRequestBody.d.ts +4 -11
  11. package/dist/cjs/api/resources/betaApIs/client/requests/PlacesPostPlaceRequestBody.d.ts +6 -12
  12. package/dist/cjs/api/resources/betaApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.ts +1 -1
  13. package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +3 -0
  14. package/dist/cjs/api/resources/media/client/Client.d.ts +1 -1
  15. package/dist/cjs/api/resources/media/client/Client.js +1 -1
  16. package/dist/cjs/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.ts +1 -1
  17. package/dist/cjs/api/resources/previewApIs/client/Client.d.ts +22 -22
  18. package/dist/cjs/api/resources/previewApIs/client/Client.js +42 -42
  19. package/dist/cjs/api/resources/previewApIs/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.d.ts +32 -0
  20. package/dist/cjs/api/resources/previewApIs/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.js +16 -0
  21. package/dist/cjs/api/resources/previewApIs/client/requests/index.d.ts +1 -1
  22. package/dist/cjs/api/resources/previewApIs/client/requests/index.js +3 -0
  23. package/dist/cjs/api/types/CreateRoutesStopRequestObjectRequestBody.d.ts +1 -1
  24. package/dist/cjs/api/types/EntityListPreventiveMaintenanceSchedulesTypeResponseBody.d.ts +22 -0
  25. package/dist/cjs/api/types/EntityListTachographLiveDataTypeResponseBody.d.ts +22 -22
  26. package/dist/cjs/api/types/EntityListUpcomingPreventiveMaintenanceTypeResponseBody.d.ts +33 -0
  27. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulePreventativeMaintenanceScheduleRefTypeResponseBody.d.ts +7 -0
  28. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody.d.ts +9 -0
  29. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody.d.ts +9 -0
  30. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody.d.ts +9 -0
  31. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody.d.ts +9 -0
  32. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody.d.ts +9 -0
  33. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody.d.ts +9 -0
  34. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody.d.ts +6 -0
  35. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody.d.ts +9 -0
  36. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody.d.ts +9 -0
  37. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody.d.ts +9 -0
  38. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody.js +3 -0
  39. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenanceAssetRefTypeResponseBody.d.ts +7 -0
  40. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenanceAssetRefTypeResponseBody.js +3 -0
  41. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody.d.ts +7 -0
  42. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody.js +3 -0
  43. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenanceWorkOrderRefTypeResponseBody.d.ts +7 -0
  44. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenanceWorkOrderRefTypeResponseBody.js +3 -0
  45. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody.d.ts +9 -0
  46. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody.js +3 -0
  47. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody.d.ts +9 -0
  48. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody.js +3 -0
  49. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody.d.ts +9 -0
  50. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody.js +3 -0
  51. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody.d.ts +9 -0
  52. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody.js +3 -0
  53. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody.d.ts +9 -0
  54. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody.js +3 -0
  55. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody.d.ts +9 -0
  56. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody.js +3 -0
  57. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody.d.ts +6 -0
  58. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody.js +3 -0
  59. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody.d.ts +9 -0
  60. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody.js +3 -0
  61. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody.d.ts +9 -0
  62. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody.js +3 -0
  63. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody.d.ts +9 -0
  64. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody.js +3 -0
  65. package/dist/cjs/api/types/PlaceGeofenceCircleInputRequestBody.d.ts +11 -0
  66. package/dist/cjs/api/types/PlaceGeofenceCircleInputRequestBody.js +3 -0
  67. package/dist/cjs/api/types/PlaceGeofenceCircleResponseResponseBody.d.ts +11 -0
  68. package/dist/cjs/api/types/PlaceGeofenceCircleResponseResponseBody.js +3 -0
  69. package/dist/cjs/api/types/PlaceGeofenceInputRequestBody.d.ts +18 -0
  70. package/dist/cjs/api/types/PlaceGeofenceInputRequestBody.js +12 -0
  71. package/dist/cjs/api/types/PlaceGeofencePolygonInputRequestBody.d.ts +8 -0
  72. package/dist/cjs/api/types/PlaceGeofencePolygonInputRequestBody.js +3 -0
  73. package/dist/cjs/api/types/PlaceGeofencePolygonResponseResponseBody.d.ts +8 -0
  74. package/dist/cjs/api/types/PlaceGeofencePolygonResponseResponseBody.js +3 -0
  75. package/dist/cjs/api/types/PlaceGeofenceResponseResponseBody.d.ts +19 -0
  76. package/dist/cjs/api/types/PlaceGeofenceResponseResponseBody.js +13 -0
  77. package/dist/cjs/api/types/PlaceResponseObjectResponseBody.d.ts +3 -10
  78. package/dist/cjs/api/types/PlaceRoutingCapacityServiceTimeInputRequestBody.d.ts +11 -0
  79. package/dist/cjs/api/types/PlaceRoutingCapacityServiceTimeInputRequestBody.js +3 -0
  80. package/dist/cjs/api/types/PlaceRoutingInputRequestBody.d.ts +26 -0
  81. package/dist/cjs/api/types/PlaceRoutingInputRequestBody.js +3 -0
  82. package/dist/cjs/api/types/PlaceRoutingOrderServiceTimeInputRequestBody.d.ts +19 -0
  83. package/dist/cjs/api/types/PlaceRoutingOrderServiceTimeInputRequestBody.js +12 -0
  84. package/dist/cjs/api/types/PlaceRoutingPatchInputRequestBody.d.ts +10 -0
  85. package/dist/cjs/api/types/PlaceRoutingPatchInputRequestBody.js +3 -0
  86. package/dist/cjs/api/types/PlaceRoutingRequiredSkillInputRequestBody.d.ts +7 -0
  87. package/dist/cjs/api/types/PlaceRoutingRequiredSkillInputRequestBody.js +3 -0
  88. package/dist/cjs/api/types/PlaceRoutingServiceTimeInputRequestBody.d.ts +9 -0
  89. package/dist/cjs/api/types/PlaceRoutingServiceTimeInputRequestBody.js +3 -0
  90. package/dist/cjs/api/types/PlaceRoutingServiceWindowInputRequestBody.d.ts +11 -0
  91. package/dist/cjs/api/types/PlaceRoutingServiceWindowInputRequestBody.js +3 -0
  92. package/dist/cjs/api/types/PlaceStreetViewInputRequestBody.d.ts +17 -0
  93. package/dist/cjs/api/types/PlaceStreetViewInputRequestBody.js +3 -0
  94. package/dist/cjs/api/types/PlaceStreetViewResponseResponseBody.d.ts +4 -4
  95. package/dist/cjs/api/types/RouteStopAppointmentWindowRequestBody.d.ts +6 -0
  96. package/dist/cjs/api/types/RouteStopAppointmentWindowRequestBody.js +3 -0
  97. package/dist/cjs/api/types/RouteStopAppointmentWindowResponseBody.d.ts +6 -0
  98. package/dist/cjs/api/types/RouteStopAppointmentWindowResponseBody.js +3 -0
  99. package/dist/cjs/api/types/RoutesStopResponseObjectResponseBody.d.ts +1 -1
  100. package/dist/cjs/api/types/RoutingCapacityServiceTimeResponseResponseBody.d.ts +11 -0
  101. package/dist/cjs/api/types/RoutingCapacityServiceTimeResponseResponseBody.js +3 -0
  102. package/dist/cjs/api/types/RoutingOrderServiceTimeResponseResponseBody.d.ts +11 -0
  103. package/dist/cjs/api/types/RoutingOrderServiceTimeResponseResponseBody.js +3 -0
  104. package/dist/cjs/api/types/RoutingRequiredSkillResponseResponseBody.d.ts +9 -0
  105. package/dist/cjs/api/types/RoutingRequiredSkillResponseResponseBody.js +3 -0
  106. package/dist/cjs/api/types/RoutingResponseResponseBody.d.ts +26 -0
  107. package/dist/cjs/api/types/RoutingResponseResponseBody.js +3 -0
  108. package/dist/cjs/api/types/RoutingServiceTimeResponseResponseBody.d.ts +9 -0
  109. package/dist/cjs/api/types/RoutingServiceTimeResponseResponseBody.js +3 -0
  110. package/dist/cjs/api/types/RoutingServiceWindowResponseResponseBody.d.ts +11 -0
  111. package/dist/cjs/api/types/RoutingServiceWindowResponseResponseBody.js +3 -0
  112. package/dist/cjs/api/types/TachographFileUploadResponseBody.d.ts +12 -0
  113. package/dist/cjs/api/types/TachographFileUploadResponseBody.js +3 -0
  114. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody.d.ts +9 -0
  115. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody.js +3 -0
  116. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody.d.ts +9 -0
  117. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody.js +3 -0
  118. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody.d.ts +9 -0
  119. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody.js +3 -0
  120. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody.d.ts +9 -0
  121. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody.js +3 -0
  122. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody.d.ts +9 -0
  123. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody.js +3 -0
  124. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody.d.ts +9 -0
  125. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody.js +3 -0
  126. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadResponseBody.d.ts +4 -0
  127. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadResponseBody.js +3 -0
  128. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody.d.ts +9 -0
  129. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody.js +3 -0
  130. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody.d.ts +9 -0
  131. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody.js +3 -0
  132. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody.d.ts +9 -0
  133. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody.js +3 -0
  134. package/dist/cjs/api/types/TachographUploadRequiredHeaderResponseBody.d.ts +9 -0
  135. package/dist/cjs/api/types/TachographUploadRequiredHeaderResponseBody.js +3 -0
  136. package/dist/cjs/api/types/UpdateRoutesStopRequestObjectRequestBody.d.ts +1 -1
  137. package/dist/cjs/api/types/index.d.ts +60 -15
  138. package/dist/cjs/api/types/index.js +60 -15
  139. package/dist/cjs/version.d.ts +1 -1
  140. package/dist/cjs/version.js +1 -1
  141. package/dist/esm/BaseClient.mjs +2 -2
  142. package/dist/esm/api/resources/alerts/client/Client.d.mts +1 -1
  143. package/dist/esm/api/resources/alerts/client/Client.mjs +1 -1
  144. package/dist/esm/api/resources/alerts/client/requests/AlertsPostConfigurationsRequestBody.d.mts +1 -1
  145. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +93 -8
  146. package/dist/esm/api/resources/betaApIs/client/Client.mjs +271 -8
  147. package/dist/esm/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.mts +1 -1
  148. package/dist/esm/api/resources/betaApIs/client/requests/ListPreventiveMaintenanceSchedulesRequest.d.mts +12 -0
  149. package/dist/esm/api/resources/betaApIs/client/requests/ListUpcomingPreventiveMaintenanceRequest.d.mts +14 -0
  150. package/dist/esm/api/resources/betaApIs/client/requests/PlacesPatchPlaceRequestBody.d.mts +4 -11
  151. package/dist/esm/api/resources/betaApIs/client/requests/PlacesPostPlaceRequestBody.d.mts +6 -12
  152. package/dist/esm/api/resources/betaApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.mts +1 -1
  153. package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +3 -0
  154. package/dist/esm/api/resources/media/client/Client.d.mts +1 -1
  155. package/dist/esm/api/resources/media/client/Client.mjs +1 -1
  156. package/dist/esm/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.mts +1 -1
  157. package/dist/esm/api/resources/previewApIs/client/Client.d.mts +22 -22
  158. package/dist/esm/api/resources/previewApIs/client/Client.mjs +42 -42
  159. package/dist/esm/api/resources/previewApIs/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.d.mts +32 -0
  160. package/dist/esm/api/resources/previewApIs/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.mjs +13 -0
  161. package/dist/esm/api/resources/previewApIs/client/requests/index.d.mts +1 -1
  162. package/dist/esm/api/resources/previewApIs/client/requests/index.mjs +1 -1
  163. package/dist/esm/api/types/CreateRoutesStopRequestObjectRequestBody.d.mts +1 -1
  164. package/dist/esm/api/types/EntityListPreventiveMaintenanceSchedulesTypeResponseBody.d.mts +22 -0
  165. package/dist/esm/api/types/EntityListTachographLiveDataTypeResponseBody.d.mts +22 -22
  166. package/dist/esm/api/types/EntityListUpcomingPreventiveMaintenanceTypeResponseBody.d.mts +33 -0
  167. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulePreventativeMaintenanceScheduleRefTypeResponseBody.d.mts +7 -0
  168. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody.d.mts +9 -0
  169. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody.d.mts +9 -0
  170. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody.d.mts +9 -0
  171. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody.d.mts +9 -0
  172. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody.d.mts +9 -0
  173. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody.d.mts +9 -0
  174. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody.d.mts +6 -0
  175. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody.d.mts +9 -0
  176. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody.d.mts +9 -0
  177. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody.d.mts +9 -0
  178. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody.mjs +2 -0
  179. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenanceAssetRefTypeResponseBody.d.mts +7 -0
  180. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenanceAssetRefTypeResponseBody.mjs +2 -0
  181. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody.d.mts +7 -0
  182. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody.mjs +2 -0
  183. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenanceWorkOrderRefTypeResponseBody.d.mts +7 -0
  184. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenanceWorkOrderRefTypeResponseBody.mjs +2 -0
  185. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody.d.mts +9 -0
  186. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody.mjs +2 -0
  187. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody.d.mts +9 -0
  188. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody.mjs +2 -0
  189. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody.d.mts +9 -0
  190. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody.mjs +2 -0
  191. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody.d.mts +9 -0
  192. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody.mjs +2 -0
  193. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody.d.mts +9 -0
  194. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody.mjs +2 -0
  195. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody.d.mts +9 -0
  196. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody.mjs +2 -0
  197. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody.d.mts +6 -0
  198. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody.mjs +2 -0
  199. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody.d.mts +9 -0
  200. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody.mjs +2 -0
  201. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody.d.mts +9 -0
  202. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody.mjs +2 -0
  203. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody.d.mts +9 -0
  204. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody.mjs +2 -0
  205. package/dist/esm/api/types/PlaceGeofenceCircleInputRequestBody.d.mts +11 -0
  206. package/dist/esm/api/types/PlaceGeofenceCircleInputRequestBody.mjs +2 -0
  207. package/dist/esm/api/types/PlaceGeofenceCircleResponseResponseBody.d.mts +11 -0
  208. package/dist/esm/api/types/PlaceGeofenceCircleResponseResponseBody.mjs +2 -0
  209. package/dist/esm/api/types/PlaceGeofenceInputRequestBody.d.mts +18 -0
  210. package/dist/esm/api/types/PlaceGeofenceInputRequestBody.mjs +9 -0
  211. package/dist/esm/api/types/PlaceGeofencePolygonInputRequestBody.d.mts +8 -0
  212. package/dist/esm/api/types/PlaceGeofencePolygonInputRequestBody.mjs +2 -0
  213. package/dist/esm/api/types/PlaceGeofencePolygonResponseResponseBody.d.mts +8 -0
  214. package/dist/esm/api/types/PlaceGeofencePolygonResponseResponseBody.mjs +2 -0
  215. package/dist/esm/api/types/PlaceGeofenceResponseResponseBody.d.mts +19 -0
  216. package/dist/esm/api/types/PlaceGeofenceResponseResponseBody.mjs +10 -0
  217. package/dist/esm/api/types/PlaceResponseObjectResponseBody.d.mts +3 -10
  218. package/dist/esm/api/types/PlaceRoutingCapacityServiceTimeInputRequestBody.d.mts +11 -0
  219. package/dist/esm/api/types/PlaceRoutingCapacityServiceTimeInputRequestBody.mjs +2 -0
  220. package/dist/esm/api/types/PlaceRoutingInputRequestBody.d.mts +26 -0
  221. package/dist/esm/api/types/PlaceRoutingInputRequestBody.mjs +2 -0
  222. package/dist/esm/api/types/PlaceRoutingOrderServiceTimeInputRequestBody.d.mts +19 -0
  223. package/dist/esm/api/types/PlaceRoutingOrderServiceTimeInputRequestBody.mjs +9 -0
  224. package/dist/esm/api/types/PlaceRoutingPatchInputRequestBody.d.mts +10 -0
  225. package/dist/esm/api/types/PlaceRoutingPatchInputRequestBody.mjs +2 -0
  226. package/dist/esm/api/types/PlaceRoutingRequiredSkillInputRequestBody.d.mts +7 -0
  227. package/dist/esm/api/types/PlaceRoutingRequiredSkillInputRequestBody.mjs +2 -0
  228. package/dist/esm/api/types/PlaceRoutingServiceTimeInputRequestBody.d.mts +9 -0
  229. package/dist/esm/api/types/PlaceRoutingServiceTimeInputRequestBody.mjs +2 -0
  230. package/dist/esm/api/types/PlaceRoutingServiceWindowInputRequestBody.d.mts +11 -0
  231. package/dist/esm/api/types/PlaceRoutingServiceWindowInputRequestBody.mjs +2 -0
  232. package/dist/esm/api/types/PlaceStreetViewInputRequestBody.d.mts +17 -0
  233. package/dist/esm/api/types/PlaceStreetViewInputRequestBody.mjs +2 -0
  234. package/dist/esm/api/types/PlaceStreetViewResponseResponseBody.d.mts +4 -4
  235. package/dist/esm/api/types/RouteStopAppointmentWindowRequestBody.d.mts +6 -0
  236. package/dist/esm/api/types/RouteStopAppointmentWindowRequestBody.mjs +2 -0
  237. package/dist/esm/api/types/RouteStopAppointmentWindowResponseBody.d.mts +6 -0
  238. package/dist/esm/api/types/RouteStopAppointmentWindowResponseBody.mjs +2 -0
  239. package/dist/esm/api/types/RoutesStopResponseObjectResponseBody.d.mts +1 -1
  240. package/dist/esm/api/types/RoutingCapacityServiceTimeResponseResponseBody.d.mts +11 -0
  241. package/dist/esm/api/types/RoutingCapacityServiceTimeResponseResponseBody.mjs +2 -0
  242. package/dist/esm/api/types/RoutingOrderServiceTimeResponseResponseBody.d.mts +11 -0
  243. package/dist/esm/api/types/RoutingOrderServiceTimeResponseResponseBody.mjs +2 -0
  244. package/dist/esm/api/types/RoutingRequiredSkillResponseResponseBody.d.mts +9 -0
  245. package/dist/esm/api/types/RoutingRequiredSkillResponseResponseBody.mjs +2 -0
  246. package/dist/esm/api/types/RoutingResponseResponseBody.d.mts +26 -0
  247. package/dist/esm/api/types/RoutingResponseResponseBody.mjs +2 -0
  248. package/dist/esm/api/types/RoutingServiceTimeResponseResponseBody.d.mts +9 -0
  249. package/dist/esm/api/types/RoutingServiceTimeResponseResponseBody.mjs +2 -0
  250. package/dist/esm/api/types/RoutingServiceWindowResponseResponseBody.d.mts +11 -0
  251. package/dist/esm/api/types/RoutingServiceWindowResponseResponseBody.mjs +2 -0
  252. package/dist/esm/api/types/TachographFileUploadResponseBody.d.mts +12 -0
  253. package/dist/esm/api/types/TachographFileUploadResponseBody.mjs +2 -0
  254. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody.d.mts +9 -0
  255. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody.mjs +2 -0
  256. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody.d.mts +9 -0
  257. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody.mjs +2 -0
  258. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody.d.mts +9 -0
  259. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody.mjs +2 -0
  260. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody.d.mts +9 -0
  261. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody.mjs +2 -0
  262. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody.d.mts +9 -0
  263. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody.mjs +2 -0
  264. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody.d.mts +9 -0
  265. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody.mjs +2 -0
  266. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadResponseBody.d.mts +4 -0
  267. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadResponseBody.mjs +2 -0
  268. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody.d.mts +9 -0
  269. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody.mjs +2 -0
  270. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody.d.mts +9 -0
  271. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody.mjs +2 -0
  272. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody.d.mts +9 -0
  273. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody.mjs +2 -0
  274. package/dist/esm/api/types/TachographUploadRequiredHeaderResponseBody.d.mts +9 -0
  275. package/dist/esm/api/types/TachographUploadRequiredHeaderResponseBody.mjs +2 -0
  276. package/dist/esm/api/types/UpdateRoutesStopRequestObjectRequestBody.d.mts +1 -1
  277. package/dist/esm/api/types/index.d.mts +60 -15
  278. package/dist/esm/api/types/index.mjs +60 -15
  279. package/dist/esm/version.d.mts +1 -1
  280. package/dist/esm/version.mjs +1 -1
  281. package/package.json +1 -1
  282. package/reference.md +240 -29
  283. package/dist/cjs/api/types/HosViolationDayObjectRequestBody.d.ts +0 -6
  284. package/dist/cjs/api/types/HubLocationCapacityServiceTimeResponseResponseBody.d.ts +0 -11
  285. package/dist/cjs/api/types/HubLocationOrderServiceTimeResponseResponseBody.d.ts +0 -12
  286. package/dist/cjs/api/types/HubLocationRequiredSkillResponseResponseBody.d.ts +0 -7
  287. package/dist/cjs/api/types/HubLocationResponseResponseBody.d.ts +0 -32
  288. package/dist/cjs/api/types/HubLocationServiceTimeResponseResponseBody.d.ts +0 -9
  289. package/dist/cjs/api/types/HubLocationServiceWindowResponseResponseBody.d.ts +0 -11
  290. package/dist/cjs/api/types/PatchPlaceHubLocationUpsertBodyRequestBody.d.ts +0 -32
  291. package/dist/cjs/api/types/PatchPlaceHubLocationsBodyRequestBody.d.ts +0 -10
  292. package/dist/cjs/api/types/PlaceHubLocationCapacityServiceTimeInputRequestBody.d.ts +0 -11
  293. package/dist/cjs/api/types/PlaceHubLocationOrderServiceTimeInputRequestBody.d.ts +0 -22
  294. package/dist/cjs/api/types/PlaceHubLocationOrderServiceTimeInputRequestBody.js +0 -14
  295. package/dist/cjs/api/types/PlaceHubLocationRequiredSkillInputRequestBody.d.ts +0 -7
  296. package/dist/cjs/api/types/PlaceHubLocationServiceTimeInputRequestBody.d.ts +0 -9
  297. package/dist/cjs/api/types/PlaceHubLocationServiceWindowInputRequestBody.d.ts +0 -11
  298. package/dist/cjs/api/types/PlaceStreetViewResponseRequestBody.d.ts +0 -17
  299. package/dist/esm/api/types/HosViolationDayObjectRequestBody.d.mts +0 -6
  300. package/dist/esm/api/types/HubLocationCapacityServiceTimeResponseResponseBody.d.mts +0 -11
  301. package/dist/esm/api/types/HubLocationOrderServiceTimeResponseResponseBody.d.mts +0 -12
  302. package/dist/esm/api/types/HubLocationRequiredSkillResponseResponseBody.d.mts +0 -7
  303. package/dist/esm/api/types/HubLocationResponseResponseBody.d.mts +0 -32
  304. package/dist/esm/api/types/HubLocationServiceTimeResponseResponseBody.d.mts +0 -9
  305. package/dist/esm/api/types/HubLocationServiceWindowResponseResponseBody.d.mts +0 -11
  306. package/dist/esm/api/types/PatchPlaceHubLocationUpsertBodyRequestBody.d.mts +0 -32
  307. package/dist/esm/api/types/PatchPlaceHubLocationsBodyRequestBody.d.mts +0 -10
  308. package/dist/esm/api/types/PlaceHubLocationCapacityServiceTimeInputRequestBody.d.mts +0 -11
  309. package/dist/esm/api/types/PlaceHubLocationOrderServiceTimeInputRequestBody.d.mts +0 -22
  310. package/dist/esm/api/types/PlaceHubLocationOrderServiceTimeInputRequestBody.mjs +0 -11
  311. package/dist/esm/api/types/PlaceHubLocationRequiredSkillInputRequestBody.d.mts +0 -7
  312. package/dist/esm/api/types/PlaceHubLocationServiceTimeInputRequestBody.d.mts +0 -9
  313. package/dist/esm/api/types/PlaceHubLocationServiceWindowInputRequestBody.d.mts +0 -11
  314. package/dist/esm/api/types/PlaceStreetViewResponseRequestBody.d.mts +0 -17
  315. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/GatewaysPairGatewaysRequestBody.d.ts +0 -0
  316. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/GatewaysPairGatewaysRequestBody.js +0 -0
  317. /package/dist/cjs/api/{types/HosViolationDayObjectRequestBody.js → resources/betaApIs/client/requests/ListPreventiveMaintenanceSchedulesRequest.js} +0 -0
  318. /package/dist/cjs/api/{types/HubLocationCapacityServiceTimeResponseResponseBody.js → resources/betaApIs/client/requests/ListUpcomingPreventiveMaintenanceRequest.js} +0 -0
  319. /package/dist/cjs/api/types/{HubLocationOrderServiceTimeResponseResponseBody.js → EntityListPreventiveMaintenanceSchedulesTypeResponseBody.js} +0 -0
  320. /package/dist/cjs/api/types/{HubLocationRequiredSkillResponseResponseBody.js → EntityListUpcomingPreventiveMaintenanceTypeResponseBody.js} +0 -0
  321. /package/dist/cjs/api/types/{HubLocationResponseResponseBody.js → EntityPreventativeMaintenanceSchedulePreventativeMaintenanceScheduleRefTypeResponseBody.js} +0 -0
  322. /package/dist/cjs/api/types/{HubLocationServiceTimeResponseResponseBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody.js} +0 -0
  323. /package/dist/cjs/api/types/{HubLocationServiceWindowResponseResponseBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody.js} +0 -0
  324. /package/dist/cjs/api/types/{PatchPlaceHubLocationUpsertBodyRequestBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody.js} +0 -0
  325. /package/dist/cjs/api/types/{PatchPlaceHubLocationsBodyRequestBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody.js} +0 -0
  326. /package/dist/cjs/api/types/{PlaceHubLocationCapacityServiceTimeInputRequestBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody.js} +0 -0
  327. /package/dist/cjs/api/types/{PlaceHubLocationRequiredSkillInputRequestBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody.js} +0 -0
  328. /package/dist/cjs/api/types/{PlaceHubLocationServiceTimeInputRequestBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody.js} +0 -0
  329. /package/dist/cjs/api/types/{PlaceHubLocationServiceWindowInputRequestBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody.js} +0 -0
  330. /package/dist/cjs/api/types/{PlaceStreetViewResponseRequestBody.js → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody.js} +0 -0
  331. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/GatewaysPairGatewaysRequestBody.d.mts +0 -0
  332. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/GatewaysPairGatewaysRequestBody.mjs +0 -0
  333. /package/dist/esm/api/{types/HosViolationDayObjectRequestBody.mjs → resources/betaApIs/client/requests/ListPreventiveMaintenanceSchedulesRequest.mjs} +0 -0
  334. /package/dist/esm/api/{types/HubLocationCapacityServiceTimeResponseResponseBody.mjs → resources/betaApIs/client/requests/ListUpcomingPreventiveMaintenanceRequest.mjs} +0 -0
  335. /package/dist/esm/api/types/{HubLocationOrderServiceTimeResponseResponseBody.mjs → EntityListPreventiveMaintenanceSchedulesTypeResponseBody.mjs} +0 -0
  336. /package/dist/esm/api/types/{HubLocationRequiredSkillResponseResponseBody.mjs → EntityListUpcomingPreventiveMaintenanceTypeResponseBody.mjs} +0 -0
  337. /package/dist/esm/api/types/{HubLocationResponseResponseBody.mjs → EntityPreventativeMaintenanceSchedulePreventativeMaintenanceScheduleRefTypeResponseBody.mjs} +0 -0
  338. /package/dist/esm/api/types/{HubLocationServiceTimeResponseResponseBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody.mjs} +0 -0
  339. /package/dist/esm/api/types/{HubLocationServiceWindowResponseResponseBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody.mjs} +0 -0
  340. /package/dist/esm/api/types/{PatchPlaceHubLocationUpsertBodyRequestBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody.mjs} +0 -0
  341. /package/dist/esm/api/types/{PatchPlaceHubLocationsBodyRequestBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody.mjs} +0 -0
  342. /package/dist/esm/api/types/{PlaceHubLocationCapacityServiceTimeInputRequestBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody.mjs} +0 -0
  343. /package/dist/esm/api/types/{PlaceHubLocationRequiredSkillInputRequestBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody.mjs} +0 -0
  344. /package/dist/esm/api/types/{PlaceHubLocationServiceTimeInputRequestBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody.mjs} +0 -0
  345. /package/dist/esm/api/types/{PlaceHubLocationServiceWindowInputRequestBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody.mjs} +0 -0
  346. /package/dist/esm/api/types/{PlaceStreetViewResponseRequestBody.mjs → EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody.mjs} +0 -0
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_js_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "@samsarahq/samsara",
47
- "X-Fern-SDK-Version": "13.21.0",
48
- "User-Agent": "@samsarahq/samsara/13.21.0",
47
+ "X-Fern-SDK-Version": "13.23.0",
48
+ "User-Agent": "@samsarahq/samsara/13.23.0",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
@@ -117,7 +117,7 @@ export declare class AlertsClient {
117
117
  * isEnabled: true,
118
118
  * name: "My Harsh Event Alert",
119
119
  * scope: {
120
- * all: true
120
+ * all: false
121
121
  * },
122
122
  * triggers: [{
123
123
  * triggerTypeId: 1000
@@ -223,7 +223,7 @@ class AlertsClient {
223
223
  * isEnabled: true,
224
224
  * name: "My Harsh Event Alert",
225
225
  * scope: {
226
- * all: true
226
+ * all: false
227
227
  * },
228
228
  * triggers: [{
229
229
  * triggerTypeId: 1000
@@ -8,7 +8,7 @@ import type * as Samsara from "../../../../index.js";
8
8
  * isEnabled: true,
9
9
  * name: "My Harsh Event Alert",
10
10
  * scope: {
11
- * all: true
11
+ * all: false
12
12
  * },
13
13
  * triggers: [{
14
14
  * triggerTypeId: 1000
@@ -267,7 +267,7 @@ export declare class BetaApIsClient {
267
267
  * id: 1000000,
268
268
  * relayStates: [{
269
269
  * id: "relay1",
270
- * isOpen: true
270
+ * isOpen: false
271
271
  * }]
272
272
  * })
273
273
  */
@@ -1142,6 +1142,39 @@ export declare class BetaApIsClient {
1142
1142
  */
1143
1143
  getFunctionRun(request: Samsara.GetFunctionRunRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsGetFunctionRunResponseBody>;
1144
1144
  private __getFunctionRun;
1145
+ /**
1146
+ * Reassign one or more gateways to different devices in a single call. Mirrors the dashboard's "Pair Gateway" flow and accepts up to 50 gateway-device pairs per request. Works for any device type: vehicles, assets, equipment, trailers, industrial machines, and asset tags. By default, devices that the reassigned gateways were previously linked to remain in their current group. Pass `removeOrphanDevices: true` to move those orphaned devices to the unassigned group and clear their tags. The endpoint is currently in Beta and gated behind a feature configuration; contact your Samsara representative to enable access.
1147
+ *
1148
+ * <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1149
+ *
1150
+ * To use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1151
+ *
1152
+ *
1153
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1154
+ *
1155
+ * @param {Samsara.GatewaysPairGatewaysRequestBody} request
1156
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1157
+ *
1158
+ * @throws {@link Samsara.UnauthorizedError}
1159
+ * @throws {@link Samsara.NotFoundError}
1160
+ * @throws {@link Samsara.MethodNotAllowedError}
1161
+ * @throws {@link Samsara.TooManyRequestsError}
1162
+ * @throws {@link Samsara.InternalServerError}
1163
+ * @throws {@link Samsara.NotImplementedError}
1164
+ * @throws {@link Samsara.BadGatewayError}
1165
+ * @throws {@link Samsara.ServiceUnavailableError}
1166
+ * @throws {@link Samsara.GatewayTimeoutError}
1167
+ *
1168
+ * @example
1169
+ * await client.betaApIs.pairGateways({
1170
+ * pairs: [{
1171
+ * deviceSerial: "GFRV-43N-VGX",
1172
+ * gatewaySerial: "GFRV-43N-VGX"
1173
+ * }]
1174
+ * })
1175
+ */
1176
+ pairGateways(request: Samsara.GatewaysPairGatewaysRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.GatewaysPairGatewaysResponseBody>;
1177
+ private __pairGateways;
1145
1178
  /**
1146
1179
  * Update the shippingDocs field of an existing assignment.
1147
1180
  *
@@ -1298,6 +1331,62 @@ export declare class BetaApIsClient {
1298
1331
  */
1299
1332
  deleteHubRouteTemplate(request: Samsara.DeleteHubRouteTemplateRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
1300
1333
  private __deleteHubRouteTemplate;
1334
+ /**
1335
+ * Returns a paginated list of preventive maintenance schedules for the organization.
1336
+ *
1337
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1338
+ *
1339
+ * To use this endpoint, select **Read Preventive Maintenance Schedules** under the Preventive Maintenance category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1340
+ *
1341
+ *
1342
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1343
+ *
1344
+ * @param {Samsara.ListPreventiveMaintenanceSchedulesRequest} request
1345
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1346
+ *
1347
+ * @throws {@link Samsara.UnauthorizedError}
1348
+ * @throws {@link Samsara.NotFoundError}
1349
+ * @throws {@link Samsara.MethodNotAllowedError}
1350
+ * @throws {@link Samsara.TooManyRequestsError}
1351
+ * @throws {@link Samsara.InternalServerError}
1352
+ * @throws {@link Samsara.NotImplementedError}
1353
+ * @throws {@link Samsara.BadGatewayError}
1354
+ * @throws {@link Samsara.ServiceUnavailableError}
1355
+ * @throws {@link Samsara.GatewayTimeoutError}
1356
+ *
1357
+ * @example
1358
+ * await client.betaApIs.listPreventiveMaintenanceSchedules()
1359
+ */
1360
+ listPreventiveMaintenanceSchedules(request?: Samsara.ListPreventiveMaintenanceSchedulesRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody>;
1361
+ private __listPreventiveMaintenanceSchedules;
1362
+ /**
1363
+ * Returns a paginated list of upcoming preventive maintenance schedules for the organization's assets, enriched with live telemetry (current odometer, engine hours) and due-date projections.
1364
+ *
1365
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1366
+ *
1367
+ * To use this endpoint, select **Read Upcoming Preventive Maintenance** under the Preventive Maintenance category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1368
+ *
1369
+ *
1370
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1371
+ *
1372
+ * @param {Samsara.ListUpcomingPreventiveMaintenanceRequest} request
1373
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1374
+ *
1375
+ * @throws {@link Samsara.UnauthorizedError}
1376
+ * @throws {@link Samsara.NotFoundError}
1377
+ * @throws {@link Samsara.MethodNotAllowedError}
1378
+ * @throws {@link Samsara.TooManyRequestsError}
1379
+ * @throws {@link Samsara.InternalServerError}
1380
+ * @throws {@link Samsara.NotImplementedError}
1381
+ * @throws {@link Samsara.BadGatewayError}
1382
+ * @throws {@link Samsara.ServiceUnavailableError}
1383
+ * @throws {@link Samsara.GatewayTimeoutError}
1384
+ *
1385
+ * @example
1386
+ * await client.betaApIs.listUpcomingPreventiveMaintenance()
1387
+ */
1388
+ listUpcomingPreventiveMaintenance(request?: Samsara.ListUpcomingPreventiveMaintenanceRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody>;
1389
+ private __listUpcomingPreventiveMaintenance;
1301
1390
  /**
1302
1391
  * Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.
1303
1392
  *
@@ -1380,6 +1469,7 @@ export declare class BetaApIsClient {
1380
1469
  * @example
1381
1470
  * await client.betaApIs.postPlace({
1382
1471
  * address: "123 Main St, Oakland, CA",
1472
+ * geofence: {},
1383
1473
  * name: "Oakland Yard"
1384
1474
  * })
1385
1475
  */
@@ -1902,19 +1992,14 @@ export declare class BetaApIsClient {
1902
1992
  * * `engineRpm`
1903
1993
  * * `engineState` (values: off | running | idling)
1904
1994
  * * `faultCodes`
1905
- * * `faultCodesJ1939`
1906
- * * `faultCodesOBDII`
1907
1995
  * * `fuelLevelPerc`
1908
1996
  * * `gps`
1909
- * * `location`
1910
1997
  * * `odometerEcu`
1911
1998
  * * `oilPressure`
1912
1999
  *
1913
2000
  * </details>
1914
2001
  *
1915
- * **Note:** Use the `GET /readings/definitions` endpoint and check the `ingestionEnabled` field for the authoritative, up-to-date set of ingestible readings for your organization.
1916
- *
1917
- * When ingesting location data, the readingID 'location' must be used and the value object must contain at least the following fields: 'speed', 'latitude', 'longitude'.
2002
+ * When ingesting GPS location data, use the readingID 'gps'. The value object must contain the following fields: 'latitude' (decimal degrees), 'longitude' (decimal degrees), and 'speed' (meters per second).
1918
2003
  *
1919
2004
  * Related guide: [Readings](https://developers.samsara.com/docs/readings).
1920
2005
  *
@@ -2430,7 +2515,7 @@ export declare class BetaApIsClient {
2430
2515
  *
2431
2516
  * @example
2432
2517
  * await client.betaApIs.patchSafetyEventsV2Batch({
2433
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
2518
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
2434
2519
  * })
2435
2520
  */
2436
2521
  patchSafetyEventsV2Batch(request: Samsara.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyEventsV2PatchSafetyEventsV2BatchResponseBody>;
@@ -790,7 +790,7 @@ class BetaApIsClient {
790
790
  * id: 1000000,
791
791
  * relayStates: [{
792
792
  * id: "relay1",
793
- * isOpen: true
793
+ * isOpen: false
794
794
  * }]
795
795
  * })
796
796
  */
@@ -3413,6 +3413,96 @@ class BetaApIsClient {
3413
3413
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/functions/{name}/runs/{correlationId}");
3414
3414
  });
3415
3415
  }
3416
+ /**
3417
+ * Reassign one or more gateways to different devices in a single call. Mirrors the dashboard's "Pair Gateway" flow and accepts up to 50 gateway-device pairs per request. Works for any device type: vehicles, assets, equipment, trailers, industrial machines, and asset tags. By default, devices that the reassigned gateways were previously linked to remain in their current group. Pass `removeOrphanDevices: true` to move those orphaned devices to the unassigned group and clear their tags. The endpoint is currently in Beta and gated behind a feature configuration; contact your Samsara representative to enable access.
3418
+ *
3419
+ * <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3420
+ *
3421
+ * To use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
3422
+ *
3423
+ *
3424
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
3425
+ *
3426
+ * @param {Samsara.GatewaysPairGatewaysRequestBody} request
3427
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
3428
+ *
3429
+ * @throws {@link Samsara.UnauthorizedError}
3430
+ * @throws {@link Samsara.NotFoundError}
3431
+ * @throws {@link Samsara.MethodNotAllowedError}
3432
+ * @throws {@link Samsara.TooManyRequestsError}
3433
+ * @throws {@link Samsara.InternalServerError}
3434
+ * @throws {@link Samsara.NotImplementedError}
3435
+ * @throws {@link Samsara.BadGatewayError}
3436
+ * @throws {@link Samsara.ServiceUnavailableError}
3437
+ * @throws {@link Samsara.GatewayTimeoutError}
3438
+ *
3439
+ * @example
3440
+ * await client.betaApIs.pairGateways({
3441
+ * pairs: [{
3442
+ * deviceSerial: "GFRV-43N-VGX",
3443
+ * gatewaySerial: "GFRV-43N-VGX"
3444
+ * }]
3445
+ * })
3446
+ */
3447
+ pairGateways(request, requestOptions) {
3448
+ return core.HttpResponsePromise.fromPromise(this.__pairGateways(request, requestOptions));
3449
+ }
3450
+ __pairGateways(request, requestOptions) {
3451
+ return __awaiter(this, void 0, void 0, function* () {
3452
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3453
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
3454
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
3455
+ const _response = yield core.fetcher({
3456
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "gateways/pair"),
3457
+ method: "POST",
3458
+ headers: _headers,
3459
+ contentType: "application/json",
3460
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
3461
+ requestType: "json",
3462
+ body: request,
3463
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
3464
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
3465
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3466
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
3467
+ logging: this._options.logging,
3468
+ });
3469
+ if (_response.ok) {
3470
+ return {
3471
+ data: _response.body,
3472
+ rawResponse: _response.rawResponse,
3473
+ };
3474
+ }
3475
+ if (_response.error.reason === "status-code") {
3476
+ switch (_response.error.statusCode) {
3477
+ case 401:
3478
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
3479
+ case 404:
3480
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
3481
+ case 405:
3482
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
3483
+ case 429:
3484
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
3485
+ case 500:
3486
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
3487
+ case 501:
3488
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
3489
+ case 502:
3490
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
3491
+ case 503:
3492
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
3493
+ case 504:
3494
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
3495
+ default:
3496
+ throw new errors.SamsaraError({
3497
+ statusCode: _response.error.statusCode,
3498
+ body: _response.error.body,
3499
+ rawResponse: _response.rawResponse,
3500
+ });
3501
+ }
3502
+ }
3503
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/gateways/pair");
3504
+ });
3505
+ }
3416
3506
  /**
3417
3507
  * Update the shippingDocs field of an existing assignment.
3418
3508
  *
@@ -3866,6 +3956,183 @@ class BetaApIsClient {
3866
3956
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/hub/route-templates");
3867
3957
  });
3868
3958
  }
3959
+ /**
3960
+ * Returns a paginated list of preventive maintenance schedules for the organization.
3961
+ *
3962
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3963
+ *
3964
+ * To use this endpoint, select **Read Preventive Maintenance Schedules** under the Preventive Maintenance category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
3965
+ *
3966
+ *
3967
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
3968
+ *
3969
+ * @param {Samsara.ListPreventiveMaintenanceSchedulesRequest} request
3970
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
3971
+ *
3972
+ * @throws {@link Samsara.UnauthorizedError}
3973
+ * @throws {@link Samsara.NotFoundError}
3974
+ * @throws {@link Samsara.MethodNotAllowedError}
3975
+ * @throws {@link Samsara.TooManyRequestsError}
3976
+ * @throws {@link Samsara.InternalServerError}
3977
+ * @throws {@link Samsara.NotImplementedError}
3978
+ * @throws {@link Samsara.BadGatewayError}
3979
+ * @throws {@link Samsara.ServiceUnavailableError}
3980
+ * @throws {@link Samsara.GatewayTimeoutError}
3981
+ *
3982
+ * @example
3983
+ * await client.betaApIs.listPreventiveMaintenanceSchedules()
3984
+ */
3985
+ listPreventiveMaintenanceSchedules(request = {}, requestOptions) {
3986
+ return core.HttpResponsePromise.fromPromise(this.__listPreventiveMaintenanceSchedules(request, requestOptions));
3987
+ }
3988
+ __listPreventiveMaintenanceSchedules() {
3989
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
3990
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3991
+ const { idIn, after, limit } = request;
3992
+ const _queryParams = {
3993
+ idIn,
3994
+ after,
3995
+ limit,
3996
+ };
3997
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
3998
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
3999
+ const _response = yield core.fetcher({
4000
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "maintenance/preventive/schedules"),
4001
+ method: "GET",
4002
+ headers: _headers,
4003
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
4004
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
4005
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
4006
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
4007
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
4008
+ logging: this._options.logging,
4009
+ });
4010
+ if (_response.ok) {
4011
+ return {
4012
+ data: _response.body,
4013
+ rawResponse: _response.rawResponse,
4014
+ };
4015
+ }
4016
+ if (_response.error.reason === "status-code") {
4017
+ switch (_response.error.statusCode) {
4018
+ case 401:
4019
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
4020
+ case 404:
4021
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
4022
+ case 405:
4023
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
4024
+ case 429:
4025
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
4026
+ case 500:
4027
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
4028
+ case 501:
4029
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
4030
+ case 502:
4031
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
4032
+ case 503:
4033
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
4034
+ case 504:
4035
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
4036
+ default:
4037
+ throw new errors.SamsaraError({
4038
+ statusCode: _response.error.statusCode,
4039
+ body: _response.error.body,
4040
+ rawResponse: _response.rawResponse,
4041
+ });
4042
+ }
4043
+ }
4044
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/maintenance/preventive/schedules");
4045
+ });
4046
+ }
4047
+ /**
4048
+ * Returns a paginated list of upcoming preventive maintenance schedules for the organization's assets, enriched with live telemetry (current odometer, engine hours) and due-date projections.
4049
+ *
4050
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4051
+ *
4052
+ * To use this endpoint, select **Read Upcoming Preventive Maintenance** under the Preventive Maintenance category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
4053
+ *
4054
+ *
4055
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
4056
+ *
4057
+ * @param {Samsara.ListUpcomingPreventiveMaintenanceRequest} request
4058
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
4059
+ *
4060
+ * @throws {@link Samsara.UnauthorizedError}
4061
+ * @throws {@link Samsara.NotFoundError}
4062
+ * @throws {@link Samsara.MethodNotAllowedError}
4063
+ * @throws {@link Samsara.TooManyRequestsError}
4064
+ * @throws {@link Samsara.InternalServerError}
4065
+ * @throws {@link Samsara.NotImplementedError}
4066
+ * @throws {@link Samsara.BadGatewayError}
4067
+ * @throws {@link Samsara.ServiceUnavailableError}
4068
+ * @throws {@link Samsara.GatewayTimeoutError}
4069
+ *
4070
+ * @example
4071
+ * await client.betaApIs.listUpcomingPreventiveMaintenance()
4072
+ */
4073
+ listUpcomingPreventiveMaintenance(request = {}, requestOptions) {
4074
+ return core.HttpResponsePromise.fromPromise(this.__listUpcomingPreventiveMaintenance(request, requestOptions));
4075
+ }
4076
+ __listUpcomingPreventiveMaintenance() {
4077
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
4078
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
4079
+ const { preventativeMaintenanceScheduleIds, assetIds, after, limit } = request;
4080
+ const _queryParams = {
4081
+ preventativeMaintenanceScheduleIds,
4082
+ assetIds,
4083
+ after,
4084
+ limit,
4085
+ };
4086
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
4087
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
4088
+ const _response = yield core.fetcher({
4089
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "maintenance/preventive/upcoming"),
4090
+ method: "GET",
4091
+ headers: _headers,
4092
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
4093
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
4094
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
4095
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
4096
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
4097
+ logging: this._options.logging,
4098
+ });
4099
+ if (_response.ok) {
4100
+ return {
4101
+ data: _response.body,
4102
+ rawResponse: _response.rawResponse,
4103
+ };
4104
+ }
4105
+ if (_response.error.reason === "status-code") {
4106
+ switch (_response.error.statusCode) {
4107
+ case 401:
4108
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
4109
+ case 404:
4110
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
4111
+ case 405:
4112
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
4113
+ case 429:
4114
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
4115
+ case 500:
4116
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
4117
+ case 501:
4118
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
4119
+ case 502:
4120
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
4121
+ case 503:
4122
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
4123
+ case 504:
4124
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
4125
+ default:
4126
+ throw new errors.SamsaraError({
4127
+ statusCode: _response.error.statusCode,
4128
+ body: _response.error.body,
4129
+ rawResponse: _response.rawResponse,
4130
+ });
4131
+ }
4132
+ }
4133
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/maintenance/preventive/upcoming");
4134
+ });
4135
+ }
3869
4136
  /**
3870
4137
  * Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.
3871
4138
  *
@@ -4071,6 +4338,7 @@ class BetaApIsClient {
4071
4338
  * @example
4072
4339
  * await client.betaApIs.postPlace({
4073
4340
  * address: "123 Main St, Oakland, CA",
4341
+ * geofence: {},
4074
4342
  * name: "Oakland Yard"
4075
4343
  * })
4076
4344
  */
@@ -5571,19 +5839,14 @@ class BetaApIsClient {
5571
5839
  * * `engineRpm`
5572
5840
  * * `engineState` (values: off | running | idling)
5573
5841
  * * `faultCodes`
5574
- * * `faultCodesJ1939`
5575
- * * `faultCodesOBDII`
5576
5842
  * * `fuelLevelPerc`
5577
5843
  * * `gps`
5578
- * * `location`
5579
5844
  * * `odometerEcu`
5580
5845
  * * `oilPressure`
5581
5846
  *
5582
5847
  * </details>
5583
5848
  *
5584
- * **Note:** Use the `GET /readings/definitions` endpoint and check the `ingestionEnabled` field for the authoritative, up-to-date set of ingestible readings for your organization.
5585
- *
5586
- * When ingesting location data, the readingID 'location' must be used and the value object must contain at least the following fields: 'speed', 'latitude', 'longitude'.
5849
+ * When ingesting GPS location data, use the readingID 'gps'. The value object must contain the following fields: 'latitude' (decimal degrees), 'longitude' (decimal degrees), and 'speed' (meters per second).
5587
5850
  *
5588
5851
  * Related guide: [Readings](https://developers.samsara.com/docs/readings).
5589
5852
  *
@@ -7031,7 +7294,7 @@ class BetaApIsClient {
7031
7294
  *
7032
7295
  * @example
7033
7296
  * await client.betaApIs.patchSafetyEventsV2Batch({
7034
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
7297
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
7035
7298
  * })
7036
7299
  */
7037
7300
  patchSafetyEventsV2Batch(request, requestOptions) {
@@ -5,7 +5,7 @@ import type * as Samsara from "../../../../index.js";
5
5
  * id: 1000000,
6
6
  * relayStates: [{
7
7
  * id: "relay1",
8
- * isOpen: true
8
+ * isOpen: false
9
9
  * }]
10
10
  * }
11
11
  */
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListPreventiveMaintenanceSchedulesRequest {
6
+ /** A filter on the data based on this comma-separated list of ID values. */
7
+ idIn?: string;
8
+ /** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
9
+ after?: string;
10
+ /** The limit for how many objects will be in the response. Default and max for this value is 200 objects. */
11
+ limit?: number;
12
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListUpcomingPreventiveMaintenanceRequest {
6
+ /** A filter on the data based on this comma-separated list of Preventive Maintenance Schedule ID values. */
7
+ preventativeMaintenanceScheduleIds?: string;
8
+ /** A filter on the data based on this comma-separated list of Asset ID values. */
9
+ assetIds?: string;
10
+ /** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
11
+ after?: string;
12
+ /** The limit for how many objects will be in the response. Default and max for this value is 200 objects. */
13
+ limit?: number;
14
+ }
@@ -14,29 +14,22 @@ export interface PlacesPatchPlaceRequestBody {
14
14
  cameraRecordingModeType?: PlacesPatchPlaceRequestBody.CameraRecordingModeType;
15
15
  /** When present, replaces external ids for the place. */
16
16
  externalIds?: PlacesPatchPlaceRequestBody.ExternalIds;
17
- /** Polygon vertices; at least three when switching to polygon mode. */
18
- geofence?: Samsara.GeofenceVertexInputRequestBody[];
19
- hubLocations?: Samsara.PatchPlaceHubLocationsBodyRequestBody;
17
+ geofence?: Samsara.PlaceGeofenceInputRequestBody;
20
18
  /** When present, replaces IFTA exemption types for the place. */
21
19
  iftaExemptionTypes?: string[];
22
20
  /** When true, show addresses inside the geofence on the map. */
23
21
  isShowAddressesEnabled?: boolean;
24
- /** Center latitude when switching to or editing a circle geofence. */
25
- latitude?: number;
26
- /** Center longitude when switching to or editing a circle geofence. */
27
- longitude?: number;
28
22
  /** Place name. */
29
23
  name?: string;
30
24
  navigation?: Samsara.PostPlaceNavigationInputRequestBody;
31
25
  /** Notes. */
32
26
  notes?: string;
33
- /** When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match hubLocations, navigation, and IFTA metadata after this request; conflicting combinations return InvalidArgument. */
27
+ /** When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match routing, navigation, and IFTA metadata after this request; conflicting combinations return InvalidArgument. */
34
28
  placeTypes?: string[];
35
- /** Circle radius in meters; use with latitude and longitude. */
36
- radiusMeters?: number;
29
+ routing?: Samsara.PlaceRoutingPatchInputRequestBody;
37
30
  /** When present, replaces safety event exclusions for the place. */
38
31
  safetyEventExclusions?: string[];
39
- streetView?: Samsara.PlaceStreetViewResponseRequestBody;
32
+ streetView?: Samsara.PlaceStreetViewInputRequestBody;
40
33
  /** When present, replaces all tag associations for the place. */
41
34
  tags?: Samsara.PostPlaceTagRefRequestBody[];
42
35
  }
@@ -3,6 +3,7 @@ import type * as Samsara from "../../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * address: "123 Main St, Oakland, CA",
6
+ * geofence: {},
6
7
  * name: "Oakland Yard"
7
8
  * }
8
9
  */
@@ -13,30 +14,23 @@ export interface PlacesPostPlaceRequestBody {
13
14
  cameraRecordingModeType?: PlacesPostPlaceRequestBody.CameraRecordingModeType;
14
15
  /** External identifiers. */
15
16
  externalIds?: PlacesPostPlaceRequestBody.ExternalIds;
16
- /** Polygon vertices; at least three when using polygon mode (omit entirely when using latitude, longitude, and radiusMeters for a circle). */
17
- geofence?: Samsara.GeofenceVertexInputRequestBody[];
18
- /** Initial route-planning hub rows for the new place. Each entry requires hubId. Omit hubLocationId to let the server assign a row UUID, or set hubLocationId to pin the UUID for idempotent creates. */
19
- hubLocations?: Samsara.PatchPlaceHubLocationUpsertBodyRequestBody[];
17
+ geofence: Samsara.PlaceGeofenceInputRequestBody;
20
18
  /** IFTA exemption types for this place. */
21
19
  iftaExemptionTypes?: string[];
22
20
  /** When true, show addresses inside the geofence on the map. */
23
21
  isShowAddressesEnabled?: boolean;
24
- /** Center latitude when using a circle geofence with radiusMeters. */
25
- latitude?: number;
26
- /** Center longitude when using a circle geofence with radiusMeters. */
27
- longitude?: number;
28
22
  /** Place name. */
29
23
  name: string;
30
24
  navigation?: Samsara.PostPlaceNavigationInputRequestBody;
31
25
  /** Optional notes. */
32
26
  notes?: string;
33
- /** When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match hubLocations, navigation, and existing IFTA metadata in the same request; conflicting combinations return InvalidArgument. */
27
+ /** When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match routing, navigation, and existing IFTA metadata in the same request; conflicting combinations return InvalidArgument. */
34
28
  placeTypes?: string[];
35
- /** Circle radius in meters; requires latitude and longitude. Must be at least 1 when set. */
36
- radiusMeters?: number;
29
+ /** Initial route-planning rows for the new place. Each entry requires hubId; (placeId, hubId) must be unique. */
30
+ routing?: Samsara.PlaceRoutingInputRequestBody[];
37
31
  /** Safety event types excluded at this place. */
38
32
  safetyEventExclusions?: string[];
39
- streetView?: Samsara.PlaceStreetViewResponseRequestBody;
33
+ streetView?: Samsara.PlaceStreetViewInputRequestBody;
40
34
  /** Tags to associate. */
41
35
  tags?: Samsara.PostPlaceTagRefRequestBody[];
42
36
  }