@samsarahq/samsara 13.23.0 → 13.24.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 (184) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +56 -0
  3. package/dist/cjs/api/resources/betaApIs/client/Client.js +113 -0
  4. package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.d.ts +1 -1
  5. package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/betaApIs/client/requests/index.js +3 -1
  7. package/dist/cjs/api/resources/previewApIs/client/Client.d.ts +82 -9
  8. package/dist/cjs/api/resources/previewApIs/client/Client.js +204 -12
  9. package/dist/cjs/api/resources/previewApIs/client/requests/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody.d.ts +53 -0
  10. package/dist/cjs/api/resources/previewApIs/client/requests/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody.js +27 -0
  11. package/dist/cjs/api/resources/previewApIs/client/requests/GetFleetInstallerPhotoUploadsRequest.d.ts +14 -0
  12. package/dist/cjs/api/resources/previewApIs/client/requests/GetFleetInstallerPhotoUploadsRequest.js +3 -0
  13. package/dist/cjs/api/resources/previewApIs/client/requests/PostFleetInstallerPhotoUploadCompleteRequest.d.ts +10 -0
  14. package/dist/cjs/api/resources/previewApIs/client/requests/PostFleetInstallerPhotoUploadCompleteRequest.js +3 -0
  15. package/dist/cjs/api/resources/previewApIs/client/requests/index.d.ts +3 -1
  16. package/dist/cjs/api/resources/previewApIs/client/requests/index.js +3 -3
  17. package/dist/cjs/api/types/FleetInstallerPhotoUploadContextResponseBody.d.ts +11 -0
  18. package/dist/cjs/api/types/FleetInstallerPhotoUploadContextResponseBody.js +3 -0
  19. package/dist/cjs/api/types/FleetInstallerPhotoUploadCreateDataResponseBody.d.ts +65 -0
  20. package/dist/cjs/api/types/FleetInstallerPhotoUploadCreateDataResponseBody.js +37 -0
  21. package/dist/cjs/api/types/FleetInstallerPhotoUploadSessionResponseBody.d.ts +63 -0
  22. package/dist/cjs/api/types/FleetInstallerPhotoUploadSessionResponseBody.js +37 -0
  23. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsBadGatewayErrorResponseBody.d.ts +9 -0
  24. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsBadGatewayErrorResponseBody.js +3 -0
  25. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsGatewayTimeoutErrorResponseBody.d.ts +9 -0
  26. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsGatewayTimeoutErrorResponseBody.js +3 -0
  27. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsInternalServerErrorResponseBody.d.ts +9 -0
  28. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsInternalServerErrorResponseBody.js +3 -0
  29. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsMethodNotAllowedErrorResponseBody.d.ts +9 -0
  30. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsMethodNotAllowedErrorResponseBody.js +3 -0
  31. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotFoundErrorResponseBody.d.ts +9 -0
  32. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotFoundErrorResponseBody.js +3 -0
  33. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotImplementedErrorResponseBody.d.ts +9 -0
  34. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotImplementedErrorResponseBody.js +3 -0
  35. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsResponseBody.d.ts +6 -0
  36. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsResponseBody.js +3 -0
  37. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsServiceUnavailableErrorResponseBody.d.ts +9 -0
  38. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsServiceUnavailableErrorResponseBody.js +3 -0
  39. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsTooManyRequestsErrorResponseBody.d.ts +9 -0
  40. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsTooManyRequestsErrorResponseBody.js +3 -0
  41. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsUnauthorizedErrorResponseBody.d.ts +9 -0
  42. package/dist/cjs/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsUnauthorizedErrorResponseBody.js +3 -0
  43. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadBadGatewayErrorResponseBody.d.ts +9 -0
  44. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadBadGatewayErrorResponseBody.js +3 -0
  45. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteBadGatewayErrorResponseBody.d.ts +9 -0
  46. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteBadGatewayErrorResponseBody.js +3 -0
  47. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteGatewayTimeoutErrorResponseBody.d.ts +9 -0
  48. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteGatewayTimeoutErrorResponseBody.js +3 -0
  49. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteInternalServerErrorResponseBody.d.ts +9 -0
  50. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteInternalServerErrorResponseBody.js +3 -0
  51. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteMethodNotAllowedErrorResponseBody.d.ts +9 -0
  52. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteMethodNotAllowedErrorResponseBody.js +3 -0
  53. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotFoundErrorResponseBody.d.ts +9 -0
  54. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotFoundErrorResponseBody.js +3 -0
  55. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotImplementedErrorResponseBody.d.ts +9 -0
  56. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotImplementedErrorResponseBody.js +3 -0
  57. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteResponseBody.d.ts +4 -0
  58. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteResponseBody.js +3 -0
  59. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteServiceUnavailableErrorResponseBody.d.ts +9 -0
  60. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteServiceUnavailableErrorResponseBody.js +3 -0
  61. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteTooManyRequestsErrorResponseBody.d.ts +9 -0
  62. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteTooManyRequestsErrorResponseBody.js +3 -0
  63. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteUnauthorizedErrorResponseBody.d.ts +9 -0
  64. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteUnauthorizedErrorResponseBody.js +3 -0
  65. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadGatewayTimeoutErrorResponseBody.d.ts +9 -0
  66. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadGatewayTimeoutErrorResponseBody.js +3 -0
  67. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadInternalServerErrorResponseBody.d.ts +9 -0
  68. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadInternalServerErrorResponseBody.js +3 -0
  69. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadMethodNotAllowedErrorResponseBody.d.ts +9 -0
  70. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadMethodNotAllowedErrorResponseBody.js +3 -0
  71. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotFoundErrorResponseBody.d.ts +9 -0
  72. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotFoundErrorResponseBody.js +3 -0
  73. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotImplementedErrorResponseBody.d.ts +9 -0
  74. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotImplementedErrorResponseBody.js +3 -0
  75. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadResponseBody.d.ts +4 -0
  76. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadResponseBody.js +3 -0
  77. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadServiceUnavailableErrorResponseBody.d.ts +9 -0
  78. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadServiceUnavailableErrorResponseBody.js +3 -0
  79. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadTooManyRequestsErrorResponseBody.d.ts +9 -0
  80. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadTooManyRequestsErrorResponseBody.js +3 -0
  81. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadUnauthorizedErrorResponseBody.d.ts +9 -0
  82. package/dist/cjs/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadUnauthorizedErrorResponseBody.js +3 -0
  83. package/dist/cjs/api/types/FormSubmissionResponseObjectResponseBody.d.ts +2 -0
  84. package/dist/cjs/api/types/MediaObjectResponseBody.d.ts +2 -0
  85. package/dist/cjs/api/types/PlaceRoutingInputRequestBody.d.ts +4 -4
  86. package/dist/cjs/api/types/RoutingResponseResponseBody.d.ts +4 -4
  87. package/dist/cjs/api/types/index.d.ts +33 -0
  88. package/dist/cjs/api/types/index.js +33 -0
  89. package/dist/cjs/version.d.ts +1 -1
  90. package/dist/cjs/version.js +1 -1
  91. package/dist/esm/BaseClient.mjs +2 -2
  92. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +56 -0
  93. package/dist/esm/api/resources/betaApIs/client/Client.mjs +113 -0
  94. package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.d.mts +1 -1
  95. package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +1 -0
  96. package/dist/esm/api/resources/betaApIs/client/requests/index.mjs +1 -0
  97. package/dist/esm/api/resources/previewApIs/client/Client.d.mts +82 -9
  98. package/dist/esm/api/resources/previewApIs/client/Client.mjs +204 -12
  99. package/dist/esm/api/resources/previewApIs/client/requests/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody.d.mts +53 -0
  100. package/dist/esm/api/resources/previewApIs/client/requests/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody.mjs +24 -0
  101. package/dist/esm/api/resources/previewApIs/client/requests/GetFleetInstallerPhotoUploadsRequest.d.mts +14 -0
  102. package/dist/esm/api/resources/previewApIs/client/requests/GetFleetInstallerPhotoUploadsRequest.mjs +2 -0
  103. package/dist/esm/api/resources/previewApIs/client/requests/PostFleetInstallerPhotoUploadCompleteRequest.d.mts +10 -0
  104. package/dist/esm/api/resources/previewApIs/client/requests/PostFleetInstallerPhotoUploadCompleteRequest.mjs +2 -0
  105. package/dist/esm/api/resources/previewApIs/client/requests/index.d.mts +3 -1
  106. package/dist/esm/api/resources/previewApIs/client/requests/index.mjs +1 -1
  107. package/dist/esm/api/types/FleetInstallerPhotoUploadContextResponseBody.d.mts +11 -0
  108. package/dist/esm/api/types/FleetInstallerPhotoUploadContextResponseBody.mjs +2 -0
  109. package/dist/esm/api/types/FleetInstallerPhotoUploadCreateDataResponseBody.d.mts +65 -0
  110. package/dist/esm/api/types/FleetInstallerPhotoUploadCreateDataResponseBody.mjs +34 -0
  111. package/dist/esm/api/types/FleetInstallerPhotoUploadSessionResponseBody.d.mts +63 -0
  112. package/dist/esm/api/types/FleetInstallerPhotoUploadSessionResponseBody.mjs +34 -0
  113. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsBadGatewayErrorResponseBody.d.mts +9 -0
  114. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsBadGatewayErrorResponseBody.mjs +2 -0
  115. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsGatewayTimeoutErrorResponseBody.d.mts +9 -0
  116. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsGatewayTimeoutErrorResponseBody.mjs +2 -0
  117. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsInternalServerErrorResponseBody.d.mts +9 -0
  118. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsInternalServerErrorResponseBody.mjs +2 -0
  119. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsMethodNotAllowedErrorResponseBody.d.mts +9 -0
  120. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsMethodNotAllowedErrorResponseBody.mjs +2 -0
  121. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotFoundErrorResponseBody.d.mts +9 -0
  122. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotFoundErrorResponseBody.mjs +2 -0
  123. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotImplementedErrorResponseBody.d.mts +9 -0
  124. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsNotImplementedErrorResponseBody.mjs +2 -0
  125. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsResponseBody.d.mts +6 -0
  126. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsResponseBody.mjs +2 -0
  127. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsServiceUnavailableErrorResponseBody.d.mts +9 -0
  128. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsServiceUnavailableErrorResponseBody.mjs +2 -0
  129. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsTooManyRequestsErrorResponseBody.d.mts +9 -0
  130. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsTooManyRequestsErrorResponseBody.mjs +2 -0
  131. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsUnauthorizedErrorResponseBody.d.mts +9 -0
  132. package/dist/esm/api/types/FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsUnauthorizedErrorResponseBody.mjs +2 -0
  133. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadBadGatewayErrorResponseBody.d.mts +9 -0
  134. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadBadGatewayErrorResponseBody.mjs +2 -0
  135. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteBadGatewayErrorResponseBody.d.mts +9 -0
  136. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteBadGatewayErrorResponseBody.mjs +2 -0
  137. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteGatewayTimeoutErrorResponseBody.d.mts +9 -0
  138. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteGatewayTimeoutErrorResponseBody.mjs +2 -0
  139. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteInternalServerErrorResponseBody.d.mts +9 -0
  140. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteInternalServerErrorResponseBody.mjs +2 -0
  141. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteMethodNotAllowedErrorResponseBody.d.mts +9 -0
  142. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteMethodNotAllowedErrorResponseBody.mjs +2 -0
  143. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotFoundErrorResponseBody.d.mts +9 -0
  144. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotFoundErrorResponseBody.mjs +2 -0
  145. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotImplementedErrorResponseBody.d.mts +9 -0
  146. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteNotImplementedErrorResponseBody.mjs +2 -0
  147. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteResponseBody.d.mts +4 -0
  148. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteResponseBody.mjs +2 -0
  149. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteServiceUnavailableErrorResponseBody.d.mts +9 -0
  150. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteServiceUnavailableErrorResponseBody.mjs +2 -0
  151. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteTooManyRequestsErrorResponseBody.d.mts +9 -0
  152. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteTooManyRequestsErrorResponseBody.mjs +2 -0
  153. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteUnauthorizedErrorResponseBody.d.mts +9 -0
  154. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteUnauthorizedErrorResponseBody.mjs +2 -0
  155. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadGatewayTimeoutErrorResponseBody.d.mts +9 -0
  156. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadGatewayTimeoutErrorResponseBody.mjs +2 -0
  157. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadInternalServerErrorResponseBody.d.mts +9 -0
  158. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadInternalServerErrorResponseBody.mjs +2 -0
  159. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadMethodNotAllowedErrorResponseBody.d.mts +9 -0
  160. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadMethodNotAllowedErrorResponseBody.mjs +2 -0
  161. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotFoundErrorResponseBody.d.mts +9 -0
  162. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotFoundErrorResponseBody.mjs +2 -0
  163. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotImplementedErrorResponseBody.d.mts +9 -0
  164. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadNotImplementedErrorResponseBody.mjs +2 -0
  165. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadResponseBody.d.mts +4 -0
  166. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadResponseBody.mjs +2 -0
  167. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadServiceUnavailableErrorResponseBody.d.mts +9 -0
  168. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadServiceUnavailableErrorResponseBody.mjs +2 -0
  169. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadTooManyRequestsErrorResponseBody.d.mts +9 -0
  170. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadTooManyRequestsErrorResponseBody.mjs +2 -0
  171. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadUnauthorizedErrorResponseBody.d.mts +9 -0
  172. package/dist/esm/api/types/FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadUnauthorizedErrorResponseBody.mjs +2 -0
  173. package/dist/esm/api/types/FormSubmissionResponseObjectResponseBody.d.mts +2 -0
  174. package/dist/esm/api/types/MediaObjectResponseBody.d.mts +2 -0
  175. package/dist/esm/api/types/PlaceRoutingInputRequestBody.d.mts +4 -4
  176. package/dist/esm/api/types/RoutingResponseResponseBody.d.mts +4 -4
  177. package/dist/esm/api/types/index.d.mts +33 -0
  178. package/dist/esm/api/types/index.mjs +33 -0
  179. package/dist/esm/version.d.mts +1 -1
  180. package/dist/esm/version.mjs +1 -1
  181. package/package.json +1 -1
  182. package/reference.md +263 -8
  183. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.js +0 -0
  184. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/TachographFileUploadsPostTachographFileUploadRequestBody.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.23.0",
48
- "User-Agent": "@samsarahq/samsara/13.23.0",
47
+ "X-Fern-SDK-Version": "13.24.0",
48
+ "User-Agent": "@samsarahq/samsara/13.24.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",
@@ -715,6 +715,62 @@ export declare class BetaApIsClient {
715
715
  */
716
716
  listTachographLiveData(request?: Samsara.ListTachographLiveDataRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody>;
717
717
  private __listTachographLiveData;
718
+ /**
719
+ * 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.
720
+ *
721
+ * **Uploading the file**
722
+ *
723
+ * Once you have the `uploadUrl` and `requiredHeaders` from the response, PUT the raw file bytes directly to the URL — do not send the request through the Samsara API servers:
724
+ *
725
+ * ```bash
726
+ * curl -X PUT "<uploadUrl>" \
727
+ * -H "Content-Type: <value from requiredHeaders>" \
728
+ * -H "Content-MD5: <value from requiredHeaders>" \
729
+ * -H "Content-Length: <value from requiredHeaders>" \
730
+ * --data-binary @/path/to/file.ddd
731
+ * ```
732
+ *
733
+ * Every header listed in `requiredHeaders` must be sent verbatim — they are part of the URL signature, and the upload is rejected with a `403` if any header is missing or has a different value.
734
+ *
735
+ * **Retrieving uploaded files**
736
+ *
737
+ * A successful response to this request reserves the upload; it does not indicate that a file has been received or processed. Uploaded files are processed asynchronously after the PUT completes. Once a file has been processed, it can be retrieved through the standard tachograph file endpoints:
738
+ *
739
+ * - **Driver-card files** — `GET /fleet/drivers/tachograph-files/history`
740
+ * - **Vehicle-unit files** — `GET /fleet/vehicles/tachograph-files/history`
741
+ *
742
+ * Files that cannot be processed — for example files that are corrupt, are not valid tachograph files, or cannot be matched to a driver or vehicle in your organization — are not retrievable through these endpoints.
743
+ *
744
+ * <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>).
745
+ *
746
+ * 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>
747
+ *
748
+ *
749
+ * **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.
750
+ *
751
+ * @param {Samsara.TachographFileUploadsPostTachographFileUploadRequestBody} request
752
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
753
+ *
754
+ * @throws {@link Samsara.UnauthorizedError}
755
+ * @throws {@link Samsara.NotFoundError}
756
+ * @throws {@link Samsara.MethodNotAllowedError}
757
+ * @throws {@link Samsara.TooManyRequestsError}
758
+ * @throws {@link Samsara.InternalServerError}
759
+ * @throws {@link Samsara.NotImplementedError}
760
+ * @throws {@link Samsara.BadGatewayError}
761
+ * @throws {@link Samsara.ServiceUnavailableError}
762
+ * @throws {@link Samsara.GatewayTimeoutError}
763
+ *
764
+ * @example
765
+ * await client.betaApIs.postTachographFileUpload({
766
+ * contentMd5: "rL0Y20zC+Fzt72VPzMSk2A==",
767
+ * contentType: "application/octet-stream",
768
+ * fileSizeBytes: 8192,
769
+ * fileType: "driverCard"
770
+ * })
771
+ */
772
+ postTachographFileUpload(request: Samsara.TachographFileUploadsPostTachographFileUploadRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.TachographFileUploadsPostTachographFileUploadResponseBody>;
773
+ private __postTachographFileUpload;
718
774
  /**
719
775
  * Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.
720
776
  *
@@ -2184,6 +2184,119 @@ class BetaApIsClient {
2184
2184
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/fleet/tachograph-live-data/latest");
2185
2185
  });
2186
2186
  }
2187
+ /**
2188
+ * 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.
2189
+ *
2190
+ * **Uploading the file**
2191
+ *
2192
+ * Once you have the `uploadUrl` and `requiredHeaders` from the response, PUT the raw file bytes directly to the URL — do not send the request through the Samsara API servers:
2193
+ *
2194
+ * ```bash
2195
+ * curl -X PUT "<uploadUrl>" \
2196
+ * -H "Content-Type: <value from requiredHeaders>" \
2197
+ * -H "Content-MD5: <value from requiredHeaders>" \
2198
+ * -H "Content-Length: <value from requiredHeaders>" \
2199
+ * --data-binary @/path/to/file.ddd
2200
+ * ```
2201
+ *
2202
+ * Every header listed in `requiredHeaders` must be sent verbatim — they are part of the URL signature, and the upload is rejected with a `403` if any header is missing or has a different value.
2203
+ *
2204
+ * **Retrieving uploaded files**
2205
+ *
2206
+ * A successful response to this request reserves the upload; it does not indicate that a file has been received or processed. Uploaded files are processed asynchronously after the PUT completes. Once a file has been processed, it can be retrieved through the standard tachograph file endpoints:
2207
+ *
2208
+ * - **Driver-card files** — `GET /fleet/drivers/tachograph-files/history`
2209
+ * - **Vehicle-unit files** — `GET /fleet/vehicles/tachograph-files/history`
2210
+ *
2211
+ * Files that cannot be processed — for example files that are corrupt, are not valid tachograph files, or cannot be matched to a driver or vehicle in your organization — are not retrievable through these endpoints.
2212
+ *
2213
+ * <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>).
2214
+ *
2215
+ * 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>
2216
+ *
2217
+ *
2218
+ * **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.
2219
+ *
2220
+ * @param {Samsara.TachographFileUploadsPostTachographFileUploadRequestBody} request
2221
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2222
+ *
2223
+ * @throws {@link Samsara.UnauthorizedError}
2224
+ * @throws {@link Samsara.NotFoundError}
2225
+ * @throws {@link Samsara.MethodNotAllowedError}
2226
+ * @throws {@link Samsara.TooManyRequestsError}
2227
+ * @throws {@link Samsara.InternalServerError}
2228
+ * @throws {@link Samsara.NotImplementedError}
2229
+ * @throws {@link Samsara.BadGatewayError}
2230
+ * @throws {@link Samsara.ServiceUnavailableError}
2231
+ * @throws {@link Samsara.GatewayTimeoutError}
2232
+ *
2233
+ * @example
2234
+ * await client.betaApIs.postTachographFileUpload({
2235
+ * contentMd5: "rL0Y20zC+Fzt72VPzMSk2A==",
2236
+ * contentType: "application/octet-stream",
2237
+ * fileSizeBytes: 8192,
2238
+ * fileType: "driverCard"
2239
+ * })
2240
+ */
2241
+ postTachographFileUpload(request, requestOptions) {
2242
+ return core.HttpResponsePromise.fromPromise(this.__postTachographFileUpload(request, requestOptions));
2243
+ }
2244
+ __postTachographFileUpload(request, requestOptions) {
2245
+ return __awaiter(this, void 0, void 0, function* () {
2246
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2247
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
2248
+ 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);
2249
+ const _response = yield core.fetcher({
2250
+ 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, "fleet/tachograph/file-uploads"),
2251
+ method: "POST",
2252
+ headers: _headers,
2253
+ contentType: "application/json",
2254
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
2255
+ requestType: "json",
2256
+ body: request,
2257
+ 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,
2258
+ 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,
2259
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2260
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
2261
+ logging: this._options.logging,
2262
+ });
2263
+ if (_response.ok) {
2264
+ return {
2265
+ data: _response.body,
2266
+ rawResponse: _response.rawResponse,
2267
+ };
2268
+ }
2269
+ if (_response.error.reason === "status-code") {
2270
+ switch (_response.error.statusCode) {
2271
+ case 401:
2272
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
2273
+ case 404:
2274
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
2275
+ case 405:
2276
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
2277
+ case 429:
2278
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
2279
+ case 500:
2280
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
2281
+ case 501:
2282
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
2283
+ case 502:
2284
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
2285
+ case 503:
2286
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
2287
+ case 504:
2288
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
2289
+ default:
2290
+ throw new errors.SamsaraError({
2291
+ statusCode: _response.error.statusCode,
2292
+ body: _response.error.body,
2293
+ rawResponse: _response.rawResponse,
2294
+ });
2295
+ }
2296
+ }
2297
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/fleet/tachograph/file-uploads");
2298
+ });
2299
+ }
2187
2300
  /**
2188
2301
  * Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.
2189
2302
  *
@@ -12,7 +12,7 @@ export interface TachographFileUploadsPostTachographFileUploadRequestBody {
12
12
  contentMd5: string;
13
13
  /** The MIME content type of the file. The upload is sent to object storage as raw bytes. Valid values: `application/octet-stream` */
14
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. */
15
+ /** The size of the file in bytes. Enforced as the Content-Length on upload. Maximum 10 MB (10485760 bytes). */
16
16
  fileSizeBytes: number;
17
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
18
  fileType: TachographFileUploadsPostTachographFileUploadRequestBody.FileType;
@@ -79,4 +79,5 @@ export { RidershipPassengersUpdateRidershipPassengerRequestBody } from "./Riders
79
79
  export type { RidershipRouteSetupsCreateRidershipRouteSetupRequestBody } from "./RidershipRouteSetupsCreateRidershipRouteSetupRequestBody.js";
80
80
  export type { RidershipRouteSetupsUpdateRidershipRouteSetupRequestBody } from "./RidershipRouteSetupsUpdateRidershipRouteSetupRequestBody.js";
81
81
  export { SafetyEventsV2PatchSafetyEventsV2BatchRequestBody } from "./SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.js";
82
+ export { TachographFileUploadsPostTachographFileUploadRequestBody } from "./TachographFileUploadsPostTachographFileUploadRequestBody.js";
82
83
  export type { UpdateFunctionStorageFileRequest } from "./UpdateFunctionStorageFileRequest.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody = exports.RidershipPassengersUpdateRidershipPassengerRequestBody = exports.RidershipPassengersCreateRidershipPassengerRequestBody = exports.PlacesPostPlaceRequestBody = exports.PlacesPatchPlaceRequestBody = exports.DeviceRecoveryRecoverAssetRequestBody = void 0;
3
+ exports.TachographFileUploadsPostTachographFileUploadRequestBody = exports.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody = exports.RidershipPassengersUpdateRidershipPassengerRequestBody = exports.RidershipPassengersCreateRidershipPassengerRequestBody = exports.PlacesPostPlaceRequestBody = exports.PlacesPatchPlaceRequestBody = exports.DeviceRecoveryRecoverAssetRequestBody = void 0;
4
4
  var DeviceRecoveryRecoverAssetRequestBody_js_1 = require("./DeviceRecoveryRecoverAssetRequestBody.js");
5
5
  Object.defineProperty(exports, "DeviceRecoveryRecoverAssetRequestBody", { enumerable: true, get: function () { return DeviceRecoveryRecoverAssetRequestBody_js_1.DeviceRecoveryRecoverAssetRequestBody; } });
6
6
  var PlacesPatchPlaceRequestBody_js_1 = require("./PlacesPatchPlaceRequestBody.js");
@@ -13,3 +13,5 @@ var RidershipPassengersUpdateRidershipPassengerRequestBody_js_1 = require("./Rid
13
13
  Object.defineProperty(exports, "RidershipPassengersUpdateRidershipPassengerRequestBody", { enumerable: true, get: function () { return RidershipPassengersUpdateRidershipPassengerRequestBody_js_1.RidershipPassengersUpdateRidershipPassengerRequestBody; } });
14
14
  var SafetyEventsV2PatchSafetyEventsV2BatchRequestBody_js_1 = require("./SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.js");
15
15
  Object.defineProperty(exports, "SafetyEventsV2PatchSafetyEventsV2BatchRequestBody", { enumerable: true, get: function () { return SafetyEventsV2PatchSafetyEventsV2BatchRequestBody_js_1.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody; } });
16
+ var TachographFileUploadsPostTachographFileUploadRequestBody_js_1 = require("./TachographFileUploadsPostTachographFileUploadRequestBody.js");
17
+ Object.defineProperty(exports, "TachographFileUploadsPostTachographFileUploadRequestBody", { enumerable: true, get: function () { return TachographFileUploadsPostTachographFileUploadRequestBody_js_1.TachographFileUploadsPostTachographFileUploadRequestBody; } });
@@ -47,11 +47,11 @@ export declare class PreviewApIsClient {
47
47
  createDriverAuthToken(request: Samsara.DriversAuthTokenCreateDriverAuthTokenRequestBody, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.DriversAuthTokenCreateDriverAuthTokenResponseBody>;
48
48
  private __createDriverAuthToken;
49
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.
50
+ * Returns fleet installer photo upload sessions for the caller's org. Results are ordered by updatedAtTime ascending and paginated (up to 25 per page). Supports filtering by session IDs, startTime, and endTime. Omitting startTime returns all sessions for the org. endTime requires startTime.
51
51
  *
52
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
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>
54
+ * To use this endpoint, select **Read Devices** under the Devices 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
55
  *
56
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
57
  *
@@ -62,7 +62,7 @@ export declare class PreviewApIsClient {
62
62
  *
63
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
64
  *
65
- * @param {Samsara.TachographFileUploadsPostTachographFileUploadRequestBody} request
65
+ * @param {Samsara.GetFleetInstallerPhotoUploadsRequest} request
66
66
  * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
67
67
  *
68
68
  * @throws {@link Samsara.UnauthorizedError}
@@ -76,15 +76,88 @@ export declare class PreviewApIsClient {
76
76
  * @throws {@link Samsara.GatewayTimeoutError}
77
77
  *
78
78
  * @example
79
- * await client.previewApIs.postTachographFileUpload({
79
+ * await client.previewApIs.getFleetInstallerPhotoUploads()
80
+ */
81
+ getFleetInstallerPhotoUploads(request?: Samsara.GetFleetInstallerPhotoUploadsRequest, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FleetInstallerPhotoUploadsGetFleetInstallerPhotoUploadsResponseBody>;
82
+ private __getFleetInstallerPhotoUploads;
83
+ /**
84
+ * Creates a fleet installer photo upload session and returns a presigned S3 PUT URL. Upload the file bytes directly to the presigned URL using the headers in uploadContext, then call POST /fleet/installer/photo-uploads/complete to finalize.
85
+ *
86
+ * <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>).
87
+ *
88
+ * To use this endpoint, select **Write Devices** under the Devices 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>
89
+ *
90
+ * 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
91
+ *
92
+ * - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
93
+ *
94
+ * - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
95
+ *
96
+ *
97
+ * **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.
98
+ *
99
+ * @param {Samsara.FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody} request
100
+ * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
101
+ *
102
+ * @throws {@link Samsara.UnauthorizedError}
103
+ * @throws {@link Samsara.NotFoundError}
104
+ * @throws {@link Samsara.MethodNotAllowedError}
105
+ * @throws {@link Samsara.TooManyRequestsError}
106
+ * @throws {@link Samsara.InternalServerError}
107
+ * @throws {@link Samsara.NotImplementedError}
108
+ * @throws {@link Samsara.BadGatewayError}
109
+ * @throws {@link Samsara.ServiceUnavailableError}
110
+ * @throws {@link Samsara.GatewayTimeoutError}
111
+ *
112
+ * @example
113
+ * await client.previewApIs.postFleetInstallerPhotoUpload({
80
114
  * contentMd5: "rL0Y20zC+Fzt72VPzMSk2A==",
81
- * contentType: "application/octet-stream",
82
- * fileSizeBytes: 8192,
83
- * fileType: "driverCard"
115
+ * deviceId: "281474977961335",
116
+ * fileFormatType: "imageJpeg",
117
+ * fileName: "front_camera_install.jpg",
118
+ * hardwareType: "vehicleGateway",
119
+ * photoType: "installPhoto",
120
+ * sizeBytes: 482193
121
+ * })
122
+ */
123
+ postFleetInstallerPhotoUpload(request: Samsara.FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadResponseBody>;
124
+ private __postFleetInstallerPhotoUpload;
125
+ /**
126
+ * Marks a fleet installer photo upload session as complete after the file bytes have been uploaded to S3. Triggers async processing of the photo. Poll GET /fleet/installer/photo-uploads to observe the final state.
127
+ *
128
+ * <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>).
129
+ *
130
+ * To use this endpoint, select **Write Devices** under the Devices 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>
131
+ *
132
+ * 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
133
+ *
134
+ * - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
135
+ *
136
+ * - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
137
+ *
138
+ *
139
+ * **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.
140
+ *
141
+ * @param {Samsara.PostFleetInstallerPhotoUploadCompleteRequest} request
142
+ * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
143
+ *
144
+ * @throws {@link Samsara.UnauthorizedError}
145
+ * @throws {@link Samsara.NotFoundError}
146
+ * @throws {@link Samsara.MethodNotAllowedError}
147
+ * @throws {@link Samsara.TooManyRequestsError}
148
+ * @throws {@link Samsara.InternalServerError}
149
+ * @throws {@link Samsara.NotImplementedError}
150
+ * @throws {@link Samsara.BadGatewayError}
151
+ * @throws {@link Samsara.ServiceUnavailableError}
152
+ * @throws {@link Samsara.GatewayTimeoutError}
153
+ *
154
+ * @example
155
+ * await client.previewApIs.postFleetInstallerPhotoUploadComplete({
156
+ * id: "id"
84
157
  * })
85
158
  */
86
- postTachographFileUpload(request: Samsara.TachographFileUploadsPostTachographFileUploadRequestBody, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.TachographFileUploadsPostTachographFileUploadResponseBody>;
87
- private __postTachographFileUpload;
159
+ postFleetInstallerPhotoUploadComplete(request: Samsara.PostFleetInstallerPhotoUploadCompleteRequest, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadCompleteResponseBody>;
160
+ private __postFleetInstallerPhotoUploadComplete;
88
161
  /**
89
162
  * Lock a vehicle. This requires a vehicle gateway with locking capabilities.
90
163
  *
@@ -149,11 +149,11 @@ class PreviewApIsClient {
149
149
  });
150
150
  }
151
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.
152
+ * Returns fleet installer photo upload sessions for the caller's org. Results are ordered by updatedAtTime ascending and paginated (up to 25 per page). Supports filtering by session IDs, startTime, and endTime. Omitting startTime returns all sessions for the org. endTime requires startTime.
153
153
  *
154
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
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>
156
+ * To use this endpoint, select **Read Devices** under the Devices 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
157
  *
158
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
159
  *
@@ -164,7 +164,7 @@ class PreviewApIsClient {
164
164
  *
165
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
166
  *
167
- * @param {Samsara.TachographFileUploadsPostTachographFileUploadRequestBody} request
167
+ * @param {Samsara.GetFleetInstallerPhotoUploadsRequest} request
168
168
  * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
169
169
  *
170
170
  * @throws {@link Samsara.UnauthorizedError}
@@ -178,23 +178,121 @@ class PreviewApIsClient {
178
178
  * @throws {@link Samsara.GatewayTimeoutError}
179
179
  *
180
180
  * @example
181
- * await client.previewApIs.postTachographFileUpload({
181
+ * await client.previewApIs.getFleetInstallerPhotoUploads()
182
+ */
183
+ getFleetInstallerPhotoUploads(request = {}, requestOptions) {
184
+ return core.HttpResponsePromise.fromPromise(this.__getFleetInstallerPhotoUploads(request, requestOptions));
185
+ }
186
+ __getFleetInstallerPhotoUploads() {
187
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
188
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
189
+ const { ids, startTime, endTime, after } = request;
190
+ const _queryParams = {
191
+ ids,
192
+ startTime,
193
+ endTime,
194
+ after,
195
+ };
196
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
197
+ 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);
198
+ const _response = yield core.fetcher({
199
+ 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/installer/photo-uploads"),
200
+ method: "GET",
201
+ headers: _headers,
202
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
203
+ 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,
204
+ 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,
205
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
206
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
207
+ logging: this._options.logging,
208
+ });
209
+ if (_response.ok) {
210
+ return {
211
+ data: _response.body,
212
+ rawResponse: _response.rawResponse,
213
+ };
214
+ }
215
+ if (_response.error.reason === "status-code") {
216
+ switch (_response.error.statusCode) {
217
+ case 401:
218
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
219
+ case 404:
220
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
221
+ case 405:
222
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
223
+ case 429:
224
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
225
+ case 500:
226
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
227
+ case 501:
228
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
229
+ case 502:
230
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
231
+ case 503:
232
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
233
+ case 504:
234
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
235
+ default:
236
+ throw new errors.SamsaraError({
237
+ statusCode: _response.error.statusCode,
238
+ body: _response.error.body,
239
+ rawResponse: _response.rawResponse,
240
+ });
241
+ }
242
+ }
243
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/preview/fleet/installer/photo-uploads");
244
+ });
245
+ }
246
+ /**
247
+ * Creates a fleet installer photo upload session and returns a presigned S3 PUT URL. Upload the file bytes directly to the presigned URL using the headers in uploadContext, then call POST /fleet/installer/photo-uploads/complete to finalize.
248
+ *
249
+ * <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>).
250
+ *
251
+ * To use this endpoint, select **Write Devices** under the Devices 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>
252
+ *
253
+ * 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
254
+ *
255
+ * - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
256
+ *
257
+ * - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
258
+ *
259
+ *
260
+ * **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.
261
+ *
262
+ * @param {Samsara.FleetInstallerPhotoUploadsPostFleetInstallerPhotoUploadRequestBody} request
263
+ * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
264
+ *
265
+ * @throws {@link Samsara.UnauthorizedError}
266
+ * @throws {@link Samsara.NotFoundError}
267
+ * @throws {@link Samsara.MethodNotAllowedError}
268
+ * @throws {@link Samsara.TooManyRequestsError}
269
+ * @throws {@link Samsara.InternalServerError}
270
+ * @throws {@link Samsara.NotImplementedError}
271
+ * @throws {@link Samsara.BadGatewayError}
272
+ * @throws {@link Samsara.ServiceUnavailableError}
273
+ * @throws {@link Samsara.GatewayTimeoutError}
274
+ *
275
+ * @example
276
+ * await client.previewApIs.postFleetInstallerPhotoUpload({
182
277
  * contentMd5: "rL0Y20zC+Fzt72VPzMSk2A==",
183
- * contentType: "application/octet-stream",
184
- * fileSizeBytes: 8192,
185
- * fileType: "driverCard"
278
+ * deviceId: "281474977961335",
279
+ * fileFormatType: "imageJpeg",
280
+ * fileName: "front_camera_install.jpg",
281
+ * hardwareType: "vehicleGateway",
282
+ * photoType: "installPhoto",
283
+ * sizeBytes: 482193
186
284
  * })
187
285
  */
188
- postTachographFileUpload(request, requestOptions) {
189
- return core.HttpResponsePromise.fromPromise(this.__postTachographFileUpload(request, requestOptions));
286
+ postFleetInstallerPhotoUpload(request, requestOptions) {
287
+ return core.HttpResponsePromise.fromPromise(this.__postFleetInstallerPhotoUpload(request, requestOptions));
190
288
  }
191
- __postTachographFileUpload(request, requestOptions) {
289
+ __postFleetInstallerPhotoUpload(request, requestOptions) {
192
290
  return __awaiter(this, void 0, void 0, function* () {
193
291
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
194
292
  const _authRequest = yield this._options.authProvider.getAuthRequest();
195
293
  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
294
  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"),
295
+ 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/installer/photo-uploads"),
198
296
  method: "POST",
199
297
  headers: _headers,
200
298
  contentType: "application/json",
@@ -241,7 +339,101 @@ class PreviewApIsClient {
241
339
  });
242
340
  }
243
341
  }
244
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/preview/fleet/tachograph/file-uploads");
342
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/preview/fleet/installer/photo-uploads");
343
+ });
344
+ }
345
+ /**
346
+ * Marks a fleet installer photo upload session as complete after the file bytes have been uploaded to S3. Triggers async processing of the photo. Poll GET /fleet/installer/photo-uploads to observe the final state.
347
+ *
348
+ * <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>).
349
+ *
350
+ * To use this endpoint, select **Write Devices** under the Devices 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>
351
+ *
352
+ * 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
353
+ *
354
+ * - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
355
+ *
356
+ * - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
357
+ *
358
+ *
359
+ * **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.
360
+ *
361
+ * @param {Samsara.PostFleetInstallerPhotoUploadCompleteRequest} request
362
+ * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
363
+ *
364
+ * @throws {@link Samsara.UnauthorizedError}
365
+ * @throws {@link Samsara.NotFoundError}
366
+ * @throws {@link Samsara.MethodNotAllowedError}
367
+ * @throws {@link Samsara.TooManyRequestsError}
368
+ * @throws {@link Samsara.InternalServerError}
369
+ * @throws {@link Samsara.NotImplementedError}
370
+ * @throws {@link Samsara.BadGatewayError}
371
+ * @throws {@link Samsara.ServiceUnavailableError}
372
+ * @throws {@link Samsara.GatewayTimeoutError}
373
+ *
374
+ * @example
375
+ * await client.previewApIs.postFleetInstallerPhotoUploadComplete({
376
+ * id: "id"
377
+ * })
378
+ */
379
+ postFleetInstallerPhotoUploadComplete(request, requestOptions) {
380
+ return core.HttpResponsePromise.fromPromise(this.__postFleetInstallerPhotoUploadComplete(request, requestOptions));
381
+ }
382
+ __postFleetInstallerPhotoUploadComplete(request, requestOptions) {
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
385
+ const { id } = request;
386
+ const _queryParams = {
387
+ id,
388
+ };
389
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
390
+ 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);
391
+ const _response = yield core.fetcher({
392
+ 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/installer/photo-uploads/complete"),
393
+ method: "POST",
394
+ headers: _headers,
395
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
396
+ 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,
397
+ 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,
398
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
399
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
400
+ logging: this._options.logging,
401
+ });
402
+ if (_response.ok) {
403
+ return {
404
+ data: _response.body,
405
+ rawResponse: _response.rawResponse,
406
+ };
407
+ }
408
+ if (_response.error.reason === "status-code") {
409
+ switch (_response.error.statusCode) {
410
+ case 401:
411
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
412
+ case 404:
413
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
414
+ case 405:
415
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
416
+ case 429:
417
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
418
+ case 500:
419
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
420
+ case 501:
421
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
422
+ case 502:
423
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
424
+ case 503:
425
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
426
+ case 504:
427
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
428
+ default:
429
+ throw new errors.SamsaraError({
430
+ statusCode: _response.error.statusCode,
431
+ body: _response.error.body,
432
+ rawResponse: _response.rawResponse,
433
+ });
434
+ }
435
+ }
436
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/preview/fleet/installer/photo-uploads/complete");
245
437
  });
246
438
  }
247
439
  /**