@samsarahq/samsara 8.1.2 → 9.0.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 (195) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +37 -32
  4. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +1 -189
  5. package/dist/cjs/api/resources/betaApIs/client/Client.js +1 -556
  6. package/dist/cjs/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.ts +1 -1
  7. package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.ts +1 -0
  8. package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.ts +1 -0
  9. package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +0 -6
  10. package/dist/cjs/api/resources/betaApIs/types/index.d.ts +0 -2
  11. package/dist/cjs/api/resources/betaApIs/types/index.js +0 -2
  12. package/dist/cjs/api/resources/index.d.ts +3 -0
  13. package/dist/cjs/api/resources/index.js +5 -2
  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 +1 -1
  18. package/dist/cjs/api/resources/previewApIs/client/Client.js +1 -1
  19. package/dist/cjs/api/resources/previewApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.ts +1 -1
  20. package/dist/cjs/api/resources/safetyScores/client/Client.d.ts +139 -0
  21. package/dist/cjs/api/resources/safetyScores/client/Client.js +430 -0
  22. package/dist/cjs/api/resources/safetyScores/client/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/safetyScores/client/index.js +17 -0
  24. package/dist/cjs/api/resources/safetyScores/client/requests/index.d.ts +4 -0
  25. package/dist/cjs/api/resources/{betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.js → safetyScores/client/requests/index.js} +0 -1
  26. package/dist/cjs/api/resources/safetyScores/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/safetyScores/index.js +18 -0
  28. package/dist/cjs/api/resources/safetyScores/types/index.d.ts +2 -0
  29. package/dist/cjs/api/resources/safetyScores/types/index.js +18 -0
  30. package/dist/cjs/api/resources/workOrders/client/requests/WorkOrdersPatchWorkOrdersRequestBody.d.ts +3 -2
  31. package/dist/cjs/api/resources/workOrders/client/requests/WorkOrdersPatchWorkOrdersRequestBody.js +2 -1
  32. package/dist/cjs/api/resources/workOrders/types/StreamWorkOrdersRequestWorkOrderStatusesItem.d.ts +1 -0
  33. package/dist/cjs/api/resources/workOrders/types/StreamWorkOrdersRequestWorkOrderStatusesItem.js +1 -0
  34. package/dist/cjs/api/types/WorkOrderObjectResponseBody.d.ts +3 -2
  35. package/dist/cjs/api/types/WorkOrderObjectResponseBody.js +2 -1
  36. package/dist/cjs/api/types/index.d.ts +0 -21
  37. package/dist/cjs/api/types/index.js +0 -21
  38. package/dist/cjs/version.d.ts +1 -1
  39. package/dist/cjs/version.js +1 -1
  40. package/dist/esm/BaseClient.mjs +2 -2
  41. package/dist/esm/Client.d.mts +3 -0
  42. package/dist/esm/Client.mjs +5 -0
  43. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +1 -189
  44. package/dist/esm/api/resources/betaApIs/client/Client.mjs +1 -556
  45. package/dist/esm/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.mts +1 -1
  46. package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.mts +1 -0
  47. package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.mts +1 -0
  48. package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +0 -6
  49. package/dist/esm/api/resources/betaApIs/types/index.d.mts +0 -2
  50. package/dist/esm/api/resources/betaApIs/types/index.mjs +0 -2
  51. package/dist/esm/api/resources/index.d.mts +3 -0
  52. package/dist/esm/api/resources/index.mjs +3 -0
  53. package/dist/esm/api/resources/media/client/Client.d.mts +1 -1
  54. package/dist/esm/api/resources/media/client/Client.mjs +1 -1
  55. package/dist/esm/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.mts +1 -1
  56. package/dist/esm/api/resources/previewApIs/client/Client.d.mts +1 -1
  57. package/dist/esm/api/resources/previewApIs/client/Client.mjs +1 -1
  58. package/dist/esm/api/resources/previewApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.mts +1 -1
  59. package/dist/esm/api/resources/safetyScores/client/Client.d.mts +139 -0
  60. package/dist/esm/api/resources/safetyScores/client/Client.mjs +393 -0
  61. package/dist/esm/api/resources/safetyScores/client/index.d.mts +1 -0
  62. package/dist/esm/api/resources/safetyScores/client/index.mjs +1 -0
  63. package/dist/esm/api/resources/safetyScores/client/requests/index.d.mts +4 -0
  64. package/dist/esm/api/resources/safetyScores/client/requests/index.mjs +1 -0
  65. package/dist/esm/api/resources/safetyScores/index.d.mts +2 -0
  66. package/dist/esm/api/resources/safetyScores/index.mjs +2 -0
  67. package/dist/esm/api/resources/safetyScores/types/index.d.mts +2 -0
  68. package/dist/esm/api/resources/safetyScores/types/index.mjs +2 -0
  69. package/dist/esm/api/resources/workOrders/client/requests/WorkOrdersPatchWorkOrdersRequestBody.d.mts +3 -2
  70. package/dist/esm/api/resources/workOrders/client/requests/WorkOrdersPatchWorkOrdersRequestBody.mjs +2 -1
  71. package/dist/esm/api/resources/workOrders/types/StreamWorkOrdersRequestWorkOrderStatusesItem.d.mts +1 -0
  72. package/dist/esm/api/resources/workOrders/types/StreamWorkOrdersRequestWorkOrderStatusesItem.mjs +1 -0
  73. package/dist/esm/api/types/WorkOrderObjectResponseBody.d.mts +3 -2
  74. package/dist/esm/api/types/WorkOrderObjectResponseBody.mjs +2 -1
  75. package/dist/esm/api/types/index.d.mts +0 -21
  76. package/dist/esm/api/types/index.mjs +0 -21
  77. package/dist/esm/version.d.mts +1 -1
  78. package/dist/esm/version.mjs +1 -1
  79. package/package.json +1 -1
  80. package/reference.md +1812 -1957
  81. package/dist/cjs/api/resources/betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.d.ts +0 -17
  82. package/dist/cjs/api/resources/betaApIs/client/requests/GetVehicleSafetyScoreTripsRequest.d.ts +0 -17
  83. package/dist/cjs/api/resources/betaApIs/client/requests/GetVehicleSafetyScoreTripsRequest.js +0 -3
  84. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsBadGatewayErrorResponseBody.d.ts +0 -9
  85. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsBadGatewayErrorResponseBody.js +0 -3
  86. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsGatewayTimeoutErrorResponseBody.d.ts +0 -9
  87. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsGatewayTimeoutErrorResponseBody.js +0 -3
  88. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsInternalServerErrorResponseBody.d.ts +0 -9
  89. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsInternalServerErrorResponseBody.js +0 -3
  90. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsMethodNotAllowedErrorResponseBody.d.ts +0 -9
  91. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsMethodNotAllowedErrorResponseBody.js +0 -3
  92. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsNotFoundErrorResponseBody.d.ts +0 -9
  93. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsNotFoundErrorResponseBody.js +0 -3
  94. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsNotImplementedErrorResponseBody.d.ts +0 -9
  95. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsNotImplementedErrorResponseBody.js +0 -3
  96. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsResponseBody.d.ts +0 -6
  97. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsResponseBody.js +0 -3
  98. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsServiceUnavailableErrorResponseBody.d.ts +0 -9
  99. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsServiceUnavailableErrorResponseBody.js +0 -3
  100. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsTooManyRequestsErrorResponseBody.d.ts +0 -9
  101. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsTooManyRequestsErrorResponseBody.js +0 -3
  102. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsUnauthorizedErrorResponseBody.d.ts +0 -9
  103. package/dist/cjs/api/types/SafetyScoresGetDriverSafetyScoreTripsUnauthorizedErrorResponseBody.js +0 -3
  104. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsBadGatewayErrorResponseBody.d.ts +0 -9
  105. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsBadGatewayErrorResponseBody.js +0 -3
  106. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsGatewayTimeoutErrorResponseBody.d.ts +0 -9
  107. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsGatewayTimeoutErrorResponseBody.js +0 -3
  108. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsInternalServerErrorResponseBody.d.ts +0 -9
  109. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsInternalServerErrorResponseBody.js +0 -3
  110. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsMethodNotAllowedErrorResponseBody.d.ts +0 -9
  111. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsMethodNotAllowedErrorResponseBody.js +0 -3
  112. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotFoundErrorResponseBody.d.ts +0 -9
  113. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotFoundErrorResponseBody.js +0 -3
  114. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotImplementedErrorResponseBody.d.ts +0 -9
  115. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotImplementedErrorResponseBody.js +0 -3
  116. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsResponseBody.d.ts +0 -6
  117. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsResponseBody.js +0 -3
  118. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsServiceUnavailableErrorResponseBody.d.ts +0 -9
  119. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsServiceUnavailableErrorResponseBody.js +0 -3
  120. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsTooManyRequestsErrorResponseBody.d.ts +0 -9
  121. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsTooManyRequestsErrorResponseBody.js +0 -3
  122. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsUnauthorizedErrorResponseBody.d.ts +0 -9
  123. package/dist/cjs/api/types/SafetyScoresGetVehicleSafetyScoreTripsUnauthorizedErrorResponseBody.js +0 -3
  124. package/dist/cjs/api/types/TripsBreakdownResponseBody.d.ts +0 -22
  125. package/dist/cjs/api/types/TripsBreakdownResponseBody.js +0 -3
  126. package/dist/esm/api/resources/betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.d.mts +0 -17
  127. package/dist/esm/api/resources/betaApIs/client/requests/GetDriverSafetyScoreTripsRequest.mjs +0 -2
  128. package/dist/esm/api/resources/betaApIs/client/requests/GetVehicleSafetyScoreTripsRequest.d.mts +0 -17
  129. package/dist/esm/api/resources/betaApIs/client/requests/GetVehicleSafetyScoreTripsRequest.mjs +0 -2
  130. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsBadGatewayErrorResponseBody.d.mts +0 -9
  131. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsBadGatewayErrorResponseBody.mjs +0 -2
  132. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsGatewayTimeoutErrorResponseBody.d.mts +0 -9
  133. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsGatewayTimeoutErrorResponseBody.mjs +0 -2
  134. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsInternalServerErrorResponseBody.d.mts +0 -9
  135. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsInternalServerErrorResponseBody.mjs +0 -2
  136. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsMethodNotAllowedErrorResponseBody.d.mts +0 -9
  137. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsMethodNotAllowedErrorResponseBody.mjs +0 -2
  138. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsNotFoundErrorResponseBody.d.mts +0 -9
  139. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsNotFoundErrorResponseBody.mjs +0 -2
  140. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsNotImplementedErrorResponseBody.d.mts +0 -9
  141. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsNotImplementedErrorResponseBody.mjs +0 -2
  142. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsResponseBody.d.mts +0 -6
  143. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsResponseBody.mjs +0 -2
  144. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsServiceUnavailableErrorResponseBody.d.mts +0 -9
  145. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsServiceUnavailableErrorResponseBody.mjs +0 -2
  146. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsTooManyRequestsErrorResponseBody.d.mts +0 -9
  147. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsTooManyRequestsErrorResponseBody.mjs +0 -2
  148. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsUnauthorizedErrorResponseBody.d.mts +0 -9
  149. package/dist/esm/api/types/SafetyScoresGetDriverSafetyScoreTripsUnauthorizedErrorResponseBody.mjs +0 -2
  150. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsBadGatewayErrorResponseBody.d.mts +0 -9
  151. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsBadGatewayErrorResponseBody.mjs +0 -2
  152. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsGatewayTimeoutErrorResponseBody.d.mts +0 -9
  153. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsGatewayTimeoutErrorResponseBody.mjs +0 -2
  154. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsInternalServerErrorResponseBody.d.mts +0 -9
  155. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsInternalServerErrorResponseBody.mjs +0 -2
  156. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsMethodNotAllowedErrorResponseBody.d.mts +0 -9
  157. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsMethodNotAllowedErrorResponseBody.mjs +0 -2
  158. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotFoundErrorResponseBody.d.mts +0 -9
  159. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotFoundErrorResponseBody.mjs +0 -2
  160. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotImplementedErrorResponseBody.d.mts +0 -9
  161. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsNotImplementedErrorResponseBody.mjs +0 -2
  162. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsResponseBody.d.mts +0 -6
  163. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsResponseBody.mjs +0 -2
  164. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsServiceUnavailableErrorResponseBody.d.mts +0 -9
  165. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsServiceUnavailableErrorResponseBody.mjs +0 -2
  166. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsTooManyRequestsErrorResponseBody.d.mts +0 -9
  167. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsTooManyRequestsErrorResponseBody.mjs +0 -2
  168. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsUnauthorizedErrorResponseBody.d.mts +0 -9
  169. package/dist/esm/api/types/SafetyScoresGetVehicleSafetyScoreTripsUnauthorizedErrorResponseBody.mjs +0 -2
  170. package/dist/esm/api/types/TripsBreakdownResponseBody.d.mts +0 -22
  171. package/dist/esm/api/types/TripsBreakdownResponseBody.mjs +0 -2
  172. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetDriverSafetyScoresRequest.d.ts +0 -0
  173. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetDriverSafetyScoresRequest.js +0 -0
  174. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetTagGroupSafetyScoresRequest.d.ts +0 -0
  175. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetTagGroupSafetyScoresRequest.js +0 -0
  176. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetTagSafetyScoresRequest.d.ts +0 -0
  177. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetTagSafetyScoresRequest.js +0 -0
  178. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetVehicleSafetyScoresRequest.d.ts +0 -0
  179. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/client/requests/GetVehicleSafetyScoresRequest.js +0 -0
  180. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/types/GetTagGroupSafetyScoresRequestScoreType.d.ts +0 -0
  181. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/types/GetTagGroupSafetyScoresRequestScoreType.js +0 -0
  182. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/types/GetTagSafetyScoresRequestScoreType.d.ts +0 -0
  183. /package/dist/cjs/api/resources/{betaApIs → safetyScores}/types/GetTagSafetyScoresRequestScoreType.js +0 -0
  184. /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetDriverSafetyScoresRequest.d.mts +0 -0
  185. /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetDriverSafetyScoresRequest.mjs +0 -0
  186. /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetTagGroupSafetyScoresRequest.d.mts +0 -0
  187. /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetTagGroupSafetyScoresRequest.mjs +0 -0
  188. /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetTagSafetyScoresRequest.d.mts +0 -0
  189. /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetTagSafetyScoresRequest.mjs +0 -0
  190. /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetVehicleSafetyScoresRequest.d.mts +0 -0
  191. /package/dist/esm/api/resources/{betaApIs → safetyScores}/client/requests/GetVehicleSafetyScoresRequest.mjs +0 -0
  192. /package/dist/esm/api/resources/{betaApIs → safetyScores}/types/GetTagGroupSafetyScoresRequestScoreType.d.mts +0 -0
  193. /package/dist/esm/api/resources/{betaApIs → safetyScores}/types/GetTagGroupSafetyScoresRequestScoreType.mjs +0 -0
  194. /package/dist/esm/api/resources/{betaApIs → safetyScores}/types/GetTagSafetyScoresRequestScoreType.d.mts +0 -0
  195. /package/dist/esm/api/resources/{betaApIs → safetyScores}/types/GetTagSafetyScoresRequestScoreType.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": "8.1.2",
