@samsarahq/samsara 13.0.0 → 13.2.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 (230) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/addresses/client/requests/CreateAddressRequest.d.ts +1 -0
  3. package/dist/cjs/api/resources/addresses/client/requests/CreateAddressRequest.js +1 -0
  4. package/dist/cjs/api/resources/addresses/client/requests/UpdateAddressRequest.d.ts +1 -0
  5. package/dist/cjs/api/resources/addresses/client/requests/UpdateAddressRequest.js +1 -0
  6. package/dist/cjs/api/resources/assets/client/Client.js +2 -1
  7. package/dist/cjs/api/resources/assets/client/requests/ListAssetsRequest.d.ts +2 -0
  8. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +95 -5
  9. package/dist/cjs/api/resources/betaApIs/client/Client.js +275 -12
  10. package/dist/cjs/api/resources/betaApIs/client/requests/DeleteRidershipRouteSetupRequest.d.ts +1 -1
  11. package/dist/cjs/api/resources/betaApIs/client/requests/FunctionsStorageCreateFunctionStorageFileRequestBody.d.ts +10 -0
  12. package/dist/cjs/api/resources/betaApIs/client/requests/FunctionsStorageCreateFunctionStorageFileRequestBody.js +3 -0
  13. package/dist/cjs/api/resources/betaApIs/client/requests/GetFunctionStorageFileRequest.d.ts +10 -0
  14. package/dist/cjs/api/resources/betaApIs/client/requests/GetFunctionStorageFileRequest.js +3 -0
  15. package/dist/cjs/api/resources/betaApIs/client/requests/GetRidershipRouteSetupRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/betaApIs/client/requests/RidershipRouteSetupsCreateRidershipRouteSetupRequestBody.d.ts +1 -1
  17. package/dist/cjs/api/resources/betaApIs/client/requests/RidershipRouteSetupsUpdateRidershipRouteSetupRequestBody.d.ts +1 -1
  18. package/dist/cjs/api/resources/betaApIs/client/requests/UpdateFunctionStorageFileRequest.d.ts +10 -0
  19. package/dist/cjs/api/resources/betaApIs/client/requests/UpdateFunctionStorageFileRequest.js +3 -0
  20. package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +3 -0
  21. package/dist/cjs/api/resources/issues/client/Client.js +2 -1
  22. package/dist/cjs/api/resources/issues/client/requests/GetIssuesStreamRequest.d.ts +3 -1
  23. package/dist/cjs/api/resources/issues/client/requests/IssuesPatchIssueRequestBody.d.ts +15 -0
  24. package/dist/cjs/api/resources/issues/client/requests/IssuesPatchIssueRequestBody.js +6 -0
  25. package/dist/cjs/api/resources/routes/client/Client.js +3 -1
  26. package/dist/cjs/api/resources/routes/client/requests/FetchRoutesRequest.d.ts +4 -0
  27. package/dist/cjs/api/types/Address.d.ts +1 -0
  28. package/dist/cjs/api/types/Address.js +1 -0
  29. package/dist/cjs/api/types/AssetResponseBody.d.ts +2 -0
  30. package/dist/cjs/api/types/CreateFunctionStorageFileDetailResponseBody.d.ts +9 -0
  31. package/dist/cjs/api/types/CreateFunctionStorageFileDetailResponseBody.js +3 -0
  32. package/dist/cjs/api/types/FormTemplateResponseObjectResponseBody.d.ts +3 -2
  33. package/dist/cjs/api/types/FormTemplateResponseObjectResponseBody.js +2 -1
  34. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileBadGatewayErrorResponseBody.d.ts +9 -0
  35. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileBadGatewayErrorResponseBody.js +3 -0
  36. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileGatewayTimeoutErrorResponseBody.d.ts +9 -0
  37. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileGatewayTimeoutErrorResponseBody.js +3 -0
  38. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileInternalServerErrorResponseBody.d.ts +9 -0
  39. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileInternalServerErrorResponseBody.js +3 -0
  40. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileMethodNotAllowedErrorResponseBody.d.ts +9 -0
  41. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileMethodNotAllowedErrorResponseBody.js +3 -0
  42. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileNotFoundErrorResponseBody.d.ts +9 -0
  43. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileNotFoundErrorResponseBody.js +3 -0
  44. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileNotImplementedErrorResponseBody.d.ts +9 -0
  45. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileNotImplementedErrorResponseBody.js +3 -0
  46. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileResponseBody.d.ts +4 -0
  47. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileResponseBody.js +3 -0
  48. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileServiceUnavailableErrorResponseBody.d.ts +9 -0
  49. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileServiceUnavailableErrorResponseBody.js +3 -0
  50. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileTooManyRequestsErrorResponseBody.d.ts +9 -0
  51. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileTooManyRequestsErrorResponseBody.js +3 -0
  52. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileUnauthorizedErrorResponseBody.d.ts +9 -0
  53. package/dist/cjs/api/types/FunctionsStorageCreateFunctionStorageFileUnauthorizedErrorResponseBody.js +3 -0
  54. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileBadGatewayErrorResponseBody.d.ts +9 -0
  55. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileBadGatewayErrorResponseBody.js +3 -0
  56. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileGatewayTimeoutErrorResponseBody.d.ts +9 -0
  57. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileGatewayTimeoutErrorResponseBody.js +3 -0
  58. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileInternalServerErrorResponseBody.d.ts +9 -0
  59. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileInternalServerErrorResponseBody.js +3 -0
  60. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileMethodNotAllowedErrorResponseBody.d.ts +9 -0
  61. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileMethodNotAllowedErrorResponseBody.js +3 -0
  62. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileNotFoundErrorResponseBody.d.ts +9 -0
  63. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileNotFoundErrorResponseBody.js +3 -0
  64. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileNotImplementedErrorResponseBody.d.ts +9 -0
  65. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileNotImplementedErrorResponseBody.js +3 -0
  66. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileResponseBody.d.ts +4 -0
  67. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileResponseBody.js +3 -0
  68. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileServiceUnavailableErrorResponseBody.d.ts +9 -0
  69. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileServiceUnavailableErrorResponseBody.js +3 -0
  70. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileTooManyRequestsErrorResponseBody.d.ts +9 -0
  71. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileTooManyRequestsErrorResponseBody.js +3 -0
  72. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileUnauthorizedErrorResponseBody.d.ts +9 -0
  73. package/dist/cjs/api/types/FunctionsStorageGetFunctionStorageFileUnauthorizedErrorResponseBody.js +3 -0
  74. package/dist/cjs/api/types/FunctionsStorageSignedUrlOfTypeResponseBody.d.ts +9 -0
  75. package/dist/cjs/api/types/FunctionsStorageSignedUrlOfTypeResponseBody.js +3 -0
  76. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileBadGatewayErrorResponseBody.d.ts +9 -0
  77. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileBadGatewayErrorResponseBody.js +3 -0
  78. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileGatewayTimeoutErrorResponseBody.d.ts +9 -0
  79. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileGatewayTimeoutErrorResponseBody.js +3 -0
  80. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileInternalServerErrorResponseBody.d.ts +9 -0
  81. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileInternalServerErrorResponseBody.js +3 -0
  82. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileMethodNotAllowedErrorResponseBody.d.ts +9 -0
  83. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileMethodNotAllowedErrorResponseBody.js +3 -0
  84. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileNotFoundErrorResponseBody.d.ts +9 -0
  85. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileNotFoundErrorResponseBody.js +3 -0
  86. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileNotImplementedErrorResponseBody.d.ts +9 -0
  87. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileNotImplementedErrorResponseBody.js +3 -0
  88. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileResponseBody.d.ts +4 -0
  89. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileResponseBody.js +3 -0
  90. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileServiceUnavailableErrorResponseBody.d.ts +9 -0
  91. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileServiceUnavailableErrorResponseBody.js +3 -0
  92. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileTooManyRequestsErrorResponseBody.d.ts +9 -0
  93. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileTooManyRequestsErrorResponseBody.js +3 -0
  94. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileUnauthorizedErrorResponseBody.d.ts +9 -0
  95. package/dist/cjs/api/types/FunctionsStorageUpdateFunctionStorageFileUnauthorizedErrorResponseBody.js +3 -0
  96. package/dist/cjs/api/types/GetFunctionStorageFileDetailResponseBody.d.ts +9 -0
  97. package/dist/cjs/api/types/GetFunctionStorageFileDetailResponseBody.js +3 -0
  98. package/dist/cjs/api/types/IdlingEventAddressObjectResponseBody.d.ts +2 -1
  99. package/dist/cjs/api/types/IdlingEventAddressObjectResponseBody.js +2 -1
  100. package/dist/cjs/api/types/LocationObjectRequestBody.d.ts +2 -1
  101. package/dist/cjs/api/types/LocationObjectRequestBody.js +2 -1
  102. package/dist/cjs/api/types/LocationObjectResponseBody.d.ts +2 -1
  103. package/dist/cjs/api/types/LocationObjectResponseBody.js +2 -1
  104. package/dist/cjs/api/types/OutOfSequenceStopArrivalDataResponseBody.d.ts +12 -0
  105. package/dist/cjs/api/types/OutOfSequenceStopArrivalDataResponseBody.js +3 -0
  106. package/dist/cjs/api/types/RidershipRouteSetupPassengerInputRequestBody.d.ts +3 -3
  107. package/dist/cjs/api/types/SignatoryUserObjectResponseBody.d.ts +2 -0
  108. package/dist/cjs/api/types/UpdateFunctionStorageFileDetailResponseBody.d.ts +9 -0
  109. package/dist/cjs/api/types/UpdateFunctionStorageFileDetailResponseBody.js +3 -0
  110. package/dist/cjs/api/types/WorkflowIncidentDetailsObjectResponseBody.d.ts +1 -0
  111. package/dist/cjs/api/types/index.d.ts +35 -0
  112. package/dist/cjs/api/types/index.js +35 -0
  113. package/dist/cjs/version.d.ts +1 -1
  114. package/dist/cjs/version.js +1 -1
  115. package/dist/esm/BaseClient.mjs +2 -2
  116. package/dist/esm/api/resources/addresses/client/requests/CreateAddressRequest.d.mts +1 -0
  117. package/dist/esm/api/resources/addresses/client/requests/CreateAddressRequest.mjs +1 -0
  118. package/dist/esm/api/resources/addresses/client/requests/UpdateAddressRequest.d.mts +1 -0
  119. package/dist/esm/api/resources/addresses/client/requests/UpdateAddressRequest.mjs +1 -0
  120. package/dist/esm/api/resources/assets/client/Client.mjs +2 -1
  121. package/dist/esm/api/resources/assets/client/requests/ListAssetsRequest.d.mts +2 -0
  122. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +95 -5
  123. package/dist/esm/api/resources/betaApIs/client/Client.mjs +275 -12
  124. package/dist/esm/api/resources/betaApIs/client/requests/DeleteRidershipRouteSetupRequest.d.mts +1 -1
  125. package/dist/esm/api/resources/betaApIs/client/requests/FunctionsStorageCreateFunctionStorageFileRequestBody.d.mts +10 -0
  126. package/dist/esm/api/resources/betaApIs/client/requests/FunctionsStorageCreateFunctionStorageFileRequestBody.mjs +2 -0
  127. package/dist/esm/api/resources/betaApIs/client/requests/GetFunctionStorageFileRequest.d.mts +10 -0
  128. package/dist/esm/api/resources/betaApIs/client/requests/GetFunctionStorageFileRequest.mjs +2 -0
  129. package/dist/esm/api/resources/betaApIs/client/requests/GetRidershipRouteSetupRequest.d.mts +1 -1
  130. package/dist/esm/api/resources/betaApIs/client/requests/RidershipRouteSetupsCreateRidershipRouteSetupRequestBody.d.mts +1 -1
  131. package/dist/esm/api/resources/betaApIs/client/requests/RidershipRouteSetupsUpdateRidershipRouteSetupRequestBody.d.mts +1 -1
  132. package/dist/esm/api/resources/betaApIs/client/requests/UpdateFunctionStorageFileRequest.d.mts +10 -0
  133. package/dist/esm/api/resources/betaApIs/client/requests/UpdateFunctionStorageFileRequest.mjs +2 -0
  134. package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +3 -0
  135. package/dist/esm/api/resources/issues/client/Client.mjs +2 -1
  136. package/dist/esm/api/resources/issues/client/requests/GetIssuesStreamRequest.d.mts +3 -1
  137. package/dist/esm/api/resources/issues/client/requests/IssuesPatchIssueRequestBody.d.mts +15 -0
  138. package/dist/esm/api/resources/issues/client/requests/IssuesPatchIssueRequestBody.mjs +6 -0
  139. package/dist/esm/api/resources/routes/client/Client.mjs +3 -1
  140. package/dist/esm/api/resources/routes/client/requests/FetchRoutesRequest.d.mts +4 -0
  141. package/dist/esm/api/types/Address.d.mts +1 -0
  142. package/dist/esm/api/types/Address.mjs +1 -0
  143. package/dist/esm/api/types/AssetResponseBody.d.mts +2 -0
  144. package/dist/esm/api/types/CreateFunctionStorageFileDetailResponseBody.d.mts +9 -0
  145. package/dist/esm/api/types/CreateFunctionStorageFileDetailResponseBody.mjs +2 -0
  146. package/dist/esm/api/types/FormTemplateResponseObjectResponseBody.d.mts +3 -2
  147. package/dist/esm/api/types/FormTemplateResponseObjectResponseBody.mjs +2 -1
  148. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileBadGatewayErrorResponseBody.d.mts +9 -0
  149. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileBadGatewayErrorResponseBody.mjs +2 -0
  150. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileGatewayTimeoutErrorResponseBody.d.mts +9 -0
  151. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileGatewayTimeoutErrorResponseBody.mjs +2 -0
  152. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileInternalServerErrorResponseBody.d.mts +9 -0
  153. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileInternalServerErrorResponseBody.mjs +2 -0
  154. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileMethodNotAllowedErrorResponseBody.d.mts +9 -0
  155. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileMethodNotAllowedErrorResponseBody.mjs +2 -0
  156. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileNotFoundErrorResponseBody.d.mts +9 -0
  157. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileNotFoundErrorResponseBody.mjs +2 -0
  158. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileNotImplementedErrorResponseBody.d.mts +9 -0
  159. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileNotImplementedErrorResponseBody.mjs +2 -0
  160. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileResponseBody.d.mts +4 -0
  161. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileResponseBody.mjs +2 -0
  162. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileServiceUnavailableErrorResponseBody.d.mts +9 -0
  163. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileServiceUnavailableErrorResponseBody.mjs +2 -0
  164. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileTooManyRequestsErrorResponseBody.d.mts +9 -0
  165. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileTooManyRequestsErrorResponseBody.mjs +2 -0
  166. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileUnauthorizedErrorResponseBody.d.mts +9 -0
  167. package/dist/esm/api/types/FunctionsStorageCreateFunctionStorageFileUnauthorizedErrorResponseBody.mjs +2 -0
  168. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileBadGatewayErrorResponseBody.d.mts +9 -0
  169. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileBadGatewayErrorResponseBody.mjs +2 -0
  170. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileGatewayTimeoutErrorResponseBody.d.mts +9 -0
  171. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileGatewayTimeoutErrorResponseBody.mjs +2 -0
  172. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileInternalServerErrorResponseBody.d.mts +9 -0
  173. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileInternalServerErrorResponseBody.mjs +2 -0
  174. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileMethodNotAllowedErrorResponseBody.d.mts +9 -0
  175. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileMethodNotAllowedErrorResponseBody.mjs +2 -0
  176. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileNotFoundErrorResponseBody.d.mts +9 -0
  177. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileNotFoundErrorResponseBody.mjs +2 -0
  178. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileNotImplementedErrorResponseBody.d.mts +9 -0
  179. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileNotImplementedErrorResponseBody.mjs +2 -0
  180. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileResponseBody.d.mts +4 -0
  181. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileResponseBody.mjs +2 -0
  182. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileServiceUnavailableErrorResponseBody.d.mts +9 -0
  183. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileServiceUnavailableErrorResponseBody.mjs +2 -0
  184. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileTooManyRequestsErrorResponseBody.d.mts +9 -0
  185. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileTooManyRequestsErrorResponseBody.mjs +2 -0
  186. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileUnauthorizedErrorResponseBody.d.mts +9 -0
  187. package/dist/esm/api/types/FunctionsStorageGetFunctionStorageFileUnauthorizedErrorResponseBody.mjs +2 -0
  188. package/dist/esm/api/types/FunctionsStorageSignedUrlOfTypeResponseBody.d.mts +9 -0
  189. package/dist/esm/api/types/FunctionsStorageSignedUrlOfTypeResponseBody.mjs +2 -0
  190. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileBadGatewayErrorResponseBody.d.mts +9 -0
  191. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileBadGatewayErrorResponseBody.mjs +2 -0
  192. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileGatewayTimeoutErrorResponseBody.d.mts +9 -0
  193. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileGatewayTimeoutErrorResponseBody.mjs +2 -0
  194. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileInternalServerErrorResponseBody.d.mts +9 -0
  195. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileInternalServerErrorResponseBody.mjs +2 -0
  196. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileMethodNotAllowedErrorResponseBody.d.mts +9 -0
  197. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileMethodNotAllowedErrorResponseBody.mjs +2 -0
  198. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileNotFoundErrorResponseBody.d.mts +9 -0
  199. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileNotFoundErrorResponseBody.mjs +2 -0
  200. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileNotImplementedErrorResponseBody.d.mts +9 -0
  201. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileNotImplementedErrorResponseBody.mjs +2 -0
  202. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileResponseBody.d.mts +4 -0
  203. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileResponseBody.mjs +2 -0
  204. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileServiceUnavailableErrorResponseBody.d.mts +9 -0
  205. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileServiceUnavailableErrorResponseBody.mjs +2 -0
  206. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileTooManyRequestsErrorResponseBody.d.mts +9 -0
  207. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileTooManyRequestsErrorResponseBody.mjs +2 -0
  208. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileUnauthorizedErrorResponseBody.d.mts +9 -0
  209. package/dist/esm/api/types/FunctionsStorageUpdateFunctionStorageFileUnauthorizedErrorResponseBody.mjs +2 -0
  210. package/dist/esm/api/types/GetFunctionStorageFileDetailResponseBody.d.mts +9 -0
  211. package/dist/esm/api/types/GetFunctionStorageFileDetailResponseBody.mjs +2 -0
  212. package/dist/esm/api/types/IdlingEventAddressObjectResponseBody.d.mts +2 -1
  213. package/dist/esm/api/types/IdlingEventAddressObjectResponseBody.mjs +2 -1
  214. package/dist/esm/api/types/LocationObjectRequestBody.d.mts +2 -1
  215. package/dist/esm/api/types/LocationObjectRequestBody.mjs +2 -1
  216. package/dist/esm/api/types/LocationObjectResponseBody.d.mts +2 -1
  217. package/dist/esm/api/types/LocationObjectResponseBody.mjs +2 -1
  218. package/dist/esm/api/types/OutOfSequenceStopArrivalDataResponseBody.d.mts +12 -0
  219. package/dist/esm/api/types/OutOfSequenceStopArrivalDataResponseBody.mjs +2 -0
  220. package/dist/esm/api/types/RidershipRouteSetupPassengerInputRequestBody.d.mts +3 -3
  221. package/dist/esm/api/types/SignatoryUserObjectResponseBody.d.mts +2 -0
  222. package/dist/esm/api/types/UpdateFunctionStorageFileDetailResponseBody.d.mts +9 -0
  223. package/dist/esm/api/types/UpdateFunctionStorageFileDetailResponseBody.mjs +2 -0
  224. package/dist/esm/api/types/WorkflowIncidentDetailsObjectResponseBody.d.mts +1 -0
  225. package/dist/esm/api/types/index.d.mts +35 -0
  226. package/dist/esm/api/types/index.mjs +35 -0
  227. package/dist/esm/version.d.mts +1 -1
  228. package/dist/esm/version.mjs +1 -1
  229. package/package.json +1 -1
  230. package/reference.md +220 -4
