@samsarahq/samsara 13.22.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 (210) 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 +4 -8
  6. package/dist/cjs/api/resources/betaApIs/client/Client.js +4 -8
  7. package/dist/cjs/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.ts +1 -1
  8. package/dist/cjs/api/resources/betaApIs/client/requests/PlacesPatchPlaceRequestBody.d.ts +4 -11
  9. package/dist/cjs/api/resources/betaApIs/client/requests/PlacesPostPlaceRequestBody.d.ts +6 -12
  10. package/dist/cjs/api/resources/betaApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.ts +1 -1
  11. package/dist/cjs/api/resources/media/client/Client.d.ts +1 -1
  12. package/dist/cjs/api/resources/media/client/Client.js +1 -1
  13. package/dist/cjs/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.ts +1 -1
  14. package/dist/cjs/api/resources/previewApIs/client/Client.d.ts +39 -0
  15. package/dist/cjs/api/resources/previewApIs/client/Client.js +96 -0
  16. package/dist/cjs/api/resources/previewApIs/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.d.ts +32 -0
  17. package/dist/cjs/api/resources/previewApIs/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.js +16 -0
  18. package/dist/cjs/api/resources/previewApIs/client/requests/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/previewApIs/client/requests/index.js +3 -0
  20. package/dist/cjs/api/types/PlaceGeofenceCircleInputRequestBody.d.ts +11 -0
  21. package/dist/cjs/api/types/PlaceGeofenceCircleResponseResponseBody.d.ts +11 -0
  22. package/dist/cjs/api/types/PlaceGeofenceInputRequestBody.d.ts +18 -0
  23. package/dist/cjs/api/types/PlaceGeofenceInputRequestBody.js +12 -0
  24. package/dist/cjs/api/types/PlaceGeofencePolygonInputRequestBody.d.ts +8 -0
  25. package/dist/cjs/api/types/PlaceGeofencePolygonResponseResponseBody.d.ts +8 -0
  26. package/dist/cjs/api/types/PlaceGeofenceResponseResponseBody.d.ts +19 -0
  27. package/dist/cjs/api/types/PlaceGeofenceResponseResponseBody.js +13 -0
  28. package/dist/cjs/api/types/PlaceResponseObjectResponseBody.d.ts +3 -10
  29. package/dist/cjs/api/types/PlaceRoutingCapacityServiceTimeInputRequestBody.d.ts +11 -0
  30. package/dist/cjs/api/types/PlaceRoutingInputRequestBody.d.ts +26 -0
  31. package/dist/cjs/api/types/PlaceRoutingOrderServiceTimeInputRequestBody.d.ts +19 -0
  32. package/dist/cjs/api/types/PlaceRoutingOrderServiceTimeInputRequestBody.js +12 -0
  33. package/dist/cjs/api/types/PlaceRoutingPatchInputRequestBody.d.ts +10 -0
  34. package/dist/cjs/api/types/PlaceRoutingRequiredSkillInputRequestBody.d.ts +7 -0
  35. package/dist/cjs/api/types/PlaceRoutingServiceTimeInputRequestBody.d.ts +9 -0
  36. package/dist/cjs/api/types/PlaceRoutingServiceWindowInputRequestBody.d.ts +11 -0
  37. package/dist/cjs/api/types/PlaceStreetViewInputRequestBody.d.ts +17 -0
  38. package/dist/cjs/api/types/PlaceStreetViewResponseResponseBody.d.ts +4 -4
  39. package/dist/cjs/api/types/RoutingCapacityServiceTimeResponseResponseBody.d.ts +11 -0
  40. package/dist/cjs/api/types/RoutingOrderServiceTimeResponseResponseBody.d.ts +11 -0
  41. package/dist/cjs/api/types/RoutingRequiredSkillResponseResponseBody.d.ts +9 -0
  42. package/dist/cjs/api/types/RoutingRequiredSkillResponseResponseBody.js +3 -0
  43. package/dist/cjs/api/types/RoutingResponseResponseBody.d.ts +26 -0
  44. package/dist/cjs/api/types/RoutingResponseResponseBody.js +3 -0
  45. package/dist/cjs/api/types/RoutingServiceTimeResponseResponseBody.d.ts +9 -0
  46. package/dist/cjs/api/types/RoutingServiceTimeResponseResponseBody.js +3 -0
  47. package/dist/cjs/api/types/RoutingServiceWindowResponseResponseBody.d.ts +11 -0
  48. package/dist/cjs/api/types/RoutingServiceWindowResponseResponseBody.js +3 -0
  49. package/dist/cjs/api/types/TachographFileUploadResponseBody.d.ts +12 -0
  50. package/dist/cjs/api/types/TachographFileUploadResponseBody.js +3 -0
  51. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody.d.ts +9 -0
  52. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody.js +3 -0
  53. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody.d.ts +9 -0
  54. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody.js +3 -0
  55. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody.d.ts +9 -0
  56. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody.js +3 -0
  57. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody.d.ts +9 -0
  58. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody.js +3 -0
  59. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody.d.ts +9 -0
  60. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody.js +3 -0
  61. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody.d.ts +9 -0
  62. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody.js +3 -0
  63. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadResponseBody.d.ts +4 -0
  64. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadResponseBody.js +3 -0
  65. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody.d.ts +9 -0
  66. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody.js +3 -0
  67. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody.d.ts +9 -0
  68. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody.js +3 -0
  69. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody.d.ts +9 -0
  70. package/dist/cjs/api/types/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody.js +3 -0
  71. package/dist/cjs/api/types/TachographUploadRequiredHeaderResponseBody.d.ts +9 -0
  72. package/dist/cjs/api/types/TachographUploadRequiredHeaderResponseBody.js +3 -0
  73. package/dist/cjs/api/types/index.d.ts +32 -14
  74. package/dist/cjs/api/types/index.js +32 -14
  75. package/dist/cjs/version.d.ts +1 -1
  76. package/dist/cjs/version.js +1 -1
  77. package/dist/esm/BaseClient.mjs +2 -2
  78. package/dist/esm/api/resources/alerts/client/Client.d.mts +1 -1
  79. package/dist/esm/api/resources/alerts/client/Client.mjs +1 -1
  80. package/dist/esm/api/resources/alerts/client/requests/AlertsPostConfigurationsRequestBody.d.mts +1 -1
  81. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +4 -8
  82. package/dist/esm/api/resources/betaApIs/client/Client.mjs +4 -8
  83. package/dist/esm/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.mts +1 -1
  84. package/dist/esm/api/resources/betaApIs/client/requests/PlacesPatchPlaceRequestBody.d.mts +4 -11
  85. package/dist/esm/api/resources/betaApIs/client/requests/PlacesPostPlaceRequestBody.d.mts +6 -12
  86. package/dist/esm/api/resources/betaApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.mts +1 -1
  87. package/dist/esm/api/resources/media/client/Client.d.mts +1 -1
  88. package/dist/esm/api/resources/media/client/Client.mjs +1 -1
  89. package/dist/esm/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.mts +1 -1
  90. package/dist/esm/api/resources/previewApIs/client/Client.d.mts +39 -0
  91. package/dist/esm/api/resources/previewApIs/client/Client.mjs +96 -0
  92. package/dist/esm/api/resources/previewApIs/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.d.mts +32 -0
  93. package/dist/esm/api/resources/previewApIs/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.mjs +13 -0
  94. package/dist/esm/api/resources/previewApIs/client/requests/index.d.mts +1 -0
  95. package/dist/esm/api/resources/previewApIs/client/requests/index.mjs +1 -1
  96. package/dist/esm/api/types/PlaceGeofenceCircleInputRequestBody.d.mts +11 -0
  97. package/dist/esm/api/types/PlaceGeofenceCircleResponseResponseBody.d.mts +11 -0
  98. package/dist/esm/api/types/PlaceGeofenceInputRequestBody.d.mts +18 -0
  99. package/dist/esm/api/types/PlaceGeofenceInputRequestBody.mjs +9 -0
  100. package/dist/esm/api/types/PlaceGeofencePolygonInputRequestBody.d.mts +8 -0
  101. package/dist/esm/api/types/PlaceGeofencePolygonResponseResponseBody.d.mts +8 -0
  102. package/dist/esm/api/types/PlaceGeofenceResponseResponseBody.d.mts +19 -0
  103. package/dist/esm/api/types/PlaceGeofenceResponseResponseBody.mjs +10 -0
  104. package/dist/esm/api/types/PlaceResponseObjectResponseBody.d.mts +3 -10
  105. package/dist/esm/api/types/PlaceRoutingCapacityServiceTimeInputRequestBody.d.mts +11 -0
  106. package/dist/esm/api/types/PlaceRoutingInputRequestBody.d.mts +26 -0
  107. package/dist/esm/api/types/PlaceRoutingOrderServiceTimeInputRequestBody.d.mts +19 -0
  108. package/dist/esm/api/types/PlaceRoutingOrderServiceTimeInputRequestBody.mjs +9 -0
  109. package/dist/esm/api/types/PlaceRoutingPatchInputRequestBody.d.mts +10 -0
  110. package/dist/esm/api/types/PlaceRoutingRequiredSkillInputRequestBody.d.mts +7 -0
  111. package/dist/esm/api/types/PlaceRoutingServiceTimeInputRequestBody.d.mts +9 -0
  112. package/dist/esm/api/types/PlaceRoutingServiceWindowInputRequestBody.d.mts +11 -0
  113. package/dist/esm/api/types/PlaceStreetViewInputRequestBody.d.mts +17 -0
  114. package/dist/esm/api/types/PlaceStreetViewResponseResponseBody.d.mts +4 -4
  115. package/dist/esm/api/types/RoutingCapacityServiceTimeResponseResponseBody.d.mts +11 -0
  116. package/dist/esm/api/types/RoutingOrderServiceTimeResponseResponseBody.d.mts +11 -0
  117. package/dist/esm/api/types/RoutingRequiredSkillResponseResponseBody.d.mts +9 -0
  118. package/dist/esm/api/types/RoutingRequiredSkillResponseResponseBody.mjs +2 -0
  119. package/dist/esm/api/types/RoutingResponseResponseBody.d.mts +26 -0
  120. package/dist/esm/api/types/RoutingResponseResponseBody.mjs +2 -0
  121. package/dist/esm/api/types/RoutingServiceTimeResponseResponseBody.d.mts +9 -0
  122. package/dist/esm/api/types/RoutingServiceTimeResponseResponseBody.mjs +2 -0
  123. package/dist/esm/api/types/RoutingServiceWindowResponseResponseBody.d.mts +11 -0
  124. package/dist/esm/api/types/RoutingServiceWindowResponseResponseBody.mjs +2 -0
  125. package/dist/esm/api/types/TachographFileUploadResponseBody.d.mts +12 -0
  126. package/dist/esm/api/types/TachographFileUploadResponseBody.mjs +2 -0
  127. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody.d.mts +9 -0
  128. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadBadGatewayErrorResponseBody.mjs +2 -0
  129. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody.d.mts +9 -0
  130. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadGatewayTimeoutErrorResponseBody.mjs +2 -0
  131. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody.d.mts +9 -0
  132. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadInternalServerErrorResponseBody.mjs +2 -0
  133. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody.d.mts +9 -0
  134. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadMethodNotAllowedErrorResponseBody.mjs +2 -0
  135. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody.d.mts +9 -0
  136. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadNotFoundErrorResponseBody.mjs +2 -0
  137. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody.d.mts +9 -0
  138. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadNotImplementedErrorResponseBody.mjs +2 -0
  139. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadResponseBody.d.mts +4 -0
  140. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadResponseBody.mjs +2 -0
  141. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody.d.mts +9 -0
  142. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadServiceUnavailableErrorResponseBody.mjs +2 -0
  143. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody.d.mts +9 -0
  144. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadTooManyRequestsErrorResponseBody.mjs +2 -0
  145. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody.d.mts +9 -0
  146. package/dist/esm/api/types/TachographFileUploadsPostTachographFileUploadUnauthorizedErrorResponseBody.mjs +2 -0
  147. package/dist/esm/api/types/TachographUploadRequiredHeaderResponseBody.d.mts +9 -0
  148. package/dist/esm/api/types/TachographUploadRequiredHeaderResponseBody.mjs +2 -0
  149. package/dist/esm/api/types/index.d.mts +32 -14
  150. package/dist/esm/api/types/index.mjs +32 -14
  151. package/dist/esm/version.d.mts +1 -1
  152. package/dist/esm/version.mjs +1 -1
  153. package/package.json +1 -1
  154. package/reference.md +87 -10
  155. package/dist/cjs/api/types/HubLocationCapacityServiceTimeResponseResponseBody.d.ts +0 -11
  156. package/dist/cjs/api/types/HubLocationOrderServiceTimeResponseResponseBody.d.ts +0 -12
  157. package/dist/cjs/api/types/HubLocationRequiredSkillResponseResponseBody.d.ts +0 -7
  158. package/dist/cjs/api/types/HubLocationResponseResponseBody.d.ts +0 -32
  159. package/dist/cjs/api/types/HubLocationServiceTimeResponseResponseBody.d.ts +0 -9
  160. package/dist/cjs/api/types/HubLocationServiceWindowResponseResponseBody.d.ts +0 -11
  161. package/dist/cjs/api/types/PatchPlaceHubLocationUpsertBodyRequestBody.d.ts +0 -32
  162. package/dist/cjs/api/types/PatchPlaceHubLocationsBodyRequestBody.d.ts +0 -10
  163. package/dist/cjs/api/types/PlaceHubLocationCapacityServiceTimeInputRequestBody.d.ts +0 -11
  164. package/dist/cjs/api/types/PlaceHubLocationOrderServiceTimeInputRequestBody.d.ts +0 -22
  165. package/dist/cjs/api/types/PlaceHubLocationOrderServiceTimeInputRequestBody.js +0 -14
  166. package/dist/cjs/api/types/PlaceHubLocationRequiredSkillInputRequestBody.d.ts +0 -7
  167. package/dist/cjs/api/types/PlaceHubLocationServiceTimeInputRequestBody.d.ts +0 -9
  168. package/dist/cjs/api/types/PlaceHubLocationServiceWindowInputRequestBody.d.ts +0 -11
  169. package/dist/cjs/api/types/PlaceStreetViewResponseRequestBody.d.ts +0 -17
  170. package/dist/esm/api/types/HubLocationCapacityServiceTimeResponseResponseBody.d.mts +0 -11
  171. package/dist/esm/api/types/HubLocationOrderServiceTimeResponseResponseBody.d.mts +0 -12
  172. package/dist/esm/api/types/HubLocationRequiredSkillResponseResponseBody.d.mts +0 -7
  173. package/dist/esm/api/types/HubLocationResponseResponseBody.d.mts +0 -32
  174. package/dist/esm/api/types/HubLocationServiceTimeResponseResponseBody.d.mts +0 -9
  175. package/dist/esm/api/types/HubLocationServiceWindowResponseResponseBody.d.mts +0 -11
  176. package/dist/esm/api/types/PatchPlaceHubLocationUpsertBodyRequestBody.d.mts +0 -32
  177. package/dist/esm/api/types/PatchPlaceHubLocationsBodyRequestBody.d.mts +0 -10
  178. package/dist/esm/api/types/PlaceHubLocationCapacityServiceTimeInputRequestBody.d.mts +0 -11
  179. package/dist/esm/api/types/PlaceHubLocationOrderServiceTimeInputRequestBody.d.mts +0 -22
  180. package/dist/esm/api/types/PlaceHubLocationOrderServiceTimeInputRequestBody.mjs +0 -11
  181. package/dist/esm/api/types/PlaceHubLocationRequiredSkillInputRequestBody.d.mts +0 -7
  182. package/dist/esm/api/types/PlaceHubLocationServiceTimeInputRequestBody.d.mts +0 -9
  183. package/dist/esm/api/types/PlaceHubLocationServiceWindowInputRequestBody.d.mts +0 -11
  184. package/dist/esm/api/types/PlaceStreetViewResponseRequestBody.d.mts +0 -17
  185. /package/dist/cjs/api/types/{HubLocationCapacityServiceTimeResponseResponseBody.js → PlaceGeofenceCircleInputRequestBody.js} +0 -0
  186. /package/dist/cjs/api/types/{HubLocationOrderServiceTimeResponseResponseBody.js → PlaceGeofenceCircleResponseResponseBody.js} +0 -0
  187. /package/dist/cjs/api/types/{HubLocationRequiredSkillResponseResponseBody.js → PlaceGeofencePolygonInputRequestBody.js} +0 -0
  188. /package/dist/cjs/api/types/{HubLocationResponseResponseBody.js → PlaceGeofencePolygonResponseResponseBody.js} +0 -0
  189. /package/dist/cjs/api/types/{HubLocationServiceTimeResponseResponseBody.js → PlaceRoutingCapacityServiceTimeInputRequestBody.js} +0 -0
  190. /package/dist/cjs/api/types/{HubLocationServiceWindowResponseResponseBody.js → PlaceRoutingInputRequestBody.js} +0 -0
  191. /package/dist/cjs/api/types/{PatchPlaceHubLocationUpsertBodyRequestBody.js → PlaceRoutingPatchInputRequestBody.js} +0 -0
  192. /package/dist/cjs/api/types/{PatchPlaceHubLocationsBodyRequestBody.js → PlaceRoutingRequiredSkillInputRequestBody.js} +0 -0
  193. /package/dist/cjs/api/types/{PlaceHubLocationCapacityServiceTimeInputRequestBody.js → PlaceRoutingServiceTimeInputRequestBody.js} +0 -0
  194. /package/dist/cjs/api/types/{PlaceHubLocationRequiredSkillInputRequestBody.js → PlaceRoutingServiceWindowInputRequestBody.js} +0 -0
  195. /package/dist/cjs/api/types/{PlaceHubLocationServiceTimeInputRequestBody.js → PlaceStreetViewInputRequestBody.js} +0 -0
  196. /package/dist/cjs/api/types/{PlaceHubLocationServiceWindowInputRequestBody.js → RoutingCapacityServiceTimeResponseResponseBody.js} +0 -0
  197. /package/dist/cjs/api/types/{PlaceStreetViewResponseRequestBody.js → RoutingOrderServiceTimeResponseResponseBody.js} +0 -0
  198. /package/dist/esm/api/types/{HubLocationCapacityServiceTimeResponseResponseBody.mjs → PlaceGeofenceCircleInputRequestBody.mjs} +0 -0
  199. /package/dist/esm/api/types/{HubLocationOrderServiceTimeResponseResponseBody.mjs → PlaceGeofenceCircleResponseResponseBody.mjs} +0 -0
  200. /package/dist/esm/api/types/{HubLocationRequiredSkillResponseResponseBody.mjs → PlaceGeofencePolygonInputRequestBody.mjs} +0 -0
  201. /package/dist/esm/api/types/{HubLocationResponseResponseBody.mjs → PlaceGeofencePolygonResponseResponseBody.mjs} +0 -0
  202. /package/dist/esm/api/types/{HubLocationServiceTimeResponseResponseBody.mjs → PlaceRoutingCapacityServiceTimeInputRequestBody.mjs} +0 -0
  203. /package/dist/esm/api/types/{HubLocationServiceWindowResponseResponseBody.mjs → PlaceRoutingInputRequestBody.mjs} +0 -0
  204. /package/dist/esm/api/types/{PatchPlaceHubLocationUpsertBodyRequestBody.mjs → PlaceRoutingPatchInputRequestBody.mjs} +0 -0
  205. /package/dist/esm/api/types/{PatchPlaceHubLocationsBodyRequestBody.mjs → PlaceRoutingRequiredSkillInputRequestBody.mjs} +0 -0
  206. /package/dist/esm/api/types/{PlaceHubLocationCapacityServiceTimeInputRequestBody.mjs → PlaceRoutingServiceTimeInputRequestBody.mjs} +0 -0
  207. /package/dist/esm/api/types/{PlaceHubLocationRequiredSkillInputRequestBody.mjs → PlaceRoutingServiceWindowInputRequestBody.mjs} +0 -0
  208. /package/dist/esm/api/types/{PlaceHubLocationServiceTimeInputRequestBody.mjs → PlaceStreetViewInputRequestBody.mjs} +0 -0
  209. /package/dist/esm/api/types/{PlaceHubLocationServiceWindowInputRequestBody.mjs → RoutingCapacityServiceTimeResponseResponseBody.mjs} +0 -0
  210. /package/dist/esm/api/types/{PlaceStreetViewResponseRequestBody.mjs → RoutingOrderServiceTimeResponseResponseBody.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.22.0",
48
- "User-Agent": "@samsarahq/samsara/13.22.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
  */
@@ -1469,6 +1469,7 @@ export declare class BetaApIsClient {
1469
1469
  * @example
1470
1470
  * await client.betaApIs.postPlace({
1471
1471
  * address: "123 Main St, Oakland, CA",
1472
+ * geofence: {},
1472
1473
  * name: "Oakland Yard"
1473
1474
  * })
1474
1475
  */
@@ -1991,19 +1992,14 @@ export declare class BetaApIsClient {
1991
1992
  * * `engineRpm`
1992
1993
  * * `engineState` (values: off | running | idling)
1993
1994
  * * `faultCodes`
1994
- * * `faultCodesJ1939`
1995
- * * `faultCodesOBDII`
1996
1995
  * * `fuelLevelPerc`
1997
1996
  * * `gps`
1998
- * * `location`
1999
1997
  * * `odometerEcu`
2000
1998
  * * `oilPressure`
2001
1999
  *
2002
2000
  * </details>
2003
2001
  *
2004
- * **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.
2005
- *
2006
- * 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).
2007
2003
  *
2008
2004
  * Related guide: [Readings](https://developers.samsara.com/docs/readings).
2009
2005
  *
@@ -2519,7 +2515,7 @@ export declare class BetaApIsClient {
2519
2515
  *
2520
2516
  * @example
2521
2517
  * await client.betaApIs.patchSafetyEventsV2Batch({
2522
- * 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"]
2523
2519
  * })
2524
2520
  */
2525
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
  */
@@ -4338,6 +4338,7 @@ class BetaApIsClient {
4338
4338
  * @example
4339
4339
  * await client.betaApIs.postPlace({
4340
4340
  * address: "123 Main St, Oakland, CA",
4341
+ * geofence: {},
4341
4342
  * name: "Oakland Yard"
4342
4343
  * })
4343
4344
  */
@@ -5838,19 +5839,14 @@ class BetaApIsClient {
5838
5839
  * * `engineRpm`
5839
5840
  * * `engineState` (values: off | running | idling)
5840
5841
  * * `faultCodes`
5841
- * * `faultCodesJ1939`
5842
- * * `faultCodesOBDII`
5843
5842
  * * `fuelLevelPerc`
5844
5843
  * * `gps`
5845
- * * `location`
5846
5844
  * * `odometerEcu`
5847
5845
  * * `oilPressure`
5848
5846
  *
5849
5847
  * </details>
5850
5848
  *
5851
- * **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.
5852
- *
5853
- * 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).
5854
5850
  *
5855
5851
  * Related guide: [Readings](https://developers.samsara.com/docs/readings).
5856
5852
  *
@@ -7298,7 +7294,7 @@ class BetaApIsClient {
7298
7294
  *
7299
7295
  * @example
7300
7296
  * await client.betaApIs.patchSafetyEventsV2Batch({
7301
- * 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"]
7302
7298
  * })
7303
7299
  */
7304
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
  */
@@ -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
  }
@@ -2,7 +2,7 @@ import type * as Samsara from "../../../../index.js";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
5
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
6
6
  * }
7
7
  */
8
8
  export interface SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
@@ -98,7 +98,7 @@ export declare class MediaClient {
98
98
  * @example
99
99
  * await client.media.postMediaRetrieval({
100
100
  * endTime: "2019-06-13T19:08:55Z",
101
- * inputs: ["dashcamRoadFacing", "dashcamRoadFacing"],
101
+ * inputs: ["dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing"],
102
102
  * mediaType: "image",
103
103
  * startTime: "2019-06-13T19:08:25Z",
104
104
  * vehicleId: "1234"
@@ -274,7 +274,7 @@ class MediaClient {
274
274
  * @example
275
275
  * await client.media.postMediaRetrieval({
276
276
  * endTime: "2019-06-13T19:08:55Z",
277
- * inputs: ["dashcamRoadFacing", "dashcamRoadFacing"],
277
+ * inputs: ["dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing"],
278
278
  * mediaType: "image",
279
279
  * startTime: "2019-06-13T19:08:25Z",
280
280
  * vehicleId: "1234"
@@ -2,7 +2,7 @@
2
2
  * @example
3
3
  * {
4
4
  * endTime: "2019-06-13T19:08:55Z",
5
- * inputs: ["dashcamRoadFacing", "dashcamRoadFacing"],
5
+ * inputs: ["dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing"],
6
6
  * mediaType: "image",
7
7
  * startTime: "2019-06-13T19:08:25Z",
8
8
  * vehicleId: "1234"
@@ -46,6 +46,45 @@ export declare class PreviewApIsClient {
46
46
  */
47
47
  createDriverAuthToken(request: Samsara.DriversAuthTokenCreateDriverAuthTokenRequestBody, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.DriversAuthTokenCreateDriverAuthTokenResponseBody>;
48
48
  private __createDriverAuthToken;
49
+ /**
50
+ * Reserve a tachograph file upload and return a presigned URL. Upload the file bytes directly to the URL with the returned headers. The driver or device the file belongs to is resolved from the file contents after upload.
51
+ *
52
+ * <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>).
53
+ *
54
+ * To use this endpoint, select **Write Tachograph (EU)** under the Compliance 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>
55
+ *
56
+ * Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
57
+ *
58
+ * - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
59
+ *
60
+ * - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
61
+ *
62
+ *
63
+ * **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.
64
+ *
65
+ * @param {Samsara.TachographFileUploadsPostTachographFileUploadRequestBody} request
66
+ * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Samsara.UnauthorizedError}
69
+ * @throws {@link Samsara.NotFoundError}
70
+ * @throws {@link Samsara.MethodNotAllowedError}
71
+ * @throws {@link Samsara.TooManyRequestsError}
72
+ * @throws {@link Samsara.InternalServerError}
73
+ * @throws {@link Samsara.NotImplementedError}
74
+ * @throws {@link Samsara.BadGatewayError}
75
+ * @throws {@link Samsara.ServiceUnavailableError}
76
+ * @throws {@link Samsara.GatewayTimeoutError}
77
+ *
78
+ * @example
79
+ * await client.previewApIs.postTachographFileUpload({
80
+ * contentMd5: "rL0Y20zC+Fzt72VPzMSk2A==",
81
+ * contentType: "application/octet-stream",
82
+ * fileSizeBytes: 8192,
83
+ * fileType: "driverCard"
84
+ * })
85
+ */
86
+ postTachographFileUpload(request: Samsara.TachographFileUploadsPostTachographFileUploadRequestBody, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.TachographFileUploadsPostTachographFileUploadResponseBody>;
87
+ private __postTachographFileUpload;
49
88
  /**
50
89
  * Lock a vehicle. This requires a vehicle gateway with locking capabilities.
51
90
  *
@@ -148,6 +148,102 @@ class PreviewApIsClient {
148
148
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/preview/fleet/drivers/create-auth-token");
149
149
  });
150
150
  }
151
+ /**
152
+ * Reserve a tachograph file upload and return a presigned URL. Upload the file bytes directly to the URL with the returned headers. The driver or device the file belongs to is resolved from the file contents after upload.
153
+ *
154
+ * <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>).
155
+ *
156
+ * To use this endpoint, select **Write Tachograph (EU)** under the Compliance 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>
157
+ *
158
+ * Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
159
+ *
160
+ * - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
161
+ *
162
+ * - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
163
+ *
164
+ *
165
+ * **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.
166
+ *
167
+ * @param {Samsara.TachographFileUploadsPostTachographFileUploadRequestBody} request
168
+ * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
169
+ *
170
+ * @throws {@link Samsara.UnauthorizedError}
171
+ * @throws {@link Samsara.NotFoundError}
172
+ * @throws {@link Samsara.MethodNotAllowedError}
173
+ * @throws {@link Samsara.TooManyRequestsError}
174
+ * @throws {@link Samsara.InternalServerError}
175
+ * @throws {@link Samsara.NotImplementedError}
176
+ * @throws {@link Samsara.BadGatewayError}
177
+ * @throws {@link Samsara.ServiceUnavailableError}
178
+ * @throws {@link Samsara.GatewayTimeoutError}
179
+ *
180
+ * @example
181
+ * await client.previewApIs.postTachographFileUpload({
182
+ * contentMd5: "rL0Y20zC+Fzt72VPzMSk2A==",
183
+ * contentType: "application/octet-stream",
184
+ * fileSizeBytes: 8192,
185
+ * fileType: "driverCard"
186
+ * })
187
+ */
188
+ postTachographFileUpload(request, requestOptions) {
189
+ return core.HttpResponsePromise.fromPromise(this.__postTachographFileUpload(request, requestOptions));
190
+ }
191
+ __postTachographFileUpload(request, requestOptions) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
194
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
195
+ 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);
196
+ const _response = yield core.fetcher({
197
+ 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, "preview/fleet/tachograph/file-uploads"),
198
+ method: "POST",
199
+ headers: _headers,
200
+ contentType: "application/json",
201
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
202
+ requestType: "json",
203
+ body: request,
204
+ 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,
205
+ 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,
206
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
207
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
208
+ logging: this._options.logging,
209
+ });
210
+ if (_response.ok) {
211
+ return {
212
+ data: _response.body,
213
+ rawResponse: _response.rawResponse,
214
+ };
215
+ }
216
+ if (_response.error.reason === "status-code") {
217
+ switch (_response.error.statusCode) {
218
+ case 401:
219
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
220
+ case 404:
221
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
222
+ case 405:
223
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
224
+ case 429:
225
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
226
+ case 500:
227
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
228
+ case 501:
229
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
230
+ case 502:
231
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
232
+ case 503:
233
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
234
+ case 504:
235
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
236
+ default:
237
+ throw new errors.SamsaraError({
238
+ statusCode: _response.error.statusCode,
239
+ body: _response.error.body,
240
+ rawResponse: _response.rawResponse,
241
+ });
242
+ }
243
+ }
244
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/preview/fleet/tachograph/file-uploads");
245
+ });
246
+ }
151
247
  /**
152
248
  * Lock a vehicle. This requires a vehicle gateway with locking capabilities.
153
249
  *
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * contentMd5: "rL0Y20zC+Fzt72VPzMSk2A==",
5
+ * contentType: "application/octet-stream",
6
+ * fileSizeBytes: 8192,
7
+ * fileType: "driverCard"
8
+ * }
9
+ */
10
+ export interface TachographFileUploadsPostTachographFileUploadRequestBody {
11
+ /** Base64-encoded MD5 digest of the file bytes (base64(md5(bytes))). Used as the Content-MD5 integrity check enforced by object storage on upload. */
12
+ contentMd5: string;
13
+ /** The MIME content type of the file. The upload is sent to object storage as raw bytes. Valid values: `application/octet-stream` */
14
+ contentType: TachographFileUploadsPostTachographFileUploadRequestBody.ContentType;
15
+ /** The size of the file in bytes. Enforced as the Content-Length on upload and validated against the maximum allowed tachograph file size. */
16
+ fileSizeBytes: number;
17
+ /** The kind of tachograph file being uploaded. The driver or device the file belongs to is resolved from the file contents, not from this field. Valid values: `driverCard`, `vehicleUnit` */
18
+ fileType: TachographFileUploadsPostTachographFileUploadRequestBody.FileType;
19
+ }
20
+ export declare namespace TachographFileUploadsPostTachographFileUploadRequestBody {
21
+ /** The MIME content type of the file. The upload is sent to object storage as raw bytes. Valid values: `application/octet-stream` */
22
+ const ContentType: {
23
+ readonly ApplicationOctetStream: "application/octet-stream";
24
+ };
25
+ type ContentType = (typeof ContentType)[keyof typeof ContentType];
26
+ /** The kind of tachograph file being uploaded. The driver or device the file belongs to is resolved from the file contents, not from this field. Valid values: `driverCard`, `vehicleUnit` */
27
+ const FileType: {
28
+ readonly DriverCard: "driverCard";
29
+ readonly VehicleUnit: "vehicleUnit";
30
+ };
31
+ type FileType = (typeof FileType)[keyof typeof FileType];
32
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TachographFileUploadsPostTachographFileUploadRequestBody = void 0;
5
+ var TachographFileUploadsPostTachographFileUploadRequestBody;
6
+ (function (TachographFileUploadsPostTachographFileUploadRequestBody) {
7
+ /** The MIME content type of the file. The upload is sent to object storage as raw bytes. Valid values: `application/octet-stream` */
8
+ TachographFileUploadsPostTachographFileUploadRequestBody.ContentType = {
9
+ ApplicationOctetStream: "application/octet-stream",
10
+ };
11
+ /** The kind of tachograph file being uploaded. The driver or device the file belongs to is resolved from the file contents, not from this field. Valid values: `driverCard`, `vehicleUnit` */
12
+ TachographFileUploadsPostTachographFileUploadRequestBody.FileType = {
13
+ DriverCard: "driverCard",
14
+ VehicleUnit: "vehicleUnit",
15
+ };
16
+ })(TachographFileUploadsPostTachographFileUploadRequestBody || (exports.TachographFileUploadsPostTachographFileUploadRequestBody = TachographFileUploadsPostTachographFileUploadRequestBody = {}));
@@ -1,3 +1,4 @@
1
1
  export type { DriversAuthTokenCreateDriverAuthTokenRequestBody } from "./DriversAuthTokenCreateDriverAuthTokenRequestBody.js";
2
2
  export type { LockVehicleRequest } from "./LockVehicleRequest.js";
3
+ export { TachographFileUploadsPostTachographFileUploadRequestBody } from "./TachographFileUploadsPostTachographFileUploadRequestBody.js";
3
4
  export type { UnlockVehicleRequest } from "./UnlockVehicleRequest.js";
@@ -1,2 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TachographFileUploadsPostTachographFileUploadRequestBody = void 0;
4
+ var TachographFileUploadsPostTachographFileUploadRequestBody_js_1 = require("./TachographFileUploadsPostTachographFileUploadRequestBody.js");
5
+ Object.defineProperty(exports, "TachographFileUploadsPostTachographFileUploadRequestBody", { enumerable: true, get: function () { return TachographFileUploadsPostTachographFileUploadRequestBody_js_1.TachographFileUploadsPostTachographFileUploadRequestBody; } });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Circle geofence on write.
3
+ */
4
+ export interface PlaceGeofenceCircleInputRequestBody {
5
+ /** Circle center latitude in decimal degrees. */
6
+ latitude: number;
7
+ /** Circle center longitude in decimal degrees. */
8
+ longitude: number;
9
+ /** Radius in meters; must be positive. */
10
+ radiusMeters: number;
11
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Circle geofence geometry.
3
+ */
4
+ export interface PlaceGeofenceCircleResponseResponseBody {
5
+ /** Circle center latitude in decimal degrees. */
6
+ latitude: number;
7
+ /** Circle center longitude in decimal degrees. */
8
+ longitude: number;
9
+ /** Radius in meters; must be positive. */
10
+ radiusMeters: number;
11
+ }
@@ -0,0 +1,18 @@
1
+ import type * as Samsara from "../index.js";
2
+ /**
3
+ * Discriminated geofence on write. Exactly one of circle or polygon must be set.
4
+ */
5
+ export interface PlaceGeofenceInputRequestBody {
6
+ circle?: Samsara.PlaceGeofenceCircleInputRequestBody | undefined;
7
+ polygon?: Samsara.PlaceGeofencePolygonInputRequestBody | undefined;
8
+ /** Geofence type: circle or polygon. When present, must match the populated branch. Valid values: `circle`, `polygon` */
9
+ type?: PlaceGeofenceInputRequestBody.Type | undefined;
10
+ }
11
+ export declare namespace PlaceGeofenceInputRequestBody {
12
+ /** Geofence type: circle or polygon. When present, must match the populated branch. Valid values: `circle`, `polygon` */
13
+ const Type: {
14
+ readonly Circle: "circle";
15
+ readonly Polygon: "polygon";
16
+ };
17
+ type Type = (typeof Type)[keyof typeof Type];
18
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PlaceGeofenceInputRequestBody = void 0;
5
+ var PlaceGeofenceInputRequestBody;
6
+ (function (PlaceGeofenceInputRequestBody) {
7
+ /** Geofence type: circle or polygon. When present, must match the populated branch. Valid values: `circle`, `polygon` */
8
+ PlaceGeofenceInputRequestBody.Type = {
9
+ Circle: "circle",
10
+ Polygon: "polygon",
11
+ };
12
+ })(PlaceGeofenceInputRequestBody || (exports.PlaceGeofenceInputRequestBody = PlaceGeofenceInputRequestBody = {}));
@@ -0,0 +1,8 @@
1
+ import type * as Samsara from "../index.js";
2
+ /**
3
+ * Polygon geofence on write.
4
+ */
5
+ export interface PlaceGeofencePolygonInputRequestBody {
6
+ /** Polygon vertices; at least three. */
7
+ vertices: Samsara.GeofenceVertexInputRequestBody[];
8
+ }
@@ -0,0 +1,8 @@
1
+ import type * as Samsara from "../index.js";
2
+ /**
3
+ * Polygon geofence geometry.
4
+ */
5
+ export interface PlaceGeofencePolygonResponseResponseBody {
6
+ /** Polygon vertices; at least three. */
7
+ vertices: Samsara.PlaceGeofenceVertexResponseResponseBody[];
8
+ }
@@ -0,0 +1,19 @@
1
+ import type * as Samsara from "../index.js";
2
+ /**
3
+ * Discriminated place geofence. GET returns circle, polygon, or unknown when stored geometry cannot be mapped.
4
+ */
5
+ export interface PlaceGeofenceResponseResponseBody {
6
+ circle?: Samsara.PlaceGeofenceCircleResponseResponseBody | undefined;
7
+ polygon?: Samsara.PlaceGeofencePolygonResponseResponseBody | undefined;
8
+ /** Geofence type: circle, polygon, or unknown. Valid values: `circle`, `polygon`, `unknown` */
9
+ type: PlaceGeofenceResponseResponseBody.Type;
10
+ }
11
+ export declare namespace PlaceGeofenceResponseResponseBody {
12
+ /** Geofence type: circle, polygon, or unknown. Valid values: `circle`, `polygon`, `unknown` */
13
+ const Type: {
14
+ readonly Circle: "circle";
15
+ readonly Polygon: "polygon";
16
+ readonly Unknown: "unknown";
17
+ };
18
+ type Type = (typeof Type)[keyof typeof Type];
19
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PlaceGeofenceResponseResponseBody = void 0;
5
+ var PlaceGeofenceResponseResponseBody;
6
+ (function (PlaceGeofenceResponseResponseBody) {
7
+ /** Geofence type: circle, polygon, or unknown. Valid values: `circle`, `polygon`, `unknown` */
8
+ PlaceGeofenceResponseResponseBody.Type = {
9
+ Circle: "circle",
10
+ Polygon: "polygon",
11
+ Unknown: "unknown",
12
+ };
13
+ })(PlaceGeofenceResponseResponseBody || (exports.PlaceGeofenceResponseResponseBody = PlaceGeofenceResponseResponseBody = {}));
@@ -11,10 +11,7 @@ export interface PlaceResponseObjectResponseBody {
11
11
  createdAtTime: string;
12
12
  /** External ids when includeExternalIds=true. */
13
13
  externalIds?: PlaceResponseObjectResponseBody.ExternalIds | undefined;
14
- /** Polygon vertices when applicable. */
15
- geofence?: Samsara.PlaceGeofenceVertexResponseResponseBody[] | undefined;
16
- /** Route-planning hub location rows when present. */
17
- hubLocations?: Samsara.HubLocationResponseResponseBody[] | undefined;
14
+ geofence: Samsara.PlaceGeofenceResponseResponseBody;
18
15
  /** Samsara place id. */
19
16
  id: string;
20
17
  /** IFTA exemption labels. */
@@ -23,10 +20,6 @@ export interface PlaceResponseObjectResponseBody {
23
20
  isAutoDismissRolledStopsEnabled?: boolean | undefined;
24
21
  /** Show addresses inside geofence. */
25
22
  isShowAddressesEnabled?: boolean | undefined;
26
- /** Center latitude when applicable. */
27
- latitude?: number | undefined;
28
- /** Center longitude when applicable. */
29
- longitude?: number | undefined;
30
23
  /** Place name. */
31
24
  name: string;
32
25
  navigation?: Samsara.PlaceNavigationResponseResponseBody | undefined;
@@ -34,8 +27,8 @@ export interface PlaceResponseObjectResponseBody {
34
27
  notes?: string | undefined;
35
28
  /** Assigned place types. */
36
29
  placeTypes?: string[] | undefined;
37
- /** Circle radius in meters when geometry is a point + buffer. */
38
- radiusMeters?: number | undefined;
30
+ /** Route-planning rows when present. */
31
+ routing?: Samsara.RoutingResponseResponseBody[] | undefined;
39
32
  /** Configured safety exclusions. */
40
33
  safetyEventExclusions?: string[] | undefined;
41
34
  streetView?: Samsara.PlaceStreetViewResponseResponseBody | undefined;