48
- "User-Agent": "@samsarahq/samsara/8.1.2",
47
+ "X-Fern-SDK-Version": "9.0.0",
48
+ "User-Agent": "@samsarahq/samsara/9.0.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",
@@ -37,6 +37,7 @@ import { PreviewApIsClient } from "./api/resources/previewApIs/client/Client.js"
37
37
  import { RouteEventsClient } from "./api/resources/routeEvents/client/Client.js";
38
38
  import { RoutesClient } from "./api/resources/routes/client/Client.js";
39
39
  import { SafetyClient } from "./api/resources/safety/client/Client.js";
40
+ import { SafetyScoresClient } from "./api/resources/safetyScores/client/Client.js";
40
41
  import { SensorsClient } from "./api/resources/sensors/client/Client.js";
41
42
  import { SettingsClient } from "./api/resources/settings/client/Client.js";
42
43
  import { SpeedingIntervalsClient } from "./api/resources/speedingIntervals/client/Client.js";
@@ -105,6 +106,7 @@ export declare class SamsaraClient {
105
106
  protected _previewApIs: PreviewApIsClient | undefined;
106
107
  protected _routeEvents: RouteEventsClient | undefined;
107
108
  protected _safety: SafetyClient | undefined;
109
+ protected _safetyScores: SafetyScoresClient | undefined;
108
110
  protected _speedingIntervals: SpeedingIntervalsClient | undefined;
109
111
  protected _tags: TagsClient | undefined;
110
112
  protected _trainingAssignments: TrainingAssignmentsClient | undefined;
@@ -161,6 +163,7 @@ export declare class SamsaraClient {
161
163
  get previewApIs(): PreviewApIsClient;
162
164
  get routeEvents(): RouteEventsClient;
163
165
  get safety(): SafetyClient;
166
+ get safetyScores(): SafetyScoresClient;
164
167
  get speedingIntervals(): SpeedingIntervalsClient;
165
168
  get tags(): TagsClient;
166
169
  get trainingAssignments(): TrainingAssignmentsClient;
@@ -41,22 +41,23 @@ const Client_js_36 = require("./api/resources/previewApIs/client/Client.js");
41
41
  const Client_js_37 = require("./api/resources/routeEvents/client/Client.js");
42
42
  const Client_js_38 = require("./api/resources/routes/client/Client.js");
43
43
  const Client_js_39 = require("./api/resources/safety/client/Client.js");
44
- const Client_js_40 = require("./api/resources/sensors/client/Client.js");
45
- const Client_js_41 = require("./api/resources/settings/client/Client.js");
46
- const Client_js_42 = require("./api/resources/speedingIntervals/client/Client.js");
47
- const Client_js_43 = require("./api/resources/tachographEuOnly/client/Client.js");
48
- const Client_js_44 = require("./api/resources/tags/client/Client.js");
49
- const Client_js_45 = require("./api/resources/trailerAssignments/client/Client.js");
50
- const Client_js_46 = require("./api/resources/trailers/client/Client.js");
51
- const Client_js_47 = require("./api/resources/trainingAssignments/client/Client.js");
52
- const Client_js_48 = require("./api/resources/trainingCourses/client/Client.js");
53
- const Client_js_49 = require("./api/resources/trips/client/Client.js");
54
- const Client_js_50 = require("./api/resources/users/client/Client.js");
55
- const Client_js_51 = require("./api/resources/vehicleLocations/client/Client.js");
56
- const Client_js_52 = require("./api/resources/vehicleStats/client/Client.js");
57
- const Client_js_53 = require("./api/resources/vehicles/client/Client.js");
58
- const Client_js_54 = require("./api/resources/webhooks/client/Client.js");
59
- const Client_js_55 = require("./api/resources/workOrders/client/Client.js");
44
+ const Client_js_40 = require("./api/resources/safetyScores/client/Client.js");
45
+ const Client_js_41 = require("./api/resources/sensors/client/Client.js");
46
+ const Client_js_42 = require("./api/resources/settings/client/Client.js");
47
+ const Client_js_43 = require("./api/resources/speedingIntervals/client/Client.js");
48
+ const Client_js_44 = require("./api/resources/tachographEuOnly/client/Client.js");
49
+ const Client_js_45 = require("./api/resources/tags/client/Client.js");
50
+ const Client_js_46 = require("./api/resources/trailerAssignments/client/Client.js");
51
+ const Client_js_47 = require("./api/resources/trailers/client/Client.js");
52
+ const Client_js_48 = require("./api/resources/trainingAssignments/client/Client.js");
53
+ const Client_js_49 = require("./api/resources/trainingCourses/client/Client.js");
54
+ const Client_js_50 = require("./api/resources/trips/client/Client.js");
55
+ const Client_js_51 = require("./api/resources/users/client/Client.js");
56
+ const Client_js_52 = require("./api/resources/vehicleLocations/client/Client.js");
57
+ const Client_js_53 = require("./api/resources/vehicleStats/client/Client.js");
58
+ const Client_js_54 = require("./api/resources/vehicles/client/Client.js");
59
+ const Client_js_55 = require("./api/resources/webhooks/client/Client.js");
60
+ const Client_js_56 = require("./api/resources/workOrders/client/Client.js");
60
61
  const BaseClient_js_1 = require("./BaseClient.js");
61
62
  class SamsaraClient {
62
63
  constructor(options = {}) {
@@ -144,7 +145,7 @@ class SamsaraClient {
144
145
  }
145
146
  get tachographEuOnly() {
146
147
  var _a;
147
- return ((_a = this._tachographEuOnly) !== null && _a !== void 0 ? _a : (this._tachographEuOnly = new Client_js_43.TachographEuOnlyClient(this._options)));
148
+ return ((_a = this._tachographEuOnly) !== null && _a !== void 0 ? _a : (this._tachographEuOnly = new Client_js_44.TachographEuOnlyClient(this._options)));
148
149
  }
149
150
  get equipment() {
150
151
  var _a;
@@ -164,23 +165,23 @@ class SamsaraClient {
164
165
  }
165
166
  get settings() {
166
167
  var _a;
167
- return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_js_41.SettingsClient(this._options)));
168
+ return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_js_42.SettingsClient(this._options)));
168
169
  }
169
170
  get trailers() {
170
171
  var _a;
171
- return ((_a = this._trailers) !== null && _a !== void 0 ? _a : (this._trailers = new Client_js_46.TrailersClient(this._options)));
172
+ return ((_a = this._trailers) !== null && _a !== void 0 ? _a : (this._trailers = new Client_js_47.TrailersClient(this._options)));
172
173
  }
173
174
  get vehicles() {
174
175
  var _a;
175
- return ((_a = this._vehicles) !== null && _a !== void 0 ? _a : (this._vehicles = new Client_js_53.VehiclesClient(this._options)));
176
+ return ((_a = this._vehicles) !== null && _a !== void 0 ? _a : (this._vehicles = new Client_js_54.VehiclesClient(this._options)));
176
177
  }
177
178
  get vehicleLocations() {
178
179
  var _a;
179
- return ((_a = this._vehicleLocations) !== null && _a !== void 0 ? _a : (this._vehicleLocations = new Client_js_51.VehicleLocationsClient(this._options)));
180
+ return ((_a = this._vehicleLocations) !== null && _a !== void 0 ? _a : (this._vehicleLocations = new Client_js_52.VehicleLocationsClient(this._options)));
180
181
  }
181
182
  get vehicleStats() {
182
183
  var _a;
183
- return ((_a = this._vehicleStats) !== null && _a !== void 0 ? _a : (this._vehicleStats = new Client_js_52.VehicleStatsClient(this._options)));
184
+ return ((_a = this._vehicleStats) !== null && _a !== void 0 ? _a : (this._vehicleStats = new Client_js_53.VehicleStatsClient(this._options)));
184
185
  }
185
186
  get forms() {
186
187
  var _a;
@@ -216,7 +217,7 @@ class SamsaraClient {
216
217
  }
217
218
  get workOrders() {
218
219
  var _a;
219
- return ((_a = this._workOrders) !== null && _a !== void 0 ? _a : (this._workOrders = new Client_js_55.WorkOrdersClient(this._options)));
220
+ return ((_a = this._workOrders) !== null && _a !== void 0 ? _a : (this._workOrders = new Client_js_56.WorkOrdersClient(this._options)));
220
221
  }
221
222
  get organizationInfo() {
222
223
  var _a;
@@ -234,29 +235,33 @@ class SamsaraClient {
234
235
  var _a;
235
236
  return ((_a = this._safety) !== null && _a !== void 0 ? _a : (this._safety = new Client_js_39.SafetyClient(this._options)));
236
237
  }
238
+ get safetyScores() {
239
+ var _a;
240
+ return ((_a = this._safetyScores) !== null && _a !== void 0 ? _a : (this._safetyScores = new Client_js_40.SafetyScoresClient(this._options)));
241
+ }
237
242
  get speedingIntervals() {
238
243
  var _a;
239
- return ((_a = this._speedingIntervals) !== null && _a !== void 0 ? _a : (this._speedingIntervals = new Client_js_42.SpeedingIntervalsClient(this._options)));
244
+ return ((_a = this._speedingIntervals) !== null && _a !== void 0 ? _a : (this._speedingIntervals = new Client_js_43.SpeedingIntervalsClient(this._options)));
240
245
  }
241
246
  get tags() {
242
247
  var _a;
243
- return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_44.TagsClient(this._options)));
248
+ return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_45.TagsClient(this._options)));
244
249
  }