@@ -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.0.0",
48
- "User-Agent": "@samsarahq/samsara/13.0.0",
47
+ "X-Fern-SDK-Version": "13.2.0",
48
+ "User-Agent": "@samsarahq/samsara/13.2.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",
@@ -45,6 +45,7 @@ export declare namespace CreateAddressRequest {
45
45
  readonly UnauthorizedZone: "unauthorizedZone";
46
46
  readonly Vendor: "vendor";
47
47
  readonly Inventory: "inventory";
48
+ readonly CustomerSite: "customerSite";
48
49
  };
49
50
  type Item = (typeof Item)[keyof typeof Item];
50
51
  }
@@ -20,6 +20,7 @@ var CreateAddressRequest;
20
20
  UnauthorizedZone: "unauthorizedZone",
21
21
  Vendor: "vendor",
22
22
  Inventory: "inventory",
23
+ CustomerSite: "customerSite",
23
24
  };
24
25
  })(AddressTypes = CreateAddressRequest.AddressTypes || (CreateAddressRequest.AddressTypes = {}));
25
26
  })(CreateAddressRequest || (exports.CreateAddressRequest = CreateAddressRequest = {}));
@@ -45,6 +45,7 @@ export declare namespace UpdateAddressRequest {
45
45
  readonly UnauthorizedZone: "unauthorizedZone";
46
46
  readonly Vendor: "vendor";
47
47
  readonly Inventory: "inventory";
48
+ readonly CustomerSite: "customerSite";
48
49
  };