245
250
  get trainingAssignments() {
246
251
  var _a;
247
- return ((_a = this._trainingAssignments) !== null && _a !== void 0 ? _a : (this._trainingAssignments = new Client_js_47.TrainingAssignmentsClient(this._options)));
252
+ return ((_a = this._trainingAssignments) !== null && _a !== void 0 ? _a : (this._trainingAssignments = new Client_js_48.TrainingAssignmentsClient(this._options)));
248
253
  }
249
254
  get trainingCourses() {
250
255
  var _a;
251
- return ((_a = this._trainingCourses) !== null && _a !== void 0 ? _a : (this._trainingCourses = new Client_js_48.TrainingCoursesClient(this._options)));
256
+ return ((_a = this._trainingCourses) !== null && _a !== void 0 ? _a : (this._trainingCourses = new Client_js_49.TrainingCoursesClient(this._options)));
252
257
  }
253
258
  get trips() {
254
259
  var _a;
255
- return ((_a = this._trips) !== null && _a !== void 0 ? _a : (this._trips = new Client_js_49.TripsClient(this._options)));
260
+ return ((_a = this._trips) !== null && _a !== void 0 ? _a : (this._trips = new Client_js_50.TripsClient(this._options)));
256
261
  }
257
262
  get users() {
258
263
  var _a;
259
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_50.UsersClient(this._options)));
264
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_51.UsersClient(this._options)));
260
265
  }
261
266
  get legacy() {
262
267
  var _a;
@@ -268,15 +273,15 @@ class SamsaraClient {
268
273
  }
269
274
  get trailerAssignments() {
270
275
  var _a;
271
- return ((_a = this._trailerAssignments) !== null && _a !== void 0 ? _a : (this._trailerAssignments = new Client_js_45.TrailerAssignmentsClient(this._options)));
276
+ return ((_a = this._trailerAssignments) !== null && _a !== void 0 ? _a : (this._trailerAssignments = new Client_js_46.TrailerAssignmentsClient(this._options)));
272
277
  }
273
278
  get sensors() {
274
279
  var _a;
275
- return ((_a = this._sensors) !== null && _a !== void 0 ? _a : (this._sensors = new Client_js_40.SensorsClient(this._options)));
280
+ return ((_a = this._sensors) !== null && _a !== void 0 ? _a : (this._sensors = new Client_js_41.SensorsClient(this._options)));
276
281
  }
277
282
  get webhooks() {
278
283
  var _a;
279
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_54.WebhooksClient(this._options)));
284
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_55.WebhooksClient(this._options)));
280
285
  }
281
286
  get fleet() {
282
287
  var _a;
@@ -307,7 +307,7 @@ export declare class BetaApIsClient {
307
307
  * id: 1000000,
308
308
  * relayStates: [{
309
309
  * id: "relay1",
310
- * isOpen: true
310
+ * isOpen: false
311
311
  * }]
312
312
  * })
313
313
  */
@@ -1976,192 +1976,4 @@ export declare class BetaApIsClient {
1976
1976
  */
1977
1977
  getRidershipRouteSetup(request: Samsara.GetRidershipRouteSetupRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.RidershipRouteSetupsGetRidershipRouteSetupResponseBody>;
1978
1978
  private __getRidershipRouteSetup;
1979
- /**
1980
- * Get safety scores and overall risk factors for drivers.
1981
- *
1982
- * <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>).
1983
- *
1984
- * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
1985
- *
1986
- *
1987
- * **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.
1988
- *
1989
- * @param {Samsara.GetDriverSafetyScoresRequest} request
1990
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1991
- *
1992
- * @throws {@link Samsara.UnauthorizedError}
1993
- * @throws {@link Samsara.NotFoundError}
1994
- * @throws {@link Samsara.MethodNotAllowedError}
1995
- * @throws {@link Samsara.TooManyRequestsError}
1996
- * @throws {@link Samsara.InternalServerError}
1997
- * @throws {@link Samsara.NotImplementedError}
1998
- * @throws {@link Samsara.BadGatewayError}
1999
- * @throws {@link Samsara.ServiceUnavailableError}
2000
- * @throws {@link Samsara.GatewayTimeoutError}
2001
- *
2002
- * @example
2003
- * await client.betaApIs.getDriverSafetyScores({
2004
- * endTime: "endTime",
2005
- * startTime: "startTime"
2006
- * })
2007
- */
2008
- getDriverSafetyScores(request: Samsara.GetDriverSafetyScoresRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetDriverSafetyScoresResponseBody>;
2009
- private __getDriverSafetyScores;
2010
- /**
2011
- * Get trips contributing to a driver's safety score, and risk factors in each trip.
2012
- *
2013
- * <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>).
2014
- *
2015
- * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
2016
- *
2017
- *
2018
- * **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.
2019
- *
2020
- * @param {Samsara.GetDriverSafetyScoreTripsRequest} request
2021
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2022
- *
2023
- * @throws {@link Samsara.UnauthorizedError}
2024
- * @throws {@link Samsara.NotFoundError}
2025
- * @throws {@link Samsara.MethodNotAllowedError}
2026
- * @throws {@link Samsara.TooManyRequestsError}
2027
- * @throws {@link Samsara.InternalServerError}
2028
- * @throws {@link Samsara.NotImplementedError}
2029
- * @throws {@link Samsara.BadGatewayError}
2030
- * @throws {@link Samsara.ServiceUnavailableError}
2031
- * @throws {@link Samsara.GatewayTimeoutError}
2032
- *
2033
- * @example
2034
- * await client.betaApIs.getDriverSafetyScoreTrips({
2035
- * endTime: "endTime",
2036
- * startTime: "startTime"
2037
- * })
2038
- */
2039
- getDriverSafetyScoreTrips(request: Samsara.GetDriverSafetyScoreTripsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetDriverSafetyScoreTripsResponseBody>;
2040
- private __getDriverSafetyScoreTrips;
2041
- /**
2042
- * Get a combined safety score and risk factors for a set of tags.
2043
- *
2044
- * <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>).
2045
- *
2046
- * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
2047
- *
2048
- *
2049
- * **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.
2050
- *
2051
- * @param {Samsara.GetTagGroupSafetyScoresRequest} request
2052
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2053
- *
2054
- * @throws {@link Samsara.UnauthorizedError}
2055
- * @throws {@link Samsara.NotFoundError}
2056
- * @throws {@link Samsara.MethodNotAllowedError}
2057
- * @throws {@link Samsara.TooManyRequestsError}
2058
- * @throws {@link Samsara.InternalServerError}
2059
- * @throws {@link Samsara.NotImplementedError}
2060
- * @throws {@link Samsara.BadGatewayError}
2061
- * @throws {@link Samsara.ServiceUnavailableError}
2062
- * @throws {@link Samsara.GatewayTimeoutError}
2063
- *
2064
- * @example
2065
- * await client.betaApIs.getTagGroupSafetyScores({
2066
- * endTime: "endTime",
2067
- * startTime: "startTime",
2068
- * scoreType: "driver"
2069
- * })
2070
- */
2071
- getTagGroupSafetyScores(request: Samsara.GetTagGroupSafetyScoresRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetTagGroupSafetyScoresResponseBody>;
2072
- private __getTagGroupSafetyScores;
2073
- /**
2074
- * Get safety scores and overall risk factors for tags.
2075
- *
2076
- * <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>).
2077
- *
2078
- * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
2079
- *
2080
- *
2081
- * **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.
2082
- *
2083
- * @param {Samsara.GetTagSafetyScoresRequest} request
2084
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2085
- *
2086
- * @throws {@link Samsara.UnauthorizedError}
2087
- * @throws {@link Samsara.NotFoundError}
2088
- * @throws {@link Samsara.MethodNotAllowedError}
2089
- * @throws {@link Samsara.TooManyRequestsError}
2090
- * @throws {@link Samsara.InternalServerError}
2091
- * @throws {@link Samsara.NotImplementedError}
2092
- * @throws {@link Samsara.BadGatewayError}
2093
- * @throws {@link Samsara.ServiceUnavailableError}
2094
- * @throws {@link Samsara.GatewayTimeoutError}
2095
- *
2096
- * @example
2097
- * await client.betaApIs.getTagSafetyScores({
2098
- * endTime: "endTime",
2099
- * startTime: "startTime",
2100
- * scoreType: "driver"
2101
- * })
2102
- */
2103
- getTagSafetyScores(request: Samsara.GetTagSafetyScoresRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetTagSafetyScoresResponseBody>;
2104
- private __getTagSafetyScores;
2105
- /**
2106
- * Get safety scores and overall risk factors for vehicles.
2107
- *
2108
- * <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>).
2109
- *
2110
- * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
2111
- *
2112
- *
2113
- * **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.
2114
- *
2115
- * @param {Samsara.GetVehicleSafetyScoresRequest} request
2116
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2117
- *
2118
- * @throws {@link Samsara.UnauthorizedError}
2119
- * @throws {@link Samsara.NotFoundError}
2120
- * @throws {@link Samsara.MethodNotAllowedError}
2121
- * @throws {@link Samsara.TooManyRequestsError}
2122
- * @throws {@link Samsara.InternalServerError}
2123
- * @throws {@link Samsara.NotImplementedError}
2124
- * @throws {@link Samsara.BadGatewayError}
2125
- * @throws {@link Samsara.ServiceUnavailableError}
2126
- * @throws {@link Samsara.GatewayTimeoutError}
2127
- *
2128
- * @example
2129
- * await client.betaApIs.getVehicleSafetyScores({
2130
- * endTime: "endTime",
2131
- * startTime: "startTime"
2132
- * })
2133
- */
2134
- getVehicleSafetyScores(request: Samsara.GetVehicleSafetyScoresRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetVehicleSafetyScoresResponseBody>;
2135
- private __getVehicleSafetyScores;
2136
- /**
2137
- * Get trips contributing to a vehicle's safety score, and risk factors in each trip.
2138
- *
2139
- * <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>).
2140
- *
2141
- * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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>
2142
- *
2143
- *
2144
- * **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.
2145
- *
2146
- * @param {Samsara.GetVehicleSafetyScoreTripsRequest} request
2147
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2148
- *
2149
- * @throws {@link Samsara.UnauthorizedError}
2150
- * @throws {@link Samsara.NotFoundError}
2151
- * @throws {@link Samsara.MethodNotAllowedError}
2152
- * @throws {@link Samsara.TooManyRequestsError}
2153
- * @throws {@link Samsara.InternalServerError}
2154
- * @throws {@link Samsara.NotImplementedError}
2155
- * @throws {@link Samsara.BadGatewayError}
2156
- * @throws {@link Samsara.ServiceUnavailableError}
2157
- * @throws {@link Samsara.GatewayTimeoutError}
2158
- *
2159
- * @example
2160
- * await client.betaApIs.getVehicleSafetyScoreTrips({
2161
- * endTime: "endTime",
2162
- * startTime: "startTime"
2163
- * })
2164
- */
2165
- getVehicleSafetyScoreTrips(request: Samsara.GetVehicleSafetyScoreTripsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyScoresGetVehicleSafetyScoreTripsResponseBody>;
2166
- private __getVehicleSafetyScoreTrips;
2167
1979
  }