49
50
  type Item = (typeof Item)[keyof typeof Item];
50
51
  }
@@ -20,6 +20,7 @@ var UpdateAddressRequest;
20
20
  UnauthorizedZone: "unauthorizedZone",
21
21
  Vendor: "vendor",
22
22
  Inventory: "inventory",
23
+ CustomerSite: "customerSite",
23
24
  };
24
25
  })(AddressTypes = UpdateAddressRequest.AddressTypes || (UpdateAddressRequest.AddressTypes = {}));
25
26
  })(UpdateAddressRequest || (exports.UpdateAddressRequest = UpdateAddressRequest = {}));
@@ -96,7 +96,7 @@ class AssetsClient {
96
96
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
97
97
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
98
98
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
99
- const { type: type_, after, updatedAfterTime, includeExternalIds, includeTags, tagIds, parentTagIds, ids, externalIds, attributeValueIds, attributes, } = request;
99
+ const { type: type_, after, updatedAfterTime, includeExternalIds, includeTags, tagIds, parentTagIds, ids, externalIds, attributeValueIds, attributes, includeAttributes, } = request;
100
100
  const _queryParams = {
101
101
  type: type_ != null ? type_ : undefined,
102
102
  after,
@@ -109,6 +109,7 @@ class AssetsClient {
109
109
  externalIds,
110
110
  attributeValueIds,
111
111
  attributes,
112
+ includeAttributes,
112
113
  };
113
114
  const _authRequest = yield this._options.authProvider.getAuthRequest();
114
115
  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);
@@ -26,4 +26,6 @@ export interface ListAssetsRequest {
26
26
  attributeValueIds?: string;
27
27
  /** A filter on the data to return entities within given range query (only for numeric and date attributes) separated by a comma. Only entities meeting all the conditions will be returned. At least one bound must be provided. Example: `attributes=Length:range(8,)&attributes=Length:range(10,20)&attributes=Date:range(2025-01-01,2025-01-31)` */
28
28
  attributes?: string | string[];
29
+ /** Optional boolean indicating whether to return attributes on supported entities */
30
+ includeAttributes?: boolean;
29
31
  }
@@ -722,7 +722,7 @@ export declare class BetaApIsClient {
722
722
  createFunction(request: Samsara.FunctionsCreateFunctionRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsCreateFunctionResponseBody>;
723
723
  private __createFunction;
724
724
  /**
725
- * List files in Functions storage for the organization. Returns file metadata and optionally includes presigned download or upload URLs.
725
+ * Get a file from Functions storage by name. Returns file metadata and a presigned download URL.
726
726
  *
727
727
  * <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>).
728
728
  *
@@ -731,7 +731,7 @@ export declare class BetaApIsClient {
731
731
  *
732
732
  * **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.
733
733
  *
734
- * @param {Samsara.ListFunctionsStorageFilesRequest} request
734
+ * @param {Samsara.GetFunctionStorageFileRequest} request
735
735
  * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
736
736
  *
737
737
  * @throws {@link Samsara.UnauthorizedError}
@@ -745,10 +745,72 @@ export declare class BetaApIsClient {
745
745
  * @throws {@link Samsara.GatewayTimeoutError}
746
746
  *
747
747
  * @example
748
- * await client.betaApIs.listFunctionsStorageFiles()
748
+ * await client.betaApIs.getFunctionStorageFile({
749
+ * name: "name"
750
+ * })
749
751
  */
750
- listFunctionsStorageFiles(request?: Samsara.ListFunctionsStorageFilesRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsStorageListFunctionsStorageFilesResponseBody>;
751
- private __listFunctionsStorageFiles;
752
+ getFunctionStorageFile(request: Samsara.GetFunctionStorageFileRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsStorageGetFunctionStorageFileResponseBody>;
753
+ private __getFunctionStorageFile;
754
+ /**
755
+ * Create a new file in Functions storage. Returns a presigned upload URL. Returns an error if the file already exists.
756
+ *
757
+ * <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>).
758
+ *
759
+ * To use this endpoint, select **Write Functions Storage** under the Functions 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>
760
+ *
761
+ *
762
+ * **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.
763
+ *
764
+ * @param {Samsara.FunctionsStorageCreateFunctionStorageFileRequestBody} request
765
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
766
+ *
767
+ * @throws {@link Samsara.UnauthorizedError}
768
+ * @throws {@link Samsara.NotFoundError}
769
+ * @throws {@link Samsara.MethodNotAllowedError}
770
+ * @throws {@link Samsara.TooManyRequestsError}
771
+ * @throws {@link Samsara.InternalServerError}
772
+ * @throws {@link Samsara.NotImplementedError}
773
+ * @throws {@link Samsara.BadGatewayError}
774
+ * @throws {@link Samsara.ServiceUnavailableError}
775
+ * @throws {@link Samsara.GatewayTimeoutError}
776
+ *
777
+ * @example
778
+ * await client.betaApIs.createFunctionStorageFile({
779
+ * name: "my-script.js"
780
+ * })
781
+ */
782
+ createFunctionStorageFile(request: Samsara.FunctionsStorageCreateFunctionStorageFileRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsStorageCreateFunctionStorageFileResponseBody>;
783
+ private __createFunctionStorageFile;
784
+ /**
785
+ * Get a presigned upload URL for overwriting an existing file in Functions storage. Returns an error if the file does not exist.
786
+ *
787
+ * <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>).
788
+ *
789
+ * To use this endpoint, select **Write Functions Storage** under the Functions 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>
790
+ *
791
+ *
792
+ * **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.
793
+ *
794
+ * @param {Samsara.UpdateFunctionStorageFileRequest} request
795
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
796
+ *
797
+ * @throws {@link Samsara.UnauthorizedError}
798
+ * @throws {@link Samsara.NotFoundError}
799
+ * @throws {@link Samsara.MethodNotAllowedError}
800
+ * @throws {@link Samsara.TooManyRequestsError}
801
+ * @throws {@link Samsara.InternalServerError}
802
+ * @throws {@link Samsara.NotImplementedError}
803
+ * @throws {@link Samsara.BadGatewayError}
804
+ * @throws {@link Samsara.ServiceUnavailableError}
805
+ * @throws {@link Samsara.GatewayTimeoutError}
806
+ *
807
+ * @example
808
+ * await client.betaApIs.updateFunctionStorageFile({
809
+ * name: "name"
810
+ * })
811
+ */
812
+ updateFunctionStorageFile(request: Samsara.UpdateFunctionStorageFileRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsStorageUpdateFunctionStorageFileResponseBody>;
813
+ private __updateFunctionStorageFile;
752
814
  /**
753
815
  * Delete a file from Functions storage by name.
754
816
  *
@@ -779,6 +841,34 @@ export declare class BetaApIsClient {
779
841
  */
780
842
  deleteFunctionStorageFile(request: Samsara.DeleteFunctionStorageFileRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
781
843
  private __deleteFunctionStorageFile;
844
+ /**
845
+ * List files in Functions storage for the organization. Returns file metadata and optionally includes presigned download or upload URLs.
846
+ *
847
+ * <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>).
848
+ *
849
+ * To use this endpoint, select **Read Functions Storage** under the Functions 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>
850
+ *
851
+ *
852
+ * **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.
853
+ *
854
+ * @param {Samsara.ListFunctionsStorageFilesRequest} request
855
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
856
+ *
857
+ * @throws {@link Samsara.UnauthorizedError}
858
+ * @throws {@link Samsara.NotFoundError}
859
+ * @throws {@link Samsara.MethodNotAllowedError}
860
+ * @throws {@link Samsara.TooManyRequestsError}
861
+ * @throws {@link Samsara.InternalServerError}
862
+ * @throws {@link Samsara.NotImplementedError}
863
+ * @throws {@link Samsara.BadGatewayError}
864
+ * @throws {@link Samsara.ServiceUnavailableError}
865
+ * @throws {@link Samsara.GatewayTimeoutError}
866
+ *
867
+ * @example
868
+ * await client.betaApIs.listFunctionsStorageFiles()
869
+ */
870
+ listFunctionsStorageFiles(request?: Samsara.ListFunctionsStorageFilesRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsStorageListFunctionsStorageFilesResponseBody>;
871
+ private __listFunctionsStorageFiles;
782
872
  /**
783
873
  * Retrieve the current state of an existing Function, including its configuration, code package status, and a `lastUpdateTimestampMs` value for use in subsequent PATCH requests.
784
874
  *
@@ -2186,7 +2186,7 @@ class BetaApIsClient {
2186
2186
  });
2187
2187
  }
2188
2188
  /**
2189
- * List files in Functions storage for the organization. Returns file metadata and optionally includes presigned download or upload URLs.
2189
+ * Get a file from Functions storage by name. Returns file metadata and a presigned download URL.
2190
2190
  *
2191
2191
  * <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>).
2192
2192
  *
@@ -2195,7 +2195,7 @@ class BetaApIsClient {
2195
2195
  *
2196
2196
  * **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.
2197
2197
  *
2198
- * @param {Samsara.ListFunctionsStorageFilesRequest} request
2198
+ * @param {Samsara.GetFunctionStorageFileRequest} request
2199
2199
  * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2200
2200
  *
2201
2201
  * @throws {@link Samsara.UnauthorizedError}
@@ -2209,20 +2209,19 @@ class BetaApIsClient {
2209
2209
  * @throws {@link Samsara.GatewayTimeoutError}
2210
2210
  *
2211
2211
  * @example
2212
- * await client.betaApIs.listFunctionsStorageFiles()
2212
+ * await client.betaApIs.getFunctionStorageFile({
2213
+ * name: "name"
2214
+ * })
2213
2215
  */
2214
- listFunctionsStorageFiles(request = {}, requestOptions) {
2215
- return core.HttpResponsePromise.fromPromise(this.__listFunctionsStorageFiles(request, requestOptions));
2216
+ getFunctionStorageFile(request, requestOptions) {
2217
+ return core.HttpResponsePromise.fromPromise(this.__getFunctionStorageFile(request, requestOptions));
2216
2218
  }
2217
- __listFunctionsStorageFiles() {
2218
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
2219
+ __getFunctionStorageFile(request, requestOptions) {
2220
+ return __awaiter(this, void 0, void 0, function* () {
2219
2221
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2220
- const { after, limit, includeDownloadUrls, includeUploadUrls } = request;
2222
+ const { name } = request;
2221
2223
  const _queryParams = {
2222
- after,
2223
- limit,
2224
- includeDownloadUrls,
2225
- includeUploadUrls,
2224
+ name,
2226
2225
  };
2227
2226
  const _authRequest = yield this._options.authProvider.getAuthRequest();
2228
2227
  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);
@@ -2274,6 +2273,181 @@ class BetaApIsClient {
2274
2273
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/functions-storage/files");
2275
2274
  });
2276
2275
  }
2276
+ /**
2277
+ * Create a new file in Functions storage. Returns a presigned upload URL. Returns an error if the file already exists.
2278
+ *
2279
+ * <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>).
2280
+ *
2281
+ * To use this endpoint, select **Write Functions Storage** under the Functions 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>
2282
+ *
2283
+ *
2284
+ * **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.
2285
+ *
2286
+ * @param {Samsara.FunctionsStorageCreateFunctionStorageFileRequestBody} request
2287
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2288
+ *
2289
+ * @throws {@link Samsara.UnauthorizedError}
2290
+ * @throws {@link Samsara.NotFoundError}
2291
+ * @throws {@link Samsara.MethodNotAllowedError}
2292
+ * @throws {@link Samsara.TooManyRequestsError}
2293
+ * @throws {@link Samsara.InternalServerError}
2294
+ * @throws {@link Samsara.NotImplementedError}
2295
+ * @throws {@link Samsara.BadGatewayError}
2296
+ * @throws {@link Samsara.ServiceUnavailableError}
2297
+ * @throws {@link Samsara.GatewayTimeoutError}
2298
+ *
2299
+ * @example
2300
+ * await client.betaApIs.createFunctionStorageFile({
2301
+ * name: "my-script.js"
2302
+ * })
2303
+ */
2304
+ createFunctionStorageFile(request, requestOptions) {
2305
+ return core.HttpResponsePromise.fromPromise(this.__createFunctionStorageFile(request, requestOptions));
2306
+ }
2307
+ __createFunctionStorageFile(request, requestOptions) {
2308
+ return __awaiter(this, void 0, void 0, function* () {
2309
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2310
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
2311
+ 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);
2312
+ const _response = yield core.fetcher({
2313
+ 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, "functions-storage/files"),
2314
+ method: "POST",
2315
+ headers: _headers,
2316
+ contentType: "application/json",
2317
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
2318
+ requestType: "json",
2319
+ body: request,
2320
+ 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,
2321
+ 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,
2322
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2323
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
2324
+ logging: this._options.logging,
2325
+ });
2326
+ if (_response.ok) {
2327
+ return {
2328
+ data: _response.body,
2329
+ rawResponse: _response.rawResponse,
2330
+ };
2331
+ }
2332
+ if (_response.error.reason === "status-code") {
2333
+ switch (_response.error.statusCode) {
2334
+ case 401:
2335
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
2336
+ case 404:
2337
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
2338
+ case 405:
2339
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
2340
+ case 429:
2341
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
2342
+ case 500:
2343
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
2344
+ case 501:
2345
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
2346
+ case 502:
2347
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
2348
+ case 503:
2349
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
2350
+ case 504:
2351
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
2352
+ default:
2353
+ throw new errors.SamsaraError({
2354
+ statusCode: _response.error.statusCode,
2355
+ body: _response.error.body,
2356
+ rawResponse: _response.rawResponse,
2357
+ });
2358
+ }
2359
+ }
2360
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/functions-storage/files");
2361
+ });
2362
+ }
2363
+ /**
2364
+ * Get a presigned upload URL for overwriting an existing file in Functions storage. Returns an error if the file does not exist.
2365
+ *
2366
+ * <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>).
2367
+ *
2368
+ * To use this endpoint, select **Write Functions Storage** under the Functions 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>
2369
+ *
2370
+ *
2371
+ * **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.
2372
+ *
2373
+ * @param {Samsara.UpdateFunctionStorageFileRequest} request
2374
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2375
+ *
2376
+ * @throws {@link Samsara.UnauthorizedError}
2377
+ * @throws {@link Samsara.NotFoundError}
2378
+ * @throws {@link Samsara.MethodNotAllowedError}
2379
+ * @throws {@link Samsara.TooManyRequestsError}
2380
+ * @throws {@link Samsara.InternalServerError}
2381
+ * @throws {@link Samsara.NotImplementedError}
2382
+ * @throws {@link Samsara.BadGatewayError}
2383
+ * @throws {@link Samsara.ServiceUnavailableError}
2384
+ * @throws {@link Samsara.GatewayTimeoutError}
2385
+ *
2386
+ * @example
2387
+ * await client.betaApIs.updateFunctionStorageFile({
2388
+ * name: "name"
2389
+ * })
2390
+ */
2391
+ updateFunctionStorageFile(request, requestOptions) {
2392
+ return core.HttpResponsePromise.fromPromise(this.__updateFunctionStorageFile(request, requestOptions));
2393
+ }
2394
+ __updateFunctionStorageFile(request, requestOptions) {
2395
+ return __awaiter(this, void 0, void 0, function* () {
2396
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2397
+ const { name } = request;
2398
+ const _queryParams = {
2399
+ name,
2400
+ };
2401
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
2402
+ 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);
2403
+ const _response = yield core.fetcher({
2404
+ 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, "functions-storage/files"),
2405
+ method: "PUT",
2406
+ headers: _headers,
2407
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
2408
+ 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,
2409
+ 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,
2410
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2411
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
2412
+ logging: this._options.logging,
2413
+ });
2414
+ if (_response.ok) {
2415
+ return {
2416
+ data: _response.body,
2417
+ rawResponse: _response.rawResponse,
2418
+ };
2419
+ }
2420
+ if (_response.error.reason === "status-code") {
2421
+ switch (_response.error.statusCode) {
2422
+ case 401:
2423
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
2424
+ case 404:
2425
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
2426
+ case 405:
2427
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
2428
+ case 429:
2429
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
2430
+ case 500:
2431
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
2432
+ case 501:
2433
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
2434
+ case 502:
2435
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
2436
+ case 503:
2437
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
2438
+ case 504:
2439
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
2440
+ default:
2441
+ throw new errors.SamsaraError({
2442
+ statusCode: _response.error.statusCode,
2443
+ body: _response.error.body,
2444
+ rawResponse: _response.rawResponse,
2445
+ });
2446
+ }
2447
+ }
2448
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/functions-storage/files");
2449
+ });
2450
+ }
2277
2451
  /**
2278
2452
  * Delete a file from Functions storage by name.
2279
2453
  *
@@ -2359,6 +2533,95 @@ class BetaApIsClient {
2359
2533
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/functions-storage/files");
2360
2534
  });
2361
2535
  }
2536
+ /**
2537
+ * List files in Functions storage for the organization. Returns file metadata and optionally includes presigned download or upload URLs.
2538
+ *
2539
+ * <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>).
2540
+ *
2541
+ * To use this endpoint, select **Read Functions Storage** under the Functions 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>
2542
+ *
2543
+ *
2544
+ * **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.
2545
+ *
2546
+ * @param {Samsara.ListFunctionsStorageFilesRequest} request
2547
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
2548
+ *
2549
+ * @throws {@link Samsara.UnauthorizedError}
2550
+ * @throws {@link Samsara.NotFoundError}
2551
+ * @throws {@link Samsara.MethodNotAllowedError}
2552
+ * @throws {@link Samsara.TooManyRequestsError}
2553
+ * @throws {@link Samsara.InternalServerError}
2554
+ * @throws {@link Samsara.NotImplementedError}
2555
+ * @throws {@link Samsara.BadGatewayError}
2556
+ * @throws {@link Samsara.ServiceUnavailableError}
2557
+ * @throws {@link Samsara.GatewayTimeoutError}
2558
+ *
2559
+ * @example
2560
+ * await client.betaApIs.listFunctionsStorageFiles()
2561
+ */
2562
+ listFunctionsStorageFiles(request = {}, requestOptions) {
2563
+ return core.HttpResponsePromise.fromPromise(this.__listFunctionsStorageFiles(request, requestOptions));
2564
+ }
2565
+ __listFunctionsStorageFiles() {
2566
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
2567
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2568
+ const { after, limit, includeDownloadUrls, includeUploadUrls } = request;
2569
+ const _queryParams = {
2570
+ after,
2571
+ limit,
2572
+ includeDownloadUrls,
2573
+ includeUploadUrls,
2574
+ };
2575
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
2576
+ 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);
2577
+ const _response = yield core.fetcher({
2578
+ 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, "functions-storage/ls"),
2579
+ method: "GET",
2580
+ headers: _headers,
2581
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
2582
+ 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,
2583
+ 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,
2584
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2585
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
2586
+ logging: this._options.logging,
2587
+ });
2588
+ if (_response.ok) {
2589
+ return {
2590
+ data: _response.body,
2591
+ rawResponse: _response.rawResponse,
2592
+ };
2593
+ }
2594
+ if (_response.error.reason === "status-code") {
2595
+ switch (_response.error.statusCode) {
2596
+ case 401:
2597
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
2598
+ case 404:
2599
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
2600
+ case 405:
2601
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
2602
+ case 429:
2603
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
2604
+ case 500:
2605
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
2606
+ case 501:
2607
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
2608
+ case 502:
2609
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
2610
+ case 503:
2611
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
2612
+ case 504:
2613
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
2614
+ default:
2615
+ throw new errors.SamsaraError({
2616
+ statusCode: _response.error.statusCode,
2617
+ body: _response.error.body,
2618
+ rawResponse: _response.rawResponse,
2619
+ });
2620
+ }
2621
+ }
2622
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/functions-storage/ls");
2623
+ });
2624
+ }
2362
2625
  /**
2363
2626
  * Retrieve the current state of an existing Function, including its configuration, code package status, and a `lastUpdateTimestampMs` value for use in subsequent PATCH requests.
2364
2627
  *
@@ -5,6 +5,6 @@
5
5
  * }
6
6
  */
7
7
  export interface DeleteRidershipRouteSetupRequest {
8
- /** The route ID. This is the Samsara route ID returned by the Routing API. */
8
+ /** The Samsara route ID returned by the Routing API, or an external ID in `key:value` format. For example, `extRoute:WB-12`. */
9
9
  routeId: string;
10
10
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "my-script.js"
5
+ * }
6
+ */
7
+ export interface FunctionsStorageCreateFunctionStorageFileRequestBody {
8
+ /** The name of the file to create. */
9
+ name: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name"
5
+ * }
6
+ */
7
+ export interface GetFunctionStorageFileRequest {
8
+ /** The name of the file. */
9
+ name: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,6 @@
5
5
  * }
6
6
  */
7
7
  export interface GetRidershipRouteSetupRequest {
8
- /** The route ID. This is the Samsara route ID returned by the Routing API. */
8
+ /** The Samsara route ID returned by the Routing API, or an external ID in `key:value` format. For example, `extRoute:WB-12`. */
9
9
  routeId: string;
10
10
  }
@@ -11,6 +11,6 @@ import type * as Samsara from "../../../../index.js";
11
11
  export interface RidershipRouteSetupsCreateRidershipRouteSetupRequestBody {
12
12
  /** List of passenger assignments for the route. */
13
13
  passengers: Samsara.RidershipRouteSetupPassengerInputRequestBody[];
14
- /** The route ID. This is the Samsara route ID returned by the Routing API. */
14
+ /** The Samsara route ID returned by the Routing API, or an external ID in `key:value` format. For example, `extRoute:WB-12`. */
15
15
  routeId: string;
16
16
  }
@@ -9,7 +9,7 @@ import type * as Samsara from "../../../../index.js";
9
9
  * }
10
10
  */
11
11
  export interface RidershipRouteSetupsUpdateRidershipRouteSetupRequestBody {
12
- /** The route ID. This is the Samsara route ID returned by the Routing API. */
12
+ /** The Samsara route ID returned by the Routing API, or an external ID in `key:value` format. For example, `extRoute:WB-12`. */
13
13
  routeId: string;
14
14
  /** List of passenger assignments for the route. */
15
15
  passengers: Samsara.RidershipRouteSetupPassengerInputRequestBody[];
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name"
5
+ * }
6
+ */
7
+ export interface UpdateFunctionStorageFileRequest {
8
+ /** The name of the file. */
9
+ name: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });