samsara-api 4.3.0__py3-none-any.whl → 5.4.0__py3-none-any.whl

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 (2406) hide show
  1. samsara/__init__.py +486 -88
  2. samsara/addresses/client.py +4 -4
  3. samsara/addresses/raw_client.py +4 -4
  4. samsara/addresses/types/create_address_request_address_types_item.py +2 -0
  5. samsara/addresses/types/update_address_request_address_types_item.py +2 -0
  6. samsara/alerts/client.py +4 -0
  7. samsara/alerts/raw_client.py +4 -0
  8. samsara/assets/client.py +2 -2
  9. samsara/assets/raw_client.py +2 -2
  10. samsara/attributes/client.py +4 -4
  11. samsara/attributes/raw_client.py +4 -4
  12. samsara/attributes/types/create_attribute_request_attribute_type.py +1 -1
  13. samsara/attributes/types/update_attribute_request_attribute_type.py +1 -1
  14. samsara/{types/vehicle_stats_time.py → auth_token_for_driver/__init__.py} +1 -2
  15. samsara/auth_token_for_driver/client.py +165 -0
  16. samsara/auth_token_for_driver/raw_client.py +373 -0
  17. samsara/beta_ap_is/__init__.py +0 -6
  18. samsara/beta_ap_is/client.py +853 -1614
  19. samsara/beta_ap_is/raw_client.py +2301 -4062
  20. samsara/beta_ap_is/types/__init__.py +0 -6
  21. samsara/client.py +112 -36
  22. samsara/core/client_wrapper.py +6 -2
  23. samsara/core/http_client.py +41 -7
  24. samsara/core/jsonable_encoder.py +8 -0
  25. samsara/core/pydantic_utilities.py +102 -1
  26. samsara/{types/vehicle_location_time.py → driver_trailer_assignments/__init__.py} +1 -2
  27. samsara/driver_trailer_assignments/client.py +383 -0
  28. samsara/driver_trailer_assignments/raw_client.py +1009 -0
  29. samsara/drivers/client.py +5 -4
  30. samsara/drivers/raw_client.py +7 -6
  31. samsara/legacy_ap_is/client.py +381 -0
  32. samsara/legacy_ap_is/raw_client.py +598 -0
  33. samsara/location_and_speed/client.py +12 -2
  34. samsara/location_and_speed/raw_client.py +12 -2
  35. samsara/media/client.py +10 -10
  36. samsara/media/raw_client.py +8 -8
  37. samsara/media/types/media_retrieval_post_media_retrieval_request_body_media_type.py +3 -1
  38. samsara/messages/client.py +2 -2
  39. samsara/messages/raw_client.py +2 -2
  40. samsara/plans/client.py +24 -4
  41. samsara/plans/raw_client.py +20 -2
  42. samsara/preview_ap_is/client.py +140 -0
  43. samsara/preview_ap_is/raw_client.py +358 -0
  44. samsara/routes/client.py +38 -6
  45. samsara/routes/raw_client.py +32 -2
  46. samsara/safety/__init__.py +30 -0
  47. samsara/safety/client.py +204 -214
  48. samsara/safety/raw_client.py +398 -216
  49. samsara/safety/types/__init__.py +36 -0
  50. samsara/safety/types/get_safety_events_v_2_stream_request_query_by_time_field.py +7 -0
  51. samsara/sensors/client.py +2 -2
  52. samsara/sensors/raw_client.py +2 -2
  53. samsara/trailer_assignments/client.py +4 -4
  54. samsara/trailer_assignments/raw_client.py +4 -4
  55. samsara/{types/safety_event_location.py → training_assignments/__init__.py} +1 -2
  56. samsara/training_assignments/client.py +528 -0
  57. samsara/training_assignments/raw_client.py +1330 -0
  58. samsara/training_courses/__init__.py +4 -0
  59. samsara/training_courses/client.py +168 -0
  60. samsara/training_courses/raw_client.py +364 -0
  61. samsara/trips/__init__.py +33 -0
  62. samsara/trips/client.py +163 -0
  63. samsara/trips/raw_client.py +374 -0
  64. samsara/trips/types/__init__.py +38 -0
  65. samsara/types/__init__.py +638 -78
  66. samsara/types/action_object_request_body.py +4 -2
  67. samsara/types/action_object_response_body.py +4 -2
  68. samsara/types/action_params_object_request_body.py +1 -1
  69. samsara/types/action_params_object_response_body.py +1 -1
  70. samsara/types/address.py +7 -5
  71. samsara/types/address_address_types_item.py +2 -0
  72. samsara/types/address_geofence_circle.py +3 -1
  73. samsara/types/address_geofence_settings.py +1 -1
  74. samsara/types/address_response_response_body.py +3 -3
  75. samsara/types/advanced_idling_get_idling_events_bad_gateway_error_response_body.py +1 -1
  76. samsara/types/advanced_idling_get_idling_events_gateway_timeout_error_response_body.py +1 -1
  77. samsara/types/advanced_idling_get_idling_events_internal_server_error_response_body.py +1 -1
  78. samsara/types/advanced_idling_get_idling_events_method_not_allowed_error_response_body.py +1 -1
  79. samsara/types/advanced_idling_get_idling_events_not_found_error_response_body.py +1 -1
  80. samsara/types/advanced_idling_get_idling_events_not_implemented_error_response_body.py +1 -1
  81. samsara/types/advanced_idling_get_idling_events_service_unavailable_error_response_body.py +1 -1
  82. samsara/types/advanced_idling_get_idling_events_too_many_requests_error_response_body.py +1 -1
  83. samsara/types/advanced_idling_get_idling_events_unauthorized_error_response_body.py +1 -1
  84. samsara/types/aemp_equipment_get_aemp_equipment_list_bad_gateway_error_response_body.py +1 -1
  85. samsara/types/aemp_equipment_get_aemp_equipment_list_gateway_timeout_error_response_body.py +1 -1
  86. samsara/types/aemp_equipment_get_aemp_equipment_list_internal_server_error_response_body.py +1 -1
  87. samsara/types/aemp_equipment_get_aemp_equipment_list_method_not_allowed_error_response_body.py +1 -1
  88. samsara/types/aemp_equipment_get_aemp_equipment_list_not_found_error_response_body.py +1 -1
  89. samsara/types/aemp_equipment_get_aemp_equipment_list_not_implemented_error_response_body.py +1 -1
  90. samsara/types/aemp_equipment_get_aemp_equipment_list_response_body.py +3 -1
  91. samsara/types/aemp_equipment_get_aemp_equipment_list_service_unavailable_error_response_body.py +1 -1
  92. samsara/types/aemp_equipment_get_aemp_equipment_list_too_many_requests_error_response_body.py +1 -1
  93. samsara/types/aemp_equipment_get_aemp_equipment_list_unauthorized_error_response_body.py +1 -1
  94. samsara/types/aemp_equipment_with_additional_fields_response_body.py +11 -7
  95. samsara/types/aemp_fleet_list_response_body.py +5 -3
  96. samsara/types/alert_object_asset_response_body.py +1 -1
  97. samsara/types/alert_object_driver_response_body.py +1 -1
  98. samsara/types/alert_object_onvif_camera_stream_response_body.py +1 -1
  99. samsara/types/alert_object_product_response_body.py +1 -1
  100. samsara/types/alert_object_sensor_response_body.py +1 -1
  101. samsara/types/alert_object_trailer_response_body.py +2 -2
  102. samsara/types/alert_object_vehicle_response_body.py +2 -2
  103. samsara/types/alerts_delete_configurations_bad_gateway_error_response_body.py +1 -1
  104. samsara/types/alerts_delete_configurations_gateway_timeout_error_response_body.py +1 -1
  105. samsara/types/alerts_delete_configurations_internal_server_error_response_body.py +1 -1
  106. samsara/types/alerts_delete_configurations_method_not_allowed_error_response_body.py +1 -1
  107. samsara/types/alerts_delete_configurations_not_found_error_response_body.py +1 -1
  108. samsara/types/alerts_delete_configurations_not_implemented_error_response_body.py +1 -1
  109. samsara/types/alerts_delete_configurations_service_unavailable_error_response_body.py +1 -1
  110. samsara/types/alerts_delete_configurations_too_many_requests_error_response_body.py +1 -1
  111. samsara/types/alerts_delete_configurations_unauthorized_error_response_body.py +1 -1
  112. samsara/types/alerts_get_configurations_bad_gateway_error_response_body.py +1 -1
  113. samsara/types/alerts_get_configurations_gateway_timeout_error_response_body.py +1 -1
  114. samsara/types/alerts_get_configurations_internal_server_error_response_body.py +1 -1
  115. samsara/types/alerts_get_configurations_method_not_allowed_error_response_body.py +1 -1
  116. samsara/types/alerts_get_configurations_not_found_error_response_body.py +1 -1
  117. samsara/types/alerts_get_configurations_not_implemented_error_response_body.py +1 -1
  118. samsara/types/alerts_get_configurations_service_unavailable_error_response_body.py +1 -1
  119. samsara/types/alerts_get_configurations_too_many_requests_error_response_body.py +1 -1
  120. samsara/types/alerts_get_configurations_unauthorized_error_response_body.py +1 -1
  121. samsara/types/alerts_get_incidents_bad_gateway_error_response_body.py +1 -1
  122. samsara/types/alerts_get_incidents_gateway_timeout_error_response_body.py +1 -1
  123. samsara/types/alerts_get_incidents_internal_server_error_response_body.py +1 -1
  124. samsara/types/alerts_get_incidents_method_not_allowed_error_response_body.py +1 -1
  125. samsara/types/alerts_get_incidents_not_found_error_response_body.py +1 -1
  126. samsara/types/alerts_get_incidents_not_implemented_error_response_body.py +1 -1
  127. samsara/types/alerts_get_incidents_service_unavailable_error_response_body.py +1 -1
  128. samsara/types/alerts_get_incidents_too_many_requests_error_response_body.py +1 -1
  129. samsara/types/alerts_get_incidents_unauthorized_error_response_body.py +1 -1
  130. samsara/types/alerts_patch_configurations_bad_gateway_error_response_body.py +1 -1
  131. samsara/types/alerts_patch_configurations_gateway_timeout_error_response_body.py +1 -1
  132. samsara/types/alerts_patch_configurations_internal_server_error_response_body.py +1 -1
  133. samsara/types/alerts_patch_configurations_method_not_allowed_error_response_body.py +1 -1
  134. samsara/types/alerts_patch_configurations_not_found_error_response_body.py +1 -1
  135. samsara/types/alerts_patch_configurations_not_implemented_error_response_body.py +1 -1
  136. samsara/types/alerts_patch_configurations_service_unavailable_error_response_body.py +1 -1
  137. samsara/types/alerts_patch_configurations_too_many_requests_error_response_body.py +1 -1
  138. samsara/types/alerts_patch_configurations_unauthorized_error_response_body.py +1 -1
  139. samsara/types/alerts_post_configurations_bad_gateway_error_response_body.py +1 -1
  140. samsara/types/alerts_post_configurations_gateway_timeout_error_response_body.py +1 -1
  141. samsara/types/alerts_post_configurations_internal_server_error_response_body.py +1 -1
  142. samsara/types/alerts_post_configurations_method_not_allowed_error_response_body.py +1 -1
  143. samsara/types/alerts_post_configurations_not_found_error_response_body.py +1 -1
  144. samsara/types/alerts_post_configurations_not_implemented_error_response_body.py +1 -1
  145. samsara/types/alerts_post_configurations_service_unavailable_error_response_body.py +1 -1
  146. samsara/types/alerts_post_configurations_too_many_requests_error_response_body.py +1 -1
  147. samsara/types/alerts_post_configurations_unauthorized_error_response_body.py +1 -1
  148. samsara/types/ambient_temperature_details_object_request_body.py +6 -4
  149. samsara/types/ambient_temperature_details_object_response_body.py +6 -4
  150. samsara/types/appointment_window_request_body.py +4 -2
  151. samsara/types/appointment_window_response_body.py +4 -2
  152. samsara/types/asset_data_input.py +2 -2
  153. samsara/types/asset_data_output.py +5 -3
  154. samsara/types/asset_data_outputs_patch_asset_data_outputs_bad_gateway_error_response_body.py +1 -1
  155. samsara/types/asset_data_outputs_patch_asset_data_outputs_gateway_timeout_error_response_body.py +1 -1
  156. samsara/types/asset_data_outputs_patch_asset_data_outputs_internal_server_error_response_body.py +1 -1
  157. samsara/types/asset_data_outputs_patch_asset_data_outputs_method_not_allowed_error_response_body.py +1 -1
  158. samsara/types/asset_data_outputs_patch_asset_data_outputs_not_found_error_response_body.py +1 -1
  159. samsara/types/asset_data_outputs_patch_asset_data_outputs_not_implemented_error_response_body.py +1 -1
  160. samsara/types/asset_data_outputs_patch_asset_data_outputs_service_unavailable_error_response_body.py +1 -1
  161. samsara/types/asset_data_outputs_patch_asset_data_outputs_too_many_requests_error_response_body.py +1 -1
  162. samsara/types/asset_data_outputs_patch_asset_data_outputs_unauthorized_error_response_body.py +1 -1
  163. samsara/types/asset_location.py +1 -1
  164. samsara/types/asset_response.py +7 -7
  165. samsara/types/asset_response_body.py +11 -7
  166. samsara/types/asset_response_response_body.py +1 -1
  167. samsara/types/assets_create_asset_bad_gateway_error_response_body.py +1 -1
  168. samsara/types/assets_create_asset_gateway_timeout_error_response_body.py +1 -1
  169. samsara/types/assets_create_asset_internal_server_error_response_body.py +1 -1
  170. samsara/types/assets_create_asset_method_not_allowed_error_response_body.py +1 -1
  171. samsara/types/assets_create_asset_not_found_error_response_body.py +1 -1
  172. samsara/types/assets_create_asset_not_implemented_error_response_body.py +1 -1
  173. samsara/types/assets_create_asset_service_unavailable_error_response_body.py +1 -1
  174. samsara/types/assets_create_asset_too_many_requests_error_response_body.py +1 -1
  175. samsara/types/assets_create_asset_unauthorized_error_response_body.py +1 -1
  176. samsara/types/assets_delete_asset_bad_gateway_error_response_body.py +1 -1
  177. samsara/types/assets_delete_asset_gateway_timeout_error_response_body.py +1 -1
  178. samsara/types/assets_delete_asset_internal_server_error_response_body.py +1 -1
  179. samsara/types/assets_delete_asset_method_not_allowed_error_response_body.py +1 -1
  180. samsara/types/assets_delete_asset_not_found_error_response_body.py +1 -1
  181. samsara/types/assets_delete_asset_not_implemented_error_response_body.py +1 -1
  182. samsara/types/assets_delete_asset_service_unavailable_error_response_body.py +1 -1
  183. samsara/types/assets_delete_asset_too_many_requests_error_response_body.py +1 -1
  184. samsara/types/assets_delete_asset_unauthorized_error_response_body.py +1 -1
  185. samsara/types/assets_inputs_asset_response_response_body.py +1 -1
  186. samsara/types/assets_inputs_get_assets_inputs_bad_gateway_error_response_body.py +1 -1
  187. samsara/types/assets_inputs_get_assets_inputs_gateway_timeout_error_response_body.py +1 -1
  188. samsara/types/assets_inputs_get_assets_inputs_internal_server_error_response_body.py +1 -1
  189. samsara/types/assets_inputs_get_assets_inputs_method_not_allowed_error_response_body.py +1 -1
  190. samsara/types/assets_inputs_get_assets_inputs_not_found_error_response_body.py +1 -1
  191. samsara/types/assets_inputs_get_assets_inputs_not_implemented_error_response_body.py +1 -1
  192. samsara/types/assets_inputs_get_assets_inputs_service_unavailable_error_response_body.py +1 -1
  193. samsara/types/assets_inputs_get_assets_inputs_too_many_requests_error_response_body.py +1 -1
  194. samsara/types/assets_inputs_get_assets_inputs_unauthorized_error_response_body.py +1 -1
  195. samsara/types/assets_inputs_response_response_body.py +4 -2
  196. samsara/types/assets_list_assets_bad_gateway_error_response_body.py +1 -1
  197. samsara/types/assets_list_assets_gateway_timeout_error_response_body.py +1 -1
  198. samsara/types/assets_list_assets_internal_server_error_response_body.py +1 -1
  199. samsara/types/assets_list_assets_method_not_allowed_error_response_body.py +1 -1
  200. samsara/types/assets_list_assets_not_found_error_response_body.py +1 -1
  201. samsara/types/assets_list_assets_not_implemented_error_response_body.py +1 -1
  202. samsara/types/assets_list_assets_service_unavailable_error_response_body.py +1 -1
  203. samsara/types/assets_list_assets_too_many_requests_error_response_body.py +1 -1
  204. samsara/types/assets_list_assets_unauthorized_error_response_body.py +1 -1
  205. samsara/types/assets_location_link_config_address_details_object.py +3 -1
  206. samsara/types/assets_location_link_config_address_details_object_response_body.py +3 -1
  207. samsara/types/assets_location_link_request_config_object.py +2 -2
  208. samsara/types/assets_location_link_response_config_object_response_body.py +1 -1
  209. samsara/types/assets_near_location_link_config_object.py +1 -1
  210. samsara/types/assets_near_location_link_config_object_response_body.py +1 -1
  211. samsara/types/assets_on_route_link_config_object.py +3 -1
  212. samsara/types/assets_on_route_link_config_object_response_body.py +3 -1
  213. samsara/types/assets_update_asset_bad_gateway_error_response_body.py +1 -1
  214. samsara/types/assets_update_asset_gateway_timeout_error_response_body.py +1 -1
  215. samsara/types/assets_update_asset_internal_server_error_response_body.py +1 -1
  216. samsara/types/assets_update_asset_method_not_allowed_error_response_body.py +1 -1
  217. samsara/types/assets_update_asset_not_found_error_response_body.py +1 -1
  218. samsara/types/assets_update_asset_not_implemented_error_response_body.py +1 -1
  219. samsara/types/assets_update_asset_service_unavailable_error_response_body.py +1 -1
  220. samsara/types/assets_update_asset_too_many_requests_error_response_body.py +1 -1
  221. samsara/types/assets_update_asset_unauthorized_error_response_body.py +1 -1
  222. samsara/types/attribute.py +5 -5
  223. samsara/types/attribute_attribute_type.py +1 -1
  224. samsara/types/attribute_entity.py +13 -4
  225. samsara/types/attribute_tiny.py +9 -2
  226. samsara/types/attribute_value_tiny.py +1 -1
  227. samsara/types/auth_token_auth_token_bad_gateway_error_response_body.py +33 -0
  228. samsara/types/auth_token_auth_token_gateway_timeout_error_response_body.py +33 -0
  229. samsara/types/auth_token_auth_token_internal_server_error_response_body.py +33 -0
  230. samsara/types/auth_token_auth_token_method_not_allowed_error_response_body.py +33 -0
  231. samsara/types/auth_token_auth_token_not_found_error_response_body.py +33 -0
  232. samsara/types/auth_token_auth_token_not_implemented_error_response_body.py +33 -0
  233. samsara/types/auth_token_auth_token_response_body.py +20 -0
  234. samsara/types/auth_token_auth_token_service_unavailable_error_response_body.py +33 -0
  235. samsara/types/auth_token_auth_token_too_many_requests_error_response_body.py +33 -0
  236. samsara/types/auth_token_auth_token_unauthorized_error_response_body.py +33 -0
  237. samsara/types/auth_token_for_driver_response_response_body.py +35 -0
  238. samsara/types/author_signature_object_response_body.py +6 -2
  239. samsara/types/barcode_value_object_request_body.py +2 -2
  240. samsara/types/barcode_value_object_response_body.py +2 -2
  241. samsara/types/base_route_response_object_response_body.py +8 -8
  242. samsara/types/behavior_count_details_request_body.py +41 -0
  243. samsara/types/behavior_count_details_request_body_comparison.py +8 -0
  244. samsara/types/behavior_count_details_response_body.py +41 -0
  245. samsara/types/behavior_count_details_response_body_comparison.py +8 -0
  246. samsara/types/behavior_response_body.py +6 -4
  247. samsara/types/camera_details_response_response_body.py +3 -3
  248. samsara/types/camera_stream_issue_response_body.py +1 -1
  249. samsara/types/carrier_proposed_assignment.py +7 -5
  250. samsara/types/carrier_proposed_assignment_driver_all_of.py +1 -1
  251. samsara/types/cell_connectivity_response_response_body.py +1 -1
  252. samsara/types/cell_signal_loss_details_object_request_body.py +1 -1
  253. samsara/types/cell_signal_loss_details_object_response_body.py +1 -1
  254. samsara/types/circle_request_body.py +3 -1
  255. samsara/types/circle_response_body.py +3 -1
  256. samsara/types/coach_assignment_with_driver_external_ids_response_response_body.py +7 -3
  257. samsara/types/coach_assignment_without_driver_external_ids_response_response_body.py +8 -4
  258. samsara/types/coaching_sessions_get_coaching_sessions_bad_gateway_error_response_body.py +1 -1
  259. samsara/types/coaching_sessions_get_coaching_sessions_gateway_timeout_error_response_body.py +1 -1
  260. samsara/types/coaching_sessions_get_coaching_sessions_internal_server_error_response_body.py +1 -1
  261. samsara/types/coaching_sessions_get_coaching_sessions_method_not_allowed_error_response_body.py +1 -1
  262. samsara/types/coaching_sessions_get_coaching_sessions_not_found_error_response_body.py +1 -1
  263. samsara/types/coaching_sessions_get_coaching_sessions_not_implemented_error_response_body.py +1 -1
  264. samsara/types/coaching_sessions_get_coaching_sessions_service_unavailable_error_response_body.py +1 -1
  265. samsara/types/coaching_sessions_get_coaching_sessions_too_many_requests_error_response_body.py +1 -1
  266. samsara/types/coaching_sessions_get_coaching_sessions_unauthorized_error_response_body.py +1 -1
  267. samsara/types/coaching_sessions_response_response_body.py +12 -8
  268. samsara/types/column_response_body.py +38 -0
  269. samsara/types/column_response_body_data_type.py +7 -0
  270. samsara/types/column_response_body_unit.py +88 -0
  271. samsara/types/conditional_field_section_object_response_body.py +4 -4
  272. samsara/types/connection_status_response_object_response_body.py +2 -2
  273. samsara/types/contact.py +6 -2
  274. samsara/types/contact_tiny_response.py +2 -2
  275. samsara/types/continuous_reading_alert_threshold_response_body.py +2 -2
  276. samsara/types/continuous_reading_alert_threshold_response_body_unit.py +10 -0
  277. samsara/types/create_address_request_geofence_settings.py +1 -1
  278. samsara/types/create_attribute_request_entities.py +12 -4
  279. samsara/types/create_driver_auth_token_response_response_body.py +3 -1
  280. samsara/types/create_driver_request_attributes.py +2 -2
  281. samsara/types/create_report_config_column_request_body.py +24 -0
  282. samsara/types/create_report_config_object_request_body.py +43 -0
  283. samsara/types/create_routes_stop_request_object_request_body.py +8 -8
  284. samsara/types/create_user_request_roles.py +2 -2
  285. samsara/types/cumulative_operating_hours_response_body.py +1 -1
  286. samsara/types/current_duty_status.py +1 -1
  287. samsara/types/data_input_response_all_of.py +5 -5
  288. samsara/types/data_input_snapshot_all_of.py +5 -5
  289. samsara/types/data_input_tiny_response.py +2 -2
  290. samsara/types/data_input_value_response_body.py +1 -1
  291. samsara/types/data_usage_response_object_response_body.py +2 -2
  292. samsara/types/date_time_value_object_request_body.py +1 -1
  293. samsara/types/date_time_value_object_response_body.py +1 -1
  294. samsara/types/def_level_trigger_details_object_request_body.py +4 -2
  295. samsara/types/def_level_trigger_details_object_response_body.py +4 -2
  296. samsara/types/def_remaining_response_body.py +1 -1
  297. samsara/types/defect.py +9 -7
  298. samsara/types/defect_photo_response_response_body.py +3 -1
  299. samsara/types/defect_trailer_response_response_body.py +1 -1
  300. samsara/types/defect_types_response_data_response_body.py +4 -2
  301. samsara/types/defect_vehicle_response_response_body.py +1 -1
  302. samsara/types/defects_response_data_response_body.py +11 -9
  303. samsara/types/depreciation_get_depreciation_transactions_bad_gateway_error_response_body.py +33 -0
  304. samsara/types/depreciation_get_depreciation_transactions_gateway_timeout_error_response_body.py +33 -0
  305. samsara/types/depreciation_get_depreciation_transactions_internal_server_error_response_body.py +33 -0
  306. samsara/types/depreciation_get_depreciation_transactions_method_not_allowed_error_response_body.py +33 -0
  307. samsara/types/depreciation_get_depreciation_transactions_not_found_error_response_body.py +33 -0
  308. samsara/types/depreciation_get_depreciation_transactions_not_implemented_error_response_body.py +33 -0
  309. samsara/types/depreciation_get_depreciation_transactions_response_body.py +26 -0
  310. samsara/types/depreciation_get_depreciation_transactions_service_unavailable_error_response_body.py +33 -0
  311. samsara/types/depreciation_get_depreciation_transactions_too_many_requests_error_response_body.py +33 -0
  312. samsara/types/depreciation_get_depreciation_transactions_unauthorized_error_response_body.py +33 -0
  313. samsara/types/depreciation_transaction_money_object_response_body.py +34 -0
  314. samsara/types/depreciation_transaction_money_object_response_body_currency.py +7 -0
  315. samsara/types/depreciation_transaction_object_response_body.py +79 -0
  316. samsara/types/depreciation_transaction_object_response_body_transaction_type.py +7 -0
  317. samsara/types/detection_log_detection_object_response_body.py +12 -6
  318. samsara/types/detection_log_detection_object_response_body_trigger_detection_label.py +7 -0
  319. samsara/types/detection_log_driver_object_response_body.py +1 -1
  320. samsara/types/detection_log_get_detections_bad_gateway_error_response_body.py +1 -1
  321. samsara/types/detection_log_get_detections_gateway_timeout_error_response_body.py +1 -1
  322. samsara/types/detection_log_get_detections_internal_server_error_response_body.py +1 -1
  323. samsara/types/detection_log_get_detections_method_not_allowed_error_response_body.py +1 -1
  324. samsara/types/detection_log_get_detections_not_found_error_response_body.py +1 -1
  325. samsara/types/detection_log_get_detections_not_implemented_error_response_body.py +1 -1
  326. samsara/types/detection_log_get_detections_service_unavailable_error_response_body.py +1 -1
  327. samsara/types/detection_log_get_detections_too_many_requests_error_response_body.py +1 -1
  328. samsara/types/detection_log_get_detections_unauthorized_error_response_body.py +1 -1
  329. samsara/types/detection_log_safety_event_object_response_body.py +10 -3
  330. samsara/types/detection_log_safety_event_object_response_body_inbox_filter_reason.py +1 -0
  331. samsara/types/device_movement_trigger_details_object_request_body.py +1 -1
  332. samsara/types/device_movement_trigger_details_object_response_body.py +1 -1
  333. samsara/types/device_response_response_body.py +8 -2
  334. samsara/types/devices_get_devices_bad_gateway_error_response_body.py +1 -1
  335. samsara/types/devices_get_devices_gateway_timeout_error_response_body.py +1 -1
  336. samsara/types/devices_get_devices_internal_server_error_response_body.py +1 -1
  337. samsara/types/devices_get_devices_method_not_allowed_error_response_body.py +1 -1
  338. samsara/types/devices_get_devices_not_found_error_response_body.py +1 -1
  339. samsara/types/devices_get_devices_not_implemented_error_response_body.py +1 -1
  340. samsara/types/devices_get_devices_service_unavailable_error_response_body.py +1 -1
  341. samsara/types/devices_get_devices_too_many_requests_error_response_body.py +1 -1
  342. samsara/types/devices_get_devices_unauthorized_error_response_body.py +1 -1
  343. samsara/types/distance_response_body.py +2 -2
  344. samsara/types/distance_traveled_object_response_body.py +3 -3
  345. samsara/types/distracted_driving_detection_alert_settings_object_response_body.py +3 -3
  346. samsara/types/document_pdf_generation_response_data.py +1 -1
  347. samsara/types/document_pdf_query_response_data.py +5 -5
  348. samsara/types/document_response_object_response_body.py +7 -5
  349. samsara/types/document_types_get_document_types_bad_gateway_error_response_body.py +1 -1
  350. samsara/types/document_types_get_document_types_gateway_timeout_error_response_body.py +1 -1
  351. samsara/types/document_types_get_document_types_internal_server_error_response_body.py +1 -1
  352. samsara/types/document_types_get_document_types_method_not_allowed_error_response_body.py +1 -1
  353. samsara/types/document_types_get_document_types_not_found_error_response_body.py +1 -1
  354. samsara/types/document_types_get_document_types_not_implemented_error_response_body.py +1 -1
  355. samsara/types/document_types_get_document_types_service_unavailable_error_response_body.py +1 -1
  356. samsara/types/document_types_get_document_types_too_many_requests_error_response_body.py +1 -1
  357. samsara/types/document_types_get_document_types_unauthorized_error_response_body.py +1 -1
  358. samsara/types/documents_delete_document_bad_gateway_error_response_body.py +1 -1
  359. samsara/types/documents_delete_document_gateway_timeout_error_response_body.py +1 -1
  360. samsara/types/documents_delete_document_internal_server_error_response_body.py +1 -1
  361. samsara/types/documents_delete_document_method_not_allowed_error_response_body.py +1 -1
  362. samsara/types/documents_delete_document_not_found_error_response_body.py +1 -1
  363. samsara/types/documents_delete_document_not_implemented_error_response_body.py +1 -1
  364. samsara/types/documents_delete_document_service_unavailable_error_response_body.py +1 -1
  365. samsara/types/documents_delete_document_too_many_requests_error_response_body.py +1 -1
  366. samsara/types/documents_delete_document_unauthorized_error_response_body.py +1 -1
  367. samsara/types/documents_get_document_bad_gateway_error_response_body.py +1 -1
  368. samsara/types/documents_get_document_gateway_timeout_error_response_body.py +1 -1
  369. samsara/types/documents_get_document_internal_server_error_response_body.py +1 -1
  370. samsara/types/documents_get_document_method_not_allowed_error_response_body.py +1 -1
  371. samsara/types/documents_get_document_not_found_error_response_body.py +1 -1
  372. samsara/types/documents_get_document_not_implemented_error_response_body.py +1 -1
  373. samsara/types/documents_get_document_service_unavailable_error_response_body.py +1 -1
  374. samsara/types/documents_get_document_too_many_requests_error_response_body.py +1 -1
  375. samsara/types/documents_get_document_unauthorized_error_response_body.py +1 -1
  376. samsara/types/documents_get_documents_bad_gateway_error_response_body.py +1 -1
  377. samsara/types/documents_get_documents_gateway_timeout_error_response_body.py +1 -1
  378. samsara/types/documents_get_documents_internal_server_error_response_body.py +1 -1
  379. samsara/types/documents_get_documents_method_not_allowed_error_response_body.py +1 -1
  380. samsara/types/documents_get_documents_not_found_error_response_body.py +1 -1
  381. samsara/types/documents_get_documents_not_implemented_error_response_body.py +1 -1
  382. samsara/types/documents_get_documents_service_unavailable_error_response_body.py +1 -1
  383. samsara/types/documents_get_documents_too_many_requests_error_response_body.py +1 -1
  384. samsara/types/documents_get_documents_unauthorized_error_response_body.py +1 -1
  385. samsara/types/documents_post_document_bad_gateway_error_response_body.py +1 -1
  386. samsara/types/documents_post_document_gateway_timeout_error_response_body.py +1 -1
  387. samsara/types/documents_post_document_internal_server_error_response_body.py +1 -1
  388. samsara/types/documents_post_document_method_not_allowed_error_response_body.py +1 -1
  389. samsara/types/documents_post_document_not_found_error_response_body.py +1 -1
  390. samsara/types/documents_post_document_not_implemented_error_response_body.py +1 -1
  391. samsara/types/documents_post_document_service_unavailable_error_response_body.py +1 -1
  392. samsara/types/documents_post_document_too_many_requests_error_response_body.py +1 -1
  393. samsara/types/documents_post_document_unauthorized_error_response_body.py +1 -1
  394. samsara/types/driver.py +28 -26
  395. samsara/types/driver_app_notification_object_request_body.py +2 -2
  396. samsara/types/driver_app_notification_object_response_body.py +2 -2
  397. samsara/types/driver_app_settings_gamification_config_tiny_object_request_body.py +1 -1
  398. samsara/types/driver_app_settings_gamification_config_tiny_object_response_body.py +1 -1
  399. samsara/types/driver_app_settings_response_object_response_body.py +5 -5
  400. samsara/types/driver_app_settings_trailer_selection_config_tiny_object_request_body.py +3 -3
  401. samsara/types/driver_app_settings_trailer_selection_config_tiny_object_response_body.py +3 -3
  402. samsara/types/driver_app_sign_in_response_body.py +1 -1
  403. samsara/types/driver_assignment_metadata_tiny_object_response_body.py +1 -1
  404. samsara/types/driver_assignment_object_response_body.py +4 -4
  405. samsara/types/driver_carrier_settings.py +5 -5
  406. samsara/types/driver_coach_assignments_get_driver_coach_assignment_bad_gateway_error_response_body.py +1 -1
  407. samsara/types/driver_coach_assignments_get_driver_coach_assignment_gateway_timeout_error_response_body.py +1 -1
  408. samsara/types/driver_coach_assignments_get_driver_coach_assignment_internal_server_error_response_body.py +1 -1
  409. samsara/types/driver_coach_assignments_get_driver_coach_assignment_method_not_allowed_error_response_body.py +1 -1
  410. samsara/types/driver_coach_assignments_get_driver_coach_assignment_not_found_error_response_body.py +1 -1
  411. samsara/types/driver_coach_assignments_get_driver_coach_assignment_not_implemented_error_response_body.py +1 -1
  412. samsara/types/driver_coach_assignments_get_driver_coach_assignment_service_unavailable_error_response_body.py +1 -1
  413. samsara/types/driver_coach_assignments_get_driver_coach_assignment_too_many_requests_error_response_body.py +1 -1
  414. samsara/types/driver_coach_assignments_get_driver_coach_assignment_unauthorized_error_response_body.py +1 -1
  415. samsara/types/driver_coach_assignments_put_driver_coach_assignment_bad_gateway_error_response_body.py +1 -1
  416. samsara/types/driver_coach_assignments_put_driver_coach_assignment_gateway_timeout_error_response_body.py +1 -1
  417. samsara/types/driver_coach_assignments_put_driver_coach_assignment_internal_server_error_response_body.py +1 -1
  418. samsara/types/driver_coach_assignments_put_driver_coach_assignment_method_not_allowed_error_response_body.py +1 -1
  419. samsara/types/driver_coach_assignments_put_driver_coach_assignment_not_found_error_response_body.py +1 -1
  420. samsara/types/driver_coach_assignments_put_driver_coach_assignment_not_implemented_error_response_body.py +1 -1
  421. samsara/types/driver_coach_assignments_put_driver_coach_assignment_service_unavailable_error_response_body.py +1 -1
  422. samsara/types/driver_coach_assignments_put_driver_coach_assignment_too_many_requests_error_response_body.py +1 -1
  423. samsara/types/driver_coach_assignments_put_driver_coach_assignment_unauthorized_error_response_body.py +1 -1
  424. samsara/types/driver_document_submitted_details_object_request_body.py +3 -1
  425. samsara/types/driver_document_submitted_details_object_response_body.py +3 -1
  426. samsara/types/driver_efficiencies_response_data.py +3 -3
  427. samsara/types/driver_efficiency.py +15 -13
  428. samsara/types/driver_efficiency_data_object_response_body.py +11 -9
  429. samsara/types/driver_efficiency_difficulty_score_data_object_response_body.py +3 -3
  430. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_bad_gateway_error_response_body.py +1 -1
  431. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_gateway_timeout_error_response_body.py +1 -1
  432. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_internal_server_error_response_body.py +1 -1
  433. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_method_not_allowed_error_response_body.py +1 -1
  434. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_not_found_error_response_body.py +1 -1
  435. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_not_implemented_error_response_body.py +1 -1
  436. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_service_unavailable_error_response_body.py +1 -1
  437. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_too_many_requests_error_response_body.py +1 -1
  438. samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_unauthorized_error_response_body.py +1 -1
  439. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_bad_gateway_error_response_body.py +1 -1
  440. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_gateway_timeout_error_response_body.py +1 -1
  441. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_internal_server_error_response_body.py +1 -1
  442. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_method_not_allowed_error_response_body.py +1 -1
  443. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_not_found_error_response_body.py +1 -1
  444. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_not_implemented_error_response_body.py +1 -1
  445. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_service_unavailable_error_response_body.py +1 -1
  446. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_too_many_requests_error_response_body.py +1 -1
  447. samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_unauthorized_error_response_body.py +1 -1
  448. samsara/types/driver_efficiency_percentage_data_object_response_body.py +11 -9
  449. samsara/types/driver_efficiency_raw_data_object_response_body.py +17 -15
  450. samsara/types/driver_eld_ruleset.py +3 -1
  451. samsara/types/driver_hos_setting.py +1 -1
  452. samsara/types/driver_or_tag_ids_details_request_body.py +37 -0
  453. samsara/types/driver_or_tag_ids_details_response_body.py +37 -0
  454. samsara/types/driver_qr_codes_create_driver_qr_code_bad_gateway_error_response_body.py +1 -1
  455. samsara/types/driver_qr_codes_create_driver_qr_code_gateway_timeout_error_response_body.py +1 -1
  456. samsara/types/driver_qr_codes_create_driver_qr_code_internal_server_error_response_body.py +1 -1
  457. samsara/types/driver_qr_codes_create_driver_qr_code_method_not_allowed_error_response_body.py +1 -1
  458. samsara/types/driver_qr_codes_create_driver_qr_code_not_found_error_response_body.py +1 -1
  459. samsara/types/driver_qr_codes_create_driver_qr_code_not_implemented_error_response_body.py +1 -1
  460. samsara/types/driver_qr_codes_create_driver_qr_code_service_unavailable_error_response_body.py +1 -1
  461. samsara/types/driver_qr_codes_create_driver_qr_code_too_many_requests_error_response_body.py +1 -1
  462. samsara/types/driver_qr_codes_create_driver_qr_code_unauthorized_error_response_body.py +1 -1
  463. samsara/types/driver_qr_codes_delete_driver_qr_code_bad_gateway_error_response_body.py +1 -1
  464. samsara/types/driver_qr_codes_delete_driver_qr_code_gateway_timeout_error_response_body.py +1 -1
  465. samsara/types/driver_qr_codes_delete_driver_qr_code_internal_server_error_response_body.py +1 -1
  466. samsara/types/driver_qr_codes_delete_driver_qr_code_method_not_allowed_error_response_body.py +1 -1
  467. samsara/types/driver_qr_codes_delete_driver_qr_code_not_found_error_response_body.py +1 -1
  468. samsara/types/driver_qr_codes_delete_driver_qr_code_not_implemented_error_response_body.py +1 -1
  469. samsara/types/driver_qr_codes_delete_driver_qr_code_service_unavailable_error_response_body.py +1 -1
  470. samsara/types/driver_qr_codes_delete_driver_qr_code_too_many_requests_error_response_body.py +1 -1
  471. samsara/types/driver_qr_codes_delete_driver_qr_code_unauthorized_error_response_body.py +1 -1
  472. samsara/types/driver_qr_codes_get_drivers_qr_codes_bad_gateway_error_response_body.py +1 -1
  473. samsara/types/driver_qr_codes_get_drivers_qr_codes_gateway_timeout_error_response_body.py +1 -1
  474. samsara/types/driver_qr_codes_get_drivers_qr_codes_internal_server_error_response_body.py +1 -1
  475. samsara/types/driver_qr_codes_get_drivers_qr_codes_method_not_allowed_error_response_body.py +1 -1
  476. samsara/types/driver_qr_codes_get_drivers_qr_codes_not_found_error_response_body.py +1 -1
  477. samsara/types/driver_qr_codes_get_drivers_qr_codes_not_implemented_error_response_body.py +1 -1
  478. samsara/types/driver_qr_codes_get_drivers_qr_codes_service_unavailable_error_response_body.py +1 -1
  479. samsara/types/driver_qr_codes_get_drivers_qr_codes_too_many_requests_error_response_body.py +1 -1
  480. samsara/types/driver_qr_codes_get_drivers_qr_codes_unauthorized_error_response_body.py +1 -1
  481. samsara/types/driver_remote_signout_post_driver_remote_signout_bad_gateway_error_response_body.py +1 -1
  482. samsara/types/driver_remote_signout_post_driver_remote_signout_gateway_timeout_error_response_body.py +1 -1
  483. samsara/types/driver_remote_signout_post_driver_remote_signout_internal_server_error_response_body.py +1 -1
  484. samsara/types/driver_remote_signout_post_driver_remote_signout_method_not_allowed_error_response_body.py +1 -1
  485. samsara/types/driver_remote_signout_post_driver_remote_signout_not_found_error_response_body.py +1 -1
  486. samsara/types/driver_remote_signout_post_driver_remote_signout_not_implemented_error_response_body.py +1 -1
  487. samsara/types/driver_remote_signout_post_driver_remote_signout_response_body.py +1 -1
  488. samsara/types/driver_remote_signout_post_driver_remote_signout_service_unavailable_error_response_body.py +1 -1
  489. samsara/types/driver_remote_signout_post_driver_remote_signout_too_many_requests_error_response_body.py +1 -1
  490. samsara/types/driver_remote_signout_post_driver_remote_signout_unauthorized_error_response_body.py +1 -1
  491. samsara/types/driver_ruleset_object_response_body.py +1 -1
  492. samsara/types/driver_safety_score_response_body.py +6 -4
  493. samsara/types/driver_vehicle_assignment_v_2_object_response_body.py +7 -5
  494. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_bad_gateway_error_response_body.py +1 -1
  495. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_gateway_timeout_error_response_body.py +1 -1
  496. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_internal_server_error_response_body.py +1 -1
  497. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_method_not_allowed_error_response_body.py +1 -1
  498. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_not_found_error_response_body.py +1 -1
  499. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_not_implemented_error_response_body.py +1 -1
  500. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_service_unavailable_error_response_body.py +1 -1
  501. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_too_many_requests_error_response_body.py +1 -1
  502. samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_unauthorized_error_response_body.py +1 -1
  503. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_bad_gateway_error_response_body.py +1 -1
  504. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_gateway_timeout_error_response_body.py +1 -1
  505. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_internal_server_error_response_body.py +1 -1
  506. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_method_not_allowed_error_response_body.py +1 -1
  507. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_not_found_error_response_body.py +1 -1
  508. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_not_implemented_error_response_body.py +1 -1
  509. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_service_unavailable_error_response_body.py +1 -1
  510. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_too_many_requests_error_response_body.py +1 -1
  511. samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_unauthorized_error_response_body.py +1 -1
  512. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_bad_gateway_error_response_body.py +1 -1
  513. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_gateway_timeout_error_response_body.py +1 -1
  514. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_internal_server_error_response_body.py +1 -1
  515. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_method_not_allowed_error_response_body.py +1 -1
  516. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_not_found_error_response_body.py +1 -1
  517. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_not_implemented_error_response_body.py +1 -1
  518. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_service_unavailable_error_response_body.py +1 -1
  519. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_too_many_requests_error_response_body.py +1 -1
  520. samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_unauthorized_error_response_body.py +1 -1
  521. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_bad_gateway_error_response_body.py +1 -1
  522. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_gateway_timeout_error_response_body.py +1 -1
  523. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_internal_server_error_response_body.py +1 -1
  524. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_method_not_allowed_error_response_body.py +1 -1
  525. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_not_found_error_response_body.py +1 -1
  526. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_not_implemented_error_response_body.py +1 -1
  527. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_service_unavailable_error_response_body.py +1 -1
  528. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_too_many_requests_error_response_body.py +1 -1
  529. samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_unauthorized_error_response_body.py +1 -1
  530. samsara/types/driver_vehicle_group_tag.py +1 -1
  531. samsara/types/driver_with_external_id_object_response_body.py +2 -2
  532. samsara/types/driver_with_timezone_eld_settings_object_response_body.py +2 -2
  533. samsara/types/drivers_auth_token_create_driver_auth_token_bad_gateway_error_response_body.py +1 -1
  534. samsara/types/drivers_auth_token_create_driver_auth_token_gateway_timeout_error_response_body.py +1 -1
  535. samsara/types/drivers_auth_token_create_driver_auth_token_internal_server_error_response_body.py +1 -1
  536. samsara/types/drivers_auth_token_create_driver_auth_token_method_not_allowed_error_response_body.py +1 -1
  537. samsara/types/drivers_auth_token_create_driver_auth_token_not_found_error_response_body.py +1 -1
  538. samsara/types/drivers_auth_token_create_driver_auth_token_not_implemented_error_response_body.py +1 -1
  539. samsara/types/drivers_auth_token_create_driver_auth_token_service_unavailable_error_response_body.py +1 -1
  540. samsara/types/drivers_auth_token_create_driver_auth_token_too_many_requests_error_response_body.py +1 -1
  541. samsara/types/drivers_auth_token_create_driver_auth_token_unauthorized_error_response_body.py +1 -1
  542. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_bad_gateway_error_response_body.py +1 -1
  543. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_gateway_timeout_error_response_body.py +1 -1
  544. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_internal_server_error_response_body.py +1 -1
  545. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_method_not_allowed_error_response_body.py +1 -1
  546. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_not_found_error_response_body.py +1 -1
  547. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_not_implemented_error_response_body.py +1 -1
  548. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_service_unavailable_error_response_body.py +1 -1
  549. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_too_many_requests_error_response_body.py +1 -1
  550. samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_unauthorized_error_response_body.py +1 -1
  551. samsara/types/drivers_vehicle_assignments_object_response_body.py +3 -3
  552. samsara/types/duty_status_duration_object_response_body.py +8 -8
  553. samsara/types/dvir.py +12 -12
  554. samsara/types/{reading_type_response_body.py → dvir_2_assigned_to_polymorphic_user_object_response_body.py} +10 -9
  555. samsara/types/dvir_2_device_object_response_body.py +49 -0
  556. samsara/types/dvir_2_form_submission_object_response_body.py +47 -0
  557. samsara/types/dvir_2_related_device_object_response_body.py +38 -0
  558. samsara/types/dvir_2_related_device_object_response_body_asset_type.py +5 -0
  559. samsara/types/dvir_2_submission_response_object_response_body.py +50 -0
  560. samsara/types/dvir_2_submission_response_object_response_body_inspection_type.py +7 -0
  561. samsara/types/dvir_defect_get_defect_bad_gateway_error_response_body.py +1 -1
  562. samsara/types/dvir_defect_get_defect_gateway_timeout_error_response_body.py +1 -1
  563. samsara/types/dvir_defect_get_defect_internal_server_error_response_body.py +1 -1
  564. samsara/types/dvir_defect_get_defect_method_not_allowed_error_response_body.py +1 -1
  565. samsara/types/dvir_defect_get_defect_not_found_error_response_body.py +1 -1
  566. samsara/types/dvir_defect_get_defect_not_implemented_error_response_body.py +1 -1
  567. samsara/types/dvir_defect_get_defect_response_body.py +11 -9
  568. samsara/types/dvir_defect_get_defect_service_unavailable_error_response_body.py +1 -1
  569. samsara/types/dvir_defect_get_defect_too_many_requests_error_response_body.py +1 -1
  570. samsara/types/dvir_defect_get_defect_unauthorized_error_response_body.py +1 -1
  571. samsara/types/dvir_defect_stream_defects_bad_gateway_error_response_body.py +1 -1
  572. samsara/types/dvir_defect_stream_defects_gateway_timeout_error_response_body.py +1 -1
  573. samsara/types/dvir_defect_stream_defects_internal_server_error_response_body.py +1 -1
  574. samsara/types/dvir_defect_stream_defects_method_not_allowed_error_response_body.py +1 -1
  575. samsara/types/dvir_defect_stream_defects_not_found_error_response_body.py +1 -1
  576. samsara/types/dvir_defect_stream_defects_not_implemented_error_response_body.py +1 -1
  577. samsara/types/dvir_defect_stream_defects_service_unavailable_error_response_body.py +1 -1
  578. samsara/types/dvir_defect_stream_defects_too_many_requests_error_response_body.py +1 -1
  579. samsara/types/dvir_defect_stream_defects_unauthorized_error_response_body.py +1 -1
  580. samsara/types/dvir_defect_type_get_defect_types_bad_gateway_error_response_body.py +1 -1
  581. samsara/types/dvir_defect_type_get_defect_types_gateway_timeout_error_response_body.py +1 -1
  582. samsara/types/dvir_defect_type_get_defect_types_internal_server_error_response_body.py +1 -1
  583. samsara/types/dvir_defect_type_get_defect_types_method_not_allowed_error_response_body.py +1 -1
  584. samsara/types/dvir_defect_type_get_defect_types_not_found_error_response_body.py +1 -1
  585. samsara/types/dvir_defect_type_get_defect_types_not_implemented_error_response_body.py +1 -1
  586. samsara/types/dvir_defect_type_get_defect_types_service_unavailable_error_response_body.py +1 -1
  587. samsara/types/dvir_defect_type_get_defect_types_too_many_requests_error_response_body.py +1 -1
  588. samsara/types/dvir_defect_type_get_defect_types_unauthorized_error_response_body.py +1 -1
  589. samsara/types/dvir_defects_object_v_20220913_response_body.py +13 -7
  590. samsara/types/dvir_get_dvir_bad_gateway_error_response_body.py +1 -1
  591. samsara/types/dvir_get_dvir_gateway_timeout_error_response_body.py +1 -1
  592. samsara/types/dvir_get_dvir_internal_server_error_response_body.py +1 -1
  593. samsara/types/dvir_get_dvir_method_not_allowed_error_response_body.py +1 -1
  594. samsara/types/dvir_get_dvir_not_found_error_response_body.py +1 -1
  595. samsara/types/dvir_get_dvir_not_implemented_error_response_body.py +1 -1
  596. samsara/types/dvir_get_dvir_response_body.py +18 -12
  597. samsara/types/dvir_get_dvir_service_unavailable_error_response_body.py +1 -1
  598. samsara/types/dvir_get_dvir_too_many_requests_error_response_body.py +1 -1
  599. samsara/types/dvir_get_dvir_unauthorized_error_response_body.py +1 -1
  600. samsara/types/dvir_get_dvirs_bad_gateway_error_response_body.py +1 -1
  601. samsara/types/dvir_get_dvirs_gateway_timeout_error_response_body.py +1 -1
  602. samsara/types/dvir_get_dvirs_internal_server_error_response_body.py +1 -1
  603. samsara/types/dvir_get_dvirs_method_not_allowed_error_response_body.py +1 -1
  604. samsara/types/dvir_get_dvirs_not_found_error_response_body.py +1 -1
  605. samsara/types/dvir_get_dvirs_not_implemented_error_response_body.py +1 -1
  606. samsara/types/dvir_get_dvirs_service_unavailable_error_response_body.py +1 -1
  607. samsara/types/dvir_get_dvirs_too_many_requests_error_response_body.py +1 -1
  608. samsara/types/dvir_get_dvirs_unauthorized_error_response_body.py +1 -1
  609. samsara/types/dvir_signature.py +2 -2
  610. samsara/types/dvir_stream_response_data_response_body.py +18 -12
  611. samsara/types/dvir_submitted_device_trigger_details_object_request_body.py +2 -2
  612. samsara/types/dvir_submitted_device_trigger_details_object_response_body.py +2 -2
  613. samsara/types/dvir_trailer_defects_items.py +9 -7
  614. samsara/types/dvir_trailer_defects_items_vehicle.py +1 -1
  615. samsara/types/engine_idle_trigger_details_object_request_body.py +1 -1
  616. samsara/types/engine_idle_trigger_details_object_response_body.py +1 -1
  617. samsara/types/engine_immobilizer_get_engine_immobilizer_states_bad_gateway_error_response_body.py +1 -1
  618. samsara/types/engine_immobilizer_get_engine_immobilizer_states_gateway_timeout_error_response_body.py +1 -1
  619. samsara/types/engine_immobilizer_get_engine_immobilizer_states_internal_server_error_response_body.py +1 -1
  620. samsara/types/engine_immobilizer_get_engine_immobilizer_states_method_not_allowed_error_response_body.py +1 -1
  621. samsara/types/engine_immobilizer_get_engine_immobilizer_states_not_found_error_response_body.py +1 -1
  622. samsara/types/engine_immobilizer_get_engine_immobilizer_states_not_implemented_error_response_body.py +1 -1
  623. samsara/types/engine_immobilizer_get_engine_immobilizer_states_service_unavailable_error_response_body.py +1 -1
  624. samsara/types/engine_immobilizer_get_engine_immobilizer_states_too_many_requests_error_response_body.py +1 -1
  625. samsara/types/engine_immobilizer_get_engine_immobilizer_states_unauthorized_error_response_body.py +1 -1
  626. samsara/types/engine_immobilizer_relay_state_response_body.py +1 -1
  627. samsara/types/engine_immobilizer_state_response_body.py +6 -4
  628. samsara/types/engine_immobilizer_update_engine_immobilizer_state_bad_gateway_error_response_body.py +1 -1
  629. samsara/types/engine_immobilizer_update_engine_immobilizer_state_gateway_timeout_error_response_body.py +1 -1
  630. samsara/types/engine_immobilizer_update_engine_immobilizer_state_internal_server_error_response_body.py +1 -1
  631. samsara/types/engine_immobilizer_update_engine_immobilizer_state_method_not_allowed_error_response_body.py +1 -1
  632. samsara/types/engine_immobilizer_update_engine_immobilizer_state_not_found_error_response_body.py +1 -1
  633. samsara/types/engine_immobilizer_update_engine_immobilizer_state_not_implemented_error_response_body.py +1 -1
  634. samsara/types/engine_immobilizer_update_engine_immobilizer_state_service_unavailable_error_response_body.py +1 -1
  635. samsara/types/engine_immobilizer_update_engine_immobilizer_state_too_many_requests_error_response_body.py +1 -1
  636. samsara/types/engine_immobilizer_update_engine_immobilizer_state_unauthorized_error_response_body.py +1 -1
  637. samsara/types/engine_off_details_object_request_body.py +1 -1
  638. samsara/types/engine_off_details_object_response_body.py +1 -1
  639. samsara/types/engine_on_details_object_request_body.py +1 -1
  640. samsara/types/engine_on_details_object_response_body.py +1 -1
  641. samsara/types/engine_status_response_body.py +1 -1
  642. samsara/types/equipment_header_with_additional_fields_response_body.py +8 -6
  643. samsara/types/equipment_object.py +3 -3
  644. samsara/types/equipment_patch_equipment_bad_gateway_error_response_body.py +1 -1
  645. samsara/types/equipment_patch_equipment_gateway_timeout_error_response_body.py +1 -1
  646. samsara/types/equipment_patch_equipment_internal_server_error_response_body.py +1 -1
  647. samsara/types/equipment_patch_equipment_method_not_allowed_error_response_body.py +1 -1
  648. samsara/types/equipment_patch_equipment_not_found_error_response_body.py +1 -1
  649. samsara/types/equipment_patch_equipment_not_implemented_error_response_body.py +1 -1
  650. samsara/types/equipment_patch_equipment_service_unavailable_error_response_body.py +1 -1
  651. samsara/types/equipment_patch_equipment_too_many_requests_error_response_body.py +1 -1
  652. samsara/types/equipment_patch_equipment_unauthorized_error_response_body.py +1 -1
  653. samsara/types/equipment_stats_gps.py +5 -3
  654. samsara/types/equipment_stats_list_response_data.py +11 -11
  655. samsara/types/equipment_stats_response_data.py +10 -10
  656. samsara/types/equipment_with_attributes_response_object_response_body.py +3 -3
  657. samsara/types/extended_driver_tiny_response.py +1 -1
  658. samsara/types/fft_spectra_data_point.py +1 -1
  659. samsara/types/field_object_value_request_body.py +8 -8
  660. samsara/types/field_object_value_response_body.py +8 -8
  661. samsara/types/field_types_object_response_body.py +7 -5
  662. samsara/types/filters_request_body.py +28 -0
  663. samsara/types/filters_response_body.py +28 -0
  664. samsara/types/following_distance_detection_alert_settings_object_response_body.py +4 -4
  665. samsara/types/form_submission_pdf_export_response_object_response_body.py +10 -8
  666. samsara/types/form_submission_request_check_boxes_value_object_request_body.py +3 -1
  667. samsara/types/form_submission_request_field_input_object_request_body.py +9 -9
  668. samsara/types/form_submission_request_media_item_object_request_body.py +4 -2
  669. samsara/types/form_submission_request_media_value_object_request_body.py +1 -1
  670. samsara/types/form_submission_request_multiple_choice_value_object_request_body.py +1 -1
  671. samsara/types/form_submission_request_person_object_request_body.py +3 -1
  672. samsara/types/form_submission_request_table_cell_object_request_body.py +6 -6
  673. samsara/types/form_submission_response_object_response_body.py +19 -13
  674. samsara/types/form_submissions_get_form_submissions_bad_gateway_error_response_body.py +1 -1
  675. samsara/types/form_submissions_get_form_submissions_gateway_timeout_error_response_body.py +1 -1
  676. samsara/types/form_submissions_get_form_submissions_internal_server_error_response_body.py +1 -1
  677. samsara/types/form_submissions_get_form_submissions_method_not_allowed_error_response_body.py +1 -1
  678. samsara/types/form_submissions_get_form_submissions_not_found_error_response_body.py +1 -1
  679. samsara/types/form_submissions_get_form_submissions_not_implemented_error_response_body.py +1 -1
  680. samsara/types/form_submissions_get_form_submissions_pdf_exports_bad_gateway_error_response_body.py +1 -1
  681. samsara/types/form_submissions_get_form_submissions_pdf_exports_gateway_timeout_error_response_body.py +1 -1
  682. samsara/types/form_submissions_get_form_submissions_pdf_exports_internal_server_error_response_body.py +1 -1
  683. samsara/types/form_submissions_get_form_submissions_pdf_exports_method_not_allowed_error_response_body.py +1 -1
  684. samsara/types/form_submissions_get_form_submissions_pdf_exports_not_found_error_response_body.py +1 -1
  685. samsara/types/form_submissions_get_form_submissions_pdf_exports_not_implemented_error_response_body.py +1 -1
  686. samsara/types/form_submissions_get_form_submissions_pdf_exports_service_unavailable_error_response_body.py +1 -1
  687. samsara/types/form_submissions_get_form_submissions_pdf_exports_too_many_requests_error_response_body.py +1 -1
  688. samsara/types/form_submissions_get_form_submissions_pdf_exports_unauthorized_error_response_body.py +1 -1
  689. samsara/types/form_submissions_get_form_submissions_service_unavailable_error_response_body.py +1 -1
  690. samsara/types/form_submissions_get_form_submissions_stream_bad_gateway_error_response_body.py +1 -1
  691. samsara/types/form_submissions_get_form_submissions_stream_gateway_timeout_error_response_body.py +1 -1
  692. samsara/types/form_submissions_get_form_submissions_stream_internal_server_error_response_body.py +1 -1
  693. samsara/types/form_submissions_get_form_submissions_stream_method_not_allowed_error_response_body.py +1 -1
  694. samsara/types/form_submissions_get_form_submissions_stream_not_found_error_response_body.py +1 -1
  695. samsara/types/form_submissions_get_form_submissions_stream_not_implemented_error_response_body.py +1 -1
  696. samsara/types/form_submissions_get_form_submissions_stream_service_unavailable_error_response_body.py +1 -1
  697. samsara/types/form_submissions_get_form_submissions_stream_too_many_requests_error_response_body.py +1 -1
  698. samsara/types/form_submissions_get_form_submissions_stream_unauthorized_error_response_body.py +1 -1
  699. samsara/types/form_submissions_get_form_submissions_too_many_requests_error_response_body.py +1 -1
  700. samsara/types/form_submissions_get_form_submissions_unauthorized_error_response_body.py +1 -1
  701. samsara/types/form_submissions_patch_form_submission_bad_gateway_error_response_body.py +1 -1
  702. samsara/types/form_submissions_patch_form_submission_gateway_timeout_error_response_body.py +1 -1
  703. samsara/types/form_submissions_patch_form_submission_internal_server_error_response_body.py +1 -1
  704. samsara/types/form_submissions_patch_form_submission_method_not_allowed_error_response_body.py +1 -1
  705. samsara/types/form_submissions_patch_form_submission_not_found_error_response_body.py +1 -1
  706. samsara/types/form_submissions_patch_form_submission_not_implemented_error_response_body.py +1 -1
  707. samsara/types/form_submissions_patch_form_submission_service_unavailable_error_response_body.py +1 -1
  708. samsara/types/form_submissions_patch_form_submission_too_many_requests_error_response_body.py +1 -1
  709. samsara/types/form_submissions_patch_form_submission_unauthorized_error_response_body.py +1 -1
  710. samsara/types/form_submissions_post_form_submission_bad_gateway_error_response_body.py +1 -1
  711. samsara/types/form_submissions_post_form_submission_gateway_timeout_error_response_body.py +1 -1
  712. samsara/types/form_submissions_post_form_submission_internal_server_error_response_body.py +1 -1
  713. samsara/types/form_submissions_post_form_submission_method_not_allowed_error_response_body.py +1 -1
  714. samsara/types/form_submissions_post_form_submission_not_found_error_response_body.py +1 -1
  715. samsara/types/form_submissions_post_form_submission_not_implemented_error_response_body.py +1 -1
  716. samsara/types/form_submissions_post_form_submission_service_unavailable_error_response_body.py +1 -1
  717. samsara/types/form_submissions_post_form_submission_too_many_requests_error_response_body.py +1 -1
  718. samsara/types/form_submissions_post_form_submission_unauthorized_error_response_body.py +1 -1
  719. samsara/types/form_submissions_post_form_submissions_pdf_exports_bad_gateway_error_response_body.py +1 -1
  720. samsara/types/form_submissions_post_form_submissions_pdf_exports_gateway_timeout_error_response_body.py +1 -1
  721. samsara/types/form_submissions_post_form_submissions_pdf_exports_internal_server_error_response_body.py +1 -1
  722. samsara/types/form_submissions_post_form_submissions_pdf_exports_method_not_allowed_error_response_body.py +1 -1
  723. samsara/types/form_submissions_post_form_submissions_pdf_exports_not_found_error_response_body.py +1 -1
  724. samsara/types/form_submissions_post_form_submissions_pdf_exports_not_implemented_error_response_body.py +1 -1
  725. samsara/types/form_submissions_post_form_submissions_pdf_exports_service_unavailable_error_response_body.py +1 -1
  726. samsara/types/form_submissions_post_form_submissions_pdf_exports_too_many_requests_error_response_body.py +1 -1
  727. samsara/types/form_submissions_post_form_submissions_pdf_exports_unauthorized_error_response_body.py +1 -1
  728. samsara/types/form_template_reference_object_response_body.py +3 -1
  729. samsara/types/form_template_request_object_request_body.py +1 -1
  730. samsara/types/form_template_response_object_response_body.py +17 -7
  731. samsara/types/form_template_section_object_response_body.py +2 -2
  732. samsara/types/form_templates_get_form_templates_bad_gateway_error_response_body.py +1 -1
  733. samsara/types/form_templates_get_form_templates_gateway_timeout_error_response_body.py +1 -1
  734. samsara/types/form_templates_get_form_templates_internal_server_error_response_body.py +1 -1
  735. samsara/types/form_templates_get_form_templates_method_not_allowed_error_response_body.py +1 -1
  736. samsara/types/form_templates_get_form_templates_not_found_error_response_body.py +1 -1
  737. samsara/types/form_templates_get_form_templates_not_implemented_error_response_body.py +1 -1
  738. samsara/types/form_templates_get_form_templates_service_unavailable_error_response_body.py +1 -1
  739. samsara/types/form_templates_get_form_templates_too_many_requests_error_response_body.py +1 -1
  740. samsara/types/form_templates_get_form_templates_unauthorized_error_response_body.py +1 -1
  741. samsara/types/forms_action_object_response_body.py +2 -2
  742. samsara/types/forms_approval_config_object_response_body.py +1 -1
  743. samsara/types/forms_asset_object_response_body.py +2 -2
  744. samsara/types/forms_check_boxes_value_object_response_body.py +3 -1
  745. samsara/types/forms_condition_object_response_body.py +1 -1
  746. samsara/types/forms_field_definition_object_response_body.py +14 -12
  747. samsara/types/forms_field_input_object_response_body.py +12 -12
  748. samsara/types/forms_geofence_object_response_body.py +2 -2
  749. samsara/types/forms_issue_created_by_field_object_response_body.py +1 -1
  750. samsara/types/forms_media_record_object_response_body.py +2 -2
  751. samsara/types/forms_media_value_object_response_body.py +1 -1
  752. samsara/types/forms_multiple_choice_value_object_response_body.py +1 -1
  753. samsara/types/forms_person_object_response_body.py +2 -2
  754. samsara/types/forms_score_object_response_body.py +7 -3
  755. samsara/types/forms_select_option_object_response_body.py +2 -2
  756. samsara/types/forms_single_approval_config_object_response_body.py +1 -1
  757. samsara/types/forms_table_cell_object_response_body.py +8 -8
  758. samsara/types/forms_table_field_definition_object_response_body.py +6 -6
  759. samsara/types/forward_collision_detection_alert_settings_object_response_body.py +2 -2
  760. samsara/types/fuel_energy_cost_response_response_body.py +3 -1
  761. samsara/types/fuel_energy_driver_report_data_object_response_body.py +1 -1
  762. samsara/types/fuel_energy_driver_report_object_response_body.py +10 -8
  763. samsara/types/fuel_energy_get_fuel_energy_driver_reports_bad_gateway_error_response_body.py +1 -1
  764. samsara/types/fuel_energy_get_fuel_energy_driver_reports_gateway_timeout_error_response_body.py +1 -1
  765. samsara/types/fuel_energy_get_fuel_energy_driver_reports_internal_server_error_response_body.py +1 -1
  766. samsara/types/fuel_energy_get_fuel_energy_driver_reports_method_not_allowed_error_response_body.py +1 -1
  767. samsara/types/fuel_energy_get_fuel_energy_driver_reports_not_found_error_response_body.py +1 -1
  768. samsara/types/fuel_energy_get_fuel_energy_driver_reports_not_implemented_error_response_body.py +1 -1
  769. samsara/types/fuel_energy_get_fuel_energy_driver_reports_service_unavailable_error_response_body.py +1 -1
  770. samsara/types/fuel_energy_get_fuel_energy_driver_reports_too_many_requests_error_response_body.py +1 -1
  771. samsara/types/fuel_energy_get_fuel_energy_driver_reports_unauthorized_error_response_body.py +1 -1
  772. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_bad_gateway_error_response_body.py +1 -1
  773. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_gateway_timeout_error_response_body.py +1 -1
  774. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_internal_server_error_response_body.py +1 -1
  775. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_method_not_allowed_error_response_body.py +1 -1
  776. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_not_found_error_response_body.py +1 -1
  777. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_not_implemented_error_response_body.py +1 -1
  778. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_service_unavailable_error_response_body.py +1 -1
  779. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_too_many_requests_error_response_body.py +1 -1
  780. samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_unauthorized_error_response_body.py +1 -1
  781. samsara/types/fuel_energy_vehicle_object_response_body.py +2 -2
  782. samsara/types/fuel_energy_vehicle_report_data_object_response_body.py +1 -1
  783. samsara/types/fuel_energy_vehicle_report_object_response_body.py +10 -8
  784. samsara/types/fuel_level_trigger_details_object_request_body.py +4 -2
  785. samsara/types/fuel_level_trigger_details_object_response_body.py +4 -2
  786. samsara/types/fuel_purchase_post_fuel_purchase_bad_gateway_error_response_body.py +1 -1
  787. samsara/types/fuel_purchase_post_fuel_purchase_gateway_timeout_error_response_body.py +1 -1
  788. samsara/types/fuel_purchase_post_fuel_purchase_internal_server_error_response_body.py +1 -1
  789. samsara/types/fuel_purchase_post_fuel_purchase_method_not_allowed_error_response_body.py +1 -1
  790. samsara/types/fuel_purchase_post_fuel_purchase_not_found_error_response_body.py +1 -1
  791. samsara/types/fuel_purchase_post_fuel_purchase_not_implemented_error_response_body.py +1 -1
  792. samsara/types/fuel_purchase_post_fuel_purchase_service_unavailable_error_response_body.py +1 -1
  793. samsara/types/fuel_purchase_post_fuel_purchase_too_many_requests_error_response_body.py +1 -1
  794. samsara/types/fuel_purchase_post_fuel_purchase_unauthorized_error_response_body.py +1 -1
  795. samsara/types/fuel_remaining_response_body.py +1 -1
  796. samsara/types/functions_start_function_run_bad_gateway_error_response_body.py +1 -1
  797. samsara/types/functions_start_function_run_gateway_timeout_error_response_body.py +1 -1
  798. samsara/types/functions_start_function_run_internal_server_error_response_body.py +1 -1
  799. samsara/types/functions_start_function_run_method_not_allowed_error_response_body.py +1 -1
  800. samsara/types/functions_start_function_run_not_found_error_response_body.py +1 -1
  801. samsara/types/functions_start_function_run_not_implemented_error_response_body.py +1 -1
  802. samsara/types/functions_start_function_run_service_unavailable_error_response_body.py +1 -1
  803. samsara/types/functions_start_function_run_too_many_requests_error_response_body.py +1 -1
  804. samsara/types/functions_start_function_run_unauthorized_error_response_body.py +1 -1
  805. samsara/types/gateway_asset_response_object_response_body.py +1 -1
  806. samsara/types/gateway_details_response_response_body.py +6 -6
  807. samsara/types/gateway_disconnected_details_object_request_body.py +1 -1
  808. samsara/types/gateway_disconnected_details_object_response_body.py +1 -1
  809. samsara/types/gateway_response_object_response_body.py +3 -3
  810. samsara/types/gateway_unplugged_trigger_details_object_request_body.py +1 -1
  811. samsara/types/gateway_unplugged_trigger_details_object_response_body.py +1 -1
  812. samsara/types/gateways_delete_gateway_bad_gateway_error_response_body.py +1 -1
  813. samsara/types/gateways_delete_gateway_gateway_timeout_error_response_body.py +1 -1
  814. samsara/types/gateways_delete_gateway_internal_server_error_response_body.py +1 -1
  815. samsara/types/gateways_delete_gateway_method_not_allowed_error_response_body.py +1 -1
  816. samsara/types/gateways_delete_gateway_not_found_error_response_body.py +1 -1
  817. samsara/types/gateways_delete_gateway_not_implemented_error_response_body.py +1 -1
  818. samsara/types/gateways_delete_gateway_service_unavailable_error_response_body.py +1 -1
  819. samsara/types/gateways_delete_gateway_too_many_requests_error_response_body.py +1 -1
  820. samsara/types/gateways_delete_gateway_unauthorized_error_response_body.py +1 -1
  821. samsara/types/gateways_get_gateways_bad_gateway_error_response_body.py +1 -1
  822. samsara/types/gateways_get_gateways_gateway_timeout_error_response_body.py +1 -1
  823. samsara/types/gateways_get_gateways_internal_server_error_response_body.py +1 -1
  824. samsara/types/gateways_get_gateways_method_not_allowed_error_response_body.py +1 -1
  825. samsara/types/gateways_get_gateways_not_found_error_response_body.py +1 -1
  826. samsara/types/gateways_get_gateways_not_implemented_error_response_body.py +1 -1
  827. samsara/types/gateways_get_gateways_service_unavailable_error_response_body.py +1 -1
  828. samsara/types/gateways_get_gateways_too_many_requests_error_response_body.py +1 -1
  829. samsara/types/gateways_get_gateways_unauthorized_error_response_body.py +1 -1
  830. samsara/types/gateways_post_gateway_bad_gateway_error_response_body.py +1 -1
  831. samsara/types/gateways_post_gateway_gateway_timeout_error_response_body.py +1 -1
  832. samsara/types/gateways_post_gateway_internal_server_error_response_body.py +1 -1
  833. samsara/types/gateways_post_gateway_method_not_allowed_error_response_body.py +1 -1
  834. samsara/types/gateways_post_gateway_not_found_error_response_body.py +1 -1
  835. samsara/types/gateways_post_gateway_not_implemented_error_response_body.py +1 -1
  836. samsara/types/gateways_post_gateway_service_unavailable_error_response_body.py +1 -1
  837. samsara/types/gateways_post_gateway_too_many_requests_error_response_body.py +1 -1
  838. samsara/types/gateways_post_gateway_unauthorized_error_response_body.py +1 -1
  839. samsara/types/geofence_response_response_body.py +1 -1
  840. samsara/types/get_document_type_response_object_response_body.py +3 -3
  841. samsara/types/get_driver_trailer_assignments_response_body_response_body.py +4 -4
  842. samsara/types/get_report_runs_data_object_response_body.py +34 -0
  843. samsara/types/get_report_runs_data_object_response_body_status.py +7 -0
  844. samsara/types/get_response_workflow_configuration_object_response_body.py +8 -6
  845. samsara/types/get_workflow_incident_response_object_response_body.py +16 -6
  846. samsara/types/goa_address_tiny_response_response_body.py +1 -1
  847. samsara/types/goa_attribute_tiny.py +9 -2
  848. samsara/types/goa_attribute_tiny_request_body.py +9 -2
  849. samsara/types/goa_attribute_tiny_response_body.py +9 -2
  850. samsara/types/goa_driver_tiny_response_response_body.py +1 -1
  851. samsara/types/goa_pagination_response_response_body.py +4 -2
  852. samsara/types/goa_pagination_with_tokens_response_response_body.py +4 -2
  853. samsara/types/goa_route_stop_tiny_response_response_body.py +1 -1
  854. samsara/types/goa_route_tiny_response_response_body.py +1 -1
  855. samsara/types/goa_tag_tiny_response_request_body.py +1 -1
  856. samsara/types/goa_tag_tiny_response_response_body.py +1 -1
  857. samsara/types/goa_trailer_tiny_response_response_body.py +1 -1
  858. samsara/types/goa_vehicle_tiny_response_response_body.py +1 -1
  859. samsara/types/gps_signal_loss_details_object_request_body.py +1 -1
  860. samsara/types/gps_signal_loss_details_object_response_body.py +1 -1
  861. samsara/types/harsh_accel_sensitivity_g_force_settings_object_response_body.py +2 -2
  862. samsara/types/harsh_accel_sensitivity_v_2_settings_object_response_body.py +2 -2
  863. samsara/types/harsh_brake_sensitivity_g_force_settings_object_response_body.py +2 -2
  864. samsara/types/harsh_brake_sensitivity_v_2_settings_object_response_body.py +2 -2
  865. samsara/types/harsh_event_sensitivity_settings_object_response_body.py +3 -3
  866. samsara/types/harsh_event_sensitivity_v_2_settings_object_response_body.py +3 -3
  867. samsara/types/harsh_event_trigger_details_object_request_body_types_item.py +3 -0
  868. samsara/types/harsh_event_trigger_details_object_response_body_types_item.py +3 -0
  869. samsara/types/harsh_turn_sensitivity_g_force_settings_object_response_body.py +2 -2
  870. samsara/types/harsh_turn_sensitivity_v_2_settings_object_response_body.py +2 -2
  871. samsara/types/health_details_response_response_body.py +2 -2
  872. samsara/types/health_reason_response_response_body.py +3 -3
  873. samsara/types/health_reason_response_response_body_health_reason_code.py +1 -0
  874. samsara/types/health_response_response_body.py +14 -10
  875. samsara/types/health_response_response_body_primary_health_reason.py +1 -0
  876. samsara/types/health_response_response_body_recommended_action.py +4 -0
  877. samsara/types/hos_break.py +1 -1
  878. samsara/types/hos_clocks.py +3 -1
  879. samsara/types/hos_clocks_for_driver.py +2 -2
  880. samsara/types/hos_cycle.py +3 -3
  881. samsara/types/hos_daily_logs_get_hos_daily_logs_bad_gateway_error_response_body.py +1 -1
  882. samsara/types/hos_daily_logs_get_hos_daily_logs_gateway_timeout_error_response_body.py +1 -1
  883. samsara/types/hos_daily_logs_get_hos_daily_logs_internal_server_error_response_body.py +1 -1
  884. samsara/types/hos_daily_logs_get_hos_daily_logs_method_not_allowed_error_response_body.py +1 -1
  885. samsara/types/hos_daily_logs_get_hos_daily_logs_not_found_error_response_body.py +1 -1
  886. samsara/types/hos_daily_logs_get_hos_daily_logs_not_implemented_error_response_body.py +1 -1
  887. samsara/types/hos_daily_logs_get_hos_daily_logs_service_unavailable_error_response_body.py +1 -1
  888. samsara/types/hos_daily_logs_get_hos_daily_logs_too_many_requests_error_response_body.py +1 -1
  889. samsara/types/hos_daily_logs_get_hos_daily_logs_unauthorized_error_response_body.py +1 -1
  890. samsara/types/hos_daily_logs_object_response_body.py +6 -6
  891. samsara/types/hos_daily_logs_update_shipping_docs_bad_gateway_error_response_body.py +1 -1
  892. samsara/types/hos_daily_logs_update_shipping_docs_gateway_timeout_error_response_body.py +1 -1
  893. samsara/types/hos_daily_logs_update_shipping_docs_internal_server_error_response_body.py +1 -1
  894. samsara/types/hos_daily_logs_update_shipping_docs_method_not_allowed_error_response_body.py +1 -1
  895. samsara/types/hos_daily_logs_update_shipping_docs_not_found_error_response_body.py +1 -1
  896. samsara/types/hos_daily_logs_update_shipping_docs_not_implemented_error_response_body.py +1 -1
  897. samsara/types/hos_daily_logs_update_shipping_docs_service_unavailable_error_response_body.py +1 -1
  898. samsara/types/hos_daily_logs_update_shipping_docs_too_many_requests_error_response_body.py +1 -1
  899. samsara/types/hos_daily_logs_update_shipping_docs_unauthorized_error_response_body.py +1 -1
  900. samsara/types/hos_drive.py +1 -1
  901. samsara/types/hos_drivers_eld_event_object_response_body.py +3 -3
  902. samsara/types/hos_eld_event_location_object_response_body.py +1 -1
  903. samsara/types/hos_eld_event_object_response_body.py +13 -9
  904. samsara/types/hos_eld_event_remark_object_response_body.py +2 -2
  905. samsara/types/hos_eld_events_get_hos_eld_events_bad_gateway_error_response_body.py +1 -1
  906. samsara/types/hos_eld_events_get_hos_eld_events_gateway_timeout_error_response_body.py +1 -1
  907. samsara/types/hos_eld_events_get_hos_eld_events_internal_server_error_response_body.py +1 -1
  908. samsara/types/hos_eld_events_get_hos_eld_events_method_not_allowed_error_response_body.py +1 -1
  909. samsara/types/hos_eld_events_get_hos_eld_events_not_found_error_response_body.py +1 -1
  910. samsara/types/hos_eld_events_get_hos_eld_events_not_implemented_error_response_body.py +1 -1
  911. samsara/types/hos_eld_events_get_hos_eld_events_service_unavailable_error_response_body.py +1 -1
  912. samsara/types/hos_eld_events_get_hos_eld_events_too_many_requests_error_response_body.py +1 -1
  913. samsara/types/hos_eld_events_get_hos_eld_events_unauthorized_error_response_body.py +1 -1
  914. samsara/types/hos_log_entry.py +8 -4
  915. samsara/types/hos_logs_for_driver.py +3 -1
  916. samsara/types/hos_shift.py +1 -1
  917. samsara/types/hos_violation_day_object_response_body.py +2 -2
  918. samsara/types/hos_violation_object_response_body.py +6 -2
  919. samsara/types/hos_violation_trigger_details_object_request_body.py +1 -1
  920. samsara/types/hos_violation_trigger_details_object_response_body.py +1 -1
  921. samsara/types/hos_violations.py +2 -2
  922. samsara/types/hos_violations_get_hos_violations_bad_gateway_error_response_body.py +1 -1
  923. samsara/types/hos_violations_get_hos_violations_gateway_timeout_error_response_body.py +1 -1
  924. samsara/types/hos_violations_get_hos_violations_internal_server_error_response_body.py +1 -1
  925. samsara/types/hos_violations_get_hos_violations_method_not_allowed_error_response_body.py +1 -1
  926. samsara/types/hos_violations_get_hos_violations_not_found_error_response_body.py +1 -1
  927. samsara/types/hos_violations_get_hos_violations_not_implemented_error_response_body.py +1 -1
  928. samsara/types/hos_violations_get_hos_violations_service_unavailable_error_response_body.py +1 -1
  929. samsara/types/hos_violations_get_hos_violations_too_many_requests_error_response_body.py +1 -1
  930. samsara/types/hos_violations_get_hos_violations_unauthorized_error_response_body.py +1 -1
  931. samsara/types/hub_capacities_list_hub_capacities_bad_gateway_error_response_body.py +1 -1
  932. samsara/types/hub_capacities_list_hub_capacities_gateway_timeout_error_response_body.py +1 -1
  933. samsara/types/hub_capacities_list_hub_capacities_internal_server_error_response_body.py +1 -1
  934. samsara/types/hub_capacities_list_hub_capacities_method_not_allowed_error_response_body.py +1 -1
  935. samsara/types/hub_capacities_list_hub_capacities_not_found_error_response_body.py +1 -1
  936. samsara/types/hub_capacities_list_hub_capacities_not_implemented_error_response_body.py +1 -1
  937. samsara/types/hub_capacities_list_hub_capacities_service_unavailable_error_response_body.py +1 -1
  938. samsara/types/hub_capacities_list_hub_capacities_too_many_requests_error_response_body.py +1 -1
  939. samsara/types/hub_capacities_list_hub_capacities_unauthorized_error_response_body.py +1 -1
  940. samsara/types/hub_capacity_object_response_body.py +7 -3
  941. samsara/types/hub_custom_properties_list_hub_custom_properties_bad_gateway_error_response_body.py +33 -0
  942. samsara/types/hub_custom_properties_list_hub_custom_properties_gateway_timeout_error_response_body.py +33 -0
  943. samsara/types/hub_custom_properties_list_hub_custom_properties_internal_server_error_response_body.py +33 -0
  944. samsara/types/hub_custom_properties_list_hub_custom_properties_method_not_allowed_error_response_body.py +33 -0
  945. samsara/types/hub_custom_properties_list_hub_custom_properties_not_found_error_response_body.py +33 -0
  946. samsara/types/hub_custom_properties_list_hub_custom_properties_not_implemented_error_response_body.py +33 -0
  947. samsara/types/hub_custom_properties_list_hub_custom_properties_response_body.py +28 -0
  948. samsara/types/hub_custom_properties_list_hub_custom_properties_service_unavailable_error_response_body.py +33 -0
  949. samsara/types/hub_custom_properties_list_hub_custom_properties_too_many_requests_error_response_body.py +33 -0
  950. samsara/types/hub_custom_properties_list_hub_custom_properties_unauthorized_error_response_body.py +33 -0
  951. samsara/types/hub_custom_property_object_response_body.py +60 -0
  952. samsara/types/hub_location_created_object_response_body.py +22 -10
  953. samsara/types/hub_location_input_object_request_body.py +14 -12
  954. samsara/types/hub_location_object_response_body.py +22 -10
  955. samsara/types/hub_location_service_window_input_request_body.py +5 -3
  956. samsara/types/hub_location_updated_object_response_body.py +22 -10
  957. samsara/types/hub_locations_create_hub_locations_bad_gateway_error_response_body.py +1 -1
  958. samsara/types/hub_locations_create_hub_locations_gateway_timeout_error_response_body.py +1 -1
  959. samsara/types/hub_locations_create_hub_locations_internal_server_error_response_body.py +1 -1
  960. samsara/types/hub_locations_create_hub_locations_method_not_allowed_error_response_body.py +1 -1
  961. samsara/types/hub_locations_create_hub_locations_not_found_error_response_body.py +1 -1
  962. samsara/types/hub_locations_create_hub_locations_not_implemented_error_response_body.py +1 -1
  963. samsara/types/hub_locations_create_hub_locations_service_unavailable_error_response_body.py +1 -1
  964. samsara/types/hub_locations_create_hub_locations_too_many_requests_error_response_body.py +1 -1
  965. samsara/types/hub_locations_create_hub_locations_unauthorized_error_response_body.py +1 -1
  966. samsara/types/hub_locations_list_hub_locations_bad_gateway_error_response_body.py +1 -1
  967. samsara/types/hub_locations_list_hub_locations_gateway_timeout_error_response_body.py +1 -1
  968. samsara/types/hub_locations_list_hub_locations_internal_server_error_response_body.py +1 -1
  969. samsara/types/hub_locations_list_hub_locations_method_not_allowed_error_response_body.py +1 -1
  970. samsara/types/hub_locations_list_hub_locations_not_found_error_response_body.py +1 -1
  971. samsara/types/hub_locations_list_hub_locations_not_implemented_error_response_body.py +1 -1
  972. samsara/types/hub_locations_list_hub_locations_service_unavailable_error_response_body.py +1 -1
  973. samsara/types/hub_locations_list_hub_locations_too_many_requests_error_response_body.py +1 -1
  974. samsara/types/hub_locations_list_hub_locations_unauthorized_error_response_body.py +1 -1
  975. samsara/types/hub_locations_update_hub_location_bad_gateway_error_response_body.py +1 -1
  976. samsara/types/hub_locations_update_hub_location_gateway_timeout_error_response_body.py +1 -1
  977. samsara/types/hub_locations_update_hub_location_internal_server_error_response_body.py +1 -1
  978. samsara/types/hub_locations_update_hub_location_method_not_allowed_error_response_body.py +1 -1
  979. samsara/types/hub_locations_update_hub_location_not_found_error_response_body.py +1 -1
  980. samsara/types/hub_locations_update_hub_location_not_implemented_error_response_body.py +1 -1
  981. samsara/types/hub_locations_update_hub_location_service_unavailable_error_response_body.py +1 -1
  982. samsara/types/hub_locations_update_hub_location_too_many_requests_error_response_body.py +1 -1
  983. samsara/types/hub_locations_update_hub_location_unauthorized_error_response_body.py +1 -1
  984. samsara/types/hub_object_response_body.py +7 -3
  985. samsara/types/hub_plan_routes_list_hub_plan_routes_bad_gateway_error_response_body.py +1 -1
  986. samsara/types/hub_plan_routes_list_hub_plan_routes_gateway_timeout_error_response_body.py +1 -1
  987. samsara/types/hub_plan_routes_list_hub_plan_routes_internal_server_error_response_body.py +1 -1
  988. samsara/types/hub_plan_routes_list_hub_plan_routes_method_not_allowed_error_response_body.py +1 -1
  989. samsara/types/hub_plan_routes_list_hub_plan_routes_not_found_error_response_body.py +1 -1
  990. samsara/types/hub_plan_routes_list_hub_plan_routes_not_implemented_error_response_body.py +1 -1
  991. samsara/types/hub_plan_routes_list_hub_plan_routes_service_unavailable_error_response_body.py +1 -1
  992. samsara/types/hub_plan_routes_list_hub_plan_routes_too_many_requests_error_response_body.py +1 -1
  993. samsara/types/hub_plan_routes_list_hub_plan_routes_unauthorized_error_response_body.py +1 -1
  994. samsara/types/hub_plans_create_hub_plan_bad_gateway_error_response_body.py +1 -1
  995. samsara/types/hub_plans_create_hub_plan_gateway_timeout_error_response_body.py +1 -1
  996. samsara/types/hub_plans_create_hub_plan_internal_server_error_response_body.py +1 -1
  997. samsara/types/hub_plans_create_hub_plan_method_not_allowed_error_response_body.py +1 -1
  998. samsara/types/hub_plans_create_hub_plan_not_found_error_response_body.py +1 -1
  999. samsara/types/hub_plans_create_hub_plan_not_implemented_error_response_body.py +1 -1
  1000. samsara/types/hub_plans_create_hub_plan_service_unavailable_error_response_body.py +1 -1
  1001. samsara/types/hub_plans_create_hub_plan_too_many_requests_error_response_body.py +1 -1
  1002. samsara/types/hub_plans_create_hub_plan_unauthorized_error_response_body.py +1 -1
  1003. samsara/types/hub_plans_list_hub_plans_bad_gateway_error_response_body.py +1 -1
  1004. samsara/types/hub_plans_list_hub_plans_gateway_timeout_error_response_body.py +1 -1
  1005. samsara/types/hub_plans_list_hub_plans_internal_server_error_response_body.py +1 -1
  1006. samsara/types/hub_plans_list_hub_plans_method_not_allowed_error_response_body.py +1 -1
  1007. samsara/types/hub_plans_list_hub_plans_not_found_error_response_body.py +1 -1
  1008. samsara/types/hub_plans_list_hub_plans_not_implemented_error_response_body.py +1 -1
  1009. samsara/types/hub_plans_list_hub_plans_service_unavailable_error_response_body.py +1 -1
  1010. samsara/types/hub_plans_list_hub_plans_too_many_requests_error_response_body.py +1 -1
  1011. samsara/types/hub_plans_list_hub_plans_unauthorized_error_response_body.py +1 -1
  1012. samsara/types/hub_skill_object_response_body.py +7 -3
  1013. samsara/types/hub_skills_list_hub_skills_bad_gateway_error_response_body.py +1 -1
  1014. samsara/types/hub_skills_list_hub_skills_gateway_timeout_error_response_body.py +1 -1
  1015. samsara/types/hub_skills_list_hub_skills_internal_server_error_response_body.py +1 -1
  1016. samsara/types/hub_skills_list_hub_skills_method_not_allowed_error_response_body.py +1 -1
  1017. samsara/types/hub_skills_list_hub_skills_not_found_error_response_body.py +1 -1
  1018. samsara/types/hub_skills_list_hub_skills_not_implemented_error_response_body.py +1 -1
  1019. samsara/types/hub_skills_list_hub_skills_service_unavailable_error_response_body.py +1 -1
  1020. samsara/types/hub_skills_list_hub_skills_too_many_requests_error_response_body.py +1 -1
  1021. samsara/types/hub_skills_list_hub_skills_unauthorized_error_response_body.py +1 -1
  1022. samsara/types/hubs_list_hubs_bad_gateway_error_response_body.py +1 -1
  1023. samsara/types/hubs_list_hubs_gateway_timeout_error_response_body.py +1 -1
  1024. samsara/types/hubs_list_hubs_internal_server_error_response_body.py +1 -1
  1025. samsara/types/hubs_list_hubs_method_not_allowed_error_response_body.py +1 -1
  1026. samsara/types/hubs_list_hubs_not_found_error_response_body.py +1 -1
  1027. samsara/types/hubs_list_hubs_not_implemented_error_response_body.py +1 -1
  1028. samsara/types/hubs_list_hubs_service_unavailable_error_response_body.py +1 -1
  1029. samsara/types/hubs_list_hubs_too_many_requests_error_response_body.py +1 -1
  1030. samsara/types/hubs_list_hubs_unauthorized_error_response_body.py +1 -1
  1031. samsara/types/idling_event_address_object_response_body.py +2 -2
  1032. samsara/types/idling_event_address_object_response_body_address_types_item.py +2 -0
  1033. samsara/types/idling_event_asset_object_response_body.py +1 -1
  1034. samsara/types/idling_event_object_v_20251023_response_body.py +11 -9
  1035. samsara/types/idling_event_operator_object_response_body.py +1 -1
  1036. samsara/types/idling_report_event_response_body.py +11 -5
  1037. samsara/types/idling_reports_get_vehicle_idling_reports_bad_gateway_error_response_body.py +1 -1
  1038. samsara/types/idling_reports_get_vehicle_idling_reports_gateway_timeout_error_response_body.py +1 -1
  1039. samsara/types/idling_reports_get_vehicle_idling_reports_internal_server_error_response_body.py +1 -1
  1040. samsara/types/idling_reports_get_vehicle_idling_reports_method_not_allowed_error_response_body.py +1 -1
  1041. samsara/types/idling_reports_get_vehicle_idling_reports_not_found_error_response_body.py +1 -1
  1042. samsara/types/idling_reports_get_vehicle_idling_reports_not_implemented_error_response_body.py +1 -1
  1043. samsara/types/idling_reports_get_vehicle_idling_reports_response_body.py +6 -2
  1044. samsara/types/idling_reports_get_vehicle_idling_reports_service_unavailable_error_response_body.py +1 -1
  1045. samsara/types/idling_reports_get_vehicle_idling_reports_too_many_requests_error_response_body.py +1 -1
  1046. samsara/types/idling_reports_get_vehicle_idling_reports_unauthorized_error_response_body.py +1 -1
  1047. samsara/types/ifta_create_ifta_detail_job_bad_gateway_error_response_body.py +1 -1
  1048. samsara/types/ifta_create_ifta_detail_job_gateway_timeout_error_response_body.py +1 -1
  1049. samsara/types/ifta_create_ifta_detail_job_internal_server_error_response_body.py +1 -1
  1050. samsara/types/ifta_create_ifta_detail_job_method_not_allowed_error_response_body.py +1 -1
  1051. samsara/types/ifta_create_ifta_detail_job_not_found_error_response_body.py +1 -1
  1052. samsara/types/ifta_create_ifta_detail_job_not_implemented_error_response_body.py +1 -1
  1053. samsara/types/ifta_create_ifta_detail_job_service_unavailable_error_response_body.py +1 -1
  1054. samsara/types/ifta_create_ifta_detail_job_too_many_requests_error_response_body.py +1 -1
  1055. samsara/types/ifta_create_ifta_detail_job_unauthorized_error_response_body.py +1 -1
  1056. samsara/types/ifta_detail_job_args_response_body.py +5 -3
  1057. samsara/types/ifta_detail_job_output_response_body.py +10 -4
  1058. samsara/types/ifta_detail_job_response_body.py +8 -6
  1059. samsara/types/ifta_get_ifta_detail_job_bad_gateway_error_response_body.py +1 -1
  1060. samsara/types/ifta_get_ifta_detail_job_gateway_timeout_error_response_body.py +1 -1
  1061. samsara/types/ifta_get_ifta_detail_job_internal_server_error_response_body.py +1 -1
  1062. samsara/types/ifta_get_ifta_detail_job_method_not_allowed_error_response_body.py +1 -1
  1063. samsara/types/ifta_get_ifta_detail_job_not_found_error_response_body.py +1 -1
  1064. samsara/types/ifta_get_ifta_detail_job_not_implemented_error_response_body.py +1 -1
  1065. samsara/types/ifta_get_ifta_detail_job_service_unavailable_error_response_body.py +1 -1
  1066. samsara/types/ifta_get_ifta_detail_job_too_many_requests_error_response_body.py +1 -1
  1067. samsara/types/ifta_get_ifta_detail_job_unauthorized_error_response_body.py +1 -1
  1068. samsara/types/ifta_get_ifta_jurisdiction_reports_bad_gateway_error_response_body.py +1 -1
  1069. samsara/types/ifta_get_ifta_jurisdiction_reports_gateway_timeout_error_response_body.py +1 -1
  1070. samsara/types/ifta_get_ifta_jurisdiction_reports_internal_server_error_response_body.py +1 -1
  1071. samsara/types/ifta_get_ifta_jurisdiction_reports_method_not_allowed_error_response_body.py +1 -1
  1072. samsara/types/ifta_get_ifta_jurisdiction_reports_not_found_error_response_body.py +1 -1
  1073. samsara/types/ifta_get_ifta_jurisdiction_reports_not_implemented_error_response_body.py +1 -1
  1074. samsara/types/ifta_get_ifta_jurisdiction_reports_service_unavailable_error_response_body.py +1 -1
  1075. samsara/types/ifta_get_ifta_jurisdiction_reports_too_many_requests_error_response_body.py +1 -1
  1076. samsara/types/ifta_get_ifta_jurisdiction_reports_unauthorized_error_response_body.py +1 -1
  1077. samsara/types/ifta_get_ifta_vehicle_reports_bad_gateway_error_response_body.py +1 -1
  1078. samsara/types/ifta_get_ifta_vehicle_reports_gateway_timeout_error_response_body.py +1 -1
  1079. samsara/types/ifta_get_ifta_vehicle_reports_internal_server_error_response_body.py +1 -1
  1080. samsara/types/ifta_get_ifta_vehicle_reports_method_not_allowed_error_response_body.py +1 -1
  1081. samsara/types/ifta_get_ifta_vehicle_reports_not_found_error_response_body.py +1 -1
  1082. samsara/types/ifta_get_ifta_vehicle_reports_not_implemented_error_response_body.py +1 -1
  1083. samsara/types/ifta_get_ifta_vehicle_reports_service_unavailable_error_response_body.py +1 -1
  1084. samsara/types/ifta_get_ifta_vehicle_reports_too_many_requests_error_response_body.py +1 -1
  1085. samsara/types/ifta_get_ifta_vehicle_reports_unauthorized_error_response_body.py +1 -1
  1086. samsara/types/ifta_jurisdiction_report_data_object_response_body.py +1 -1
  1087. samsara/types/ifta_jurisdiction_summary_object_response_body.py +7 -3
  1088. samsara/types/ifta_report_troubleshooting_object_response_body.py +6 -4
  1089. samsara/types/ifta_vehicle_report_data_object_response_body.py +1 -1
  1090. samsara/types/in_app_notification_options_object_request_body.py +4 -4
  1091. samsara/types/in_app_notification_options_object_response_body.py +4 -4
  1092. samsara/types/inactivity_response_body.py +1 -1
  1093. samsara/types/inattentive_driving_detection_alert_settings_object_response_body.py +3 -3
  1094. samsara/types/inside_geofence_trigger_details_object_request_body.py +1 -1
  1095. samsara/types/inside_geofence_trigger_details_object_response_body.py +1 -1
  1096. samsara/types/invoice_scan_file_request_body.py +37 -0
  1097. samsara/types/issue_response_object_response_body.py +15 -9
  1098. samsara/types/issues_get_issues_bad_gateway_error_response_body.py +1 -1
  1099. samsara/types/issues_get_issues_gateway_timeout_error_response_body.py +1 -1
  1100. samsara/types/issues_get_issues_internal_server_error_response_body.py +1 -1
  1101. samsara/types/issues_get_issues_method_not_allowed_error_response_body.py +1 -1
  1102. samsara/types/issues_get_issues_not_found_error_response_body.py +1 -1
  1103. samsara/types/issues_get_issues_not_implemented_error_response_body.py +1 -1
  1104. samsara/types/issues_get_issues_service_unavailable_error_response_body.py +1 -1
  1105. samsara/types/issues_get_issues_stream_bad_gateway_error_response_body.py +1 -1
  1106. samsara/types/issues_get_issues_stream_gateway_timeout_error_response_body.py +1 -1
  1107. samsara/types/issues_get_issues_stream_internal_server_error_response_body.py +1 -1
  1108. samsara/types/issues_get_issues_stream_method_not_allowed_error_response_body.py +1 -1
  1109. samsara/types/issues_get_issues_stream_not_found_error_response_body.py +1 -1
  1110. samsara/types/issues_get_issues_stream_not_implemented_error_response_body.py +1 -1
  1111. samsara/types/issues_get_issues_stream_service_unavailable_error_response_body.py +1 -1
  1112. samsara/types/issues_get_issues_stream_too_many_requests_error_response_body.py +1 -1
  1113. samsara/types/issues_get_issues_stream_unauthorized_error_response_body.py +1 -1
  1114. samsara/types/issues_get_issues_too_many_requests_error_response_body.py +1 -1
  1115. samsara/types/issues_get_issues_unauthorized_error_response_body.py +1 -1
  1116. samsara/types/issues_patch_issue_bad_gateway_error_response_body.py +1 -1
  1117. samsara/types/issues_patch_issue_gateway_timeout_error_response_body.py +1 -1
  1118. samsara/types/issues_patch_issue_internal_server_error_response_body.py +1 -1
  1119. samsara/types/issues_patch_issue_method_not_allowed_error_response_body.py +1 -1
  1120. samsara/types/issues_patch_issue_not_found_error_response_body.py +1 -1
  1121. samsara/types/issues_patch_issue_not_implemented_error_response_body.py +1 -1
  1122. samsara/types/issues_patch_issue_service_unavailable_error_response_body.py +1 -1
  1123. samsara/types/issues_patch_issue_too_many_requests_error_response_body.py +1 -1
  1124. samsara/types/issues_patch_issue_unauthorized_error_response_body.py +1 -1
  1125. samsara/types/j_1939_d_1_status_data_point_value.py +16 -6
  1126. samsara/types/job_response_object_response_body.py +14 -10
  1127. samsara/types/jobs_create_job_bad_gateway_error_response_body.py +1 -1
  1128. samsara/types/jobs_create_job_gateway_timeout_error_response_body.py +1 -1
  1129. samsara/types/jobs_create_job_internal_server_error_response_body.py +1 -1
  1130. samsara/types/jobs_create_job_method_not_allowed_error_response_body.py +1 -1
  1131. samsara/types/jobs_create_job_not_found_error_response_body.py +1 -1
  1132. samsara/types/jobs_create_job_not_implemented_error_response_body.py +1 -1
  1133. samsara/types/jobs_create_job_response_body.py +3 -1
  1134. samsara/types/jobs_create_job_service_unavailable_error_response_body.py +1 -1
  1135. samsara/types/jobs_create_job_too_many_requests_error_response_body.py +1 -1
  1136. samsara/types/jobs_create_job_unauthorized_error_response_body.py +1 -1
  1137. samsara/types/jobs_delete_job_bad_gateway_error_response_body.py +1 -1
  1138. samsara/types/jobs_delete_job_gateway_timeout_error_response_body.py +1 -1
  1139. samsara/types/jobs_delete_job_internal_server_error_response_body.py +1 -1
  1140. samsara/types/jobs_delete_job_method_not_allowed_error_response_body.py +1 -1
  1141. samsara/types/jobs_delete_job_not_found_error_response_body.py +1 -1
  1142. samsara/types/jobs_delete_job_not_implemented_error_response_body.py +1 -1
  1143. samsara/types/jobs_delete_job_response_body.py +3 -1
  1144. samsara/types/jobs_delete_job_service_unavailable_error_response_body.py +1 -1
  1145. samsara/types/jobs_delete_job_too_many_requests_error_response_body.py +1 -1
  1146. samsara/types/jobs_delete_job_unauthorized_error_response_body.py +1 -1
  1147. samsara/types/jobs_get_jobs_bad_gateway_error_response_body.py +1 -1
  1148. samsara/types/jobs_get_jobs_gateway_timeout_error_response_body.py +1 -1
  1149. samsara/types/jobs_get_jobs_internal_server_error_response_body.py +1 -1
  1150. samsara/types/jobs_get_jobs_method_not_allowed_error_response_body.py +1 -1
  1151. samsara/types/jobs_get_jobs_not_found_error_response_body.py +1 -1
  1152. samsara/types/jobs_get_jobs_not_implemented_error_response_body.py +1 -1
  1153. samsara/types/jobs_get_jobs_response_body.py +3 -1
  1154. samsara/types/jobs_get_jobs_service_unavailable_error_response_body.py +1 -1
  1155. samsara/types/jobs_get_jobs_too_many_requests_error_response_body.py +1 -1
  1156. samsara/types/jobs_get_jobs_unauthorized_error_response_body.py +1 -1
  1157. samsara/types/jobs_patch_job_bad_gateway_error_response_body.py +1 -1
  1158. samsara/types/jobs_patch_job_gateway_timeout_error_response_body.py +1 -1
  1159. samsara/types/jobs_patch_job_internal_server_error_response_body.py +1 -1
  1160. samsara/types/jobs_patch_job_method_not_allowed_error_response_body.py +1 -1
  1161. samsara/types/jobs_patch_job_not_found_error_response_body.py +1 -1
  1162. samsara/types/jobs_patch_job_not_implemented_error_response_body.py +1 -1
  1163. samsara/types/jobs_patch_job_response_body.py +3 -1
  1164. samsara/types/jobs_patch_job_service_unavailable_error_response_body.py +1 -1
  1165. samsara/types/jobs_patch_job_too_many_requests_error_response_body.py +1 -1
  1166. samsara/types/jobs_patch_job_unauthorized_error_response_body.py +1 -1
  1167. samsara/types/list_hub_capacities_response_pagination_response_body.py +4 -2
  1168. samsara/types/list_hub_custom_properties_response_pagination_response_body.py +37 -0
  1169. samsara/types/list_hub_locations_response_pagination_response_body.py +4 -2
  1170. samsara/types/list_hub_plan_routes_response_pagination_response_body.py +4 -2
  1171. samsara/types/list_hub_plans_response_pagination_response_body.py +4 -2
  1172. samsara/types/list_hub_skills_response_pagination_response_body.py +4 -2
  1173. samsara/types/list_hubs_response_pagination_response_body.py +4 -2
  1174. samsara/types/live_sharing_link_full_response_object_response_body.py +7 -5
  1175. samsara/types/live_sharing_link_response_object_response_body.py +4 -2
  1176. samsara/types/live_sharing_links_create_live_sharing_link_bad_gateway_error_response_body.py +1 -1
  1177. samsara/types/live_sharing_links_create_live_sharing_link_gateway_timeout_error_response_body.py +1 -1
  1178. samsara/types/live_sharing_links_create_live_sharing_link_internal_server_error_response_body.py +1 -1
  1179. samsara/types/live_sharing_links_create_live_sharing_link_method_not_allowed_error_response_body.py +1 -1
  1180. samsara/types/live_sharing_links_create_live_sharing_link_not_found_error_response_body.py +1 -1
  1181. samsara/types/live_sharing_links_create_live_sharing_link_not_implemented_error_response_body.py +1 -1
  1182. samsara/types/live_sharing_links_create_live_sharing_link_service_unavailable_error_response_body.py +1 -1
  1183. samsara/types/live_sharing_links_create_live_sharing_link_too_many_requests_error_response_body.py +1 -1
  1184. samsara/types/live_sharing_links_create_live_sharing_link_unauthorized_error_response_body.py +1 -1
  1185. samsara/types/live_sharing_links_delete_live_sharing_link_bad_gateway_error_response_body.py +1 -1
  1186. samsara/types/live_sharing_links_delete_live_sharing_link_gateway_timeout_error_response_body.py +1 -1
  1187. samsara/types/live_sharing_links_delete_live_sharing_link_internal_server_error_response_body.py +1 -1
  1188. samsara/types/live_sharing_links_delete_live_sharing_link_method_not_allowed_error_response_body.py +1 -1
  1189. samsara/types/live_sharing_links_delete_live_sharing_link_not_found_error_response_body.py +1 -1
  1190. samsara/types/live_sharing_links_delete_live_sharing_link_not_implemented_error_response_body.py +1 -1
  1191. samsara/types/live_sharing_links_delete_live_sharing_link_service_unavailable_error_response_body.py +1 -1
  1192. samsara/types/live_sharing_links_delete_live_sharing_link_too_many_requests_error_response_body.py +1 -1
  1193. samsara/types/live_sharing_links_delete_live_sharing_link_unauthorized_error_response_body.py +1 -1
  1194. samsara/types/live_sharing_links_get_live_sharing_links_bad_gateway_error_response_body.py +1 -1
  1195. samsara/types/live_sharing_links_get_live_sharing_links_gateway_timeout_error_response_body.py +1 -1
  1196. samsara/types/live_sharing_links_get_live_sharing_links_internal_server_error_response_body.py +1 -1
  1197. samsara/types/live_sharing_links_get_live_sharing_links_method_not_allowed_error_response_body.py +1 -1
  1198. samsara/types/live_sharing_links_get_live_sharing_links_not_found_error_response_body.py +1 -1
  1199. samsara/types/live_sharing_links_get_live_sharing_links_not_implemented_error_response_body.py +1 -1
  1200. samsara/types/live_sharing_links_get_live_sharing_links_service_unavailable_error_response_body.py +1 -1
  1201. samsara/types/live_sharing_links_get_live_sharing_links_too_many_requests_error_response_body.py +1 -1
  1202. samsara/types/live_sharing_links_get_live_sharing_links_unauthorized_error_response_body.py +1 -1
  1203. samsara/types/live_sharing_links_update_live_sharing_link_bad_gateway_error_response_body.py +1 -1
  1204. samsara/types/live_sharing_links_update_live_sharing_link_gateway_timeout_error_response_body.py +1 -1
  1205. samsara/types/live_sharing_links_update_live_sharing_link_internal_server_error_response_body.py +1 -1
  1206. samsara/types/live_sharing_links_update_live_sharing_link_method_not_allowed_error_response_body.py +1 -1
  1207. samsara/types/live_sharing_links_update_live_sharing_link_not_found_error_response_body.py +1 -1
  1208. samsara/types/live_sharing_links_update_live_sharing_link_not_implemented_error_response_body.py +1 -1
  1209. samsara/types/live_sharing_links_update_live_sharing_link_service_unavailable_error_response_body.py +1 -1
  1210. samsara/types/live_sharing_links_update_live_sharing_link_too_many_requests_error_response_body.py +1 -1
  1211. samsara/types/live_sharing_links_update_live_sharing_link_unauthorized_error_response_body.py +1 -1
  1212. samsara/types/location_and_speed_get_location_and_speed_bad_gateway_error_response_body.py +1 -1
  1213. samsara/types/location_and_speed_get_location_and_speed_gateway_timeout_error_response_body.py +1 -1
  1214. samsara/types/location_and_speed_get_location_and_speed_internal_server_error_response_body.py +1 -1
  1215. samsara/types/location_and_speed_get_location_and_speed_method_not_allowed_error_response_body.py +1 -1
  1216. samsara/types/location_and_speed_get_location_and_speed_not_found_error_response_body.py +1 -1
  1217. samsara/types/location_and_speed_get_location_and_speed_not_implemented_error_response_body.py +1 -1
  1218. samsara/types/location_and_speed_get_location_and_speed_service_unavailable_error_response_body.py +1 -1
  1219. samsara/types/location_and_speed_get_location_and_speed_too_many_requests_error_response_body.py +1 -1
  1220. samsara/types/location_and_speed_get_location_and_speed_unauthorized_error_response_body.py +1 -1
  1221. samsara/types/location_and_speed_response_response_body.py +3 -1
  1222. samsara/types/location_data_point.py +1 -1
  1223. samsara/types/location_data_point_gps_location.py +3 -3
  1224. samsara/types/location_data_point_gps_location_place.py +1 -1
  1225. samsara/types/location_object_request_body.py +3 -3
  1226. samsara/types/location_object_request_body_address_types_item.py +2 -0
  1227. samsara/types/location_object_response_body.py +3 -3
  1228. samsara/types/location_object_response_body_address_types_item.py +2 -0
  1229. samsara/types/location_response_body.py +2 -2
  1230. samsara/types/location_response_response_body.py +4 -2
  1231. samsara/types/log_meta_data_object_response_body.py +12 -12
  1232. samsara/types/media_object_response_body.py +7 -7
  1233. samsara/types/media_retrieval_get_media_retrieval_bad_gateway_error_response_body.py +1 -1
  1234. samsara/types/media_retrieval_get_media_retrieval_gateway_timeout_error_response_body.py +1 -1
  1235. samsara/types/media_retrieval_get_media_retrieval_internal_server_error_response_body.py +1 -1
  1236. samsara/types/media_retrieval_get_media_retrieval_method_not_allowed_error_response_body.py +1 -1
  1237. samsara/types/media_retrieval_get_media_retrieval_not_found_error_response_body.py +1 -1
  1238. samsara/types/media_retrieval_get_media_retrieval_not_implemented_error_response_body.py +1 -1
  1239. samsara/types/media_retrieval_get_media_retrieval_service_unavailable_error_response_body.py +1 -1
  1240. samsara/types/media_retrieval_get_media_retrieval_too_many_requests_error_response_body.py +1 -1
  1241. samsara/types/media_retrieval_get_media_retrieval_unauthorized_error_response_body.py +1 -1
  1242. samsara/types/media_retrieval_list_uploaded_media_bad_gateway_error_response_body.py +1 -1
  1243. samsara/types/media_retrieval_list_uploaded_media_gateway_timeout_error_response_body.py +1 -1
  1244. samsara/types/media_retrieval_list_uploaded_media_internal_server_error_response_body.py +1 -1
  1245. samsara/types/media_retrieval_list_uploaded_media_method_not_allowed_error_response_body.py +1 -1
  1246. samsara/types/media_retrieval_list_uploaded_media_not_found_error_response_body.py +1 -1
  1247. samsara/types/media_retrieval_list_uploaded_media_not_implemented_error_response_body.py +1 -1
  1248. samsara/types/media_retrieval_list_uploaded_media_service_unavailable_error_response_body.py +1 -1
  1249. samsara/types/media_retrieval_list_uploaded_media_too_many_requests_error_response_body.py +1 -1
  1250. samsara/types/media_retrieval_list_uploaded_media_unauthorized_error_response_body.py +1 -1
  1251. samsara/types/media_retrieval_post_media_retrieval_bad_gateway_error_response_body.py +1 -1
  1252. samsara/types/media_retrieval_post_media_retrieval_gateway_timeout_error_response_body.py +1 -1
  1253. samsara/types/media_retrieval_post_media_retrieval_internal_server_error_response_body.py +1 -1
  1254. samsara/types/media_retrieval_post_media_retrieval_method_not_allowed_error_response_body.py +1 -1
  1255. samsara/types/media_retrieval_post_media_retrieval_not_found_error_response_body.py +1 -1
  1256. samsara/types/media_retrieval_post_media_retrieval_not_implemented_error_response_body.py +1 -1
  1257. samsara/types/media_retrieval_post_media_retrieval_service_unavailable_error_response_body.py +1 -1
  1258. samsara/types/media_retrieval_post_media_retrieval_too_many_requests_error_response_body.py +1 -1
  1259. samsara/types/media_retrieval_post_media_retrieval_unauthorized_error_response_body.py +1 -1
  1260. samsara/types/minimal_route_stop_audit_logs_response_body.py +8 -8
  1261. samsara/types/minimal_route_stop_response_body.py +6 -6
  1262. samsara/types/missing_dvir_past_due_response_body.py +24 -0
  1263. samsara/types/mobile_usage_detection_alert_settings_object_response_body.py +3 -3
  1264. samsara/types/motion_detected_response_body.py +1 -1
  1265. samsara/types/number_field_type_meta_data_object_response_body.py +1 -1
  1266. samsara/types/operational_settings_object_request_body.py +2 -2
  1267. samsara/types/operational_settings_object_response_body.py +2 -2
  1268. samsara/types/order_custom_property_input_request_body.py +35 -0
  1269. samsara/types/order_custom_property_response_body.py +40 -0
  1270. samsara/types/order_input_object_request_body.py +14 -4
  1271. samsara/types/order_object_response_body.py +20 -6
  1272. samsara/types/order_quantity_input_request_body.py +3 -1
  1273. samsara/types/order_quantity_response_body.py +3 -1
  1274. samsara/types/order_task_custom_property_object_response_body.py +36 -0
  1275. samsara/types/order_task_object_response_body.py +10 -2
  1276. samsara/types/order_task_request_body.py +5 -5
  1277. samsara/types/order_task_response_body.py +5 -5
  1278. samsara/types/organization_info_carrier_settings.py +3 -3
  1279. samsara/types/organization_info_object.py +1 -1
  1280. samsara/types/out_of_route_details_object_request_body.py +4 -2
  1281. samsara/types/out_of_route_details_object_response_body.py +4 -2
  1282. samsara/types/outside_geofence_trigger_details_object_request_body.py +1 -1
  1283. samsara/types/outside_geofence_trigger_details_object_response_body.py +1 -1
  1284. samsara/types/pagination_response.py +4 -2
  1285. samsara/types/panic_button_details_object_request_body.py +1 -1
  1286. samsara/types/panic_button_details_object_response_body.py +1 -1
  1287. samsara/types/part_instance_input_object_request_body.py +2 -2
  1288. samsara/types/part_instance_object_response_body.py +2 -2
  1289. samsara/types/patch_asset_data_outputs_single_response_response_body.py +4 -2
  1290. samsara/types/patch_driver_trailer_assignments_response_body_response_body.py +6 -6
  1291. samsara/types/patch_driver_vehicle_assignments_v_2_request_body_metadata_request_body.py +1 -1
  1292. samsara/types/patch_job_object_request_body.py +7 -7
  1293. samsara/types/patch_response_workflow_configuration_object_response_body.py +8 -6
  1294. samsara/types/patch_shipping_docs_response_body_response_body.py +10 -10
  1295. samsara/types/pending_duty_status_durations_object_response_body.py +8 -8
  1296. samsara/types/person_detected_response_body.py +1 -1
  1297. samsara/types/plan_object_response_body.py +14 -3
  1298. samsara/types/plan_orders_create_plan_orders_bad_gateway_error_response_body.py +1 -1
  1299. samsara/types/plan_orders_create_plan_orders_gateway_timeout_error_response_body.py +1 -1
  1300. samsara/types/plan_orders_create_plan_orders_internal_server_error_response_body.py +1 -1
  1301. samsara/types/plan_orders_create_plan_orders_method_not_allowed_error_response_body.py +1 -1
  1302. samsara/types/plan_orders_create_plan_orders_not_found_error_response_body.py +1 -1
  1303. samsara/types/plan_orders_create_plan_orders_not_implemented_error_response_body.py +1 -1
  1304. samsara/types/plan_orders_create_plan_orders_service_unavailable_error_response_body.py +1 -1
  1305. samsara/types/plan_orders_create_plan_orders_too_many_requests_error_response_body.py +1 -1
  1306. samsara/types/plan_orders_create_plan_orders_unauthorized_error_response_body.py +1 -1
  1307. samsara/types/policy_violations_detection_alert_settings_object_response_body.py +5 -5
  1308. samsara/types/post_driver_trailer_assignments_response_body_response_body.py +9 -5
  1309. samsara/types/post_driver_vehicle_assignments_v_2_request_body_metadata_request_body.py +1 -1
  1310. samsara/types/post_fuel_purchase_response_body_response_body.py +1 -1
  1311. samsara/types/post_invoice_scan_response_data_response_body.py +30 -0
  1312. samsara/types/post_job_object_request_body.py +7 -7
  1313. samsara/types/post_media_retrieval_object_response_body.py +6 -2
  1314. samsara/types/post_response_res_workflow_configuration_object_response_body.py +8 -6
  1315. samsara/types/primary_time_range_request_body.py +36 -0
  1316. samsara/types/primary_time_range_response_body.py +36 -0
  1317. samsara/types/push_notification_options_object_request_body.py +1 -1
  1318. samsara/types/push_notification_options_object_response_body.py +1 -1
  1319. samsara/types/qr_code_response_object_response_body.py +2 -2
  1320. samsara/types/qualification_field_input_object_response_body.py +8 -8
  1321. samsara/types/qualification_owner_object_response_body.py +2 -2
  1322. samsara/types/qualification_owner_request_object_request_body.py +1 -1
  1323. samsara/types/qualification_record_request_field_input_object_request_body.py +8 -8
  1324. samsara/types/qualification_record_response_object_response_body.py +19 -9
  1325. samsara/types/qualification_type_reference_object_response_body.py +1 -1
  1326. samsara/types/qualification_type_response_object_response_body.py +16 -6
  1327. samsara/types/qualifications_archive_qualification_record_bad_gateway_error_response_body.py +1 -1
  1328. samsara/types/qualifications_archive_qualification_record_gateway_timeout_error_response_body.py +1 -1
  1329. samsara/types/qualifications_archive_qualification_record_internal_server_error_response_body.py +1 -1
  1330. samsara/types/qualifications_archive_qualification_record_method_not_allowed_error_response_body.py +1 -1
  1331. samsara/types/qualifications_archive_qualification_record_not_found_error_response_body.py +1 -1
  1332. samsara/types/qualifications_archive_qualification_record_not_implemented_error_response_body.py +1 -1
  1333. samsara/types/qualifications_archive_qualification_record_service_unavailable_error_response_body.py +1 -1
  1334. samsara/types/qualifications_archive_qualification_record_too_many_requests_error_response_body.py +1 -1
  1335. samsara/types/qualifications_archive_qualification_record_unauthorized_error_response_body.py +1 -1
  1336. samsara/types/qualifications_delete_qualification_record_bad_gateway_error_response_body.py +1 -1
  1337. samsara/types/qualifications_delete_qualification_record_gateway_timeout_error_response_body.py +1 -1
  1338. samsara/types/qualifications_delete_qualification_record_internal_server_error_response_body.py +1 -1
  1339. samsara/types/qualifications_delete_qualification_record_method_not_allowed_error_response_body.py +1 -1
  1340. samsara/types/qualifications_delete_qualification_record_not_found_error_response_body.py +1 -1
  1341. samsara/types/qualifications_delete_qualification_record_not_implemented_error_response_body.py +1 -1
  1342. samsara/types/qualifications_delete_qualification_record_service_unavailable_error_response_body.py +1 -1
  1343. samsara/types/qualifications_delete_qualification_record_too_many_requests_error_response_body.py +1 -1
  1344. samsara/types/qualifications_delete_qualification_record_unauthorized_error_response_body.py +1 -1
  1345. samsara/types/qualifications_get_qualification_records_bad_gateway_error_response_body.py +1 -1
  1346. samsara/types/qualifications_get_qualification_records_gateway_timeout_error_response_body.py +1 -1
  1347. samsara/types/qualifications_get_qualification_records_internal_server_error_response_body.py +1 -1
  1348. samsara/types/qualifications_get_qualification_records_method_not_allowed_error_response_body.py +1 -1
  1349. samsara/types/qualifications_get_qualification_records_not_found_error_response_body.py +1 -1
  1350. samsara/types/qualifications_get_qualification_records_not_implemented_error_response_body.py +1 -1
  1351. samsara/types/qualifications_get_qualification_records_service_unavailable_error_response_body.py +1 -1
  1352. samsara/types/qualifications_get_qualification_records_stream_bad_gateway_error_response_body.py +1 -1
  1353. samsara/types/qualifications_get_qualification_records_stream_gateway_timeout_error_response_body.py +1 -1
  1354. samsara/types/qualifications_get_qualification_records_stream_internal_server_error_response_body.py +1 -1
  1355. samsara/types/qualifications_get_qualification_records_stream_method_not_allowed_error_response_body.py +1 -1
  1356. samsara/types/qualifications_get_qualification_records_stream_not_found_error_response_body.py +1 -1
  1357. samsara/types/qualifications_get_qualification_records_stream_not_implemented_error_response_body.py +1 -1
  1358. samsara/types/qualifications_get_qualification_records_stream_service_unavailable_error_response_body.py +1 -1
  1359. samsara/types/qualifications_get_qualification_records_stream_too_many_requests_error_response_body.py +1 -1
  1360. samsara/types/qualifications_get_qualification_records_stream_unauthorized_error_response_body.py +1 -1
  1361. samsara/types/qualifications_get_qualification_records_too_many_requests_error_response_body.py +1 -1
  1362. samsara/types/qualifications_get_qualification_records_unauthorized_error_response_body.py +1 -1
  1363. samsara/types/qualifications_get_qualification_types_bad_gateway_error_response_body.py +1 -1
  1364. samsara/types/qualifications_get_qualification_types_gateway_timeout_error_response_body.py +1 -1
  1365. samsara/types/qualifications_get_qualification_types_internal_server_error_response_body.py +1 -1
  1366. samsara/types/qualifications_get_qualification_types_method_not_allowed_error_response_body.py +1 -1
  1367. samsara/types/qualifications_get_qualification_types_not_found_error_response_body.py +1 -1
  1368. samsara/types/qualifications_get_qualification_types_not_implemented_error_response_body.py +1 -1
  1369. samsara/types/qualifications_get_qualification_types_service_unavailable_error_response_body.py +1 -1
  1370. samsara/types/qualifications_get_qualification_types_too_many_requests_error_response_body.py +1 -1
  1371. samsara/types/qualifications_get_qualification_types_unauthorized_error_response_body.py +1 -1
  1372. samsara/types/qualifications_patch_qualification_record_bad_gateway_error_response_body.py +1 -1
  1373. samsara/types/qualifications_patch_qualification_record_gateway_timeout_error_response_body.py +1 -1
  1374. samsara/types/qualifications_patch_qualification_record_internal_server_error_response_body.py +1 -1
  1375. samsara/types/qualifications_patch_qualification_record_method_not_allowed_error_response_body.py +1 -1
  1376. samsara/types/qualifications_patch_qualification_record_not_found_error_response_body.py +1 -1
  1377. samsara/types/qualifications_patch_qualification_record_not_implemented_error_response_body.py +1 -1
  1378. samsara/types/qualifications_patch_qualification_record_service_unavailable_error_response_body.py +1 -1
  1379. samsara/types/qualifications_patch_qualification_record_too_many_requests_error_response_body.py +1 -1
  1380. samsara/types/qualifications_patch_qualification_record_unauthorized_error_response_body.py +1 -1
  1381. samsara/types/qualifications_post_qualification_record_bad_gateway_error_response_body.py +1 -1
  1382. samsara/types/qualifications_post_qualification_record_gateway_timeout_error_response_body.py +1 -1
  1383. samsara/types/qualifications_post_qualification_record_internal_server_error_response_body.py +1 -1
  1384. samsara/types/qualifications_post_qualification_record_method_not_allowed_error_response_body.py +1 -1
  1385. samsara/types/qualifications_post_qualification_record_not_found_error_response_body.py +1 -1
  1386. samsara/types/qualifications_post_qualification_record_not_implemented_error_response_body.py +1 -1
  1387. samsara/types/qualifications_post_qualification_record_service_unavailable_error_response_body.py +1 -1
  1388. samsara/types/qualifications_post_qualification_record_too_many_requests_error_response_body.py +1 -1
  1389. samsara/types/qualifications_post_qualification_record_unauthorized_error_response_body.py +1 -1
  1390. samsara/types/qualifications_unarchive_qualification_record_bad_gateway_error_response_body.py +1 -1
  1391. samsara/types/qualifications_unarchive_qualification_record_gateway_timeout_error_response_body.py +1 -1
  1392. samsara/types/qualifications_unarchive_qualification_record_internal_server_error_response_body.py +1 -1
  1393. samsara/types/qualifications_unarchive_qualification_record_method_not_allowed_error_response_body.py +1 -1
  1394. samsara/types/qualifications_unarchive_qualification_record_not_found_error_response_body.py +1 -1
  1395. samsara/types/qualifications_unarchive_qualification_record_not_implemented_error_response_body.py +1 -1
  1396. samsara/types/qualifications_unarchive_qualification_record_service_unavailable_error_response_body.py +1 -1
  1397. samsara/types/qualifications_unarchive_qualification_record_too_many_requests_error_response_body.py +1 -1
  1398. samsara/types/qualifications_unarchive_qualification_record_unauthorized_error_response_body.py +1 -1
  1399. samsara/types/quantity_object_response_body.py +3 -1
  1400. samsara/types/reading_datapoint_request_body.py +6 -4
  1401. samsara/types/reading_definition_response_body.py +12 -6
  1402. samsara/types/reading_history_response_body.py +3 -3
  1403. samsara/types/reading_snapshot_response_body.py +4 -4
  1404. samsara/types/reading_trigger_continuous_value_object_request_body.py +2 -2
  1405. samsara/types/reading_trigger_continuous_value_object_request_body_unit.py +10 -0
  1406. samsara/types/reading_trigger_continuous_value_object_response_body.py +2 -2
  1407. samsara/types/reading_trigger_continuous_value_object_response_body_unit.py +10 -0
  1408. samsara/types/reading_trigger_details_object_request_body.py +6 -4
  1409. samsara/types/reading_trigger_details_object_response_body.py +6 -4
  1410. samsara/types/reading_trigger_details_response_body.py +2 -2
  1411. samsara/types/readings_get_readings_history_bad_gateway_error_response_body.py +1 -1
  1412. samsara/types/readings_get_readings_history_gateway_timeout_error_response_body.py +1 -1
  1413. samsara/types/readings_get_readings_history_internal_server_error_response_body.py +1 -1
  1414. samsara/types/readings_get_readings_history_method_not_allowed_error_response_body.py +1 -1
  1415. samsara/types/readings_get_readings_history_not_found_error_response_body.py +1 -1
  1416. samsara/types/readings_get_readings_history_not_implemented_error_response_body.py +1 -1
  1417. samsara/types/readings_get_readings_history_service_unavailable_error_response_body.py +1 -1
  1418. samsara/types/readings_get_readings_history_too_many_requests_error_response_body.py +1 -1
  1419. samsara/types/readings_get_readings_history_unauthorized_error_response_body.py +1 -1
  1420. samsara/types/readings_get_readings_snapshot_bad_gateway_error_response_body.py +1 -1
  1421. samsara/types/readings_get_readings_snapshot_gateway_timeout_error_response_body.py +1 -1
  1422. samsara/types/readings_get_readings_snapshot_internal_server_error_response_body.py +1 -1
  1423. samsara/types/readings_get_readings_snapshot_method_not_allowed_error_response_body.py +1 -1
  1424. samsara/types/readings_get_readings_snapshot_not_found_error_response_body.py +1 -1
  1425. samsara/types/readings_get_readings_snapshot_not_implemented_error_response_body.py +1 -1
  1426. samsara/types/readings_get_readings_snapshot_service_unavailable_error_response_body.py +1 -1
  1427. samsara/types/readings_get_readings_snapshot_too_many_requests_error_response_body.py +1 -1
  1428. samsara/types/readings_get_readings_snapshot_unauthorized_error_response_body.py +1 -1
  1429. samsara/types/readings_list_readings_definitions_bad_gateway_error_response_body.py +1 -1
  1430. samsara/types/readings_list_readings_definitions_gateway_timeout_error_response_body.py +1 -1
  1431. samsara/types/readings_list_readings_definitions_internal_server_error_response_body.py +1 -1
  1432. samsara/types/readings_list_readings_definitions_method_not_allowed_error_response_body.py +1 -1
  1433. samsara/types/readings_list_readings_definitions_not_found_error_response_body.py +1 -1
  1434. samsara/types/readings_list_readings_definitions_not_implemented_error_response_body.py +1 -1
  1435. samsara/types/readings_list_readings_definitions_service_unavailable_error_response_body.py +1 -1
  1436. samsara/types/readings_list_readings_definitions_too_many_requests_error_response_body.py +1 -1
  1437. samsara/types/readings_list_readings_definitions_unauthorized_error_response_body.py +1 -1
  1438. samsara/types/readings_post_readings_bad_gateway_error_response_body.py +1 -1
  1439. samsara/types/readings_post_readings_gateway_timeout_error_response_body.py +1 -1
  1440. samsara/types/readings_post_readings_internal_server_error_response_body.py +1 -1
  1441. samsara/types/readings_post_readings_method_not_allowed_error_response_body.py +1 -1
  1442. samsara/types/readings_post_readings_not_found_error_response_body.py +1 -1
  1443. samsara/types/readings_post_readings_not_implemented_error_response_body.py +1 -1
  1444. samsara/types/readings_post_readings_service_unavailable_error_response_body.py +1 -1
  1445. samsara/types/readings_post_readings_too_many_requests_error_response_body.py +1 -1
  1446. samsara/types/readings_post_readings_unauthorized_error_response_body.py +1 -1
  1447. samsara/types/recipient_object_request_body.py +4 -4
  1448. samsara/types/recipient_object_response_body.py +4 -4
  1449. samsara/types/report_columns_object_response_body.py +38 -0
  1450. samsara/types/report_columns_object_response_body_data_type.py +7 -0
  1451. samsara/types/report_columns_object_response_body_unit.py +88 -0
  1452. samsara/types/report_config_object_response_body.py +42 -0
  1453. samsara/types/report_run_object_response_body.py +49 -0
  1454. samsara/types/report_run_object_response_body_status.py +7 -0
  1455. samsara/types/reports_create_report_run_bad_gateway_error_response_body.py +33 -0
  1456. samsara/types/reports_create_report_run_gateway_timeout_error_response_body.py +33 -0
  1457. samsara/types/reports_create_report_run_internal_server_error_response_body.py +33 -0
  1458. samsara/types/reports_create_report_run_method_not_allowed_error_response_body.py +33 -0
  1459. samsara/types/reports_create_report_run_not_found_error_response_body.py +33 -0
  1460. samsara/types/reports_create_report_run_not_implemented_error_response_body.py +33 -0
  1461. samsara/types/reports_create_report_run_response_body.py +20 -0
  1462. samsara/types/reports_create_report_run_service_unavailable_error_response_body.py +33 -0
  1463. samsara/types/reports_create_report_run_too_many_requests_error_response_body.py +33 -0
  1464. samsara/types/reports_create_report_run_unauthorized_error_response_body.py +33 -0
  1465. samsara/types/reports_dataset_field_response_body.py +49 -0
  1466. samsara/types/reports_dataset_field_response_body_data_type.py +7 -0
  1467. samsara/types/reports_dataset_field_response_body_unit.py +88 -0
  1468. samsara/types/reports_dataset_response_body.py +55 -0
  1469. samsara/types/reports_get_datasets_bad_gateway_error_response_body.py +33 -0
  1470. samsara/types/reports_get_datasets_gateway_timeout_error_response_body.py +33 -0
  1471. samsara/types/reports_get_datasets_internal_server_error_response_body.py +33 -0
  1472. samsara/types/reports_get_datasets_method_not_allowed_error_response_body.py +33 -0
  1473. samsara/types/reports_get_datasets_not_found_error_response_body.py +33 -0
  1474. samsara/types/reports_get_datasets_not_implemented_error_response_body.py +33 -0
  1475. samsara/types/reports_get_datasets_response_body.py +26 -0
  1476. samsara/types/reports_get_datasets_service_unavailable_error_response_body.py +33 -0
  1477. samsara/types/reports_get_datasets_too_many_requests_error_response_body.py +33 -0
  1478. samsara/types/reports_get_datasets_unauthorized_error_response_body.py +33 -0
  1479. samsara/types/reports_get_report_configs_bad_gateway_error_response_body.py +33 -0
  1480. samsara/types/reports_get_report_configs_gateway_timeout_error_response_body.py +33 -0
  1481. samsara/types/reports_get_report_configs_internal_server_error_response_body.py +33 -0
  1482. samsara/types/reports_get_report_configs_method_not_allowed_error_response_body.py +33 -0
  1483. samsara/types/reports_get_report_configs_not_found_error_response_body.py +33 -0
  1484. samsara/types/reports_get_report_configs_not_implemented_error_response_body.py +33 -0
  1485. samsara/types/reports_get_report_configs_response_body.py +26 -0
  1486. samsara/types/reports_get_report_configs_service_unavailable_error_response_body.py +33 -0
  1487. samsara/types/reports_get_report_configs_too_many_requests_error_response_body.py +33 -0
  1488. samsara/types/reports_get_report_configs_unauthorized_error_response_body.py +33 -0
  1489. samsara/types/reports_get_report_run_data_bad_gateway_error_response_body.py +33 -0
  1490. samsara/types/reports_get_report_run_data_gateway_timeout_error_response_body.py +33 -0
  1491. samsara/types/reports_get_report_run_data_internal_server_error_response_body.py +33 -0
  1492. samsara/types/reports_get_report_run_data_method_not_allowed_error_response_body.py +33 -0
  1493. samsara/types/reports_get_report_run_data_not_found_error_response_body.py +33 -0
  1494. samsara/types/reports_get_report_run_data_not_implemented_error_response_body.py +33 -0
  1495. samsara/types/reports_get_report_run_data_response_body.py +22 -0
  1496. samsara/types/reports_get_report_run_data_service_unavailable_error_response_body.py +33 -0
  1497. samsara/types/reports_get_report_run_data_too_many_requests_error_response_body.py +33 -0
  1498. samsara/types/reports_get_report_run_data_unauthorized_error_response_body.py +33 -0
  1499. samsara/types/reports_get_report_runs_bad_gateway_error_response_body.py +33 -0
  1500. samsara/types/reports_get_report_runs_gateway_timeout_error_response_body.py +33 -0
  1501. samsara/types/reports_get_report_runs_internal_server_error_response_body.py +33 -0
  1502. samsara/types/reports_get_report_runs_method_not_allowed_error_response_body.py +33 -0
  1503. samsara/types/reports_get_report_runs_not_found_error_response_body.py +33 -0
  1504. samsara/types/reports_get_report_runs_not_implemented_error_response_body.py +33 -0
  1505. samsara/types/reports_get_report_runs_response_body.py +26 -0
  1506. samsara/types/reports_get_report_runs_service_unavailable_error_response_body.py +33 -0
  1507. samsara/types/reports_get_report_runs_too_many_requests_error_response_body.py +33 -0
  1508. samsara/types/reports_get_report_runs_unauthorized_error_response_body.py +33 -0
  1509. samsara/types/reverse_geo.py +1 -1
  1510. samsara/types/reverse_geo_object_response_body.py +1 -1
  1511. samsara/types/rolling_stop_detection_alert_settings_object_response_body.py +2 -2
  1512. samsara/types/route_event_details_response_body.py +3 -3
  1513. samsara/types/route_event_response_response_body.py +8 -4
  1514. samsara/types/route_event_route_response_response_body.py +1 -1
  1515. samsara/types/route_event_stop_response_response_body.py +1 -1
  1516. samsara/types/route_object_response_body.py +20 -12
  1517. samsara/types/route_settings_request_body.py +3 -3
  1518. samsara/types/route_settings_response_body.py +3 -3
  1519. samsara/types/route_stop_details_object_response_body.py +1 -1
  1520. samsara/types/route_stop_estimated_arrival_details_object_request_body.py +3 -3
  1521. samsara/types/route_stop_estimated_arrival_details_object_response_body.py +3 -3
  1522. samsara/types/route_stop_object_response_body.py +4 -4
  1523. samsara/types/routes_create_route_bad_gateway_error_response_body.py +1 -1
  1524. samsara/types/routes_create_route_gateway_timeout_error_response_body.py +1 -1
  1525. samsara/types/routes_create_route_internal_server_error_response_body.py +1 -1
  1526. samsara/types/routes_create_route_method_not_allowed_error_response_body.py +1 -1
  1527. samsara/types/routes_create_route_not_found_error_response_body.py +1 -1
  1528. samsara/types/routes_create_route_not_implemented_error_response_body.py +1 -1
  1529. samsara/types/routes_create_route_service_unavailable_error_response_body.py +1 -1
  1530. samsara/types/routes_create_route_too_many_requests_error_response_body.py +1 -1
  1531. samsara/types/routes_create_route_unauthorized_error_response_body.py +1 -1
  1532. samsara/types/routes_delete_route_bad_gateway_error_response_body.py +1 -1
  1533. samsara/types/routes_delete_route_gateway_timeout_error_response_body.py +1 -1
  1534. samsara/types/routes_delete_route_internal_server_error_response_body.py +1 -1
  1535. samsara/types/routes_delete_route_method_not_allowed_error_response_body.py +1 -1
  1536. samsara/types/routes_delete_route_not_found_error_response_body.py +1 -1
  1537. samsara/types/routes_delete_route_not_implemented_error_response_body.py +1 -1
  1538. samsara/types/routes_delete_route_service_unavailable_error_response_body.py +1 -1
  1539. samsara/types/routes_delete_route_too_many_requests_error_response_body.py +1 -1
  1540. samsara/types/routes_delete_route_unauthorized_error_response_body.py +1 -1
  1541. samsara/types/routes_fetch_route_bad_gateway_error_response_body.py +1 -1
  1542. samsara/types/routes_fetch_route_gateway_timeout_error_response_body.py +1 -1
  1543. samsara/types/routes_fetch_route_internal_server_error_response_body.py +1 -1
  1544. samsara/types/routes_fetch_route_method_not_allowed_error_response_body.py +1 -1
  1545. samsara/types/routes_fetch_route_not_found_error_response_body.py +1 -1
  1546. samsara/types/routes_fetch_route_not_implemented_error_response_body.py +1 -1
  1547. samsara/types/routes_fetch_route_service_unavailable_error_response_body.py +1 -1
  1548. samsara/types/routes_fetch_route_too_many_requests_error_response_body.py +1 -1
  1549. samsara/types/routes_fetch_route_unauthorized_error_response_body.py +1 -1
  1550. samsara/types/routes_fetch_routes_bad_gateway_error_response_body.py +1 -1
  1551. samsara/types/routes_fetch_routes_gateway_timeout_error_response_body.py +1 -1
  1552. samsara/types/routes_fetch_routes_internal_server_error_response_body.py +1 -1
  1553. samsara/types/routes_fetch_routes_method_not_allowed_error_response_body.py +1 -1
  1554. samsara/types/routes_fetch_routes_not_found_error_response_body.py +1 -1
  1555. samsara/types/routes_fetch_routes_not_implemented_error_response_body.py +1 -1
  1556. samsara/types/routes_fetch_routes_service_unavailable_error_response_body.py +1 -1
  1557. samsara/types/routes_fetch_routes_too_many_requests_error_response_body.py +1 -1
  1558. samsara/types/routes_fetch_routes_unauthorized_error_response_body.py +1 -1
  1559. samsara/types/routes_get_route_events_stream_bad_gateway_error_response_body.py +1 -1
  1560. samsara/types/routes_get_route_events_stream_gateway_timeout_error_response_body.py +1 -1
  1561. samsara/types/routes_get_route_events_stream_internal_server_error_response_body.py +1 -1
  1562. samsara/types/routes_get_route_events_stream_method_not_allowed_error_response_body.py +1 -1
  1563. samsara/types/routes_get_route_events_stream_not_found_error_response_body.py +1 -1
  1564. samsara/types/routes_get_route_events_stream_not_implemented_error_response_body.py +1 -1
  1565. samsara/types/routes_get_route_events_stream_service_unavailable_error_response_body.py +1 -1
  1566. samsara/types/routes_get_route_events_stream_too_many_requests_error_response_body.py +1 -1
  1567. samsara/types/routes_get_route_events_stream_unauthorized_error_response_body.py +1 -1
  1568. samsara/types/routes_get_routes_feed_bad_gateway_error_response_body.py +1 -1
  1569. samsara/types/routes_get_routes_feed_gateway_timeout_error_response_body.py +1 -1
  1570. samsara/types/routes_get_routes_feed_internal_server_error_response_body.py +1 -1
  1571. samsara/types/routes_get_routes_feed_method_not_allowed_error_response_body.py +1 -1
  1572. samsara/types/routes_get_routes_feed_not_found_error_response_body.py +1 -1
  1573. samsara/types/routes_get_routes_feed_not_implemented_error_response_body.py +1 -1
  1574. samsara/types/routes_get_routes_feed_service_unavailable_error_response_body.py +1 -1
  1575. samsara/types/routes_get_routes_feed_too_many_requests_error_response_body.py +1 -1
  1576. samsara/types/routes_get_routes_feed_unauthorized_error_response_body.py +1 -1
  1577. samsara/types/routes_patch_route_bad_gateway_error_response_body.py +1 -1
  1578. samsara/types/routes_patch_route_gateway_timeout_error_response_body.py +1 -1
  1579. samsara/types/routes_patch_route_internal_server_error_response_body.py +1 -1
  1580. samsara/types/routes_patch_route_method_not_allowed_error_response_body.py +1 -1
  1581. samsara/types/routes_patch_route_not_found_error_response_body.py +1 -1
  1582. samsara/types/routes_patch_route_not_implemented_error_response_body.py +1 -1
  1583. samsara/types/routes_patch_route_service_unavailable_error_response_body.py +1 -1
  1584. samsara/types/routes_patch_route_too_many_requests_error_response_body.py +1 -1
  1585. samsara/types/routes_patch_route_unauthorized_error_response_body.py +1 -1
  1586. samsara/types/routes_single_use_address_object_request_body.py +1 -1
  1587. samsara/types/routes_single_use_address_object_response_body.py +1 -1
  1588. samsara/types/routes_stop_response_object_response_body.py +27 -13
  1589. samsara/types/safety_behavior_trigger_details_object_request_body.py +61 -0
  1590. samsara/types/safety_behavior_trigger_details_object_request_body_behaviors_item.py +86 -0
  1591. samsara/types/safety_behavior_trigger_details_object_request_body_severities_item.py +7 -0
  1592. samsara/types/safety_behavior_trigger_details_object_request_body_statuses_item.py +7 -0
  1593. samsara/types/safety_behavior_trigger_details_object_response_body.py +61 -0
  1594. samsara/types/safety_behavior_trigger_details_object_response_body_behaviors_item.py +86 -0
  1595. samsara/types/safety_behavior_trigger_details_object_response_body_severities_item.py +7 -0
  1596. samsara/types/safety_behavior_trigger_details_object_response_body_statuses_item.py +7 -0
  1597. samsara/types/safety_event.py +12 -12
  1598. samsara/types/safety_event_activity_feed_item_response_body.py +3 -1
  1599. samsara/types/safety_event_behavior_labels_response_body.py +1 -1
  1600. samsara/types/safety_event_behavior_labels_response_body_type.py +3 -0
  1601. samsara/types/safety_event_object_response_body.py +1 -1
  1602. samsara/types/safety_event_speeding_metadata_response_body.py +37 -0
  1603. samsara/types/safety_event_v_2_asset_object_response_body.py +1 -1
  1604. samsara/types/safety_event_v_2_behavior_labels_response_body.py +1 -1
  1605. samsara/types/safety_event_v_2_behavior_labels_response_body_label.py +3 -0
  1606. samsara/types/safety_event_v_2_context_labels_response_body.py +4 -2
  1607. samsara/types/safety_event_v_2_driver_object_response_body.py +2 -2
  1608. samsara/types/safety_event_v_2_media_response_body.py +49 -0
  1609. samsara/types/safety_event_v_2_media_response_body_camera_role.py +28 -0
  1610. samsara/types/safety_event_v_2_media_response_body_input.py +7 -0
  1611. samsara/types/safety_event_v_2_object_response_body.py +45 -27
  1612. samsara/types/safety_events_get_safety_activity_event_feed_bad_gateway_error_response_body.py +1 -1
  1613. samsara/types/safety_events_get_safety_activity_event_feed_gateway_timeout_error_response_body.py +1 -1
  1614. samsara/types/safety_events_get_safety_activity_event_feed_internal_server_error_response_body.py +1 -1
  1615. samsara/types/safety_events_get_safety_activity_event_feed_method_not_allowed_error_response_body.py +1 -1
  1616. samsara/types/safety_events_get_safety_activity_event_feed_not_found_error_response_body.py +1 -1
  1617. samsara/types/safety_events_get_safety_activity_event_feed_not_implemented_error_response_body.py +1 -1
  1618. samsara/types/safety_events_get_safety_activity_event_feed_service_unavailable_error_response_body.py +1 -1
  1619. samsara/types/safety_events_get_safety_activity_event_feed_too_many_requests_error_response_body.py +1 -1
  1620. samsara/types/safety_events_get_safety_activity_event_feed_unauthorized_error_response_body.py +1 -1
  1621. samsara/types/safety_events_v_2_get_safety_events_v_2_bad_gateway_error_response_body.py +1 -1
  1622. samsara/types/safety_events_v_2_get_safety_events_v_2_gateway_timeout_error_response_body.py +1 -1
  1623. samsara/types/safety_events_v_2_get_safety_events_v_2_internal_server_error_response_body.py +1 -1
  1624. samsara/types/safety_events_v_2_get_safety_events_v_2_method_not_allowed_error_response_body.py +1 -1
  1625. samsara/types/safety_events_v_2_get_safety_events_v_2_not_found_error_response_body.py +1 -1
  1626. samsara/types/safety_events_v_2_get_safety_events_v_2_not_implemented_error_response_body.py +1 -1
  1627. samsara/types/safety_events_v_2_get_safety_events_v_2_service_unavailable_error_response_body.py +1 -1
  1628. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_bad_gateway_error_response_body.py +1 -1
  1629. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_gateway_timeout_error_response_body.py +1 -1
  1630. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_internal_server_error_response_body.py +1 -1
  1631. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_method_not_allowed_error_response_body.py +1 -1
  1632. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_not_found_error_response_body.py +1 -1
  1633. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_not_implemented_error_response_body.py +1 -1
  1634. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_service_unavailable_error_response_body.py +1 -1
  1635. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_too_many_requests_error_response_body.py +1 -1
  1636. samsara/types/safety_events_v_2_get_safety_events_v_2_stream_unauthorized_error_response_body.py +1 -1
  1637. samsara/types/safety_events_v_2_get_safety_events_v_2_too_many_requests_error_response_body.py +1 -1
  1638. samsara/types/safety_events_v_2_get_safety_events_v_2_unauthorized_error_response_body.py +1 -1
  1639. samsara/types/safety_score_behavior_object_response_body.py +4 -2
  1640. samsara/types/safety_score_configuration_settings_object_response_body.py +30 -30
  1641. samsara/types/safety_score_details_request_body.py +32 -0
  1642. samsara/types/safety_score_details_request_body_comparison.py +8 -0
  1643. samsara/types/safety_score_details_response_body.py +32 -0
  1644. samsara/types/safety_score_details_response_body_comparison.py +8 -0
  1645. samsara/types/safety_score_speeding_object_response_body.py +5 -3
  1646. samsara/types/safety_scores_get_driver_safety_score_trips_bad_gateway_error_response_body.py +1 -1
  1647. samsara/types/safety_scores_get_driver_safety_score_trips_gateway_timeout_error_response_body.py +1 -1
  1648. samsara/types/safety_scores_get_driver_safety_score_trips_internal_server_error_response_body.py +1 -1
  1649. samsara/types/safety_scores_get_driver_safety_score_trips_method_not_allowed_error_response_body.py +1 -1
  1650. samsara/types/safety_scores_get_driver_safety_score_trips_not_found_error_response_body.py +1 -1
  1651. samsara/types/safety_scores_get_driver_safety_score_trips_not_implemented_error_response_body.py +1 -1
  1652. samsara/types/safety_scores_get_driver_safety_score_trips_service_unavailable_error_response_body.py +1 -1
  1653. samsara/types/safety_scores_get_driver_safety_score_trips_too_many_requests_error_response_body.py +1 -1
  1654. samsara/types/safety_scores_get_driver_safety_score_trips_unauthorized_error_response_body.py +1 -1
  1655. samsara/types/safety_scores_get_driver_safety_scores_bad_gateway_error_response_body.py +1 -1
  1656. samsara/types/safety_scores_get_driver_safety_scores_gateway_timeout_error_response_body.py +1 -1
  1657. samsara/types/safety_scores_get_driver_safety_scores_internal_server_error_response_body.py +1 -1
  1658. samsara/types/safety_scores_get_driver_safety_scores_method_not_allowed_error_response_body.py +1 -1
  1659. samsara/types/safety_scores_get_driver_safety_scores_not_found_error_response_body.py +1 -1
  1660. samsara/types/safety_scores_get_driver_safety_scores_not_implemented_error_response_body.py +1 -1
  1661. samsara/types/safety_scores_get_driver_safety_scores_service_unavailable_error_response_body.py +1 -1
  1662. samsara/types/safety_scores_get_driver_safety_scores_too_many_requests_error_response_body.py +1 -1
  1663. samsara/types/safety_scores_get_driver_safety_scores_unauthorized_error_response_body.py +1 -1
  1664. samsara/types/safety_scores_get_tag_group_safety_scores_bad_gateway_error_response_body.py +1 -1
  1665. samsara/types/safety_scores_get_tag_group_safety_scores_gateway_timeout_error_response_body.py +1 -1
  1666. samsara/types/safety_scores_get_tag_group_safety_scores_internal_server_error_response_body.py +1 -1
  1667. samsara/types/safety_scores_get_tag_group_safety_scores_method_not_allowed_error_response_body.py +1 -1
  1668. samsara/types/safety_scores_get_tag_group_safety_scores_not_found_error_response_body.py +1 -1
  1669. samsara/types/safety_scores_get_tag_group_safety_scores_not_implemented_error_response_body.py +1 -1
  1670. samsara/types/safety_scores_get_tag_group_safety_scores_service_unavailable_error_response_body.py +1 -1
  1671. samsara/types/safety_scores_get_tag_group_safety_scores_too_many_requests_error_response_body.py +1 -1
  1672. samsara/types/safety_scores_get_tag_group_safety_scores_unauthorized_error_response_body.py +1 -1
  1673. samsara/types/safety_scores_get_tag_safety_scores_bad_gateway_error_response_body.py +1 -1
  1674. samsara/types/safety_scores_get_tag_safety_scores_gateway_timeout_error_response_body.py +1 -1
  1675. samsara/types/safety_scores_get_tag_safety_scores_internal_server_error_response_body.py +1 -1
  1676. samsara/types/safety_scores_get_tag_safety_scores_method_not_allowed_error_response_body.py +1 -1
  1677. samsara/types/safety_scores_get_tag_safety_scores_not_found_error_response_body.py +1 -1
  1678. samsara/types/safety_scores_get_tag_safety_scores_not_implemented_error_response_body.py +1 -1
  1679. samsara/types/safety_scores_get_tag_safety_scores_service_unavailable_error_response_body.py +1 -1
  1680. samsara/types/safety_scores_get_tag_safety_scores_too_many_requests_error_response_body.py +1 -1
  1681. samsara/types/safety_scores_get_tag_safety_scores_unauthorized_error_response_body.py +1 -1
  1682. samsara/types/safety_scores_get_vehicle_safety_score_trips_bad_gateway_error_response_body.py +1 -1
  1683. samsara/types/safety_scores_get_vehicle_safety_score_trips_gateway_timeout_error_response_body.py +1 -1
  1684. samsara/types/safety_scores_get_vehicle_safety_score_trips_internal_server_error_response_body.py +1 -1
  1685. samsara/types/safety_scores_get_vehicle_safety_score_trips_method_not_allowed_error_response_body.py +1 -1
  1686. samsara/types/safety_scores_get_vehicle_safety_score_trips_not_found_error_response_body.py +1 -1
  1687. samsara/types/safety_scores_get_vehicle_safety_score_trips_not_implemented_error_response_body.py +1 -1
  1688. samsara/types/safety_scores_get_vehicle_safety_score_trips_service_unavailable_error_response_body.py +1 -1
  1689. samsara/types/safety_scores_get_vehicle_safety_score_trips_too_many_requests_error_response_body.py +1 -1
  1690. samsara/types/safety_scores_get_vehicle_safety_score_trips_unauthorized_error_response_body.py +1 -1
  1691. samsara/types/safety_scores_get_vehicle_safety_scores_bad_gateway_error_response_body.py +1 -1
  1692. samsara/types/safety_scores_get_vehicle_safety_scores_gateway_timeout_error_response_body.py +1 -1
  1693. samsara/types/safety_scores_get_vehicle_safety_scores_internal_server_error_response_body.py +1 -1
  1694. samsara/types/safety_scores_get_vehicle_safety_scores_method_not_allowed_error_response_body.py +1 -1
  1695. samsara/types/safety_scores_get_vehicle_safety_scores_not_found_error_response_body.py +1 -1
  1696. samsara/types/safety_scores_get_vehicle_safety_scores_not_implemented_error_response_body.py +1 -1
  1697. samsara/types/safety_scores_get_vehicle_safety_scores_service_unavailable_error_response_body.py +1 -1
  1698. samsara/types/safety_scores_get_vehicle_safety_scores_too_many_requests_error_response_body.py +1 -1
  1699. samsara/types/safety_scores_get_vehicle_safety_scores_unauthorized_error_response_body.py +1 -1
  1700. samsara/types/safety_settings_get_safety_settings_bad_gateway_error_response_body.py +1 -1
  1701. samsara/types/safety_settings_get_safety_settings_gateway_timeout_error_response_body.py +1 -1
  1702. samsara/types/safety_settings_get_safety_settings_internal_server_error_response_body.py +1 -1
  1703. samsara/types/safety_settings_get_safety_settings_method_not_allowed_error_response_body.py +1 -1
  1704. samsara/types/safety_settings_get_safety_settings_not_found_error_response_body.py +1 -1
  1705. samsara/types/safety_settings_get_safety_settings_not_implemented_error_response_body.py +1 -1
  1706. samsara/types/safety_settings_get_safety_settings_service_unavailable_error_response_body.py +1 -1
  1707. samsara/types/safety_settings_get_safety_settings_too_many_requests_error_response_body.py +1 -1
  1708. samsara/types/safety_settings_get_safety_settings_unauthorized_error_response_body.py +1 -1
  1709. samsara/types/safety_settings_object_response_body.py +14 -12
  1710. samsara/types/scheduled_maintenance_by_engine_hours_details_object_request_body.py +6 -2
  1711. samsara/types/scheduled_maintenance_by_engine_hours_details_object_response_body.py +6 -2
  1712. samsara/types/scheduled_maintenance_odometer_trigger_details_object_request_body.py +6 -2
  1713. samsara/types/scheduled_maintenance_odometer_trigger_details_object_response_body.py +6 -2
  1714. samsara/types/scheduled_maintenance_trigger_details_object_request_body.py +4 -2
  1715. samsara/types/scheduled_maintenance_trigger_details_object_response_body.py +4 -2
  1716. samsara/types/scope_object_request_body.py +1 -1
  1717. samsara/types/scope_object_response_body.py +1 -1
  1718. samsara/types/service_task_definition_object_response_body.py +2 -2
  1719. samsara/types/service_task_instance_input_object_request_body.py +6 -4
  1720. samsara/types/service_task_instance_object_response_body.py +6 -4
  1721. samsara/types/service_window_object_response_body.py +5 -3
  1722. samsara/types/settings_compliance_response_object_response_body.py +10 -10
  1723. samsara/types/settings_get_compliance_settings_bad_gateway_error_response_body.py +1 -1
  1724. samsara/types/settings_get_compliance_settings_gateway_timeout_error_response_body.py +1 -1
  1725. samsara/types/settings_get_compliance_settings_internal_server_error_response_body.py +1 -1
  1726. samsara/types/settings_get_compliance_settings_method_not_allowed_error_response_body.py +1 -1
  1727. samsara/types/settings_get_compliance_settings_not_found_error_response_body.py +1 -1
  1728. samsara/types/settings_get_compliance_settings_not_implemented_error_response_body.py +1 -1
  1729. samsara/types/settings_get_compliance_settings_service_unavailable_error_response_body.py +1 -1
  1730. samsara/types/settings_get_compliance_settings_too_many_requests_error_response_body.py +1 -1
  1731. samsara/types/settings_get_compliance_settings_unauthorized_error_response_body.py +1 -1
  1732. samsara/types/settings_get_driver_app_settings_bad_gateway_error_response_body.py +1 -1
  1733. samsara/types/settings_get_driver_app_settings_gateway_timeout_error_response_body.py +1 -1
  1734. samsara/types/settings_get_driver_app_settings_internal_server_error_response_body.py +1 -1
  1735. samsara/types/settings_get_driver_app_settings_method_not_allowed_error_response_body.py +1 -1
  1736. samsara/types/settings_get_driver_app_settings_not_found_error_response_body.py +1 -1
  1737. samsara/types/settings_get_driver_app_settings_not_implemented_error_response_body.py +1 -1
  1738. samsara/types/settings_get_driver_app_settings_service_unavailable_error_response_body.py +1 -1
  1739. samsara/types/settings_get_driver_app_settings_too_many_requests_error_response_body.py +1 -1
  1740. samsara/types/settings_get_driver_app_settings_unauthorized_error_response_body.py +1 -1
  1741. samsara/types/settings_patch_compliance_settings_bad_gateway_error_response_body.py +1 -1
  1742. samsara/types/settings_patch_compliance_settings_gateway_timeout_error_response_body.py +1 -1
  1743. samsara/types/settings_patch_compliance_settings_internal_server_error_response_body.py +1 -1
  1744. samsara/types/settings_patch_compliance_settings_method_not_allowed_error_response_body.py +1 -1
  1745. samsara/types/settings_patch_compliance_settings_not_found_error_response_body.py +1 -1
  1746. samsara/types/settings_patch_compliance_settings_not_implemented_error_response_body.py +1 -1
  1747. samsara/types/settings_patch_compliance_settings_service_unavailable_error_response_body.py +1 -1
  1748. samsara/types/settings_patch_compliance_settings_too_many_requests_error_response_body.py +1 -1
  1749. samsara/types/settings_patch_compliance_settings_unauthorized_error_response_body.py +1 -1
  1750. samsara/types/settings_patch_driver_app_settings_bad_gateway_error_response_body.py +1 -1
  1751. samsara/types/settings_patch_driver_app_settings_gateway_timeout_error_response_body.py +1 -1
  1752. samsara/types/settings_patch_driver_app_settings_internal_server_error_response_body.py +1 -1
  1753. samsara/types/settings_patch_driver_app_settings_method_not_allowed_error_response_body.py +1 -1
  1754. samsara/types/settings_patch_driver_app_settings_not_found_error_response_body.py +1 -1
  1755. samsara/types/settings_patch_driver_app_settings_not_implemented_error_response_body.py +1 -1
  1756. samsara/types/settings_patch_driver_app_settings_service_unavailable_error_response_body.py +1 -1
  1757. samsara/types/settings_patch_driver_app_settings_too_many_requests_error_response_body.py +1 -1
  1758. samsara/types/settings_patch_driver_app_settings_unauthorized_error_response_body.py +1 -1
  1759. samsara/types/settings_response_body.py +1 -1
  1760. samsara/types/severe_speeding_started_object_response_body.py +2 -2
  1761. samsara/types/signature_field_type_meta_data_object_response_body.py +1 -1
  1762. samsara/types/signature_value_object_request_body.py +1 -1
  1763. samsara/types/signature_value_object_response_body.py +1 -1
  1764. samsara/types/single_approval_requirements_object_response_body.py +3 -1
  1765. samsara/types/single_driver_efficiency_by_driver_data_object_response_body.py +5 -5
  1766. samsara/types/single_driver_efficiency_by_vehicle_data_object_response_body.py +5 -5
  1767. samsara/types/specific_vehicle_fault_code_object_request_body.py +1 -1
  1768. samsara/types/specific_vehicle_fault_code_object_response_body.py +1 -1
  1769. samsara/types/speed_data_response_body.py +3 -3
  1770. samsara/types/speed_response_response_body.py +2 -2
  1771. samsara/types/speed_trigger_details_object_request_body.py +2 -2
  1772. samsara/types/speed_trigger_details_object_response_body.py +2 -2
  1773. samsara/types/speeding_interval_location_response_response_body.py +4 -2
  1774. samsara/types/speeding_interval_response_body.py +8 -6
  1775. samsara/types/speeding_intervals_get_speeding_intervals_bad_gateway_error_response_body.py +1 -1
  1776. samsara/types/speeding_intervals_get_speeding_intervals_gateway_timeout_error_response_body.py +1 -1
  1777. samsara/types/speeding_intervals_get_speeding_intervals_internal_server_error_response_body.py +1 -1
  1778. samsara/types/speeding_intervals_get_speeding_intervals_method_not_allowed_error_response_body.py +1 -1
  1779. samsara/types/speeding_intervals_get_speeding_intervals_not_found_error_response_body.py +1 -1
  1780. samsara/types/speeding_intervals_get_speeding_intervals_not_implemented_error_response_body.py +1 -1
  1781. samsara/types/speeding_intervals_get_speeding_intervals_service_unavailable_error_response_body.py +1 -1
  1782. samsara/types/speeding_intervals_get_speeding_intervals_too_many_requests_error_response_body.py +1 -1
  1783. samsara/types/speeding_intervals_get_speeding_intervals_unauthorized_error_response_body.py +1 -1
  1784. samsara/types/speeding_settings_object_response_body.py +1 -1
  1785. samsara/types/speeding_severity_level_response_body.py +6 -4
  1786. samsara/types/start_function_run_response_body_response_body.py +3 -1
  1787. samsara/types/stop_eta_updated_event_details_response_body.py +4 -2
  1788. samsara/types/stop_task_completed_event_details_response_body.py +2 -2
  1789. samsara/types/stop_task_skipped_event_details_response_body.py +2 -2
  1790. samsara/types/sudden_fuel_level_drop_response_body.py +4 -4
  1791. samsara/types/sudden_fuel_level_drop_trigger_details_object_request_body.py +1 -1
  1792. samsara/types/sudden_fuel_level_drop_trigger_details_object_response_body.py +1 -1
  1793. samsara/types/sudden_fuel_level_rise_response_body.py +4 -4
  1794. samsara/types/sudden_fuel_level_rise_trigger_details_object_request_body.py +1 -1
  1795. samsara/types/sudden_fuel_level_rise_trigger_details_object_response_body.py +1 -1
  1796. samsara/types/tachograph_activity.py +3 -3
  1797. samsara/types/tachograph_driver_file.py +2 -2
  1798. samsara/types/tachograph_vehicle_file.py +2 -2
  1799. samsara/types/tag_all_of.py +4 -2
  1800. samsara/types/tag_group_safety_score_response_body.py +5 -3
  1801. samsara/types/tag_safety_score_response_body.py +4 -4
  1802. samsara/types/tag_tiny_response.py +1 -1
  1803. samsara/types/time_range_object_request_body.py +3 -3
  1804. samsara/types/time_range_object_response_body.py +3 -3
  1805. samsara/types/tiny_asset_object_request_body.py +2 -2
  1806. samsara/types/tiny_asset_object_response_body.py +2 -2
  1807. samsara/types/tiny_driver_object_request_body.py +1 -1
  1808. samsara/types/tiny_driver_object_response_body.py +1 -1
  1809. samsara/types/tiny_tag.py +3 -1
  1810. samsara/types/tiny_widget_object_request_body.py +1 -1
  1811. samsara/types/tiny_widget_object_response_body.py +1 -1
  1812. samsara/types/tire_fault_code_details_object_request_body.py +3 -3
  1813. samsara/types/tire_fault_code_details_object_response_body.py +3 -3
  1814. samsara/types/trailer_assignments_create_driver_trailer_assignment_bad_gateway_error_response_body.py +1 -1
  1815. samsara/types/trailer_assignments_create_driver_trailer_assignment_gateway_timeout_error_response_body.py +1 -1
  1816. samsara/types/trailer_assignments_create_driver_trailer_assignment_internal_server_error_response_body.py +1 -1
  1817. samsara/types/trailer_assignments_create_driver_trailer_assignment_method_not_allowed_error_response_body.py +1 -1
  1818. samsara/types/trailer_assignments_create_driver_trailer_assignment_not_found_error_response_body.py +1 -1
  1819. samsara/types/trailer_assignments_create_driver_trailer_assignment_not_implemented_error_response_body.py +1 -1
  1820. samsara/types/trailer_assignments_create_driver_trailer_assignment_service_unavailable_error_response_body.py +1 -1
  1821. samsara/types/trailer_assignments_create_driver_trailer_assignment_too_many_requests_error_response_body.py +1 -1
  1822. samsara/types/trailer_assignments_create_driver_trailer_assignment_unauthorized_error_response_body.py +1 -1
  1823. samsara/types/trailer_assignments_get_driver_trailer_assignments_bad_gateway_error_response_body.py +1 -1
  1824. samsara/types/trailer_assignments_get_driver_trailer_assignments_gateway_timeout_error_response_body.py +1 -1
  1825. samsara/types/trailer_assignments_get_driver_trailer_assignments_internal_server_error_response_body.py +1 -1
  1826. samsara/types/trailer_assignments_get_driver_trailer_assignments_method_not_allowed_error_response_body.py +1 -1
  1827. samsara/types/trailer_assignments_get_driver_trailer_assignments_not_found_error_response_body.py +1 -1
  1828. samsara/types/trailer_assignments_get_driver_trailer_assignments_not_implemented_error_response_body.py +1 -1
  1829. samsara/types/trailer_assignments_get_driver_trailer_assignments_service_unavailable_error_response_body.py +1 -1
  1830. samsara/types/trailer_assignments_get_driver_trailer_assignments_too_many_requests_error_response_body.py +1 -1
  1831. samsara/types/trailer_assignments_get_driver_trailer_assignments_unauthorized_error_response_body.py +1 -1
  1832. samsara/types/trailer_assignments_update_driver_trailer_assignment_bad_gateway_error_response_body.py +1 -1
  1833. samsara/types/trailer_assignments_update_driver_trailer_assignment_gateway_timeout_error_response_body.py +1 -1
  1834. samsara/types/trailer_assignments_update_driver_trailer_assignment_internal_server_error_response_body.py +1 -1
  1835. samsara/types/trailer_assignments_update_driver_trailer_assignment_method_not_allowed_error_response_body.py +1 -1
  1836. samsara/types/trailer_assignments_update_driver_trailer_assignment_not_found_error_response_body.py +1 -1
  1837. samsara/types/trailer_assignments_update_driver_trailer_assignment_not_implemented_error_response_body.py +1 -1
  1838. samsara/types/trailer_assignments_update_driver_trailer_assignment_service_unavailable_error_response_body.py +1 -1
  1839. samsara/types/trailer_assignments_update_driver_trailer_assignment_too_many_requests_error_response_body.py +1 -1
  1840. samsara/types/trailer_assignments_update_driver_trailer_assignment_unauthorized_error_response_body.py +1 -1
  1841. samsara/types/trailer_dvir_object_response_body.py +1 -1
  1842. samsara/types/trailer_object_response_body.py +1 -1
  1843. samsara/types/trailer_response_object_response_body.py +5 -5
  1844. samsara/types/trailer_stat_decoration_response_body.py +22 -22
  1845. samsara/types/trailer_stat_gps_type_response_body.py +3 -3
  1846. samsara/types/trailer_stat_gps_with_decorations_type_response_body.py +3 -3
  1847. samsara/types/trailer_stat_reefer_alarm_response_body.py +4 -2
  1848. samsara/types/trailer_stat_reefer_state_type_response_body.py +1 -1
  1849. samsara/types/trailer_stat_reefer_state_with_decorations_type_response_body.py +1 -1
  1850. samsara/types/trailer_stat_reefer_state_zone_1_type_response_body.py +1 -1
  1851. samsara/types/trailer_stat_reefer_state_zone_1_with_decorations_type_response_body.py +1 -1
  1852. samsara/types/trailer_stat_reefer_state_zone_2_type_response_body.py +1 -1
  1853. samsara/types/trailer_stat_reefer_state_zone_2_with_decorations_type_response_body.py +1 -1
  1854. samsara/types/trailer_stat_reefer_state_zone_3_type_response_body.py +1 -1
  1855. samsara/types/trailer_stat_reefer_state_zone_3_with_decorations_type_response_body.py +1 -1
  1856. samsara/types/trailer_stats_get_trailer_stats_feed_bad_gateway_error_response_body.py +1 -1
  1857. samsara/types/trailer_stats_get_trailer_stats_feed_gateway_timeout_error_response_body.py +1 -1
  1858. samsara/types/trailer_stats_get_trailer_stats_feed_internal_server_error_response_body.py +1 -1
  1859. samsara/types/trailer_stats_get_trailer_stats_feed_method_not_allowed_error_response_body.py +1 -1
  1860. samsara/types/trailer_stats_get_trailer_stats_feed_not_found_error_response_body.py +1 -1
  1861. samsara/types/trailer_stats_get_trailer_stats_feed_not_implemented_error_response_body.py +1 -1
  1862. samsara/types/trailer_stats_get_trailer_stats_feed_service_unavailable_error_response_body.py +1 -1
  1863. samsara/types/trailer_stats_get_trailer_stats_feed_too_many_requests_error_response_body.py +1 -1
  1864. samsara/types/trailer_stats_get_trailer_stats_feed_unauthorized_error_response_body.py +1 -1
  1865. samsara/types/trailer_stats_get_trailer_stats_history_bad_gateway_error_response_body.py +1 -1
  1866. samsara/types/trailer_stats_get_trailer_stats_history_gateway_timeout_error_response_body.py +1 -1
  1867. samsara/types/trailer_stats_get_trailer_stats_history_internal_server_error_response_body.py +1 -1
  1868. samsara/types/trailer_stats_get_trailer_stats_history_method_not_allowed_error_response_body.py +1 -1
  1869. samsara/types/trailer_stats_get_trailer_stats_history_not_found_error_response_body.py +1 -1
  1870. samsara/types/trailer_stats_get_trailer_stats_history_not_implemented_error_response_body.py +1 -1
  1871. samsara/types/trailer_stats_get_trailer_stats_history_service_unavailable_error_response_body.py +1 -1
  1872. samsara/types/trailer_stats_get_trailer_stats_history_too_many_requests_error_response_body.py +1 -1
  1873. samsara/types/trailer_stats_get_trailer_stats_history_unauthorized_error_response_body.py +1 -1
  1874. samsara/types/trailer_stats_get_trailer_stats_snapshot_bad_gateway_error_response_body.py +1 -1
  1875. samsara/types/trailer_stats_get_trailer_stats_snapshot_gateway_timeout_error_response_body.py +1 -1
  1876. samsara/types/trailer_stats_get_trailer_stats_snapshot_internal_server_error_response_body.py +1 -1
  1877. samsara/types/trailer_stats_get_trailer_stats_snapshot_method_not_allowed_error_response_body.py +1 -1
  1878. samsara/types/trailer_stats_get_trailer_stats_snapshot_not_found_error_response_body.py +1 -1
  1879. samsara/types/trailer_stats_get_trailer_stats_snapshot_not_implemented_error_response_body.py +1 -1
  1880. samsara/types/trailer_stats_get_trailer_stats_snapshot_service_unavailable_error_response_body.py +1 -1
  1881. samsara/types/trailer_stats_get_trailer_stats_snapshot_too_many_requests_error_response_body.py +1 -1
  1882. samsara/types/trailer_stats_get_trailer_stats_snapshot_unauthorized_error_response_body.py +1 -1
  1883. samsara/types/trailer_stats_object_response_body.py +22 -22
  1884. samsara/types/trailer_stats_snapshot_object_response_body.py +22 -22
  1885. samsara/types/trailer_with_attributes_response_object_response_body.py +5 -5
  1886. samsara/types/trailers_create_trailer_bad_gateway_error_response_body.py +1 -1
  1887. samsara/types/trailers_create_trailer_gateway_timeout_error_response_body.py +1 -1
  1888. samsara/types/trailers_create_trailer_internal_server_error_response_body.py +1 -1
  1889. samsara/types/trailers_create_trailer_method_not_allowed_error_response_body.py +1 -1
  1890. samsara/types/trailers_create_trailer_not_found_error_response_body.py +1 -1
  1891. samsara/types/trailers_create_trailer_not_implemented_error_response_body.py +1 -1
  1892. samsara/types/trailers_create_trailer_service_unavailable_error_response_body.py +1 -1
  1893. samsara/types/trailers_create_trailer_too_many_requests_error_response_body.py +1 -1
  1894. samsara/types/trailers_create_trailer_unauthorized_error_response_body.py +1 -1
  1895. samsara/types/trailers_delete_trailer_bad_gateway_error_response_body.py +1 -1
  1896. samsara/types/trailers_delete_trailer_gateway_timeout_error_response_body.py +1 -1
  1897. samsara/types/trailers_delete_trailer_internal_server_error_response_body.py +1 -1
  1898. samsara/types/trailers_delete_trailer_method_not_allowed_error_response_body.py +1 -1
  1899. samsara/types/trailers_delete_trailer_not_found_error_response_body.py +1 -1
  1900. samsara/types/trailers_delete_trailer_not_implemented_error_response_body.py +1 -1
  1901. samsara/types/trailers_delete_trailer_service_unavailable_error_response_body.py +1 -1
  1902. samsara/types/trailers_delete_trailer_too_many_requests_error_response_body.py +1 -1
  1903. samsara/types/trailers_delete_trailer_unauthorized_error_response_body.py +1 -1
  1904. samsara/types/trailers_get_trailer_bad_gateway_error_response_body.py +1 -1
  1905. samsara/types/trailers_get_trailer_gateway_timeout_error_response_body.py +1 -1
  1906. samsara/types/trailers_get_trailer_internal_server_error_response_body.py +1 -1
  1907. samsara/types/trailers_get_trailer_method_not_allowed_error_response_body.py +1 -1
  1908. samsara/types/trailers_get_trailer_not_found_error_response_body.py +1 -1
  1909. samsara/types/trailers_get_trailer_not_implemented_error_response_body.py +1 -1
  1910. samsara/types/trailers_get_trailer_service_unavailable_error_response_body.py +1 -1
  1911. samsara/types/trailers_get_trailer_too_many_requests_error_response_body.py +1 -1
  1912. samsara/types/trailers_get_trailer_unauthorized_error_response_body.py +1 -1
  1913. samsara/types/trailers_list_trailers_bad_gateway_error_response_body.py +1 -1
  1914. samsara/types/trailers_list_trailers_gateway_timeout_error_response_body.py +1 -1
  1915. samsara/types/trailers_list_trailers_internal_server_error_response_body.py +1 -1
  1916. samsara/types/trailers_list_trailers_method_not_allowed_error_response_body.py +1 -1
  1917. samsara/types/trailers_list_trailers_not_found_error_response_body.py +1 -1
  1918. samsara/types/trailers_list_trailers_not_implemented_error_response_body.py +1 -1
  1919. samsara/types/trailers_list_trailers_service_unavailable_error_response_body.py +1 -1
  1920. samsara/types/trailers_list_trailers_too_many_requests_error_response_body.py +1 -1
  1921. samsara/types/trailers_list_trailers_unauthorized_error_response_body.py +1 -1
  1922. samsara/types/trailers_update_trailer_bad_gateway_error_response_body.py +1 -1
  1923. samsara/types/trailers_update_trailer_gateway_timeout_error_response_body.py +1 -1
  1924. samsara/types/trailers_update_trailer_internal_server_error_response_body.py +1 -1
  1925. samsara/types/trailers_update_trailer_method_not_allowed_error_response_body.py +1 -1
  1926. samsara/types/trailers_update_trailer_not_found_error_response_body.py +1 -1
  1927. samsara/types/trailers_update_trailer_not_implemented_error_response_body.py +1 -1
  1928. samsara/types/trailers_update_trailer_service_unavailable_error_response_body.py +1 -1
  1929. samsara/types/trailers_update_trailer_too_many_requests_error_response_body.py +1 -1
  1930. samsara/types/trailers_update_trailer_unauthorized_error_response_body.py +1 -1
  1931. samsara/types/training_assignment_near_due_date_trigger_assignment_group_object_request_body.py +2 -2
  1932. samsara/types/training_assignment_near_due_date_trigger_assignment_group_object_response_body.py +2 -2
  1933. samsara/types/training_assignment_near_due_date_trigger_details_object_request_body.py +5 -3
  1934. samsara/types/training_assignment_near_due_date_trigger_details_object_response_body.py +5 -3
  1935. samsara/types/training_assignment_post_response_object_response_body.py +8 -4
  1936. samsara/types/training_assignment_response_object_response_body.py +22 -12
  1937. samsara/types/training_assignments_delete_training_assignments_bad_gateway_error_response_body.py +1 -1
  1938. samsara/types/training_assignments_delete_training_assignments_gateway_timeout_error_response_body.py +1 -1
  1939. samsara/types/training_assignments_delete_training_assignments_internal_server_error_response_body.py +1 -1
  1940. samsara/types/training_assignments_delete_training_assignments_method_not_allowed_error_response_body.py +1 -1
  1941. samsara/types/training_assignments_delete_training_assignments_not_found_error_response_body.py +1 -1
  1942. samsara/types/training_assignments_delete_training_assignments_not_implemented_error_response_body.py +1 -1
  1943. samsara/types/training_assignments_delete_training_assignments_service_unavailable_error_response_body.py +1 -1
  1944. samsara/types/training_assignments_delete_training_assignments_too_many_requests_error_response_body.py +1 -1
  1945. samsara/types/training_assignments_delete_training_assignments_unauthorized_error_response_body.py +1 -1
  1946. samsara/types/training_assignments_get_training_assignments_stream_bad_gateway_error_response_body.py +1 -1
  1947. samsara/types/training_assignments_get_training_assignments_stream_gateway_timeout_error_response_body.py +1 -1
  1948. samsara/types/training_assignments_get_training_assignments_stream_internal_server_error_response_body.py +1 -1
  1949. samsara/types/training_assignments_get_training_assignments_stream_method_not_allowed_error_response_body.py +1 -1
  1950. samsara/types/training_assignments_get_training_assignments_stream_not_found_error_response_body.py +1 -1
  1951. samsara/types/training_assignments_get_training_assignments_stream_not_implemented_error_response_body.py +1 -1
  1952. samsara/types/training_assignments_get_training_assignments_stream_service_unavailable_error_response_body.py +1 -1
  1953. samsara/types/training_assignments_get_training_assignments_stream_too_many_requests_error_response_body.py +1 -1
  1954. samsara/types/training_assignments_get_training_assignments_stream_unauthorized_error_response_body.py +1 -1
  1955. samsara/types/training_assignments_patch_training_assignments_bad_gateway_error_response_body.py +1 -1
  1956. samsara/types/training_assignments_patch_training_assignments_gateway_timeout_error_response_body.py +1 -1
  1957. samsara/types/training_assignments_patch_training_assignments_internal_server_error_response_body.py +1 -1
  1958. samsara/types/training_assignments_patch_training_assignments_method_not_allowed_error_response_body.py +1 -1
  1959. samsara/types/training_assignments_patch_training_assignments_not_found_error_response_body.py +1 -1
  1960. samsara/types/training_assignments_patch_training_assignments_not_implemented_error_response_body.py +1 -1
  1961. samsara/types/training_assignments_patch_training_assignments_service_unavailable_error_response_body.py +1 -1
  1962. samsara/types/training_assignments_patch_training_assignments_too_many_requests_error_response_body.py +1 -1
  1963. samsara/types/training_assignments_patch_training_assignments_unauthorized_error_response_body.py +1 -1
  1964. samsara/types/training_assignments_post_training_assignments_bad_gateway_error_response_body.py +1 -1
  1965. samsara/types/training_assignments_post_training_assignments_gateway_timeout_error_response_body.py +1 -1
  1966. samsara/types/training_assignments_post_training_assignments_internal_server_error_response_body.py +1 -1
  1967. samsara/types/training_assignments_post_training_assignments_method_not_allowed_error_response_body.py +1 -1
  1968. samsara/types/training_assignments_post_training_assignments_not_found_error_response_body.py +1 -1
  1969. samsara/types/training_assignments_post_training_assignments_not_implemented_error_response_body.py +1 -1
  1970. samsara/types/training_assignments_post_training_assignments_service_unavailable_error_response_body.py +1 -1
  1971. samsara/types/training_assignments_post_training_assignments_too_many_requests_error_response_body.py +1 -1
  1972. samsara/types/training_assignments_post_training_assignments_unauthorized_error_response_body.py +1 -1
  1973. samsara/types/training_course_object_response_body.py +3 -1
  1974. samsara/types/training_course_response_object_response_body.py +4 -2
  1975. samsara/types/training_courses_get_training_courses_bad_gateway_error_response_body.py +1 -1
  1976. samsara/types/training_courses_get_training_courses_gateway_timeout_error_response_body.py +1 -1
  1977. samsara/types/training_courses_get_training_courses_internal_server_error_response_body.py +1 -1
  1978. samsara/types/training_courses_get_training_courses_method_not_allowed_error_response_body.py +1 -1
  1979. samsara/types/training_courses_get_training_courses_not_found_error_response_body.py +1 -1
  1980. samsara/types/training_courses_get_training_courses_not_implemented_error_response_body.py +1 -1
  1981. samsara/types/training_courses_get_training_courses_service_unavailable_error_response_body.py +1 -1
  1982. samsara/types/training_courses_get_training_courses_too_many_requests_error_response_body.py +1 -1
  1983. samsara/types/training_courses_get_training_courses_unauthorized_error_response_body.py +1 -1
  1984. samsara/types/trigger_params_object_request_body.py +36 -32
  1985. samsara/types/trigger_params_object_response_body.py +36 -32
  1986. samsara/types/trip_response_body.py +15 -7
  1987. samsara/types/trip_speeding_intervals_response_body.py +10 -4
  1988. samsara/types/trips_breakdown_response_body.py +12 -6
  1989. samsara/types/trips_get_trips_bad_gateway_error_response_body.py +1 -1
  1990. samsara/types/trips_get_trips_gateway_timeout_error_response_body.py +1 -1
  1991. samsara/types/trips_get_trips_internal_server_error_response_body.py +1 -1
  1992. samsara/types/trips_get_trips_method_not_allowed_error_response_body.py +1 -1
  1993. samsara/types/trips_get_trips_not_found_error_response_body.py +1 -1
  1994. samsara/types/trips_get_trips_not_implemented_error_response_body.py +1 -1
  1995. samsara/types/trips_get_trips_service_unavailable_error_response_body.py +1 -1
  1996. samsara/types/trips_get_trips_too_many_requests_error_response_body.py +1 -1
  1997. samsara/types/trips_get_trips_unauthorized_error_response_body.py +1 -1
  1998. samsara/types/unassigned_driving_trigger_details_object_request_body.py +1 -1
  1999. samsara/types/unassigned_driving_trigger_details_object_response_body.py +1 -1
  2000. samsara/types/update_driver_request_attributes.py +54 -0
  2001. samsara/types/update_driver_request_hos_setting.py +1 -1
  2002. samsara/types/update_engine_immobilizer_relay_state_request_body_request_body.py +1 -1
  2003. samsara/types/update_hub_location_request_body_request_body.py +7 -7
  2004. samsara/types/update_routes_stop_request_object_request_body.py +8 -8
  2005. samsara/types/uploaded_media_object_response_body.py +10 -8
  2006. samsara/types/url_info_object_response_body.py +3 -1
  2007. samsara/types/us_driver_ruleset_override.py +1 -1
  2008. samsara/types/user.py +3 -1
  2009. samsara/types/user_role_assignment.py +3 -1
  2010. samsara/types/v_1_asset.py +3 -3
  2011. samsara/types/v_1_asset_cable.py +1 -1
  2012. samsara/types/v_1_asset_current_location.py +2 -2
  2013. samsara/types/v_1_asset_current_locations_response.py +2 -2
  2014. samsara/types/v_1_asset_location_response_item.py +1 -1
  2015. samsara/types/v_1_asset_reefer_response.py +2 -2
  2016. samsara/types/v_1_asset_reefer_response_reefer_stats.py +5 -5
  2017. samsara/types/v_1_asset_reefer_response_reefer_stats_alarms.py +2 -2
  2018. samsara/types/v_1_asset_reefer_response_reefer_stats_alarms_1.py +1 -1
  2019. samsara/types/v_1_asset_reefer_response_reefer_stats_engine_hours.py +2 -2
  2020. samsara/types/v_1_asset_reefer_response_reefer_stats_fuel_percentage.py +2 -2
  2021. samsara/types/v_1_asset_reefer_response_reefer_stats_power_status.py +1 -1
  2022. samsara/types/v_1_asset_reefer_response_reefer_stats_return_air_temp.py +2 -2
  2023. samsara/types/v_1_asset_reefer_response_reefer_stats_set_point.py +2 -2
  2024. samsara/types/v_1_assets_reefer.py +2 -2
  2025. samsara/types/v_1_assets_reefer_reefer_stats.py +8 -8
  2026. samsara/types/v_1_assets_reefer_reefer_stats_ambient_air_temperature.py +2 -2
  2027. samsara/types/v_1_assets_reefer_reefer_stats_discharge_air_temperature.py +2 -2
  2028. samsara/types/v_1_assets_reefer_reefer_stats_power_status.py +1 -1
  2029. samsara/types/v_1_cargo_response.py +1 -1
  2030. samsara/types/v_1_cargo_response_sensors.py +5 -5
  2031. samsara/types/v_1_door_response.py +1 -1
  2032. samsara/types/v_1_door_response_sensors.py +4 -4
  2033. samsara/types/v_1_driver_safety_score_response.py +12 -12
  2034. samsara/types/v_1_hos_authentication_logs_response.py +1 -1
  2035. samsara/types/v_1_hos_authentication_logs_response_authentication_logs.py +3 -3
  2036. samsara/types/v_1_humidity_response.py +1 -1
  2037. samsara/types/v_1_humidity_response_sensors.py +3 -3
  2038. samsara/types/v_1_machine_history_response_vibrations.py +9 -3
  2039. samsara/types/v_1_message.py +1 -1
  2040. samsara/types/v_1_message_response.py +3 -3
  2041. samsara/types/v_1_pagination.py +10 -4
  2042. samsara/types/v_1_programs_for_the_camera_response_item.py +6 -2
  2043. samsara/types/v_1_safety_report_harsh_event.py +3 -3
  2044. samsara/types/v_1_sensor.py +1 -1
  2045. samsara/types/v_1_sensor_history_response_results.py +1 -1
  2046. samsara/types/v_1_sensors_history_series.py +1 -1
  2047. samsara/types/v_1_temperature_response.py +1 -1
  2048. samsara/types/v_1_temperature_response_sensors.py +6 -6
  2049. samsara/types/v_1_trailer_assignment_response.py +3 -3
  2050. samsara/types/v_1_trailer_assignments_response_all_of.py +1 -1
  2051. samsara/types/v_1_trip_response_trips.py +16 -16
  2052. samsara/types/v_1_vehicle_harsh_event_response.py +10 -6
  2053. samsara/types/v_1_vehicle_maintenance.py +3 -1
  2054. samsara/types/v_1_vehicle_maintenance_j_1939.py +2 -2
  2055. samsara/types/v_1_vehicle_maintenance_j_1939_check_engine_light.py +12 -4
  2056. samsara/types/v_1_vehicle_maintenance_j_1939_diagnostic_trouble_codes.py +10 -6
  2057. samsara/types/v_1_vehicle_maintenance_passenger.py +2 -2
  2058. samsara/types/v_1_vehicle_maintenance_passenger_check_engine_light.py +3 -1
  2059. samsara/types/v_1_vehicle_maintenance_passenger_diagnostic_trouble_codes.py +7 -3
  2060. samsara/types/v_1_vehicle_safety_score_response.py +12 -12
  2061. samsara/types/v_1_vision_cameras_response_item.py +12 -4
  2062. samsara/types/v_1_vision_run_by_camera_response.py +14 -6
  2063. samsara/types/v_1_vision_run_by_camera_response_inspection_results.py +4 -2
  2064. samsara/types/v_1_vision_run_by_camera_response_run_summary.py +12 -4
  2065. samsara/types/v_1_vision_runs_by_camera_and_program_response.py +13 -5
  2066. samsara/types/v_1_vision_runs_by_camera_response_item.py +10 -4
  2067. samsara/types/v_1_vision_runs_by_camera_response_item_report_metadata.py +12 -4
  2068. samsara/types/v_1_vision_runs_response.py +1 -1
  2069. samsara/types/v_1_vision_runs_response_report_metadata.py +4 -4
  2070. samsara/types/v_1_vision_runs_response_vision_runs.py +13 -5
  2071. samsara/types/v_1_vision_step_results_item.py +9 -9
  2072. samsara/types/v_1_vision_step_results_item_angle_check.py +4 -4
  2073. samsara/types/v_1_vision_step_results_item_barcode_item.py +3 -1
  2074. samsara/types/v_1_vision_step_results_item_caliper.py +8 -8
  2075. samsara/types/v_1_vision_step_results_item_contour.py +4 -4
  2076. samsara/types/v_1_vision_step_results_item_distance.py +9 -9
  2077. samsara/types/v_1_vision_step_results_item_expiration_date.py +9 -3
  2078. samsara/types/v_1_vision_step_results_item_find_copies.py +4 -4
  2079. samsara/types/v_1_vision_step_results_item_find_edge.py +9 -9
  2080. samsara/types/v_1_vision_step_results_item_find_shapes.py +9 -3
  2081. samsara/types/v_1_vision_step_results_item_fixture.py +3 -1
  2082. samsara/types/v_1_vision_step_results_item_presence_absence.py +10 -8
  2083. samsara/types/v_1_vision_step_results_item_text_match.py +6 -2
  2084. samsara/types/vehicle.py +40 -50
  2085. samsara/types/vehicle_assignment_object_response_body.py +6 -4
  2086. samsara/types/vehicle_batter_voltage_details_object_request_body.py +4 -2
  2087. samsara/types/vehicle_batter_voltage_details_object_response_body.py +4 -2
  2088. samsara/types/vehicle_detected_response_body.py +1 -1
  2089. samsara/types/vehicle_dvir_object_response_body.py +1 -1
  2090. samsara/types/vehicle_fault_code_details_object_request_body.py +8 -8
  2091. samsara/types/vehicle_fault_code_details_object_response_body.py +8 -8
  2092. samsara/types/vehicle_location.py +6 -6
  2093. samsara/types/vehicle_response_object_response_body.py +35 -26
  2094. samsara/types/vehicle_response_response_body.py +4 -4
  2095. samsara/types/vehicle_safety_score_response_body.py +6 -4
  2096. samsara/types/vehicle_sensor_configuration_area.py +3 -3
  2097. samsara/types/vehicle_sensor_configuration_area_response_body.py +3 -3
  2098. samsara/types/vehicle_stats_ambient_air_temp_milli_c.py +2 -2
  2099. samsara/types/vehicle_stats_ambient_air_temp_milli_c_with_decoration.py +2 -2
  2100. samsara/types/vehicle_stats_barometric_pressure_pa.py +2 -2
  2101. samsara/types/vehicle_stats_barometric_pressure_pa_with_decoration.py +2 -2
  2102. samsara/types/vehicle_stats_battery_voltage.py +2 -2
  2103. samsara/types/vehicle_stats_battery_voltage_with_decoration.py +2 -2
  2104. samsara/types/vehicle_stats_decorations.py +60 -60
  2105. samsara/types/vehicle_stats_decorations_gps.py +7 -7
  2106. samsara/types/vehicle_stats_def_level_milli_percent.py +2 -2
  2107. samsara/types/vehicle_stats_def_level_milli_percent_with_decoration.py +2 -2
  2108. samsara/types/vehicle_stats_ecu_door_status.py +2 -2
  2109. samsara/types/vehicle_stats_ecu_speed_mph.py +2 -2
  2110. samsara/types/vehicle_stats_ecu_speed_mph_with_decoration.py +2 -2
  2111. samsara/types/vehicle_stats_engine_coolant_temp_milli_c.py +2 -2
  2112. samsara/types/vehicle_stats_engine_coolant_temp_milli_c_with_decoration.py +2 -2
  2113. samsara/types/vehicle_stats_engine_load_percent.py +2 -2
  2114. samsara/types/vehicle_stats_engine_load_percent_with_decoration.py +2 -2
  2115. samsara/types/vehicle_stats_engine_oil_pressure_k_pa.py +2 -2
  2116. samsara/types/vehicle_stats_engine_oil_pressure_k_pa_with_decoration.py +2 -2
  2117. samsara/types/vehicle_stats_engine_rpm.py +2 -2
  2118. samsara/types/vehicle_stats_engine_rpm_with_decoration.py +2 -2
  2119. samsara/types/vehicle_stats_engine_state.py +2 -2
  2120. samsara/types/vehicle_stats_engine_state_with_decoration.py +2 -2
  2121. samsara/types/vehicle_stats_ev_average_battery_temperature_milli_celsius.py +2 -2
  2122. samsara/types/vehicle_stats_ev_battery_current_milli_amp.py +2 -2
  2123. samsara/types/vehicle_stats_ev_battery_state_of_health_milli_percent.py +2 -2
  2124. samsara/types/vehicle_stats_ev_battery_voltage_milli_volt.py +2 -2
  2125. samsara/types/vehicle_stats_ev_charging_current_milli_amp.py +2 -2
  2126. samsara/types/vehicle_stats_ev_charging_energy_micro_wh.py +2 -2
  2127. samsara/types/vehicle_stats_ev_charging_status.py +2 -2
  2128. samsara/types/vehicle_stats_ev_charging_voltage_milli_volt.py +2 -2
  2129. samsara/types/vehicle_stats_ev_consumed_energy_micro_wh.py +2 -2
  2130. samsara/types/vehicle_stats_ev_distance_driven_meters.py +2 -2
  2131. samsara/types/vehicle_stats_ev_regenerated_energy_micro_wh.py +2 -2
  2132. samsara/types/vehicle_stats_ev_state_of_charge_milli_percent.py +2 -2
  2133. samsara/types/vehicle_stats_fault_codes.py +2 -2
  2134. samsara/types/vehicle_stats_fault_codes_j_1939.py +2 -2
  2135. samsara/types/vehicle_stats_fault_codes_j_1939_lights.py +10 -4
  2136. samsara/types/vehicle_stats_fault_codes_j_1939_trouble_code.py +13 -9
  2137. samsara/types/vehicle_stats_fault_codes_obdii.py +2 -2
  2138. samsara/types/vehicle_stats_fault_codes_obdii_trouble_code.py +9 -7
  2139. samsara/types/vehicle_stats_fault_codes_oem.py +1 -1
  2140. samsara/types/vehicle_stats_fault_codes_oem_trouble_code.py +4 -4
  2141. samsara/types/vehicle_stats_fault_codes_passenger_dtc.py +3 -3
  2142. samsara/types/vehicle_stats_fault_codes_passenger_monitor_status.py +7 -7
  2143. samsara/types/vehicle_stats_fault_codes_value.py +2 -2
  2144. samsara/types/vehicle_stats_fault_codes_value_j_1939.py +2 -2
  2145. samsara/types/vehicle_stats_fault_codes_value_j_1939_check_engine_lights.py +10 -4
  2146. samsara/types/vehicle_stats_fault_codes_value_j_1939_diagnostic_trouble_codes.py +11 -9
  2147. samsara/types/vehicle_stats_fault_codes_value_j_1939_vendor_specific_fields.py +2 -2
  2148. samsara/types/vehicle_stats_fault_codes_value_obdii.py +2 -2
  2149. samsara/types/vehicle_stats_fault_codes_value_obdii_confirmed_dtcs.py +3 -3
  2150. samsara/types/vehicle_stats_fault_codes_value_obdii_diagnostic_trouble_codes.py +7 -7
  2151. samsara/types/vehicle_stats_fault_codes_value_obdii_monitor_status.py +7 -7
  2152. samsara/types/vehicle_stats_fault_codes_value_oem.py +1 -1
  2153. samsara/types/vehicle_stats_fault_codes_value_oem_diagnostic_trouble_codes.py +4 -4
  2154. samsara/types/vehicle_stats_fault_codes_vendor_specific_fields.py +2 -2
  2155. samsara/types/vehicle_stats_fault_codes_with_decoration.py +4 -4
  2156. samsara/types/vehicle_stats_fuel_consumed_milliliters.py +2 -2
  2157. samsara/types/vehicle_stats_fuel_consumed_milliliters_with_decoration.py +2 -2
  2158. samsara/types/vehicle_stats_fuel_percent.py +2 -2
  2159. samsara/types/vehicle_stats_fuel_percent_with_decoration.py +2 -2
  2160. samsara/types/vehicle_stats_gps.py +9 -9
  2161. samsara/types/vehicle_stats_gps_distance_meters.py +2 -2
  2162. samsara/types/vehicle_stats_gps_distance_meters_with_decoration.py +2 -2
  2163. samsara/types/vehicle_stats_gps_odometer_meters.py +2 -2
  2164. samsara/types/vehicle_stats_gps_odometer_meters_with_decoration.py +2 -2
  2165. samsara/types/vehicle_stats_idling_duration_milliseconds.py +2 -2
  2166. samsara/types/vehicle_stats_idling_duration_milliseconds_with_decoration.py +2 -2
  2167. samsara/types/vehicle_stats_intake_manifold_temp_milli_c.py +2 -2
  2168. samsara/types/vehicle_stats_intake_manifold_temp_milli_c_with_decoration.py +2 -2
  2169. samsara/types/vehicle_stats_list_gps.py +9 -9
  2170. samsara/types/vehicle_stats_list_response_data.py +62 -62
  2171. samsara/types/vehicle_stats_obd_engine_seconds.py +2 -2
  2172. samsara/types/vehicle_stats_obd_engine_seconds_with_decoration.py +2 -2
  2173. samsara/types/vehicle_stats_obd_odometer_meters.py +2 -2
  2174. samsara/types/vehicle_stats_obd_odometer_meters_with_decoration.py +2 -2
  2175. samsara/types/vehicle_stats_response_data.py +62 -62
  2176. samsara/types/vehicle_stats_seatbelt_driver.py +2 -2
  2177. samsara/types/vehicle_stats_spreader_active.py +2 -2
  2178. samsara/types/vehicle_stats_spreader_air_temp.py +2 -2
  2179. samsara/types/vehicle_stats_spreader_blast_state.py +2 -2
  2180. samsara/types/vehicle_stats_spreader_granular_name.py +2 -2
  2181. samsara/types/vehicle_stats_spreader_granular_rate.py +2 -2
  2182. samsara/types/vehicle_stats_spreader_liquid_name.py +2 -2
  2183. samsara/types/vehicle_stats_spreader_liquid_rate.py +2 -2
  2184. samsara/types/vehicle_stats_spreader_on_state.py +2 -2
  2185. samsara/types/vehicle_stats_spreader_plow_status.py +2 -2
  2186. samsara/types/vehicle_stats_spreader_prewet_name.py +2 -2
  2187. samsara/types/vehicle_stats_spreader_prewet_rate.py +2 -2
  2188. samsara/types/vehicle_stats_spreader_road_temp.py +2 -2
  2189. samsara/types/vehicle_stats_tire_pressures.py +4 -4
  2190. samsara/types/vehicle_summary.py +14 -12
  2191. samsara/types/vehicle_tiny_response.py +1 -1
  2192. samsara/types/vehicle_with_gateway_tiny_response_response_body.py +3 -3
  2193. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_bad_gateway_error_response_body.py +1 -1
  2194. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_gateway_timeout_error_response_body.py +1 -1
  2195. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_internal_server_error_response_body.py +1 -1
  2196. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_method_not_allowed_error_response_body.py +1 -1
  2197. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_not_found_error_response_body.py +1 -1
  2198. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_not_implemented_error_response_body.py +1 -1
  2199. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_service_unavailable_error_response_body.py +1 -1
  2200. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_too_many_requests_error_response_body.py +1 -1
  2201. samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_unauthorized_error_response_body.py +1 -1
  2202. samsara/types/vehicles_driver_assignments_object_response_body.py +2 -2
  2203. samsara/types/vehicles_list_vehicles_bad_gateway_error_response_body.py +1 -1
  2204. samsara/types/vehicles_list_vehicles_gateway_timeout_error_response_body.py +1 -1
  2205. samsara/types/vehicles_list_vehicles_internal_server_error_response_body.py +1 -1
  2206. samsara/types/vehicles_list_vehicles_method_not_allowed_error_response_body.py +1 -1
  2207. samsara/types/vehicles_list_vehicles_not_found_error_response_body.py +1 -1
  2208. samsara/types/vehicles_list_vehicles_not_implemented_error_response_body.py +1 -1
  2209. samsara/types/vehicles_list_vehicles_service_unavailable_error_response_body.py +1 -1
  2210. samsara/types/vehicles_list_vehicles_too_many_requests_error_response_body.py +1 -1
  2211. samsara/types/vehicles_list_vehicles_unauthorized_error_response_body.py +1 -1
  2212. samsara/types/vehicles_lock_lock_vehicle_bad_gateway_error_response_body.py +1 -1
  2213. samsara/types/vehicles_lock_lock_vehicle_gateway_timeout_error_response_body.py +1 -1
  2214. samsara/types/vehicles_lock_lock_vehicle_internal_server_error_response_body.py +1 -1
  2215. samsara/types/vehicles_lock_lock_vehicle_method_not_allowed_error_response_body.py +1 -1
  2216. samsara/types/vehicles_lock_lock_vehicle_not_found_error_response_body.py +1 -1
  2217. samsara/types/vehicles_lock_lock_vehicle_not_implemented_error_response_body.py +1 -1
  2218. samsara/types/vehicles_lock_lock_vehicle_service_unavailable_error_response_body.py +1 -1
  2219. samsara/types/vehicles_lock_lock_vehicle_too_many_requests_error_response_body.py +1 -1
  2220. samsara/types/vehicles_lock_lock_vehicle_unauthorized_error_response_body.py +1 -1
  2221. samsara/types/vehicles_lock_unlock_vehicle_bad_gateway_error_response_body.py +1 -1
  2222. samsara/types/vehicles_lock_unlock_vehicle_gateway_timeout_error_response_body.py +1 -1
  2223. samsara/types/vehicles_lock_unlock_vehicle_internal_server_error_response_body.py +1 -1
  2224. samsara/types/vehicles_lock_unlock_vehicle_method_not_allowed_error_response_body.py +1 -1
  2225. samsara/types/vehicles_lock_unlock_vehicle_not_found_error_response_body.py +1 -1
  2226. samsara/types/vehicles_lock_unlock_vehicle_not_implemented_error_response_body.py +1 -1
  2227. samsara/types/vehicles_lock_unlock_vehicle_service_unavailable_error_response_body.py +1 -1
  2228. samsara/types/vehicles_lock_unlock_vehicle_too_many_requests_error_response_body.py +1 -1
  2229. samsara/types/vehicles_lock_unlock_vehicle_unauthorized_error_response_body.py +1 -1
  2230. samsara/types/voice_coaching_settings_object_response_body.py +3 -3
  2231. samsara/types/walkaround_photo_object_response_body.py +3 -1
  2232. samsara/types/webhook_params_object_request_body.py +4 -2
  2233. samsara/types/webhook_params_object_response_body.py +4 -2
  2234. samsara/types/webhook_response_response_body.py +3 -3
  2235. samsara/types/webhook_response_response_body_event_types_item.py +3 -0
  2236. samsara/types/webhook_route_response_object_response_body.py +5 -5
  2237. samsara/types/webhooks_delete_webhook_bad_gateway_error_response_body.py +1 -1
  2238. samsara/types/webhooks_delete_webhook_gateway_timeout_error_response_body.py +1 -1
  2239. samsara/types/webhooks_delete_webhook_internal_server_error_response_body.py +1 -1
  2240. samsara/types/webhooks_delete_webhook_method_not_allowed_error_response_body.py +1 -1
  2241. samsara/types/webhooks_delete_webhook_not_found_error_response_body.py +1 -1
  2242. samsara/types/webhooks_delete_webhook_not_implemented_error_response_body.py +1 -1
  2243. samsara/types/webhooks_delete_webhook_service_unavailable_error_response_body.py +1 -1
  2244. samsara/types/webhooks_delete_webhook_too_many_requests_error_response_body.py +1 -1
  2245. samsara/types/webhooks_delete_webhook_unauthorized_error_response_body.py +1 -1
  2246. samsara/types/webhooks_get_webhook_bad_gateway_error_response_body.py +1 -1
  2247. samsara/types/webhooks_get_webhook_gateway_timeout_error_response_body.py +1 -1
  2248. samsara/types/webhooks_get_webhook_internal_server_error_response_body.py +1 -1
  2249. samsara/types/webhooks_get_webhook_method_not_allowed_error_response_body.py +1 -1
  2250. samsara/types/webhooks_get_webhook_not_found_error_response_body.py +1 -1
  2251. samsara/types/webhooks_get_webhook_not_implemented_error_response_body.py +1 -1
  2252. samsara/types/webhooks_get_webhook_response_body.py +3 -3
  2253. samsara/types/webhooks_get_webhook_response_body_event_types_item.py +3 -0
  2254. samsara/types/webhooks_get_webhook_service_unavailable_error_response_body.py +1 -1
  2255. samsara/types/webhooks_get_webhook_too_many_requests_error_response_body.py +1 -1
  2256. samsara/types/webhooks_get_webhook_unauthorized_error_response_body.py +1 -1
  2257. samsara/types/webhooks_list_webhooks_bad_gateway_error_response_body.py +1 -1
  2258. samsara/types/webhooks_list_webhooks_gateway_timeout_error_response_body.py +1 -1
  2259. samsara/types/webhooks_list_webhooks_internal_server_error_response_body.py +1 -1
  2260. samsara/types/webhooks_list_webhooks_method_not_allowed_error_response_body.py +1 -1
  2261. samsara/types/webhooks_list_webhooks_not_found_error_response_body.py +1 -1
  2262. samsara/types/webhooks_list_webhooks_not_implemented_error_response_body.py +1 -1
  2263. samsara/types/webhooks_list_webhooks_service_unavailable_error_response_body.py +1 -1
  2264. samsara/types/webhooks_list_webhooks_too_many_requests_error_response_body.py +1 -1
  2265. samsara/types/webhooks_list_webhooks_unauthorized_error_response_body.py +1 -1
  2266. samsara/types/webhooks_patch_webhook_bad_gateway_error_response_body.py +1 -1
  2267. samsara/types/webhooks_patch_webhook_gateway_timeout_error_response_body.py +1 -1
  2268. samsara/types/webhooks_patch_webhook_internal_server_error_response_body.py +1 -1
  2269. samsara/types/webhooks_patch_webhook_method_not_allowed_error_response_body.py +1 -1
  2270. samsara/types/webhooks_patch_webhook_not_found_error_response_body.py +1 -1
  2271. samsara/types/webhooks_patch_webhook_not_implemented_error_response_body.py +1 -1
  2272. samsara/types/webhooks_patch_webhook_response_body.py +3 -3
  2273. samsara/types/webhooks_patch_webhook_response_body_event_types_item.py +3 -0
  2274. samsara/types/webhooks_patch_webhook_service_unavailable_error_response_body.py +1 -1
  2275. samsara/types/webhooks_patch_webhook_too_many_requests_error_response_body.py +1 -1
  2276. samsara/types/webhooks_patch_webhook_unauthorized_error_response_body.py +1 -1
  2277. samsara/types/webhooks_post_webhooks_bad_gateway_error_response_body.py +1 -1
  2278. samsara/types/webhooks_post_webhooks_gateway_timeout_error_response_body.py +1 -1
  2279. samsara/types/webhooks_post_webhooks_internal_server_error_response_body.py +1 -1
  2280. samsara/types/webhooks_post_webhooks_method_not_allowed_error_response_body.py +1 -1
  2281. samsara/types/webhooks_post_webhooks_not_found_error_response_body.py +1 -1
  2282. samsara/types/webhooks_post_webhooks_not_implemented_error_response_body.py +1 -1
  2283. samsara/types/webhooks_post_webhooks_response_body.py +3 -3
  2284. samsara/types/webhooks_post_webhooks_response_body_event_types_item.py +3 -0
  2285. samsara/types/webhooks_post_webhooks_service_unavailable_error_response_body.py +1 -1
  2286. samsara/types/webhooks_post_webhooks_too_many_requests_error_response_body.py +1 -1
  2287. samsara/types/webhooks_post_webhooks_unauthorized_error_response_body.py +1 -1
  2288. samsara/types/work_order_attachment_object_response_body.py +2 -2
  2289. samsara/types/work_order_discount_object_request_body.py +1 -1
  2290. samsara/types/work_order_discount_object_response_body.py +1 -1
  2291. samsara/types/work_order_object_response_body.py +21 -18
  2292. samsara/types/work_order_tax_create_object_request_body.py +1 -1
  2293. samsara/types/work_order_tax_object_request_body.py +1 -1
  2294. samsara/types/work_order_tax_object_response_body.py +1 -1
  2295. samsara/types/work_orders_delete_work_orders_bad_gateway_error_response_body.py +1 -1
  2296. samsara/types/work_orders_delete_work_orders_gateway_timeout_error_response_body.py +1 -1
  2297. samsara/types/work_orders_delete_work_orders_internal_server_error_response_body.py +1 -1
  2298. samsara/types/work_orders_delete_work_orders_method_not_allowed_error_response_body.py +1 -1
  2299. samsara/types/work_orders_delete_work_orders_not_found_error_response_body.py +1 -1
  2300. samsara/types/work_orders_delete_work_orders_not_implemented_error_response_body.py +1 -1
  2301. samsara/types/work_orders_delete_work_orders_service_unavailable_error_response_body.py +1 -1
  2302. samsara/types/work_orders_delete_work_orders_too_many_requests_error_response_body.py +1 -1
  2303. samsara/types/work_orders_delete_work_orders_unauthorized_error_response_body.py +1 -1
  2304. samsara/types/work_orders_get_service_tasks_bad_gateway_error_response_body.py +1 -1
  2305. samsara/types/work_orders_get_service_tasks_gateway_timeout_error_response_body.py +1 -1
  2306. samsara/types/work_orders_get_service_tasks_internal_server_error_response_body.py +1 -1
  2307. samsara/types/work_orders_get_service_tasks_method_not_allowed_error_response_body.py +1 -1
  2308. samsara/types/work_orders_get_service_tasks_not_found_error_response_body.py +1 -1
  2309. samsara/types/work_orders_get_service_tasks_not_implemented_error_response_body.py +1 -1
  2310. samsara/types/work_orders_get_service_tasks_service_unavailable_error_response_body.py +1 -1
  2311. samsara/types/work_orders_get_service_tasks_too_many_requests_error_response_body.py +1 -1
  2312. samsara/types/work_orders_get_service_tasks_unauthorized_error_response_body.py +1 -1
  2313. samsara/types/work_orders_get_work_orders_bad_gateway_error_response_body.py +1 -1
  2314. samsara/types/work_orders_get_work_orders_gateway_timeout_error_response_body.py +1 -1
  2315. samsara/types/work_orders_get_work_orders_internal_server_error_response_body.py +1 -1
  2316. samsara/types/work_orders_get_work_orders_method_not_allowed_error_response_body.py +1 -1
  2317. samsara/types/work_orders_get_work_orders_not_found_error_response_body.py +1 -1
  2318. samsara/types/work_orders_get_work_orders_not_implemented_error_response_body.py +1 -1
  2319. samsara/types/work_orders_get_work_orders_service_unavailable_error_response_body.py +1 -1
  2320. samsara/types/work_orders_get_work_orders_too_many_requests_error_response_body.py +1 -1
  2321. samsara/types/work_orders_get_work_orders_unauthorized_error_response_body.py +1 -1
  2322. samsara/types/work_orders_patch_work_orders_bad_gateway_error_response_body.py +1 -1
  2323. samsara/types/work_orders_patch_work_orders_gateway_timeout_error_response_body.py +1 -1
  2324. samsara/types/work_orders_patch_work_orders_internal_server_error_response_body.py +1 -1
  2325. samsara/types/work_orders_patch_work_orders_method_not_allowed_error_response_body.py +1 -1
  2326. samsara/types/work_orders_patch_work_orders_not_found_error_response_body.py +1 -1
  2327. samsara/types/work_orders_patch_work_orders_not_implemented_error_response_body.py +1 -1
  2328. samsara/types/work_orders_patch_work_orders_service_unavailable_error_response_body.py +1 -1
  2329. samsara/types/work_orders_patch_work_orders_too_many_requests_error_response_body.py +1 -1
  2330. samsara/types/work_orders_patch_work_orders_unauthorized_error_response_body.py +1 -1
  2331. samsara/types/work_orders_post_invoice_scan_bad_gateway_error_response_body.py +33 -0
  2332. samsara/types/work_orders_post_invoice_scan_gateway_timeout_error_response_body.py +33 -0
  2333. samsara/types/work_orders_post_invoice_scan_internal_server_error_response_body.py +33 -0
  2334. samsara/types/work_orders_post_invoice_scan_method_not_allowed_error_response_body.py +33 -0
  2335. samsara/types/work_orders_post_invoice_scan_not_found_error_response_body.py +33 -0
  2336. samsara/types/work_orders_post_invoice_scan_not_implemented_error_response_body.py +33 -0
  2337. samsara/types/work_orders_post_invoice_scan_response_body.py +20 -0
  2338. samsara/types/work_orders_post_invoice_scan_service_unavailable_error_response_body.py +33 -0
  2339. samsara/types/work_orders_post_invoice_scan_too_many_requests_error_response_body.py +33 -0
  2340. samsara/types/work_orders_post_invoice_scan_unauthorized_error_response_body.py +33 -0
  2341. samsara/types/work_orders_post_work_orders_bad_gateway_error_response_body.py +1 -1
  2342. samsara/types/work_orders_post_work_orders_gateway_timeout_error_response_body.py +1 -1
  2343. samsara/types/work_orders_post_work_orders_internal_server_error_response_body.py +1 -1
  2344. samsara/types/work_orders_post_work_orders_method_not_allowed_error_response_body.py +1 -1
  2345. samsara/types/work_orders_post_work_orders_not_found_error_response_body.py +1 -1
  2346. samsara/types/work_orders_post_work_orders_not_implemented_error_response_body.py +1 -1
  2347. samsara/types/work_orders_post_work_orders_service_unavailable_error_response_body.py +1 -1
  2348. samsara/types/work_orders_post_work_orders_too_many_requests_error_response_body.py +1 -1
  2349. samsara/types/work_orders_post_work_orders_unauthorized_error_response_body.py +1 -1
  2350. samsara/types/work_orders_stream_work_orders_bad_gateway_error_response_body.py +1 -1
  2351. samsara/types/work_orders_stream_work_orders_gateway_timeout_error_response_body.py +1 -1
  2352. samsara/types/work_orders_stream_work_orders_internal_server_error_response_body.py +1 -1
  2353. samsara/types/work_orders_stream_work_orders_method_not_allowed_error_response_body.py +1 -1
  2354. samsara/types/work_orders_stream_work_orders_not_found_error_response_body.py +1 -1
  2355. samsara/types/work_orders_stream_work_orders_not_implemented_error_response_body.py +1 -1
  2356. samsara/types/work_orders_stream_work_orders_service_unavailable_error_response_body.py +1 -1
  2357. samsara/types/work_orders_stream_work_orders_too_many_requests_error_response_body.py +1 -1
  2358. samsara/types/work_orders_stream_work_orders_unauthorized_error_response_body.py +1 -1
  2359. samsara/types/worker_safety_sos_data_response_body.py +44 -0
  2360. samsara/types/worker_safety_sos_data_response_body_source_type.py +7 -0
  2361. samsara/types/workflow_address_event_with_geofence_object_response_body.py +4 -2
  2362. samsara/types/workflow_author_signature_object_response_body.py +4 -2
  2363. samsara/types/workflow_circle_response_body.py +3 -1
  2364. samsara/types/workflow_dvir_object_response_body.py +12 -10
  2365. samsara/types/workflow_geofence_event_response_object_response_body.py +1 -1
  2366. samsara/types/workflow_incident_condition_object_response_body.py +1 -1
  2367. samsara/types/workflow_incident_details_object_response_body.py +64 -56
  2368. samsara/types/workflow_trigger_object_request_body.py +6 -2
  2369. samsara/types/workflow_trigger_object_response_body.py +6 -2
  2370. samsara/vehicles/client.py +2 -2
  2371. samsara/vehicles/raw_client.py +2 -2
  2372. samsara/webhooks/types/webhooks_post_webhooks_request_body_event_types_item.py +3 -0
  2373. samsara/work_orders/__init__.py +0 -6
  2374. samsara/work_orders/client.py +132 -14
  2375. samsara/work_orders/raw_client.py +346 -14
  2376. samsara/work_orders/types/__init__.py +0 -6
  2377. {samsara_api-4.3.0.dist-info → samsara_api-5.4.0.dist-info}/LICENSE +1 -1
  2378. {samsara_api-4.3.0.dist-info → samsara_api-5.4.0.dist-info}/METADATA +1 -1
  2379. {samsara_api-4.3.0.dist-info → samsara_api-5.4.0.dist-info}/RECORD +2382 -2239
  2380. samsara/types/reading_type_response_body_data_type.py +0 -5
  2381. samsara/types/safety_event_driver.py +0 -5
  2382. samsara/types/safety_event_vehicle.py +0 -5
  2383. samsara/types/unit_response_body.py +0 -39
  2384. samsara/types/unit_response_body_base_unit.py +0 -77
  2385. samsara/types/unit_response_body_measurement_type.py +0 -32
  2386. samsara/types/vehicle_aux_input_type_1.py +0 -5
  2387. samsara/types/vehicle_aux_input_type_10.py +0 -5
  2388. samsara/types/vehicle_aux_input_type_11.py +0 -5
  2389. samsara/types/vehicle_aux_input_type_12.py +0 -5
  2390. samsara/types/vehicle_aux_input_type_13.py +0 -5
  2391. samsara/types/vehicle_aux_input_type_2.py +0 -5
  2392. samsara/types/vehicle_aux_input_type_3.py +0 -5
  2393. samsara/types/vehicle_aux_input_type_4.py +0 -5
  2394. samsara/types/vehicle_aux_input_type_5.py +0 -5
  2395. samsara/types/vehicle_aux_input_type_6.py +0 -5
  2396. samsara/types/vehicle_aux_input_type_7.py +0 -5
  2397. samsara/types/vehicle_aux_input_type_8.py +0 -5
  2398. samsara/types/vehicle_aux_input_type_9.py +0 -5
  2399. samsara/types/vehicle_location_reverse_geo.py +0 -5
  2400. samsara/types/vehicle_static_assigned_driver.py +0 -5
  2401. samsara/types/work_order_object_response_body_category.py +0 -7
  2402. samsara/work_orders/types/work_orders_patch_work_orders_request_body_category.py +0 -7
  2403. samsara/work_orders/types/work_orders_post_work_orders_request_body_category.py +0 -7
  2404. /samsara/{beta_ap_is → trips}/types/get_trips_request_completion_status.py +0 -0
  2405. /samsara/{beta_ap_is → trips}/types/get_trips_request_query_by.py +0 -0
  2406. {samsara_api-4.3.0.dist-info → samsara_api-5.4.0.dist-info}/WHEEL +0 -0
@@ -7,12 +7,13 @@ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
7
7
  from ..core.request_options import RequestOptions
8
8
  from ..types.aemp_equipment_get_aemp_equipment_list_response_body import AempEquipmentGetAempEquipmentListResponseBody
9
9
  from ..types.assets_inputs_get_assets_inputs_response_body import AssetsInputsGetAssetsInputsResponseBody
10
+ from ..types.create_report_config_object_request_body import CreateReportConfigObjectRequestBody
11
+ from ..types.depreciation_get_depreciation_transactions_response_body import (
12
+ DepreciationGetDepreciationTransactionsResponseBody,
13
+ )
10
14
  from ..types.detection_log_get_detections_response_body import DetectionLogGetDetectionsResponseBody
11
15
  from ..types.devices_get_devices_response_body import DevicesGetDevicesResponseBody
12
16
  from ..types.driver_efficiencies_response import DriverEfficienciesResponse
13
- from ..types.drivers_auth_token_create_driver_auth_token_response_body import (
14
- DriversAuthTokenCreateDriverAuthTokenResponseBody,
15
- )
16
17
  from ..types.engine_immobilizer_get_engine_immobilizer_states_response_body import (
17
18
  EngineImmobilizerGetEngineImmobilizerStatesResponseBody,
18
19
  )
@@ -21,6 +22,9 @@ from ..types.functions_start_function_run_response_body import FunctionsStartFun
21
22
  from ..types.goa_attribute_tiny import GoaAttributeTiny
22
23
  from ..types.hos_daily_logs_update_shipping_docs_response_body import HosDailyLogsUpdateShippingDocsResponseBody
23
24
  from ..types.hos_eld_events_get_hos_eld_events_response_body import HosEldEventsGetHosEldEventsResponseBody
25
+ from ..types.hub_custom_properties_list_hub_custom_properties_response_body import (
26
+ HubCustomPropertiesListHubCustomPropertiesResponseBody,
27
+ )
24
28
  from ..types.jobs_create_job_response_body import JobsCreateJobResponseBody
25
29
  from ..types.jobs_delete_job_response_body import JobsDeleteJobResponseBody
26
30
  from ..types.jobs_get_jobs_response_body import JobsGetJobsResponseBody
@@ -51,10 +55,11 @@ from ..types.reading_datapoint_request_body import ReadingDatapointRequestBody
51
55
  from ..types.readings_get_readings_history_response_body import ReadingsGetReadingsHistoryResponseBody
52
56
  from ..types.readings_get_readings_snapshot_response_body import ReadingsGetReadingsSnapshotResponseBody
53
57
  from ..types.readings_list_readings_definitions_response_body import ReadingsListReadingsDefinitionsResponseBody
54
- from ..types.safety_events_v_2_get_safety_events_v_2_response_body import SafetyEventsV2GetSafetyEventsV2ResponseBody
55
- from ..types.safety_events_v_2_get_safety_events_v_2_stream_response_body import (
56
- SafetyEventsV2GetSafetyEventsV2StreamResponseBody,
57
- )
58
+ from ..types.reports_create_report_run_response_body import ReportsCreateReportRunResponseBody
59
+ from ..types.reports_get_datasets_response_body import ReportsGetDatasetsResponseBody
60
+ from ..types.reports_get_report_configs_response_body import ReportsGetReportConfigsResponseBody
61
+ from ..types.reports_get_report_run_data_response_body import ReportsGetReportRunDataResponseBody
62
+ from ..types.reports_get_report_runs_response_body import ReportsGetReportRunsResponseBody
58
63
  from ..types.safety_scores_get_driver_safety_score_trips_response_body import (
59
64
  SafetyScoresGetDriverSafetyScoreTripsResponseBody,
60
65
  )
@@ -67,31 +72,11 @@ from ..types.safety_scores_get_vehicle_safety_score_trips_response_body import (
67
72
  SafetyScoresGetVehicleSafetyScoreTripsResponseBody,
68
73
  )
69
74
  from ..types.safety_scores_get_vehicle_safety_scores_response_body import SafetyScoresGetVehicleSafetyScoresResponseBody
70
- from ..types.trailer_assignments_create_driver_trailer_assignment_response_body import (
71
- TrailerAssignmentsCreateDriverTrailerAssignmentResponseBody,
72
- )
73
- from ..types.trailer_assignments_get_driver_trailer_assignments_response_body import (
74
- TrailerAssignmentsGetDriverTrailerAssignmentsResponseBody,
75
- )
76
- from ..types.trailer_assignments_update_driver_trailer_assignment_response_body import (
77
- TrailerAssignmentsUpdateDriverTrailerAssignmentResponseBody,
78
- )
79
75
  from ..types.trailer_stats_get_trailer_stats_feed_response_body import TrailerStatsGetTrailerStatsFeedResponseBody
80
76
  from ..types.trailer_stats_get_trailer_stats_history_response_body import TrailerStatsGetTrailerStatsHistoryResponseBody
81
77
  from ..types.trailer_stats_get_trailer_stats_snapshot_response_body import (
82
78
  TrailerStatsGetTrailerStatsSnapshotResponseBody,
83
79
  )
84
- from ..types.training_assignments_get_training_assignments_stream_response_body import (
85
- TrainingAssignmentsGetTrainingAssignmentsStreamResponseBody,
86
- )
87
- from ..types.training_assignments_patch_training_assignments_response_body import (
88
- TrainingAssignmentsPatchTrainingAssignmentsResponseBody,
89
- )
90
- from ..types.training_assignments_post_training_assignments_response_body import (
91
- TrainingAssignmentsPostTrainingAssignmentsResponseBody,
92
- )
93
- from ..types.training_courses_get_training_courses_response_body import TrainingCoursesGetTrainingCoursesResponseBody
94
- from ..types.trips_get_trips_response_body import TripsGetTripsResponseBody
95
80
  from ..types.update_engine_immobilizer_relay_state_request_body_request_body import (
96
81
  UpdateEngineImmobilizerRelayStateRequestBodyRequestBody,
97
82
  )
@@ -109,8 +94,6 @@ from .types.get_qualification_records_stream_request_entity_type import GetQuali
109
94
  from .types.get_qualification_types_request_entity_type import GetQualificationTypesRequestEntityType
110
95
  from .types.get_tag_group_safety_scores_request_score_type import GetTagGroupSafetyScoresRequestScoreType
111
96
  from .types.get_tag_safety_scores_request_score_type import GetTagSafetyScoresRequestScoreType
112
- from .types.get_trips_request_completion_status import GetTripsRequestCompletionStatus
113
- from .types.get_trips_request_query_by import GetTripsRequestQueryBy
114
97
 
115
98
  # this is used as the default value for optional parameters
116
99
  OMIT = typing.cast(typing.Any, ...)
@@ -131,6 +114,61 @@ class BetaApIsClient:
131
114
  """
132
115
  return self._raw_client
133
116
 
117
+ def get_depreciation_transactions(
118
+ self,
119
+ *,
120
+ start_time: typing.Optional[dt.datetime] = None,
121
+ end_time: typing.Optional[dt.datetime] = None,
122
+ asset_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
123
+ after: typing.Optional[str] = None,
124
+ request_options: typing.Optional[RequestOptions] = None,
125
+ ) -> DepreciationGetDepreciationTransactionsResponseBody:
126
+ """
127
+ Returns depreciation and adjustment transactions for assets. Transactions are returned ordered by updatedAt in ascending order (oldest to newest). Use startTime parameter for incremental sync.
128
+
129
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
130
+
131
+ To use this endpoint, select **Read Assets** under the Assets 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>
132
+
133
+
134
+ **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.
135
+
136
+ Parameters
137
+ ----------
138
+ start_time : typing.Optional[dt.datetime]
139
+ RFC 3339 timestamp. Returns transactions updated after this time. Compared against updatedAt. If not provided, returns all transactions. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
140
+
141
+ end_time : typing.Optional[dt.datetime]
142
+ RFC 3339 timestamp. Returns transactions updated before this time. Compared against updatedAt. If not provided, behaves as an unending feed of changes. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
143
+
144
+ asset_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
145
+ Filter by asset IDs. Up to 50 ids.
146
+
147
+ after : typing.Optional[str]
148
+ If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
149
+
150
+ request_options : typing.Optional[RequestOptions]
151
+ Request-specific configuration.
152
+
153
+ Returns
154
+ -------
155
+ DepreciationGetDepreciationTransactionsResponseBody
156
+ OK response.
157
+
158
+ Examples
159
+ --------
160
+ from samsara import Samsara
161
+
162
+ client = Samsara(
163
+ token="YOUR_TOKEN",
164
+ )
165
+ client.beta_ap_is.get_depreciation_transactions()
166
+ """
167
+ _response = self._raw_client.get_depreciation_transactions(
168
+ start_time=start_time, end_time=end_time, asset_ids=asset_ids, after=after, request_options=request_options
169
+ )
170
+ return _response.data
171
+
134
172
  def get_assets_inputs(
135
173
  self,
136
174
  *,
@@ -914,7 +952,7 @@ class BetaApIsClient:
914
952
  relay_states=[
915
953
  UpdateEngineImmobilizerRelayStateRequestBodyRequestBody(
916
954
  id="relay1",
917
- is_open=False,
955
+ is_open=True,
918
956
  )
919
957
  ],
920
958
  )
@@ -1173,10 +1211,10 @@ class BetaApIsClient:
1173
1211
  Optional string of comma separated asset IDs. If asset ID is present, events for the specified asset(s) will be returned. Max for this value is 2000 objects. (Example: 281474982859091,281471982957527)
1174
1212
 
1175
1213
  detection_behavior_labels : typing.Optional[typing.Union[str, typing.Sequence[str]]]
1176
- Optional string of comma separated labels to filter behavior labels. Uses OR semantics for filtering. An empty list allows all values. Valid values: `acceleration`, `braking`, `crash`, `drowsy`, `eatingDrinking`, `edgeRailroadCrossingViolation`, `followingDistance`, `forwardCollisionWarning`, `genericDistraction`, `harshTurn`, `laneDeparture`, `maxSpeed`, `mobileUsage`, `noSeatbelt`, `obstructedCamera`, `passenger`, `policyViolationMask`, `rollingStop`, `rolloverProtection`, `smoking`, `speeding`, `unsafeParking`, `vulnerableRoadUserCollisionWarning`, `yawControl`. (Example: rollingStop,obstructedCamera,noSeatbelt)
1214
+ Optional string of comma separated labels to filter behavior labels. Uses OR semantics for filtering. An empty list allows all values. Valid values: `acceleration`, `braking`, `crash`, `drowsy`, `eatingDrinking`, `edgeRailroadCrossingViolation`, `followingDistance`, `forwardCollisionWarning`, `genericDistraction`, `harshTurn`, `heavySpeeding`, `laneDeparture`, `lightSpeeding`, `maxSpeed`, `mobileUsage`, `moderateSpeeding`, `noSeatbelt`, `obstructedCamera`, `passenger`, `policyViolationMask`, `ranRedLight`, `rearCollisionWarning`, `rollingStop`, `rolloverProtection`, `severeSpeeding`, `smoking`, `speeding`, `unsafeParking`, `vehicleInBlindSpotWarning`, `vulnerableRoadUserCollisionWarning`, `yawControl`. (Example: rollingStop,obstructedCamera,noSeatbelt)
1177
1215
 
1178
1216
  inbox_filter_reason : typing.Optional[typing.Union[str, typing.Sequence[str]]]
1179
- Optional string of comma separated reasons to filter detections. Uses OR semantics for filtering. An empty list allows all values. Valid values: `overDailyLimit`, `overHourlyLimit`, `overTripLimit`, `belowConfidenceThreshold`, `belowSeverityThreshold`, `overEventRateLimit`, `geofenceFilter`, `belowNudgeThreshold`, `belowSpeedThreshold`, `nighttimeFilter`, `speedingFilter`, `unknown`. (Example: overDailyLimit,overHourlyLimit,belowConfidenceThreshold)
1217
+ Optional string of comma separated reasons to filter detections. Uses OR semantics for filtering. An empty list allows all values. Valid values: `overDailyLimit`, `overHourlyLimit`, `overTripLimit`, `belowConfidenceThreshold`, `belowSeverityThreshold`, `overEventRateLimit`, `geofenceFilter`, `belowNudgeThreshold`, `belowSpeedThreshold`, `nighttimeFilter`, `speedingFilter`, `inCabAlertOnly`, `unknown`. (Example: overDailyLimit,overHourlyLimit,belowConfidenceThreshold)
1180
1218
 
1181
1219
  inbox_event : typing.Optional[bool]
1182
1220
  Indicates whether or not to return detections with an associated Safety Inbox event. An empty entry allows all values. (Example: true)
@@ -1243,6 +1281,9 @@ class BetaApIsClient:
1243
1281
  include_health: typing.Optional[bool] = None,
1244
1282
  after: typing.Optional[str] = None,
1245
1283
  limit: typing.Optional[int] = None,
1284
+ include_tags: typing.Optional[bool] = None,
1285
+ tag_ids: typing.Optional[str] = None,
1286
+ parent_tag_ids: typing.Optional[str] = None,
1246
1287
  request_options: typing.Optional[RequestOptions] = None,
1247
1288
  ) -> DevicesGetDevicesResponseBody:
1248
1289
  """
@@ -1274,6 +1315,15 @@ class BetaApIsClient:
1274
1315
  limit : typing.Optional[int]
1275
1316
  The limit for how many objects will be in the response. Default and max for this value is 100 objects.
1276
1317
 
1318
+ include_tags : typing.Optional[bool]
1319
+ Optional boolean to control whether tags are returned in the response. Defaults to false.
1320
+
1321
+ tag_ids : typing.Optional[str]
1322
+ A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`
1323
+
1324
+ parent_tag_ids : typing.Optional[str]
1325
+ A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`
1326
+
1277
1327
  request_options : typing.Optional[RequestOptions]
1278
1328
  Request-specific configuration.
1279
1329
 
@@ -1297,221 +1347,13 @@ class BetaApIsClient:
1297
1347
  include_health=include_health,
1298
1348
  after=after,
1299
1349
  limit=limit,
1350
+ include_tags=include_tags,
1351
+ tag_ids=tag_ids,
1352
+ parent_tag_ids=parent_tag_ids,
1300
1353
  request_options=request_options,
1301
1354
  )
1302
1355
  return _response.data
1303
1356
 
1304
- def get_driver_trailer_assignments(
1305
- self,
1306
- *,
1307
- driver_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
1308
- after: typing.Optional[str] = None,
1309
- include_external_ids: typing.Optional[bool] = None,
1310
- request_options: typing.Optional[RequestOptions] = None,
1311
- ) -> TrailerAssignmentsGetDriverTrailerAssignmentsResponseBody:
1312
- """
1313
- Get currently active driver-trailer assignments for driver.
1314
-
1315
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1316
-
1317
- To use this endpoint, select **Read Assignments** under the Assignments 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>
1318
-
1319
-
1320
- **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.
1321
-
1322
- Parameters
1323
- ----------
1324
- driver_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
1325
- A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`
1326
-
1327
- after : typing.Optional[str]
1328
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
1329
-
1330
- include_external_ids : typing.Optional[bool]
1331
- Optional boolean indicating whether to return external IDs on supported entities
1332
-
1333
- request_options : typing.Optional[RequestOptions]
1334
- Request-specific configuration.
1335
-
1336
- Returns
1337
- -------
1338
- TrailerAssignmentsGetDriverTrailerAssignmentsResponseBody
1339
- OK response.
1340
-
1341
- Examples
1342
- --------
1343
- from samsara import Samsara
1344
-
1345
- client = Samsara(
1346
- token="YOUR_TOKEN",
1347
- )
1348
- client.beta_ap_is.get_driver_trailer_assignments()
1349
- """
1350
- _response = self._raw_client.get_driver_trailer_assignments(
1351
- driver_ids=driver_ids,
1352
- after=after,
1353
- include_external_ids=include_external_ids,
1354
- request_options=request_options,
1355
- )
1356
- return _response.data
1357
-
1358
- def create_driver_trailer_assignment(
1359
- self,
1360
- *,
1361
- driver_id: str,
1362
- trailer_id: str,
1363
- start_time: typing.Optional[str] = OMIT,
1364
- request_options: typing.Optional[RequestOptions] = None,
1365
- ) -> TrailerAssignmentsCreateDriverTrailerAssignmentResponseBody:
1366
- """
1367
- Create a new driver-trailer assignment
1368
-
1369
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1370
-
1371
- To use this endpoint, select **Write Assignments** under the Assignments 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>
1372
-
1373
-
1374
- **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.
1375
-
1376
- Parameters
1377
- ----------
1378
- driver_id : str
1379
- ID of the driver. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the driver.
1380
-
1381
- trailer_id : str
1382
- ID of the trailer. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the trailer.
1383
-
1384
- start_time : typing.Optional[str]
1385
- The start time in RFC 3339 format. The time needs to be current or within the past 7 days. Defaults to now if not provided
1386
-
1387
- request_options : typing.Optional[RequestOptions]
1388
- Request-specific configuration.
1389
-
1390
- Returns
1391
- -------
1392
- TrailerAssignmentsCreateDriverTrailerAssignmentResponseBody
1393
- OK response.
1394
-
1395
- Examples
1396
- --------
1397
- from samsara import Samsara
1398
-
1399
- client = Samsara(
1400
- token="YOUR_TOKEN",
1401
- )
1402
- client.beta_ap_is.create_driver_trailer_assignment(
1403
- driver_id="494123",
1404
- trailer_id="12345",
1405
- )
1406
- """
1407
- _response = self._raw_client.create_driver_trailer_assignment(
1408
- driver_id=driver_id, trailer_id=trailer_id, start_time=start_time, request_options=request_options
1409
- )
1410
- return _response.data
1411
-
1412
- def update_driver_trailer_assignment(
1413
- self, *, id: str, end_time: str, request_options: typing.Optional[RequestOptions] = None
1414
- ) -> TrailerAssignmentsUpdateDriverTrailerAssignmentResponseBody:
1415
- """
1416
- Update an existing driver-trailer assignment.
1417
-
1418
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1419
-
1420
- To use this endpoint, select **Write Assignments** under the Assignments 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>
1421
-
1422
-
1423
- **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.
1424
-
1425
- Parameters
1426
- ----------
1427
- id : str
1428
- Samsara ID for the assignment.
1429
-
1430
- end_time : str
1431
- The end time in RFC 3339 format. The end time should not be in the future
1432
-
1433
- request_options : typing.Optional[RequestOptions]
1434
- Request-specific configuration.
1435
-
1436
- Returns
1437
- -------
1438
- TrailerAssignmentsUpdateDriverTrailerAssignmentResponseBody
1439
- OK response.
1440
-
1441
- Examples
1442
- --------
1443
- from samsara import Samsara
1444
-
1445
- client = Samsara(
1446
- token="YOUR_TOKEN",
1447
- )
1448
- client.beta_ap_is.update_driver_trailer_assignment(
1449
- id="id",
1450
- end_time="2019-06-13T19:08:25Z",
1451
- )
1452
- """
1453
- _response = self._raw_client.update_driver_trailer_assignment(
1454
- id=id, end_time=end_time, request_options=request_options
1455
- )
1456
- return _response.data
1457
-
1458
- def create_driver_auth_token(
1459
- self,
1460
- *,
1461
- code: str,
1462
- external_id: typing.Optional[str] = OMIT,
1463
- id: typing.Optional[int] = OMIT,
1464
- username: typing.Optional[str] = OMIT,
1465
- request_options: typing.Optional[RequestOptions] = None,
1466
- ) -> DriversAuthTokenCreateDriverAuthTokenResponseBody:
1467
- """
1468
- Creates a short-lived auth token for a driver.
1469
-
1470
- <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>).
1471
-
1472
- To use this endpoint, select **Write Driver Auth Token** under the Closed Beta 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>
1473
-
1474
-
1475
- **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.
1476
-
1477
- Parameters
1478
- ----------
1479
- code : str
1480
- Required. Random 12+ character string, used with the auth token to help secure the client from intercepted tokens.
1481
-
1482
- external_id : typing.Optional[str]
1483
- Optional. External ID of the driver, in the format `key:value` (e.g., `payrollId:ABFS18600`). One of `id`, `externalId`, or `username` is required.
1484
-
1485
- id : typing.Optional[int]
1486
- Optional. Samsara ID of the driver. One of `id`, `externalId`, or `username` is required.
1487
-
1488
- username : typing.Optional[str]
1489
- Optional. Username of the driver. This is the login identifier configured when the driver is created. One of `id`, `externalId`, or `username` is required.
1490
-
1491
- request_options : typing.Optional[RequestOptions]
1492
- Request-specific configuration.
1493
-
1494
- Returns
1495
- -------
1496
- DriversAuthTokenCreateDriverAuthTokenResponseBody
1497
- OK response.
1498
-
1499
- Examples
1500
- --------
1501
- from samsara import Samsara
1502
-
1503
- client = Samsara(
1504
- token="YOUR_TOKEN",
1505
- )
1506
- client.beta_ap_is.create_driver_auth_token(
1507
- code="dp[gZc1wAigz4uGa0Hh",
1508
- )
1509
- """
1510
- _response = self._raw_client.create_driver_auth_token(
1511
- code=code, external_id=external_id, id=id, username=username, request_options=request_options
1512
- )
1513
- return _response.data
1514
-
1515
1357
  def get_engine_immobilizer_states(
1516
1358
  self,
1517
1359
  *,
@@ -1682,52 +1524,130 @@ class BetaApIsClient:
1682
1524
  )
1683
1525
  return _response.data
1684
1526
 
1685
- def create_plan_orders(
1527
+ def list_hub_custom_properties(
1686
1528
  self,
1687
1529
  *,
1688
- data: typing.Sequence[OrderInputObjectRequestBody],
1689
- enable_update_existing_orders: typing.Optional[bool] = OMIT,
1530
+ hub_id: str,
1531
+ custom_property_ids: typing.Optional[str] = None,
1532
+ custom_property_names: typing.Optional[str] = None,
1533
+ start_time: typing.Optional[dt.datetime] = None,
1534
+ end_time: typing.Optional[dt.datetime] = None,
1535
+ after: typing.Optional[str] = None,
1536
+ limit: typing.Optional[int] = None,
1690
1537
  request_options: typing.Optional[RequestOptions] = None,
1691
- ) -> PlanOrdersCreatePlanOrdersResponseBody:
1538
+ ) -> HubCustomPropertiesListHubCustomPropertiesResponseBody:
1692
1539
  """
1693
- Create one or more orders (bulk upsert). Pass an array of order objects; any object whose customerOrderId already exists will be updated, otherwise a new order is created. Functions can return JSON arrays in this Order POST format. Orders are initially created at the plan level but will migrate to hub-level entities, with planId becoming optional in future versions.
1540
+ Retrieve custom properties for a specific hub.
1694
1541
 
1695
1542
  **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.
1696
1543
 
1697
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1544
+ <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1698
1545
 
1699
- To use this endpoint, select **Write Routes** under the Driver Workflow 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>
1546
+ To use this endpoint, select **Read Routes** under the Driver Workflow 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>
1700
1547
 
1701
1548
 
1702
1549
  **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.
1703
1550
 
1704
1551
  Parameters
1705
1552
  ----------
1706
- data : typing.Sequence[OrderInputObjectRequestBody]
1707
- An array of order objects to be created or updated
1553
+ hub_id : str
1554
+ The hub identifier
1708
1555
 
1709
- enable_update_existing_orders : typing.Optional[bool]
1710
- Enable update of existing orders if an order with the same customerOrderId exists. The input must match the same quantity dimensions as the existing order. If not provided, requests will fail if an order's customerOrderId already exists.
1556
+ custom_property_ids : typing.Optional[str]
1557
+ A comma-separated list of custom property IDs that can be used for filtering.
1558
+
1559
+ custom_property_names : typing.Optional[str]
1560
+ A comma-separated list of custom property names that can be used for filtering.
1561
+
1562
+ start_time : typing.Optional[dt.datetime]
1563
+ Time filter of when the custom property was updated, in RFC 3339 format
1564
+
1565
+ end_time : typing.Optional[dt.datetime]
1566
+ Time filter of when the custom property was updated, in RFC 3339 format
1567
+
1568
+ after : typing.Optional[str]
1569
+ If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
1570
+
1571
+ limit : typing.Optional[int]
1572
+ Maximum number of objects to return. Default and maximum is 100
1711
1573
 
1712
1574
  request_options : typing.Optional[RequestOptions]
1713
1575
  Request-specific configuration.
1714
1576
 
1715
1577
  Returns
1716
1578
  -------
1717
- PlanOrdersCreatePlanOrdersResponseBody
1579
+ HubCustomPropertiesListHubCustomPropertiesResponseBody
1718
1580
  OK response.
1719
1581
 
1720
1582
  Examples
1721
1583
  --------
1722
- from samsara import OrderInputObjectRequestBody, Samsara
1584
+ from samsara import Samsara
1723
1585
 
1724
1586
  client = Samsara(
1725
1587
  token="YOUR_TOKEN",
1726
1588
  )
1727
- client.beta_ap_is.create_plan_orders(
1728
- data=[
1729
- OrderInputObjectRequestBody(
1730
- customer_order_id="ORDER-2024-001",
1589
+ client.beta_ap_is.list_hub_custom_properties(
1590
+ hub_id="hubId",
1591
+ )
1592
+ """
1593
+ _response = self._raw_client.list_hub_custom_properties(
1594
+ hub_id=hub_id,
1595
+ custom_property_ids=custom_property_ids,
1596
+ custom_property_names=custom_property_names,
1597
+ start_time=start_time,
1598
+ end_time=end_time,
1599
+ after=after,
1600
+ limit=limit,
1601
+ request_options=request_options,
1602
+ )
1603
+ return _response.data
1604
+
1605
+ def create_plan_orders(
1606
+ self,
1607
+ *,
1608
+ data: typing.Sequence[OrderInputObjectRequestBody],
1609
+ enable_update_existing_orders: typing.Optional[bool] = OMIT,
1610
+ request_options: typing.Optional[RequestOptions] = None,
1611
+ ) -> PlanOrdersCreatePlanOrdersResponseBody:
1612
+ """
1613
+ Create one or more orders (bulk upsert). Pass an array of order objects; any object whose customerOrderId already exists will be updated, otherwise a new order is created. Functions can return JSON arrays in this Order POST format. Orders are initially created at the plan level but will migrate to hub-level entities, with planId becoming optional in future versions.
1614
+
1615
+ **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.
1616
+
1617
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1618
+
1619
+ To use this endpoint, select **Write Routes** under the Driver Workflow 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>
1620
+
1621
+
1622
+ **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.
1623
+
1624
+ Parameters
1625
+ ----------
1626
+ data : typing.Sequence[OrderInputObjectRequestBody]
1627
+ An array of order objects to be created or updated
1628
+
1629
+ enable_update_existing_orders : typing.Optional[bool]
1630
+ Enable update of existing orders if an order with the same customerOrderId exists. The input must match the same quantity dimensions as the existing order. If not provided, requests will fail if an order's customerOrderId already exists.
1631
+
1632
+ request_options : typing.Optional[RequestOptions]
1633
+ Request-specific configuration.
1634
+
1635
+ Returns
1636
+ -------
1637
+ PlanOrdersCreatePlanOrdersResponseBody
1638
+ OK response.
1639
+
1640
+ Examples
1641
+ --------
1642
+ from samsara import OrderInputObjectRequestBody, Samsara
1643
+
1644
+ client = Samsara(
1645
+ token="YOUR_TOKEN",
1646
+ )
1647
+ client.beta_ap_is.create_plan_orders(
1648
+ data=[
1649
+ OrderInputObjectRequestBody(
1650
+ customer_order_id="ORDER-2024-001",
1731
1651
  hub_id="550e8400-e29b-41d4-a716-446655440000",
1732
1652
  plan_id="650e8400-e29b-41d4-a716-446655440023",
1733
1653
  )
@@ -2044,7 +1964,7 @@ class BetaApIsClient:
2044
1964
  request_options: typing.Optional[RequestOptions] = None,
2045
1965
  ) -> QualificationsGetQualificationRecordsStreamResponseBody:
2046
1966
  """
2047
- Returns all qualification records that have been created or modified for your organization based on the time parameters passed in. Results are paginated and sorted by last modified time. If you include an endTime, the endpoint will return data up until that point (exclusive). If you dont include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call.
1967
+ Returns all qualification records that have been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don't include an endTime, the API will continue to poll with the pagination cursor that gets returned on every call. The hasNextPage response value will be true if there is no endTime specified and endCursor is nonempty.
2048
1968
 
2049
1969
  <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2050
1970
 
@@ -2270,10 +2190,6 @@ class BetaApIsClient:
2270
2190
  ) -> ReadingsListReadingsDefinitionsResponseBody:
2271
2191
  """
2272
2192
  An introspection endpoint for discovering the set of readings including their name, description, data type, unit, and other metadata.
2273
- Examples:
2274
- Diagnostic/Engine Readings: engineState, engineSpeed, fuelLevelPerc etc.
2275
- Level Monitoring Readings: defLevel, defLevelMilliPercent etc.
2276
- Smart Trailer Readings: reeferState etc.
2277
2193
 
2278
2194
  <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2279
2195
 
@@ -2331,20 +2247,6 @@ class BetaApIsClient:
2331
2247
  ) -> ReadingsGetReadingsHistoryResponseBody:
2332
2248
  """
2333
2249
  Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. End time of null implies endTime is infinite and all known readings are returned.
2334
- Example:
2335
- engineRpm Readings for entityId 212014918105584 between time 2025-01-27T19:22:30Z and 2025-01-27T19:25:00Z
2336
- "data": [
2337
- {
2338
- "entityId": "212014918105584",
2339
- "value": 807,
2340
- "happenedAtTime": "2025-01-27T19:22:30Z"
2341
- },
2342
- {
2343
- "entityId": "212014918105584",
2344
- "value": 811,
2345
- "happenedAtTime": "2025-01-27T19:24:30Z"
2346
- }
2347
- ],
2348
2250
 
2349
2251
  <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2350
2252
 
@@ -2368,7 +2270,7 @@ class BetaApIsClient:
2368
2270
  A filter on the data based on this comma-separated list of entity IDs or external IDs. If not set, all entities are returned.
2369
2271
 
2370
2272
  external_ids : typing.Optional[str]
2371
- A filter on the data based on this comma-separated list of external IDs.
2273
+ A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM)
2372
2274
 
2373
2275
  start_time : typing.Optional[str]
2374
2276
  A filter on the data that returns the last known data points with timestamps greater than or equal to this value. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z)
@@ -2430,16 +2332,6 @@ class BetaApIsClient:
2430
2332
  ) -> ReadingsGetReadingsSnapshotResponseBody:
2431
2333
  """
2432
2334
  An endpoint to get the last value of a reading for a set of entities at the specified time.
2433
- Example:
2434
- engineRpm Readings for entityId 212014918105584 at time 2025-04-16T20:49:19Z
2435
- "data": [
2436
- {
2437
- "readingId": "engineRpm",
2438
- "entityId": "212014918105584",
2439
- "value": 600,
2440
- "happenedAtTime": "2025-04-16T20:49:19Z"
2441
- }
2442
- ],
2443
2335
 
2444
2336
  <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2445
2337
 
@@ -2463,7 +2355,7 @@ class BetaApIsClient:
2463
2355
  A filter on the data based on this comma-separated list of entity IDs or external IDs. If not set, all entities are returned.
2464
2356
 
2465
2357
  external_ids : typing.Optional[str]
2466
- A filter on the data based on this comma-separated list of external IDs.
2358
+ A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM)
2467
2359
 
2468
2360
  as_of_time : typing.Optional[str]
2469
2361
  A filter on the data that returns the last known data points with timestamps less than or equal to this value. Defaults to now if not provided. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z)
@@ -2503,45 +2395,92 @@ class BetaApIsClient:
2503
2395
  )
2504
2396
  return _response.data
2505
2397
 
2506
- def get_safety_events_v_2(
2398
+ def get_report_configs(
2507
2399
  self,
2508
2400
  *,
2509
- safety_event_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2510
- include_asset: typing.Optional[bool] = None,
2511
- include_driver: typing.Optional[bool] = None,
2512
2401
  after: typing.Optional[str] = None,
2402
+ limit: typing.Optional[int] = None,
2403
+ ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2513
2404
  request_options: typing.Optional[RequestOptions] = None,
2514
- ) -> SafetyEventsV2GetSafetyEventsV2ResponseBody:
2405
+ ) -> ReportsGetReportConfigsResponseBody:
2515
2406
  """
2516
- This endpoint will return details for the specified safety events based on the parameters passed in. Results are paginated.
2407
+ Get report configs created in the organization.
2517
2408
 
2518
2409
  <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2519
2410
 
2520
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
2411
+ To use this endpoint, select **Read Custom Reports** under the Custom Reports 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>
2521
2412
 
2522
2413
 
2523
2414
  **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.
2524
2415
 
2525
2416
  Parameters
2526
2417
  ----------
2527
- safety_event_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2528
- Required string of comma separated Safety Event IDs. Unique Samsara IDs (uuid) of the safety event.
2418
+ after : typing.Optional[str]
2419
+ If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
2529
2420
 
2530
- include_asset : typing.Optional[bool]
2531
- Indicates whether or not to return expanded “asset” data
2421
+ limit : typing.Optional[int]
2422
+ Maximum number of configs to return
2532
2423
 
2533
- include_driver : typing.Optional[bool]
2534
- Indicates whether or not to return expanded “driver” data
2424
+ ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2425
+ The list of report config IDs to retrieve. Include up to 10 report config IDs. If not provided, all configs will be returned.
2426
+
2427
+ request_options : typing.Optional[RequestOptions]
2428
+ Request-specific configuration.
2429
+
2430
+ Returns
2431
+ -------
2432
+ ReportsGetReportConfigsResponseBody
2433
+ OK response.
2434
+
2435
+ Examples
2436
+ --------
2437
+ from samsara import Samsara
2438
+
2439
+ client = Samsara(
2440
+ token="YOUR_TOKEN",
2441
+ )
2442
+ client.beta_ap_is.get_report_configs()
2443
+ """
2444
+ _response = self._raw_client.get_report_configs(
2445
+ after=after, limit=limit, ids=ids, request_options=request_options
2446
+ )
2447
+ return _response.data
2448
+
2449
+ def get_datasets(
2450
+ self,
2451
+ *,
2452
+ ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2453
+ after: typing.Optional[str] = None,
2454
+ limit: typing.Optional[int] = None,
2455
+ request_options: typing.Optional[RequestOptions] = None,
2456
+ ) -> ReportsGetDatasetsResponseBody:
2457
+ """
2458
+ Get datasets for custom reports.
2459
+
2460
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2461
+
2462
+ To use this endpoint, select **Read Custom Reports** under the Custom Reports 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>
2463
+
2464
+
2465
+ **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.
2466
+
2467
+ Parameters
2468
+ ----------
2469
+ ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2470
+ The list of dataset IDs to retrieve the datasets for. Include up to 10 dataset IDs. If not provided, all datasets will be returned.
2535
2471
 
2536
2472
  after : typing.Optional[str]
2537
2473
  If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
2538
2474
 
2475
+ limit : typing.Optional[int]
2476
+ Maximum number of datasets to return.
2477
+
2539
2478
  request_options : typing.Optional[RequestOptions]
2540
2479
  Request-specific configuration.
2541
2480
 
2542
2481
  Returns
2543
2482
  -------
2544
- SafetyEventsV2GetSafetyEventsV2ResponseBody
2483
+ ReportsGetDatasetsResponseBody
2545
2484
  OK response.
2546
2485
 
2547
2486
  Examples
@@ -2551,84 +2490,143 @@ class BetaApIsClient:
2551
2490
  client = Samsara(
2552
2491
  token="YOUR_TOKEN",
2553
2492
  )
2554
- client.beta_ap_is.get_safety_events_v_2()
2493
+ client.beta_ap_is.get_datasets()
2555
2494
  """
2556
- _response = self._raw_client.get_safety_events_v_2(
2557
- safety_event_ids=safety_event_ids,
2558
- include_asset=include_asset,
2559
- include_driver=include_driver,
2560
- after=after,
2561
- request_options=request_options,
2562
- )
2495
+ _response = self._raw_client.get_datasets(ids=ids, after=after, limit=limit, request_options=request_options)
2563
2496
  return _response.data
2564
2497
 
2565
- def get_safety_events_v_2_stream(
2498
+ def get_report_runs(
2566
2499
  self,
2567
2500
  *,
2568
- start_time: str,
2569
- end_time: typing.Optional[str] = None,
2570
- asset_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2571
- driver_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2572
- tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2573
- assigned_coaches: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2574
- behavior_labels: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2575
- event_states: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2576
- include_asset: typing.Optional[bool] = None,
2577
- include_driver: typing.Optional[bool] = None,
2501
+ report_config_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2502
+ ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
2578
2503
  after: typing.Optional[str] = None,
2504
+ limit: typing.Optional[int] = None,
2579
2505
  request_options: typing.Optional[RequestOptions] = None,
2580
- ) -> SafetyEventsV2GetSafetyEventsV2StreamResponseBody:
2506
+ ) -> ReportsGetReportRunsResponseBody:
2581
2507
  """
2582
- This endpoint will return all safety events associated with your organization based on the parameters passed in. To get core endpoint data, select Read Safety Events & Scores under the Safety & Cameras category when creating or editing an API token. Read Camera Media permissions required to get Safety Event video media via this endpoint. If you include an endTime, the endpoint will return data up until that point. If you do not include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. Results are paginated.
2508
+ Get custom report runs created by the user.
2583
2509
 
2584
2510
  <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2585
2511
 
2586
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
2512
+ To use this endpoint, select **Read Custom Reports** under the Custom Reports 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>
2587
2513
 
2588
2514
 
2589
2515
  **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.
2590
2516
 
2591
2517
  Parameters
2592
2518
  ----------
2593
- start_time : str
2594
- RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime` of the events.
2519
+ report_config_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2520
+ The list of report config IDs to retrieve the report runs for. Include up to 10 report config IDs. If not provided, runs for all configs will be returned.
2595
2521
 
2596
- end_time : typing.Optional[str]
2597
- RFC 3339 timestamp which is compared against `updatedAtTime` of the events. If not provided then the endpoint behaves as an unending feed of changes.
2522
+ ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2523
+ The list of report run IDs to retrieve the report runs for. Include up to 10 report run IDs. If not provided, all report runs will be returned.
2598
2524
 
2599
- asset_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2600
- Optional string of comma separated asset IDs. If asset ID is present, events for the specified asset(s) will be returned. Limit of 2000 asset IDs.
2525
+ after : typing.Optional[str]
2526
+ If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
2601
2527
 
2602
- driver_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2603
- Optional string of comma separated driver IDs. If driver ID is present, events for the specified driver(s) will be returned. Limit of 2000 driver IDs.
2528
+ limit : typing.Optional[int]
2529
+ Maximum number of runs to return.
2604
2530
 
2605
- tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2606
- Optional string of comma separated tag IDs. If tag ID is present, events for the specified tag(s) will be returned. Limit of 2000 tag IDs.
2531
+ request_options : typing.Optional[RequestOptions]
2532
+ Request-specific configuration.
2607
2533
 
2608
- assigned_coaches : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2609
- Optional string of comma separated coach IDs to filter events assigned to a particular coach. Limit of 2000 coach IDs.
2534
+ Returns
2535
+ -------
2536
+ ReportsGetReportRunsResponseBody
2537
+ OK response.
2610
2538
 
2611
- behavior_labels : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2612
- Optional string of comma separated labels to filter behavior labels. Valid values: `Acceleration`, `AggressiveDriving`, `BluetoothHeadset`, `Braking`, `ContextConstructionOrWorkZone`, `ContextSnowyOrIcy`, `ContextVulnerableRoadUser`, `ContextWet`, `Crash`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshTurn`, `HeavySpeeding`, `HosViolation`, `Idling`, `Invalid`, `LaneDeparture`, `LateResponse`, `LeftTurn`, `LightSpeeding`, `MaxSpeed`, `MobileUsage`, `ModerateSpeeding`, `NearCollison`, `NearPedestrianCollision`, `NoSeatbelt`, `ObstructedCamera`, `OtherViolation`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `RanRedLight`, `Reversing`, `RollingStop`, `RolloverProtection`, `SevereSpeeding`, `Smoking`, `Speeding`, `UTurn`, `UnsafeManeuver`, `UnsafeParking`, `VulnerableRoadUserCollisionWarning`, `YawControl`
2539
+ Examples
2540
+ --------
2541
+ from samsara import Samsara
2613
2542
 
2614
- event_states : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2615
- Optional string of comma separated values to filter event states. Valid values: `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized`
2543
+ client = Samsara(
2544
+ token="YOUR_TOKEN",
2545
+ )
2546
+ client.beta_ap_is.get_report_runs()
2547
+ """
2548
+ _response = self._raw_client.get_report_runs(
2549
+ report_config_ids=report_config_ids, ids=ids, after=after, limit=limit, request_options=request_options
2550
+ )
2551
+ return _response.data
2616
2552
 
2617
- include_asset : typing.Optional[bool]
2618
- Indicates whether or not to return expanded “asset” data
2553
+ def create_report_run(
2554
+ self,
2555
+ *,
2556
+ report_config: CreateReportConfigObjectRequestBody,
2557
+ request_options: typing.Optional[RequestOptions] = None,
2558
+ ) -> ReportsCreateReportRunResponseBody:
2559
+ """
2560
+ Triggers a new custom report run based on the provided configuration.
2561
+
2562
+ <b>Rate limit:</b> 50 requests/hour (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2563
+
2564
+ To use this endpoint, select **Write Custom Reports** under the Custom Reports 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>
2565
+
2566
+
2567
+ **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.
2568
+
2569
+ Parameters
2570
+ ----------
2571
+ report_config : CreateReportConfigObjectRequestBody
2572
+
2573
+ request_options : typing.Optional[RequestOptions]
2574
+ Request-specific configuration.
2575
+
2576
+ Returns
2577
+ -------
2578
+ ReportsCreateReportRunResponseBody
2579
+ Accepted response.
2580
+
2581
+ Examples
2582
+ --------
2583
+ from samsara import CreateReportConfigObjectRequestBody, Samsara
2584
+
2585
+ client = Samsara(
2586
+ token="YOUR_TOKEN",
2587
+ )
2588
+ client.beta_ap_is.create_report_run(
2589
+ report_config=CreateReportConfigObjectRequestBody(),
2590
+ )
2591
+ """
2592
+ _response = self._raw_client.create_report_run(report_config=report_config, request_options=request_options)
2593
+ return _response.data
2594
+
2595
+ def get_report_run_data(
2596
+ self,
2597
+ *,
2598
+ id: str,
2599
+ after: typing.Optional[str] = None,
2600
+ limit: typing.Optional[int] = None,
2601
+ request_options: typing.Optional[RequestOptions] = None,
2602
+ ) -> ReportsGetReportRunDataResponseBody:
2603
+ """
2604
+ Get data for the given custom report run.
2605
+
2606
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2607
+
2608
+ To use this endpoint, select **Read Custom Reports** under the Custom Reports 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>
2619
2609
 
2620
- include_driver : typing.Optional[bool]
2621
- Indicates whether or not to return expanded “driver” data
2610
+
2611
+ **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.
2612
+
2613
+ Parameters
2614
+ ----------
2615
+ id : str
2616
+ ID of the report run.
2622
2617
 
2623
2618
  after : typing.Optional[str]
2624
2619
  If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
2625
2620
 
2621
+ limit : typing.Optional[int]
2622
+ Maximum number of rows to return.
2623
+
2626
2624
  request_options : typing.Optional[RequestOptions]
2627
2625
  Request-specific configuration.
2628
2626
 
2629
2627
  Returns
2630
2628
  -------
2631
- SafetyEventsV2GetSafetyEventsV2StreamResponseBody
2629
+ ReportsGetReportRunDataResponseBody
2632
2630
  OK response.
2633
2631
 
2634
2632
  Examples
@@ -2638,23 +2636,12 @@ class BetaApIsClient:
2638
2636
  client = Samsara(
2639
2637
  token="YOUR_TOKEN",
2640
2638
  )
2641
- client.beta_ap_is.get_safety_events_v_2_stream(
2642
- start_time="startTime",
2639
+ client.beta_ap_is.get_report_run_data(
2640
+ id="id",
2643
2641
  )
2644
2642
  """
2645
- _response = self._raw_client.get_safety_events_v_2_stream(
2646
- start_time=start_time,
2647
- end_time=end_time,
2648
- asset_ids=asset_ids,
2649
- driver_ids=driver_ids,
2650
- tag_ids=tag_ids,
2651
- assigned_coaches=assigned_coaches,
2652
- behavior_labels=behavior_labels,
2653
- event_states=event_states,
2654
- include_asset=include_asset,
2655
- include_driver=include_driver,
2656
- after=after,
2657
- request_options=request_options,
2643
+ _response = self._raw_client.get_report_run_data(
2644
+ id=id, after=after, limit=limit, request_options=request_options
2658
2645
  )
2659
2646
  return _response.data
2660
2647
 
@@ -3037,393 +3024,98 @@ class BetaApIsClient:
3037
3024
  )
3038
3025
  return _response.data
3039
3026
 
3040
- def post_training_assignments(
3027
+
3028
+ class AsyncBetaApIsClient:
3029
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
3030
+ self._raw_client = AsyncRawBetaApIsClient(client_wrapper=client_wrapper)
3031
+
3032
+ @property
3033
+ def with_raw_response(self) -> AsyncRawBetaApIsClient:
3034
+ """
3035
+ Retrieves a raw implementation of this client that returns raw responses.
3036
+
3037
+ Returns
3038
+ -------
3039
+ AsyncRawBetaApIsClient
3040
+ """
3041
+ return self._raw_client
3042
+
3043
+ async def get_depreciation_transactions(
3041
3044
  self,
3042
3045
  *,
3043
- course_id: str,
3044
- due_at_time: str,
3045
- learner_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3046
+ start_time: typing.Optional[dt.datetime] = None,
3047
+ end_time: typing.Optional[dt.datetime] = None,
3048
+ asset_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3049
+ after: typing.Optional[str] = None,
3046
3050
  request_options: typing.Optional[RequestOptions] = None,
3047
- ) -> TrainingAssignmentsPostTrainingAssignmentsResponseBody:
3051
+ ) -> DepreciationGetDepreciationTransactionsResponseBody:
3048
3052
  """
3049
- Create training assignments. Existing assignments will remain unchanged.
3050
-
3051
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Training APIs enabled for your organization.
3053
+ Returns depreciation and adjustment transactions for assets. Transactions are returned ordered by updatedAt in ascending order (oldest to newest). Use startTime parameter for incremental sync.
3052
3054
 
3053
- <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3055
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3054
3056
 
3055
- To use this endpoint, select **Write Training Assignments** under the Training Assignments 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>
3057
+ To use this endpoint, select **Read Assets** under the Assets 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>
3056
3058
 
3057
3059
 
3058
3060
  **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.
3059
3061
 
3060
3062
  Parameters
3061
3063
  ----------
3062
- course_id : str
3063
- String for the course ID.
3064
+ start_time : typing.Optional[dt.datetime]
3065
+ RFC 3339 timestamp. Returns transactions updated after this time. Compared against updatedAt. If not provided, returns all transactions. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
3064
3066
 
3065
- due_at_time : str
3066
- Due date of the training assignment in RFC 3339 format. Millisecond precision and timezones are supported.
3067
+ end_time : typing.Optional[dt.datetime]
3068
+ RFC 3339 timestamp. Returns transactions updated before this time. Compared against updatedAt. If not provided, behaves as an unending feed of changes. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
3069
+
3070
+ asset_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3071
+ Filter by asset IDs. Up to 50 ids.
3067
3072
 
3068
- learner_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3069
- Optional string of comma separated learner IDs. If learner ID is present, training assignments for the specified learner(s) will be returned. Max value for this value is 100 objects. Example: `learnerIds=driver-281474,driver-46282156`
3073
+ after : typing.Optional[str]
3074
+ If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
3070
3075
 
3071
3076
  request_options : typing.Optional[RequestOptions]
3072
3077
  Request-specific configuration.
3073
3078
 
3074
3079
  Returns
3075
3080
  -------
3076
- TrainingAssignmentsPostTrainingAssignmentsResponseBody
3081
+ DepreciationGetDepreciationTransactionsResponseBody
3077
3082
  OK response.
3078
3083
 
3079
3084
  Examples
3080
3085
  --------
3081
- from samsara import Samsara
3086
+ import asyncio
3082
3087
 
3083
- client = Samsara(
3088
+ from samsara import AsyncSamsara
3089
+
3090
+ client = AsyncSamsara(
3084
3091
  token="YOUR_TOKEN",
3085
3092
  )
3086
- client.beta_ap_is.post_training_assignments(
3087
- course_id="courseId",
3088
- due_at_time="dueAtTime",
3089
- )
3093
+
3094
+
3095
+ async def main() -> None:
3096
+ await client.beta_ap_is.get_depreciation_transactions()
3097
+
3098
+
3099
+ asyncio.run(main())
3090
3100
  """
3091
- _response = self._raw_client.post_training_assignments(
3092
- course_id=course_id, due_at_time=due_at_time, learner_ids=learner_ids, request_options=request_options
3101
+ _response = await self._raw_client.get_depreciation_transactions(
3102
+ start_time=start_time, end_time=end_time, asset_ids=asset_ids, after=after, request_options=request_options
3093
3103
  )
3094
3104
  return _response.data
3095
3105
 
3096
- def delete_training_assignments(
3106
+ async def get_assets_inputs(
3097
3107
  self,
3098
3108
  *,
3109
+ type: GetAssetsInputsRequestType,
3110
+ start_time: str,
3099
3111
  ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3112
+ after: typing.Optional[str] = None,
3113
+ end_time: typing.Optional[str] = None,
3114
+ include_external_ids: typing.Optional[bool] = None,
3115
+ include_tags: typing.Optional[bool] = None,
3116
+ include_attributes: typing.Optional[bool] = None,
3100
3117
  request_options: typing.Optional[RequestOptions] = None,
3101
- ) -> None:
3102
- """
3103
- This endpoint supports batch deletion operations. The response does not indicate which specific deletions, if any, have failed. On a successful deletion or partial failure, a ‘204 No Content’ status is returned.
3104
-
3105
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Training APIs enabled for your organization.
3106
-
3107
- <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3108
-
3109
- To use this endpoint, select **Write Training Assignments** under the Training Assignments 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>
3110
-
3111
-
3112
- **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.
3113
-
3114
- Parameters
3115
- ----------
3116
- ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3117
- String of comma separated assignments IDs. Max value for this value is 100 objects .Example: `ids=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
3118
-
3119
- request_options : typing.Optional[RequestOptions]
3120
- Request-specific configuration.
3121
-
3122
- Returns
3123
- -------
3124
- None
3125
-
3126
- Examples
3127
- --------
3128
- from samsara import Samsara
3129
-
3130
- client = Samsara(
3131
- token="YOUR_TOKEN",
3132
- )
3133
- client.beta_ap_is.delete_training_assignments()
3134
- """
3135
- _response = self._raw_client.delete_training_assignments(ids=ids, request_options=request_options)
3136
- return _response.data
3137
-
3138
- def patch_training_assignments(
3139
- self,
3140
- *,
3141
- due_at_time: str,
3142
- ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3143
- request_options: typing.Optional[RequestOptions] = None,
3144
- ) -> TrainingAssignmentsPatchTrainingAssignmentsResponseBody:
3145
- """
3146
- Update training assignments.
3147
-
3148
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Training APIs enabled for your organization.
3149
-
3150
- <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3151
-
3152
- To use this endpoint, select **Write Training Assignments** under the Training Assignments 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>
3153
-
3154
-
3155
- **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.
3156
-
3157
- Parameters
3158
- ----------
3159
- due_at_time : str
3160
- Due date of the training assignment in RFC 3339 format. Millisecond precision and timezones are supported.
3161
-
3162
- ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3163
- String of comma separated assignments IDs. Max value for this value is 100 objects .Example: `ids=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
3164
-
3165
- request_options : typing.Optional[RequestOptions]
3166
- Request-specific configuration.
3167
-
3168
- Returns
3169
- -------
3170
- TrainingAssignmentsPatchTrainingAssignmentsResponseBody
3171
- OK response.
3172
-
3173
- Examples
3174
- --------
3175
- from samsara import Samsara
3176
-
3177
- client = Samsara(
3178
- token="YOUR_TOKEN",
3179
- )
3180
- client.beta_ap_is.patch_training_assignments(
3181
- due_at_time="dueAtTime",
3182
- )
3183
- """
3184
- _response = self._raw_client.patch_training_assignments(
3185
- due_at_time=due_at_time, ids=ids, request_options=request_options
3186
- )
3187
- return _response.data
3188
-
3189
- def get_training_assignments_stream(
3190
- self,
3191
- *,
3192
- start_time: str,
3193
- after: typing.Optional[str] = None,
3194
- end_time: typing.Optional[str] = None,
3195
- learner_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3196
- course_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3197
- status: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3198
- request_options: typing.Optional[RequestOptions] = None,
3199
- ) -> TrainingAssignmentsGetTrainingAssignmentsStreamResponseBody:
3200
- """
3201
- Returns all training assignments data that has been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don't include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call.
3202
-
3203
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Training APIs enabled for your organization.
3204
-
3205
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3206
-
3207
- To use this endpoint, select **Read Training Assignments** under the Training Assignments 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>
3208
-
3209
-
3210
- **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.
3211
-
3212
- Parameters
3213
- ----------
3214
- start_time : str
3215
- A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
3216
-
3217
- after : typing.Optional[str]
3218
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
3219
-
3220
- end_time : typing.Optional[str]
3221
- An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
3222
-
3223
- learner_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3224
- Optional string of comma separated learner IDs. If learner ID is present, training assignments for the specified learner(s) will be returned. Max value for this value is 100 objects. Example: `learnerIds=driver-281474,driver-46282156`
3225
-
3226
- course_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3227
- Optional string of comma separated course IDs. If course ID is present, training assignments for the specified course ID(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `courseIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
3228
-
3229
- status : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3230
- Optional string of comma separated values. If status is present, training assignments for the specified status(s) will be returned. Valid values: "notStarted", "inProgress", "completed". Defaults to returning all courses.
3231
-
3232
- request_options : typing.Optional[RequestOptions]
3233
- Request-specific configuration.
3234
-
3235
- Returns
3236
- -------
3237
- TrainingAssignmentsGetTrainingAssignmentsStreamResponseBody
3238
- OK response.
3239
-
3240
- Examples
3241
- --------
3242
- from samsara import Samsara
3243
-
3244
- client = Samsara(
3245
- token="YOUR_TOKEN",
3246
- )
3247
- client.beta_ap_is.get_training_assignments_stream(
3248
- start_time="startTime",
3249
- )
3250
- """
3251
- _response = self._raw_client.get_training_assignments_stream(
3252
- start_time=start_time,
3253
- after=after,
3254
- end_time=end_time,
3255
- learner_ids=learner_ids,
3256
- course_ids=course_ids,
3257
- status=status,
3258
- request_options=request_options,
3259
- )
3260
- return _response.data
3261
-
3262
- def get_training_courses(
3263
- self,
3264
- *,
3265
- after: typing.Optional[str] = None,
3266
- course_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3267
- category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3268
- status: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3269
- request_options: typing.Optional[RequestOptions] = None,
3270
- ) -> TrainingCoursesGetTrainingCoursesResponseBody:
3271
- """
3272
- Returns all training courses data. Results are paginated.
3273
- Courses in the ‘draft’ status are excluded from the data returned by this endpoint.
3274
-
3275
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3276
-
3277
- To use this endpoint, select **Read Training Courses** under the Training Courses 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>
3278
-
3279
-
3280
- **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.
3281
-
3282
- Parameters
3283
- ----------
3284
- after : typing.Optional[str]
3285
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
3286
-
3287
- course_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3288
- Optional string of comma separated course IDs. If course ID is present, training assignments for the specified course ID(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `courseIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
3289
-
3290
- category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3291
- Optional string of comma separated course category IDs. If courseCategoryId is present, training courses for the specified course category(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `categoryIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
3292
-
3293
- status : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3294
- Optional string of comma separated values. If status is present, training courses with the specified status(s) will be returned. Valid values: “published”, “deleted”, “archived”. Defaults to returning all courses.
3295
-
3296
- request_options : typing.Optional[RequestOptions]
3297
- Request-specific configuration.
3298
-
3299
- Returns
3300
- -------
3301
- TrainingCoursesGetTrainingCoursesResponseBody
3302
- OK response.
3303
-
3304
- Examples
3305
- --------
3306
- from samsara import Samsara
3307
-
3308
- client = Samsara(
3309
- token="YOUR_TOKEN",
3310
- )
3311
- client.beta_ap_is.get_training_courses()
3312
- """
3313
- _response = self._raw_client.get_training_courses(
3314
- after=after,
3315
- course_ids=course_ids,
3316
- category_ids=category_ids,
3317
- status=status,
3318
- request_options=request_options,
3319
- )
3320
- return _response.data
3321
-
3322
- def get_trips(
3323
- self,
3324
- *,
3325
- start_time: str,
3326
- include_asset: typing.Optional[bool] = None,
3327
- completion_status: typing.Optional[GetTripsRequestCompletionStatus] = None,
3328
- end_time: typing.Optional[str] = None,
3329
- query_by: typing.Optional[GetTripsRequestQueryBy] = None,
3330
- after: typing.Optional[str] = None,
3331
- ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3332
- request_options: typing.Optional[RequestOptions] = None,
3333
- ) -> TripsGetTripsResponseBody:
3334
- """
3335
- This endpoint will return trips that have been collected for your organization based on the time parameters passed in. Results are paginated. Reach out to your Samsara Representative to have this API enabled for your organization.
3336
-
3337
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3338
-
3339
- To use this endpoint, select **Read Trips** under the Trips 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>
3340
-
3341
-
3342
- **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.
3343
-
3344
- Parameters
3345
- ----------
3346
- start_time : str
3347
- RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime` or `tripStartTime` depending on the queryBy parameter.
3348
-
3349
- include_asset : typing.Optional[bool]
3350
- Indicates whether or not to return expanded “asset” data
3351
-
3352
- completion_status : typing.Optional[GetTripsRequestCompletionStatus]
3353
- Filters trips based on a specific completion status Valid values: `inProgress`, `completed`, `all`
3354
-
3355
- end_time : typing.Optional[str]
3356
- RFC 3339 timestamp which is compared against `updatedAtTime` or `tripStartTime` depending on the queryBy parameter. If not provided then the endpoint behaves as an unending feed of changes.
3357
-
3358
- query_by : typing.Optional[GetTripsRequestQueryBy]
3359
- Decide which timestamp the `startTime` and `endTime` are compared to. Valid values: `updatedAtTime`, `tripStartTime`
3360
-
3361
- after : typing.Optional[str]
3362
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
3363
-
3364
- ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
3365
- Comma-separated list of asset IDs. Include up to 50 asset IDs.
3366
-
3367
- request_options : typing.Optional[RequestOptions]
3368
- Request-specific configuration.
3369
-
3370
- Returns
3371
- -------
3372
- TripsGetTripsResponseBody
3373
- OK response.
3374
-
3375
- Examples
3376
- --------
3377
- from samsara import Samsara
3378
-
3379
- client = Samsara(
3380
- token="YOUR_TOKEN",
3381
- )
3382
- client.beta_ap_is.get_trips(
3383
- start_time="startTime",
3384
- )
3385
- """
3386
- _response = self._raw_client.get_trips(
3387
- start_time=start_time,
3388
- include_asset=include_asset,
3389
- completion_status=completion_status,
3390
- end_time=end_time,
3391
- query_by=query_by,
3392
- after=after,
3393
- ids=ids,
3394
- request_options=request_options,
3395
- )
3396
- return _response.data
3397
-
3398
-
3399
- class AsyncBetaApIsClient:
3400
- def __init__(self, *, client_wrapper: AsyncClientWrapper):
3401
- self._raw_client = AsyncRawBetaApIsClient(client_wrapper=client_wrapper)
3402
-
3403
- @property
3404
- def with_raw_response(self) -> AsyncRawBetaApIsClient:
3405
- """
3406
- Retrieves a raw implementation of this client that returns raw responses.
3407
-
3408
- Returns
3409
- -------
3410
- AsyncRawBetaApIsClient
3411
- """
3412
- return self._raw_client
3413
-
3414
- async def get_assets_inputs(
3415
- self,
3416
- *,
3417
- type: GetAssetsInputsRequestType,
3418
- start_time: str,
3419
- ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3420
- after: typing.Optional[str] = None,
3421
- end_time: typing.Optional[str] = None,
3422
- include_external_ids: typing.Optional[bool] = None,
3423
- include_tags: typing.Optional[bool] = None,
3424
- include_attributes: typing.Optional[bool] = None,
3425
- request_options: typing.Optional[RequestOptions] = None,
3426
- ) -> AssetsInputsGetAssetsInputsResponseBody:
3118
+ ) -> AssetsInputsGetAssetsInputsResponseBody:
3427
3119
  """
3428
3120
  This endpoint will return data collected from the inputs of your organization's assets based on the time parameters passed in. Results are paginated. If you include an endTime, the endpoint will return data up until that point. If you don’t include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. The endpoint will only return data up until the endTime that has been processed by the server at the time of the original request. You will need to request the same [startTime, endTime) range again to receive data for assets processed after the original request time. This endpoint sorts data by time ascending.
3429
3121
 
@@ -4263,7 +3955,7 @@ class AsyncBetaApIsClient:
4263
3955
  relay_states=[
4264
3956
  UpdateEngineImmobilizerRelayStateRequestBodyRequestBody(
4265
3957
  id="relay1",
4266
- is_open=False,
3958
+ is_open=True,
4267
3959
  )
4268
3960
  ],
4269
3961
  )
@@ -4557,10 +4249,10 @@ class AsyncBetaApIsClient:
4557
4249
  Optional string of comma separated asset IDs. If asset ID is present, events for the specified asset(s) will be returned. Max for this value is 2000 objects. (Example: 281474982859091,281471982957527)
4558
4250
 
4559
4251
  detection_behavior_labels : typing.Optional[typing.Union[str, typing.Sequence[str]]]
4560
- Optional string of comma separated labels to filter behavior labels. Uses OR semantics for filtering. An empty list allows all values. Valid values: `acceleration`, `braking`, `crash`, `drowsy`, `eatingDrinking`, `edgeRailroadCrossingViolation`, `followingDistance`, `forwardCollisionWarning`, `genericDistraction`, `harshTurn`, `laneDeparture`, `maxSpeed`, `mobileUsage`, `noSeatbelt`, `obstructedCamera`, `passenger`, `policyViolationMask`, `rollingStop`, `rolloverProtection`, `smoking`, `speeding`, `unsafeParking`, `vulnerableRoadUserCollisionWarning`, `yawControl`. (Example: rollingStop,obstructedCamera,noSeatbelt)
4252
+ Optional string of comma separated labels to filter behavior labels. Uses OR semantics for filtering. An empty list allows all values. Valid values: `acceleration`, `braking`, `crash`, `drowsy`, `eatingDrinking`, `edgeRailroadCrossingViolation`, `followingDistance`, `forwardCollisionWarning`, `genericDistraction`, `harshTurn`, `heavySpeeding`, `laneDeparture`, `lightSpeeding`, `maxSpeed`, `mobileUsage`, `moderateSpeeding`, `noSeatbelt`, `obstructedCamera`, `passenger`, `policyViolationMask`, `ranRedLight`, `rearCollisionWarning`, `rollingStop`, `rolloverProtection`, `severeSpeeding`, `smoking`, `speeding`, `unsafeParking`, `vehicleInBlindSpotWarning`, `vulnerableRoadUserCollisionWarning`, `yawControl`. (Example: rollingStop,obstructedCamera,noSeatbelt)
4561
4253
 
4562
4254
  inbox_filter_reason : typing.Optional[typing.Union[str, typing.Sequence[str]]]
4563
- Optional string of comma separated reasons to filter detections. Uses OR semantics for filtering. An empty list allows all values. Valid values: `overDailyLimit`, `overHourlyLimit`, `overTripLimit`, `belowConfidenceThreshold`, `belowSeverityThreshold`, `overEventRateLimit`, `geofenceFilter`, `belowNudgeThreshold`, `belowSpeedThreshold`, `nighttimeFilter`, `speedingFilter`, `unknown`. (Example: overDailyLimit,overHourlyLimit,belowConfidenceThreshold)
4255
+ Optional string of comma separated reasons to filter detections. Uses OR semantics for filtering. An empty list allows all values. Valid values: `overDailyLimit`, `overHourlyLimit`, `overTripLimit`, `belowConfidenceThreshold`, `belowSeverityThreshold`, `overEventRateLimit`, `geofenceFilter`, `belowNudgeThreshold`, `belowSpeedThreshold`, `nighttimeFilter`, `speedingFilter`, `inCabAlertOnly`, `unknown`. (Example: overDailyLimit,overHourlyLimit,belowConfidenceThreshold)
4564
4256
 
4565
4257
  inbox_event : typing.Optional[bool]
4566
4258
  Indicates whether or not to return detections with an associated Safety Inbox event. An empty entry allows all values. (Example: true)
@@ -4635,6 +4327,9 @@ class AsyncBetaApIsClient:
4635
4327
  include_health: typing.Optional[bool] = None,
4636
4328
  after: typing.Optional[str] = None,
4637
4329
  limit: typing.Optional[int] = None,
4330
+ include_tags: typing.Optional[bool] = None,
4331
+ tag_ids: typing.Optional[str] = None,
4332
+ parent_tag_ids: typing.Optional[str] = None,
4638
4333
  request_options: typing.Optional[RequestOptions] = None,
4639
4334
  ) -> DevicesGetDevicesResponseBody:
4640
4335
  """
@@ -4666,11 +4361,20 @@ class AsyncBetaApIsClient:
4666
4361
  limit : typing.Optional[int]
4667
4362
  The limit for how many objects will be in the response. Default and max for this value is 100 objects.
4668
4363
 
4669
- request_options : typing.Optional[RequestOptions]
4670
- Request-specific configuration.
4364
+ include_tags : typing.Optional[bool]
4365
+ Optional boolean to control whether tags are returned in the response. Defaults to false.
4671
4366
 
4672
- Returns
4673
- -------
4367
+ tag_ids : typing.Optional[str]
4368
+ A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`
4369
+
4370
+ parent_tag_ids : typing.Optional[str]
4371
+ A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`
4372
+
4373
+ request_options : typing.Optional[RequestOptions]
4374
+ Request-specific configuration.
4375
+
4376
+ Returns
4377
+ -------
4674
4378
  DevicesGetDevicesResponseBody
4675
4379
  OK response.
4676
4380
 
@@ -4697,45 +4401,52 @@ class AsyncBetaApIsClient:
4697
4401
  include_health=include_health,
4698
4402
  after=after,
4699
4403
  limit=limit,
4404
+ include_tags=include_tags,
4405
+ tag_ids=tag_ids,
4406
+ parent_tag_ids=parent_tag_ids,
4700
4407
  request_options=request_options,
4701
4408
  )
4702
4409
  return _response.data
4703
4410
 
4704
- async def get_driver_trailer_assignments(
4411
+ async def get_engine_immobilizer_states(
4705
4412
  self,
4706
4413
  *,
4707
- driver_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
4414
+ vehicle_ids: str,
4415
+ start_time: str,
4416
+ end_time: typing.Optional[str] = None,
4708
4417
  after: typing.Optional[str] = None,
4709
- include_external_ids: typing.Optional[bool] = None,
4710
4418
  request_options: typing.Optional[RequestOptions] = None,
4711
- ) -> TrailerAssignmentsGetDriverTrailerAssignmentsResponseBody:
4419
+ ) -> EngineImmobilizerGetEngineImmobilizerStatesResponseBody:
4712
4420
  """
4713
- Get currently active driver-trailer assignments for driver.
4421
+ 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.
4714
4422
 
4715
4423
  <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4716
4424
 
4717
- To use this endpoint, select **Read Assignments** under the Assignments 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>
4425
+ To use this endpoint, select **Read Vehicle Immobilization** under the Vehicles 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>
4718
4426
 
4719
4427
 
4720
4428
  **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.
4721
4429
 
4722
4430
  Parameters
4723
4431
  ----------
4724
- driver_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
4725
- A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`
4432
+ vehicle_ids : str
4433
+ A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`
4434
+
4435
+ start_time : str
4436
+ A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
4437
+
4438
+ end_time : typing.Optional[str]
4439
+ An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
4726
4440
 
4727
4441
  after : typing.Optional[str]
4728
4442
  If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
4729
4443
 
4730
- include_external_ids : typing.Optional[bool]
4731
- Optional boolean indicating whether to return external IDs on supported entities
4732
-
4733
4444
  request_options : typing.Optional[RequestOptions]
4734
4445
  Request-specific configuration.
4735
4446
 
4736
4447
  Returns
4737
4448
  -------
4738
- TrailerAssignmentsGetDriverTrailerAssignmentsResponseBody
4449
+ EngineImmobilizerGetEngineImmobilizerStatesResponseBody
4739
4450
  OK response.
4740
4451
 
4741
4452
  Examples
@@ -4750,54 +4461,54 @@ class AsyncBetaApIsClient:
4750
4461
 
4751
4462
 
4752
4463
  async def main() -> None:
4753
- await client.beta_ap_is.get_driver_trailer_assignments()
4464
+ await client.beta_ap_is.get_engine_immobilizer_states(
4465
+ vehicle_ids="vehicleIds",
4466
+ start_time="startTime",
4467
+ )
4754
4468
 
4755
4469
 
4756
4470
  asyncio.run(main())
4757
4471
  """
4758
- _response = await self._raw_client.get_driver_trailer_assignments(
4759
- driver_ids=driver_ids,
4472
+ _response = await self._raw_client.get_engine_immobilizer_states(
4473
+ vehicle_ids=vehicle_ids,
4474
+ start_time=start_time,
4475
+ end_time=end_time,
4760
4476
  after=after,
4761
- include_external_ids=include_external_ids,
4762
4477
  request_options=request_options,
4763
4478
  )
4764
4479
  return _response.data
4765
4480
 
4766
- async def create_driver_trailer_assignment(
4481
+ async def start_function_run(
4767
4482
  self,
4483
+ name: str,
4768
4484
  *,
4769
- driver_id: str,
4770
- trailer_id: str,
4771
- start_time: typing.Optional[str] = OMIT,
4485
+ params_override: FunctionsStartFunctionRunRequestBodyParamsOverride,
4772
4486
  request_options: typing.Optional[RequestOptions] = None,
4773
- ) -> TrailerAssignmentsCreateDriverTrailerAssignmentResponseBody:
4487
+ ) -> FunctionsStartFunctionRunResponseBody:
4774
4488
  """
4775
- Create a new driver-trailer assignment
4489
+ Start an asynchronous run for the specified Function. This endpoint allows you to override parameters available at runtime.
4776
4490
 
4777
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4491
+ <b>Rate limit:</b> 2 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4778
4492
 
4779
- To use this endpoint, select **Write Assignments** under the Assignments 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>
4493
+ To use this endpoint, select **Write Functions** under the Closed Beta 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>
4780
4494
 
4781
4495
 
4782
4496
  **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.
4783
4497
 
4784
4498
  Parameters
4785
4499
  ----------
4786
- driver_id : str
4787
- ID of the driver. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the driver.
4788
-
4789
- trailer_id : str
4790
- ID of the trailer. This can be either a unique Samsara ID or an [external ID](https://developers.samsara.com/docs/external-ids) for the trailer.
4500
+ name : str
4501
+ The name of the Function to run.
4791
4502
 
4792
- start_time : typing.Optional[str]
4793
- The start time in RFC 3339 format. The time needs to be current or within the past 7 days. Defaults to now if not provided
4503
+ params_override : FunctionsStartFunctionRunRequestBodyParamsOverride
4504
+ Parameter overrides for the Function execution. Can be an empty object but must be provided.
4794
4505
 
4795
4506
  request_options : typing.Optional[RequestOptions]
4796
4507
  Request-specific configuration.
4797
4508
 
4798
4509
  Returns
4799
4510
  -------
4800
- TrailerAssignmentsCreateDriverTrailerAssignmentResponseBody
4511
+ FunctionsStartFunctionRunResponseBody
4801
4512
  OK response.
4802
4513
 
4803
4514
  Examples
@@ -4805,6 +4516,9 @@ class AsyncBetaApIsClient:
4805
4516
  import asyncio
4806
4517
 
4807
4518
  from samsara import AsyncSamsara
4519
+ from samsara.beta_ap_is import (
4520
+ FunctionsStartFunctionRunRequestBodyParamsOverride,
4521
+ )
4808
4522
 
4809
4523
  client = AsyncSamsara(
4810
4524
  token="YOUR_TOKEN",
@@ -4812,46 +4526,54 @@ class AsyncBetaApIsClient:
4812
4526
 
4813
4527
 
4814
4528
  async def main() -> None:
4815
- await client.beta_ap_is.create_driver_trailer_assignment(
4816
- driver_id="494123",
4817
- trailer_id="12345",
4529
+ await client.beta_ap_is.start_function_run(
4530
+ name="name",
4531
+ params_override=FunctionsStartFunctionRunRequestBodyParamsOverride(),
4818
4532
  )
4819
4533
 
4820
4534
 
4821
4535
  asyncio.run(main())
4822
4536
  """
4823
- _response = await self._raw_client.create_driver_trailer_assignment(
4824
- driver_id=driver_id, trailer_id=trailer_id, start_time=start_time, request_options=request_options
4537
+ _response = await self._raw_client.start_function_run(
4538
+ name, params_override=params_override, request_options=request_options
4825
4539
  )
4826
4540
  return _response.data
4827
4541
 
4828
- async def update_driver_trailer_assignment(
4829
- self, *, id: str, end_time: str, request_options: typing.Optional[RequestOptions] = None
4830
- ) -> TrailerAssignmentsUpdateDriverTrailerAssignmentResponseBody:
4542
+ async def update_shipping_docs(
4543
+ self,
4544
+ *,
4545
+ hos_date: str,
4546
+ driver_id: str,
4547
+ shipping_docs: str,
4548
+ request_options: typing.Optional[RequestOptions] = None,
4549
+ ) -> HosDailyLogsUpdateShippingDocsResponseBody:
4831
4550
  """
4832
- Update an existing driver-trailer assignment.
4551
+ Update the shippingDocs field of an existing assignment.
4833
4552
 
4834
4553
  <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4835
4554
 
4836
- To use this endpoint, select **Write Assignments** under the Assignments 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>
4555
+ To use this endpoint, select **Write ELD Hours of Service (US)** 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>
4837
4556
 
4838
4557
 
4839
4558
  **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.
4840
4559
 
4841
4560
  Parameters
4842
4561
  ----------
4843
- id : str
4844
- Samsara ID for the assignment.
4562
+ hos_date : str
4563
+ A start date in yyyy-mm-dd format. Required.
4845
4564
 
4846
- end_time : str
4847
- The end time in RFC 3339 format. The end time should not be in the future
4565
+ driver_id : str
4566
+ ID of the driver for whom the duty status is being set.
4567
+
4568
+ shipping_docs : str
4569
+ ShippingDocs associated with the driver for the day.
4848
4570
 
4849
4571
  request_options : typing.Optional[RequestOptions]
4850
4572
  Request-specific configuration.
4851
4573
 
4852
4574
  Returns
4853
4575
  -------
4854
- TrailerAssignmentsUpdateDriverTrailerAssignmentResponseBody
4576
+ HosDailyLogsUpdateShippingDocsResponseBody
4855
4577
  OK response.
4856
4578
 
4857
4579
  Examples
@@ -4866,58 +4588,73 @@ class AsyncBetaApIsClient:
4866
4588
 
4867
4589
 
4868
4590
  async def main() -> None:
4869
- await client.beta_ap_is.update_driver_trailer_assignment(
4870
- id="id",
4871
- end_time="2019-06-13T19:08:25Z",
4591
+ await client.beta_ap_is.update_shipping_docs(
4592
+ hos_date="hosDate",
4593
+ driver_id="driverID",
4594
+ shipping_docs="ShippingID1, ShippingID2",
4872
4595
  )
4873
4596
 
4874
4597
 
4875
4598
  asyncio.run(main())
4876
4599
  """
4877
- _response = await self._raw_client.update_driver_trailer_assignment(
4878
- id=id, end_time=end_time, request_options=request_options
4600
+ _response = await self._raw_client.update_shipping_docs(
4601
+ hos_date=hos_date, driver_id=driver_id, shipping_docs=shipping_docs, request_options=request_options
4879
4602
  )
4880
4603
  return _response.data
4881
4604
 
4882
- async def create_driver_auth_token(
4605
+ async def list_hub_custom_properties(
4883
4606
  self,
4884
4607
  *,
4885
- code: str,
4886
- external_id: typing.Optional[str] = OMIT,
4887
- id: typing.Optional[int] = OMIT,
4888
- username: typing.Optional[str] = OMIT,
4608
+ hub_id: str,
4609
+ custom_property_ids: typing.Optional[str] = None,
4610
+ custom_property_names: typing.Optional[str] = None,
4611
+ start_time: typing.Optional[dt.datetime] = None,
4612
+ end_time: typing.Optional[dt.datetime] = None,
4613
+ after: typing.Optional[str] = None,
4614
+ limit: typing.Optional[int] = None,
4889
4615
  request_options: typing.Optional[RequestOptions] = None,
4890
- ) -> DriversAuthTokenCreateDriverAuthTokenResponseBody:
4616
+ ) -> HubCustomPropertiesListHubCustomPropertiesResponseBody:
4891
4617
  """
4892
- Creates a short-lived auth token for a driver.
4618
+ Retrieve custom properties for a specific hub.
4893
4619
 
4894
- <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>).
4620
+ **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.
4621
+
4622
+ <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4895
4623
 
4896
- To use this endpoint, select **Write Driver Auth Token** under the Closed Beta 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>
4624
+ To use this endpoint, select **Read Routes** under the Driver Workflow 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>
4897
4625
 
4898
4626
 
4899
4627
  **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.
4900
4628
 
4901
4629
  Parameters
4902
4630
  ----------
4903
- code : str
4904
- Required. Random 12+ character string, used with the auth token to help secure the client from intercepted tokens.
4631
+ hub_id : str
4632
+ The hub identifier
4633
+
4634
+ custom_property_ids : typing.Optional[str]
4635
+ A comma-separated list of custom property IDs that can be used for filtering.
4905
4636
 
4906
- external_id : typing.Optional[str]
4907
- Optional. External ID of the driver, in the format `key:value` (e.g., `payrollId:ABFS18600`). One of `id`, `externalId`, or `username` is required.
4637
+ custom_property_names : typing.Optional[str]
4638
+ A comma-separated list of custom property names that can be used for filtering.
4639
+
4640
+ start_time : typing.Optional[dt.datetime]
4641
+ Time filter of when the custom property was updated, in RFC 3339 format
4642
+
4643
+ end_time : typing.Optional[dt.datetime]
4644
+ Time filter of when the custom property was updated, in RFC 3339 format
4908
4645
 
4909
- id : typing.Optional[int]
4910
- Optional. Samsara ID of the driver. One of `id`, `externalId`, or `username` is required.
4646
+ after : typing.Optional[str]
4647
+ If specified, should be the endCursor from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
4911
4648
 
4912
- username : typing.Optional[str]
4913
- Optional. Username of the driver. This is the login identifier configured when the driver is created. One of `id`, `externalId`, or `username` is required.
4649
+ limit : typing.Optional[int]
4650
+ Maximum number of objects to return. Default and maximum is 100
4914
4651
 
4915
4652
  request_options : typing.Optional[RequestOptions]
4916
4653
  Request-specific configuration.
4917
4654
 
4918
4655
  Returns
4919
4656
  -------
4920
- DriversAuthTokenCreateDriverAuthTokenResponseBody
4657
+ HubCustomPropertiesListHubCustomPropertiesResponseBody
4921
4658
  OK response.
4922
4659
 
4923
4660
  Examples
@@ -4932,64 +4669,65 @@ class AsyncBetaApIsClient:
4932
4669
 
4933
4670
 
4934
4671
  async def main() -> None:
4935
- await client.beta_ap_is.create_driver_auth_token(
4936
- code="dp[gZc1wAigz4uGa0Hh",
4672
+ await client.beta_ap_is.list_hub_custom_properties(
4673
+ hub_id="hubId",
4937
4674
  )
4938
4675
 
4939
4676
 
4940
4677
  asyncio.run(main())
4941
4678
  """
4942
- _response = await self._raw_client.create_driver_auth_token(
4943
- code=code, external_id=external_id, id=id, username=username, request_options=request_options
4679
+ _response = await self._raw_client.list_hub_custom_properties(
4680
+ hub_id=hub_id,
4681
+ custom_property_ids=custom_property_ids,
4682
+ custom_property_names=custom_property_names,
4683
+ start_time=start_time,
4684
+ end_time=end_time,
4685
+ after=after,
4686
+ limit=limit,
4687
+ request_options=request_options,
4944
4688
  )
4945
4689
  return _response.data
4946
4690
 
4947
- async def get_engine_immobilizer_states(
4691
+ async def create_plan_orders(
4948
4692
  self,
4949
4693
  *,
4950
- vehicle_ids: str,
4951
- start_time: str,
4952
- end_time: typing.Optional[str] = None,
4953
- after: typing.Optional[str] = None,
4694
+ data: typing.Sequence[OrderInputObjectRequestBody],
4695
+ enable_update_existing_orders: typing.Optional[bool] = OMIT,
4954
4696
  request_options: typing.Optional[RequestOptions] = None,
4955
- ) -> EngineImmobilizerGetEngineImmobilizerStatesResponseBody:
4697
+ ) -> PlanOrdersCreatePlanOrdersResponseBody:
4956
4698
  """
4957
- 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.
4699
+ Create one or more orders (bulk upsert). Pass an array of order objects; any object whose customerOrderId already exists will be updated, otherwise a new order is created. Functions can return JSON arrays in this Order POST format. Orders are initially created at the plan level but will migrate to hub-level entities, with planId becoming optional in future versions.
4700
+
4701
+ **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.
4958
4702
 
4959
4703
  <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4960
4704
 
4961
- To use this endpoint, select **Read Vehicle Immobilization** under the Vehicles 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>
4705
+ To use this endpoint, select **Write Routes** under the Driver Workflow 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>
4962
4706
 
4963
4707
 
4964
4708
  **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.
4965
4709
 
4966
4710
  Parameters
4967
4711
  ----------
4968
- vehicle_ids : str
4969
- A filter on the data based on this comma-separated list of vehicle IDs and externalIds. Example: `vehicleIds=1234,5678,samsara.vin:1HGBH41JXMN109186`
4970
-
4971
- start_time : str
4972
- A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
4973
-
4974
- end_time : typing.Optional[str]
4975
- An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
4712
+ data : typing.Sequence[OrderInputObjectRequestBody]
4713
+ An array of order objects to be created or updated
4976
4714
 
4977
- after : typing.Optional[str]
4978
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
4715
+ enable_update_existing_orders : typing.Optional[bool]
4716
+ Enable update of existing orders if an order with the same customerOrderId exists. The input must match the same quantity dimensions as the existing order. If not provided, requests will fail if an order's customerOrderId already exists.
4979
4717
 
4980
4718
  request_options : typing.Optional[RequestOptions]
4981
4719
  Request-specific configuration.
4982
4720
 
4983
4721
  Returns
4984
4722
  -------
4985
- EngineImmobilizerGetEngineImmobilizerStatesResponseBody
4723
+ PlanOrdersCreatePlanOrdersResponseBody
4986
4724
  OK response.
4987
4725
 
4988
4726
  Examples
4989
4727
  --------
4990
4728
  import asyncio
4991
4729
 
4992
- from samsara import AsyncSamsara
4730
+ from samsara import AsyncSamsara, OrderInputObjectRequestBody
4993
4731
 
4994
4732
  client = AsyncSamsara(
4995
4733
  token="YOUR_TOKEN",
@@ -4997,54 +4735,55 @@ class AsyncBetaApIsClient:
4997
4735
 
4998
4736
 
4999
4737
  async def main() -> None:
5000
- await client.beta_ap_is.get_engine_immobilizer_states(
5001
- vehicle_ids="vehicleIds",
5002
- start_time="startTime",
4738
+ await client.beta_ap_is.create_plan_orders(
4739
+ data=[
4740
+ OrderInputObjectRequestBody(
4741
+ customer_order_id="ORDER-2024-001",
4742
+ hub_id="550e8400-e29b-41d4-a716-446655440000",
4743
+ plan_id="650e8400-e29b-41d4-a716-446655440023",
4744
+ )
4745
+ ],
5003
4746
  )
5004
4747
 
5005
4748
 
5006
4749
  asyncio.run(main())
5007
4750
  """
5008
- _response = await self._raw_client.get_engine_immobilizer_states(
5009
- vehicle_ids=vehicle_ids,
5010
- start_time=start_time,
5011
- end_time=end_time,
5012
- after=after,
5013
- request_options=request_options,
4751
+ _response = await self._raw_client.create_plan_orders(
4752
+ data=data, enable_update_existing_orders=enable_update_existing_orders, request_options=request_options
5014
4753
  )
5015
4754
  return _response.data
5016
4755
 
5017
- async def start_function_run(
4756
+ async def get_qualification_records(
5018
4757
  self,
5019
- name: str,
5020
4758
  *,
5021
- params_override: FunctionsStartFunctionRunRequestBodyParamsOverride,
4759
+ ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
4760
+ include_external_ids: typing.Optional[bool] = None,
5022
4761
  request_options: typing.Optional[RequestOptions] = None,
5023
- ) -> FunctionsStartFunctionRunResponseBody:
4762
+ ) -> QualificationsGetQualificationRecordsResponseBody:
5024
4763
  """
5025
- Start an asynchronous run for the specified Function. This endpoint allows you to override parameters available at runtime.
4764
+ Returns qualification records for the specified list of IDs.
5026
4765
 
5027
- <b>Rate limit:</b> 2 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4766
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5028
4767
 
5029
- To use this endpoint, select **Write Functions** under the Closed Beta 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>
4768
+ To use this endpoint, select **Read Qualification Records** under the Qualification Records 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>
5030
4769
 
5031
4770
 
5032
4771
  **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.
5033
4772
 
5034
4773
  Parameters
5035
4774
  ----------
5036
- name : str
5037
- The name of the Function to run.
4775
+ ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
4776
+ A comma-separated list containing up to 100 qualification record IDs to filter on. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a query parameter, use the following format: key:value.
5038
4777
 
5039
- params_override : FunctionsStartFunctionRunRequestBodyParamsOverride
5040
- Parameter overrides for the Function execution. Can be an empty object but must be provided.
4778
+ include_external_ids : typing.Optional[bool]
4779
+ If true, externalIds for qualification record and for the owner entity are returned.
5041
4780
 
5042
4781
  request_options : typing.Optional[RequestOptions]
5043
4782
  Request-specific configuration.
5044
4783
 
5045
4784
  Returns
5046
4785
  -------
5047
- FunctionsStartFunctionRunResponseBody
4786
+ QualificationsGetQualificationRecordsResponseBody
5048
4787
  OK response.
5049
4788
 
5050
4789
  Examples
@@ -5052,9 +4791,6 @@ class AsyncBetaApIsClient:
5052
4791
  import asyncio
5053
4792
 
5054
4793
  from samsara import AsyncSamsara
5055
- from samsara.beta_ap_is import (
5056
- FunctionsStartFunctionRunRequestBodyParamsOverride,
5057
- )
5058
4794
 
5059
4795
  client = AsyncSamsara(
5060
4796
  token="YOUR_TOKEN",
@@ -5062,253 +4798,67 @@ class AsyncBetaApIsClient:
5062
4798
 
5063
4799
 
5064
4800
  async def main() -> None:
5065
- await client.beta_ap_is.start_function_run(
5066
- name="name",
5067
- params_override=FunctionsStartFunctionRunRequestBodyParamsOverride(),
5068
- )
4801
+ await client.beta_ap_is.get_qualification_records()
5069
4802
 
5070
4803
 
5071
4804
  asyncio.run(main())
5072
4805
  """
5073
- _response = await self._raw_client.start_function_run(
5074
- name, params_override=params_override, request_options=request_options
4806
+ _response = await self._raw_client.get_qualification_records(
4807
+ ids=ids, include_external_ids=include_external_ids, request_options=request_options
5075
4808
  )
5076
4809
  return _response.data
5077
4810
 
5078
- async def update_shipping_docs(
4811
+ async def post_qualification_record(
5079
4812
  self,
5080
4813
  *,
5081
- hos_date: str,
5082
- driver_id: str,
5083
- shipping_docs: str,
4814
+ issue_date: dt.datetime,
4815
+ owner: QualificationOwnerRequestObjectRequestBody,
4816
+ qualification_type: QualificationTypeRequestObjectRequestBody,
4817
+ expiration_date: typing.Optional[dt.datetime] = OMIT,
4818
+ external_ids: typing.Optional[typing.Dict[str, str]] = OMIT,
4819
+ fields: typing.Optional[typing.Sequence[QualificationRecordRequestFieldInputObjectRequestBody]] = OMIT,
5084
4820
  request_options: typing.Optional[RequestOptions] = None,
5085
- ) -> HosDailyLogsUpdateShippingDocsResponseBody:
4821
+ ) -> QualificationsPostQualificationRecordResponseBody:
5086
4822
  """
5087
- Update the shippingDocs field of an existing assignment.
4823
+ Creates a new qualification record.
5088
4824
 
5089
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4825
+ <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>).
5090
4826
 
5091
- To use this endpoint, select **Write ELD Hours of Service (US)** 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>
4827
+ To use this endpoint, select **Write Qualification Records** under the Qualification Records 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>
5092
4828
 
5093
4829
 
5094
4830
  **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.
5095
4831
 
5096
4832
  Parameters
5097
4833
  ----------
5098
- hos_date : str
5099
- A start date in yyyy-mm-dd format. Required.
4834
+ issue_date : dt.datetime
4835
+ Issue/effective date. UTC timestamp in RFC 3339 format.
5100
4836
 
5101
- driver_id : str
5102
- ID of the driver for whom the duty status is being set.
4837
+ owner : QualificationOwnerRequestObjectRequestBody
5103
4838
 
5104
- shipping_docs : str
5105
- ShippingDocs associated with the driver for the day.
4839
+ qualification_type : QualificationTypeRequestObjectRequestBody
4840
+
4841
+ expiration_date : typing.Optional[dt.datetime]
4842
+ Expiration date. UTC timestamp in RFC 3339 format.
4843
+
4844
+ external_ids : typing.Optional[typing.Dict[str, str]]
4845
+ A map of external ids
4846
+
4847
+ fields : typing.Optional[typing.Sequence[QualificationRecordRequestFieldInputObjectRequestBody]]
4848
+ Other custom fields in a qualification record.
5106
4849
 
5107
4850
  request_options : typing.Optional[RequestOptions]
5108
4851
  Request-specific configuration.
5109
4852
 
5110
4853
  Returns
5111
4854
  -------
5112
- HosDailyLogsUpdateShippingDocsResponseBody
5113
- OK response.
4855
+ QualificationsPostQualificationRecordResponseBody
4856
+ Created response.
5114
4857
 
5115
4858
  Examples
5116
4859
  --------
5117
4860
  import asyncio
5118
-
5119
- from samsara import AsyncSamsara
5120
-
5121
- client = AsyncSamsara(
5122
- token="YOUR_TOKEN",
5123
- )
5124
-
5125
-
5126
- async def main() -> None:
5127
- await client.beta_ap_is.update_shipping_docs(
5128
- hos_date="hosDate",
5129
- driver_id="driverID",
5130
- shipping_docs="ShippingID1, ShippingID2",
5131
- )
5132
-
5133
-
5134
- asyncio.run(main())
5135
- """
5136
- _response = await self._raw_client.update_shipping_docs(
5137
- hos_date=hos_date, driver_id=driver_id, shipping_docs=shipping_docs, request_options=request_options
5138
- )
5139
- return _response.data
5140
-
5141
- async def create_plan_orders(
5142
- self,
5143
- *,
5144
- data: typing.Sequence[OrderInputObjectRequestBody],
5145
- enable_update_existing_orders: typing.Optional[bool] = OMIT,
5146
- request_options: typing.Optional[RequestOptions] = None,
5147
- ) -> PlanOrdersCreatePlanOrdersResponseBody:
5148
- """
5149
- Create one or more orders (bulk upsert). Pass an array of order objects; any object whose customerOrderId already exists will be updated, otherwise a new order is created. Functions can return JSON arrays in this Order POST format. Orders are initially created at the plan level but will migrate to hub-level entities, with planId becoming optional in future versions.
5150
-
5151
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.
5152
-
5153
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5154
-
5155
- To use this endpoint, select **Write Routes** under the Driver Workflow 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>
5156
-
5157
-
5158
- **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.
5159
-
5160
- Parameters
5161
- ----------
5162
- data : typing.Sequence[OrderInputObjectRequestBody]
5163
- An array of order objects to be created or updated
5164
-
5165
- enable_update_existing_orders : typing.Optional[bool]
5166
- Enable update of existing orders if an order with the same customerOrderId exists. The input must match the same quantity dimensions as the existing order. If not provided, requests will fail if an order's customerOrderId already exists.
5167
-
5168
- request_options : typing.Optional[RequestOptions]
5169
- Request-specific configuration.
5170
-
5171
- Returns
5172
- -------
5173
- PlanOrdersCreatePlanOrdersResponseBody
5174
- OK response.
5175
-
5176
- Examples
5177
- --------
5178
- import asyncio
5179
-
5180
- from samsara import AsyncSamsara, OrderInputObjectRequestBody
5181
-
5182
- client = AsyncSamsara(
5183
- token="YOUR_TOKEN",
5184
- )
5185
-
5186
-
5187
- async def main() -> None:
5188
- await client.beta_ap_is.create_plan_orders(
5189
- data=[
5190
- OrderInputObjectRequestBody(
5191
- customer_order_id="ORDER-2024-001",
5192
- hub_id="550e8400-e29b-41d4-a716-446655440000",
5193
- plan_id="650e8400-e29b-41d4-a716-446655440023",
5194
- )
5195
- ],
5196
- )
5197
-
5198
-
5199
- asyncio.run(main())
5200
- """
5201
- _response = await self._raw_client.create_plan_orders(
5202
- data=data, enable_update_existing_orders=enable_update_existing_orders, request_options=request_options
5203
- )
5204
- return _response.data
5205
-
5206
- async def get_qualification_records(
5207
- self,
5208
- *,
5209
- ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5210
- include_external_ids: typing.Optional[bool] = None,
5211
- request_options: typing.Optional[RequestOptions] = None,
5212
- ) -> QualificationsGetQualificationRecordsResponseBody:
5213
- """
5214
- Returns qualification records for the specified list of IDs.
5215
-
5216
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5217
-
5218
- To use this endpoint, select **Read Qualification Records** under the Qualification Records 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>
5219
-
5220
-
5221
- **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.
5222
-
5223
- Parameters
5224
- ----------
5225
- ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
5226
- A comma-separated list containing up to 100 qualification record IDs to filter on. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a query parameter, use the following format: key:value.
5227
-
5228
- include_external_ids : typing.Optional[bool]
5229
- If true, externalIds for qualification record and for the owner entity are returned.
5230
-
5231
- request_options : typing.Optional[RequestOptions]
5232
- Request-specific configuration.
5233
-
5234
- Returns
5235
- -------
5236
- QualificationsGetQualificationRecordsResponseBody
5237
- OK response.
5238
-
5239
- Examples
5240
- --------
5241
- import asyncio
5242
-
5243
- from samsara import AsyncSamsara
5244
-
5245
- client = AsyncSamsara(
5246
- token="YOUR_TOKEN",
5247
- )
5248
-
5249
-
5250
- async def main() -> None:
5251
- await client.beta_ap_is.get_qualification_records()
5252
-
5253
-
5254
- asyncio.run(main())
5255
- """
5256
- _response = await self._raw_client.get_qualification_records(
5257
- ids=ids, include_external_ids=include_external_ids, request_options=request_options
5258
- )
5259
- return _response.data
5260
-
5261
- async def post_qualification_record(
5262
- self,
5263
- *,
5264
- issue_date: dt.datetime,
5265
- owner: QualificationOwnerRequestObjectRequestBody,
5266
- qualification_type: QualificationTypeRequestObjectRequestBody,
5267
- expiration_date: typing.Optional[dt.datetime] = OMIT,
5268
- external_ids: typing.Optional[typing.Dict[str, str]] = OMIT,
5269
- fields: typing.Optional[typing.Sequence[QualificationRecordRequestFieldInputObjectRequestBody]] = OMIT,
5270
- request_options: typing.Optional[RequestOptions] = None,
5271
- ) -> QualificationsPostQualificationRecordResponseBody:
5272
- """
5273
- Creates a new qualification record.
5274
-
5275
- <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>).
5276
-
5277
- To use this endpoint, select **Write Qualification Records** under the Qualification Records 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>
5278
-
5279
-
5280
- **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.
5281
-
5282
- Parameters
5283
- ----------
5284
- issue_date : dt.datetime
5285
- Issue/effective date. UTC timestamp in RFC 3339 format.
5286
-
5287
- owner : QualificationOwnerRequestObjectRequestBody
5288
-
5289
- qualification_type : QualificationTypeRequestObjectRequestBody
5290
-
5291
- expiration_date : typing.Optional[dt.datetime]
5292
- Expiration date. UTC timestamp in RFC 3339 format.
5293
-
5294
- external_ids : typing.Optional[typing.Dict[str, str]]
5295
- A map of external ids
5296
-
5297
- fields : typing.Optional[typing.Sequence[QualificationRecordRequestFieldInputObjectRequestBody]]
5298
- Other custom fields in a qualification record.
5299
-
5300
- request_options : typing.Optional[RequestOptions]
5301
- Request-specific configuration.
5302
-
5303
- Returns
5304
- -------
5305
- QualificationsPostQualificationRecordResponseBody
5306
- Created response.
5307
-
5308
- Examples
5309
- --------
5310
- import asyncio
5311
- import datetime
4861
+ import datetime
5312
4862
 
5313
4863
  from samsara import (
5314
4864
  AsyncSamsara,
@@ -5550,7 +5100,7 @@ class AsyncBetaApIsClient:
5550
5100
  request_options: typing.Optional[RequestOptions] = None,
5551
5101
  ) -> QualificationsGetQualificationRecordsStreamResponseBody:
5552
5102
  """
5553
- Returns all qualification records that have been created or modified for your organization based on the time parameters passed in. Results are paginated and sorted by last modified time. If you include an endTime, the endpoint will return data up until that point (exclusive). If you dont include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call.
5103
+ Returns all qualification records that have been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don't include an endTime, the API will continue to poll with the pagination cursor that gets returned on every call. The hasNextPage response value will be true if there is no endTime specified and endCursor is nonempty.
5554
5104
 
5555
5105
  <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5556
5106
 
@@ -5807,10 +5357,6 @@ class AsyncBetaApIsClient:
5807
5357
  ) -> ReadingsListReadingsDefinitionsResponseBody:
5808
5358
  """
5809
5359
  An introspection endpoint for discovering the set of readings including their name, description, data type, unit, and other metadata.
5810
- Examples:
5811
- Diagnostic/Engine Readings: engineState, engineSpeed, fuelLevelPerc etc.
5812
- Level Monitoring Readings: defLevel, defLevelMilliPercent etc.
5813
- Smart Trailer Readings: reeferState etc.
5814
5360
 
5815
5361
  <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5816
5362
 
@@ -5876,20 +5422,6 @@ class AsyncBetaApIsClient:
5876
5422
  ) -> ReadingsGetReadingsHistoryResponseBody:
5877
5423
  """
5878
5424
  Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. End time of null implies endTime is infinite and all known readings are returned.
5879
- Example:
5880
- engineRpm Readings for entityId 212014918105584 between time 2025-01-27T19:22:30Z and 2025-01-27T19:25:00Z
5881
- "data": [
5882
- {
5883
- "entityId": "212014918105584",
5884
- "value": 807,
5885
- "happenedAtTime": "2025-01-27T19:22:30Z"
5886
- },
5887
- {
5888
- "entityId": "212014918105584",
5889
- "value": 811,
5890
- "happenedAtTime": "2025-01-27T19:24:30Z"
5891
- }
5892
- ],
5893
5425
 
5894
5426
  <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5895
5427
 
@@ -5913,7 +5445,7 @@ class AsyncBetaApIsClient:
5913
5445
  A filter on the data based on this comma-separated list of entity IDs or external IDs. If not set, all entities are returned.
5914
5446
 
5915
5447
  external_ids : typing.Optional[str]
5916
- A filter on the data based on this comma-separated list of external IDs.
5448
+ A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM)
5917
5449
 
5918
5450
  start_time : typing.Optional[str]
5919
5451
  A filter on the data that returns the last known data points with timestamps greater than or equal to this value. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z)
@@ -5983,16 +5515,6 @@ class AsyncBetaApIsClient:
5983
5515
  ) -> ReadingsGetReadingsSnapshotResponseBody:
5984
5516
  """
5985
5517
  An endpoint to get the last value of a reading for a set of entities at the specified time.
5986
- Example:
5987
- engineRpm Readings for entityId 212014918105584 at time 2025-04-16T20:49:19Z
5988
- "data": [
5989
- {
5990
- "readingId": "engineRpm",
5991
- "entityId": "212014918105584",
5992
- "value": 600,
5993
- "happenedAtTime": "2025-04-16T20:49:19Z"
5994
- }
5995
- ],
5996
5518
 
5997
5519
  <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5998
5520
 
@@ -6016,7 +5538,7 @@ class AsyncBetaApIsClient:
6016
5538
  A filter on the data based on this comma-separated list of entity IDs or external IDs. If not set, all entities are returned.
6017
5539
 
6018
5540
  external_ids : typing.Optional[str]
6019
- A filter on the data based on this comma-separated list of external IDs.
5541
+ A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM)
6020
5542
 
6021
5543
  as_of_time : typing.Optional[str]
6022
5544
  A filter on the data that returns the last known data points with timestamps less than or equal to this value. Defaults to now if not provided. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z)
@@ -6064,216 +5586,41 @@ class AsyncBetaApIsClient:
6064
5586
  )
6065
5587
  return _response.data
6066
5588
 
6067
- async def get_safety_events_v_2(
6068
- self,
6069
- *,
6070
- safety_event_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6071
- include_asset: typing.Optional[bool] = None,
6072
- include_driver: typing.Optional[bool] = None,
6073
- after: typing.Optional[str] = None,
6074
- request_options: typing.Optional[RequestOptions] = None,
6075
- ) -> SafetyEventsV2GetSafetyEventsV2ResponseBody:
6076
- """
6077
- This endpoint will return details for the specified safety events based on the parameters passed in. Results are paginated.
6078
-
6079
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6080
-
6081
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6082
-
6083
-
6084
- **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.
6085
-
6086
- Parameters
6087
- ----------
6088
- safety_event_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6089
- Required string of comma separated Safety Event IDs. Unique Samsara IDs (uuid) of the safety event.
6090
-
6091
- include_asset : typing.Optional[bool]
6092
- Indicates whether or not to return expanded “asset” data
6093
-
6094
- include_driver : typing.Optional[bool]
6095
- Indicates whether or not to return expanded “driver” data
6096
-
6097
- after : typing.Optional[str]
6098
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6099
-
6100
- request_options : typing.Optional[RequestOptions]
6101
- Request-specific configuration.
6102
-
6103
- Returns
6104
- -------
6105
- SafetyEventsV2GetSafetyEventsV2ResponseBody
6106
- OK response.
6107
-
6108
- Examples
6109
- --------
6110
- import asyncio
6111
-
6112
- from samsara import AsyncSamsara
6113
-
6114
- client = AsyncSamsara(
6115
- token="YOUR_TOKEN",
6116
- )
6117
-
6118
-
6119
- async def main() -> None:
6120
- await client.beta_ap_is.get_safety_events_v_2()
6121
-
6122
-
6123
- asyncio.run(main())
6124
- """
6125
- _response = await self._raw_client.get_safety_events_v_2(
6126
- safety_event_ids=safety_event_ids,
6127
- include_asset=include_asset,
6128
- include_driver=include_driver,
6129
- after=after,
6130
- request_options=request_options,
6131
- )
6132
- return _response.data
6133
-
6134
- async def get_safety_events_v_2_stream(
5589
+ async def get_report_configs(
6135
5590
  self,
6136
5591
  *,
6137
- start_time: str,
6138
- end_time: typing.Optional[str] = None,
6139
- asset_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6140
- driver_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6141
- tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6142
- assigned_coaches: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6143
- behavior_labels: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6144
- event_states: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6145
- include_asset: typing.Optional[bool] = None,
6146
- include_driver: typing.Optional[bool] = None,
6147
5592
  after: typing.Optional[str] = None,
5593
+ limit: typing.Optional[int] = None,
5594
+ ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6148
5595
  request_options: typing.Optional[RequestOptions] = None,
6149
- ) -> SafetyEventsV2GetSafetyEventsV2StreamResponseBody:
5596
+ ) -> ReportsGetReportConfigsResponseBody:
6150
5597
  """
6151
- This endpoint will return all safety events associated with your organization based on the parameters passed in. To get core endpoint data, select Read Safety Events & Scores under the Safety & Cameras category when creating or editing an API token. Read Camera Media permissions required to get Safety Event video media via this endpoint. If you include an endTime, the endpoint will return data up until that point. If you do not include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. Results are paginated.
5598
+ Get report configs created in the organization.
6152
5599
 
6153
5600
  <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6154
5601
 
6155
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
5602
+ To use this endpoint, select **Read Custom Reports** under the Custom Reports 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>
6156
5603
 
6157
5604
 
6158
5605
  **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.
6159
5606
 
6160
5607
  Parameters
6161
5608
  ----------
6162
- start_time : str
6163
- RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime` of the events.
6164
-
6165
- end_time : typing.Optional[str]
6166
- RFC 3339 timestamp which is compared against `updatedAtTime` of the events. If not provided then the endpoint behaves as an unending feed of changes.
6167
-
6168
- asset_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6169
- Optional string of comma separated asset IDs. If asset ID is present, events for the specified asset(s) will be returned. Limit of 2000 asset IDs.
6170
-
6171
- driver_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6172
- Optional string of comma separated driver IDs. If driver ID is present, events for the specified driver(s) will be returned. Limit of 2000 driver IDs.
6173
-
6174
- tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6175
- Optional string of comma separated tag IDs. If tag ID is present, events for the specified tag(s) will be returned. Limit of 2000 tag IDs.
6176
-
6177
- assigned_coaches : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6178
- Optional string of comma separated coach IDs to filter events assigned to a particular coach. Limit of 2000 coach IDs.
6179
-
6180
- behavior_labels : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6181
- Optional string of comma separated labels to filter behavior labels. Valid values: `Acceleration`, `AggressiveDriving`, `BluetoothHeadset`, `Braking`, `ContextConstructionOrWorkZone`, `ContextSnowyOrIcy`, `ContextVulnerableRoadUser`, `ContextWet`, `Crash`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshTurn`, `HeavySpeeding`, `HosViolation`, `Idling`, `Invalid`, `LaneDeparture`, `LateResponse`, `LeftTurn`, `LightSpeeding`, `MaxSpeed`, `MobileUsage`, `ModerateSpeeding`, `NearCollison`, `NearPedestrianCollision`, `NoSeatbelt`, `ObstructedCamera`, `OtherViolation`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `RanRedLight`, `Reversing`, `RollingStop`, `RolloverProtection`, `SevereSpeeding`, `Smoking`, `Speeding`, `UTurn`, `UnsafeManeuver`, `UnsafeParking`, `VulnerableRoadUserCollisionWarning`, `YawControl`
6182
-
6183
- event_states : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6184
- Optional string of comma separated values to filter event states. Valid values: `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized`
6185
-
6186
- include_asset : typing.Optional[bool]
6187
- Indicates whether or not to return expanded “asset” data
6188
-
6189
- include_driver : typing.Optional[bool]
6190
- Indicates whether or not to return expanded “driver” data
6191
-
6192
5609
  after : typing.Optional[str]
6193
5610
  If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6194
5611
 
6195
- request_options : typing.Optional[RequestOptions]
6196
- Request-specific configuration.
6197
-
6198
- Returns
6199
- -------
6200
- SafetyEventsV2GetSafetyEventsV2StreamResponseBody
6201
- OK response.
6202
-
6203
- Examples
6204
- --------
6205
- import asyncio
6206
-
6207
- from samsara import AsyncSamsara
6208
-
6209
- client = AsyncSamsara(
6210
- token="YOUR_TOKEN",
6211
- )
6212
-
6213
-
6214
- async def main() -> None:
6215
- await client.beta_ap_is.get_safety_events_v_2_stream(
6216
- start_time="startTime",
6217
- )
6218
-
6219
-
6220
- asyncio.run(main())
6221
- """
6222
- _response = await self._raw_client.get_safety_events_v_2_stream(
6223
- start_time=start_time,
6224
- end_time=end_time,
6225
- asset_ids=asset_ids,
6226
- driver_ids=driver_ids,
6227
- tag_ids=tag_ids,
6228
- assigned_coaches=assigned_coaches,
6229
- behavior_labels=behavior_labels,
6230
- event_states=event_states,
6231
- include_asset=include_asset,
6232
- include_driver=include_driver,
6233
- after=after,
6234
- request_options=request_options,
6235
- )
6236
- return _response.data
6237
-
6238
- async def get_driver_safety_scores(
6239
- self,
6240
- *,
6241
- end_time: str,
6242
- start_time: str,
6243
- driver_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6244
- after: typing.Optional[str] = None,
6245
- request_options: typing.Optional[RequestOptions] = None,
6246
- ) -> SafetyScoresGetDriverSafetyScoresResponseBody:
6247
- """
6248
- Get safety scores and overall risk factors for drivers.
6249
-
6250
- <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>).
6251
-
6252
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6253
-
6254
-
6255
- **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.
6256
-
6257
- Parameters
6258
- ----------
6259
- end_time : str
6260
- End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
6261
-
6262
- start_time : str
6263
- Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6264
-
6265
- driver_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6266
- Comma separated list of driver IDs to filter by. Include up to 100 IDs. Defaults to all drivers.
5612
+ limit : typing.Optional[int]
5613
+ Maximum number of configs to return
6267
5614
 
6268
- after : typing.Optional[str]
6269
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
5615
+ ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
5616
+ The list of report config IDs to retrieve. Include up to 10 report config IDs. If not provided, all configs will be returned.
6270
5617
 
6271
5618
  request_options : typing.Optional[RequestOptions]
6272
5619
  Request-specific configuration.
6273
5620
 
6274
5621
  Returns
6275
5622
  -------
6276
- SafetyScoresGetDriverSafetyScoresResponseBody
5623
+ ReportsGetReportConfigsResponseBody
6277
5624
  OK response.
6278
5625
 
6279
5626
  Examples
@@ -6288,132 +5635,51 @@ class AsyncBetaApIsClient:
6288
5635
 
6289
5636
 
6290
5637
  async def main() -> None:
6291
- await client.beta_ap_is.get_driver_safety_scores(
6292
- end_time="endTime",
6293
- start_time="startTime",
6294
- )
5638
+ await client.beta_ap_is.get_report_configs()
6295
5639
 
6296
5640
 
6297
5641
  asyncio.run(main())
6298
5642
  """
6299
- _response = await self._raw_client.get_driver_safety_scores(
6300
- end_time=end_time,
6301
- start_time=start_time,
6302
- driver_ids=driver_ids,
6303
- after=after,
6304
- request_options=request_options,
5643
+ _response = await self._raw_client.get_report_configs(
5644
+ after=after, limit=limit, ids=ids, request_options=request_options
6305
5645
  )
6306
5646
  return _response.data
6307
5647
 
6308
- async def get_driver_safety_score_trips(
5648
+ async def get_datasets(
6309
5649
  self,
6310
5650
  *,
6311
- end_time: str,
6312
- start_time: str,
6313
- driver_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5651
+ ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6314
5652
  after: typing.Optional[str] = None,
5653
+ limit: typing.Optional[int] = None,
6315
5654
  request_options: typing.Optional[RequestOptions] = None,
6316
- ) -> SafetyScoresGetDriverSafetyScoreTripsResponseBody:
5655
+ ) -> ReportsGetDatasetsResponseBody:
6317
5656
  """
6318
- Get trips contributing to a driver's safety score, and risk factors in each trip.
5657
+ Get datasets for custom reports.
6319
5658
 
6320
- <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>).
5659
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6321
5660
 
6322
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
5661
+ To use this endpoint, select **Read Custom Reports** under the Custom Reports 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>
6323
5662
 
6324
5663
 
6325
5664
  **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.
6326
5665
 
6327
5666
  Parameters
6328
5667
  ----------
6329
- end_time : str
6330
- End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
6331
-
6332
- start_time : str
6333
- Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6334
-
6335
- driver_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6336
- Comma separated list of driver IDs to fetch trip breakdowns for. Include up to 100 drivers.
5668
+ ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
5669
+ The list of dataset IDs to retrieve the datasets for. Include up to 10 dataset IDs. If not provided, all datasets will be returned.
6337
5670
 
6338
5671
  after : typing.Optional[str]
6339
5672
  If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6340
5673
 
6341
- request_options : typing.Optional[RequestOptions]
6342
- Request-specific configuration.
6343
-
6344
- Returns
6345
- -------
6346
- SafetyScoresGetDriverSafetyScoreTripsResponseBody
6347
- OK response.
6348
-
6349
- Examples
6350
- --------
6351
- import asyncio
6352
-
6353
- from samsara import AsyncSamsara
6354
-
6355
- client = AsyncSamsara(
6356
- token="YOUR_TOKEN",
6357
- )
6358
-
6359
-
6360
- async def main() -> None:
6361
- await client.beta_ap_is.get_driver_safety_score_trips(
6362
- end_time="endTime",
6363
- start_time="startTime",
6364
- )
6365
-
6366
-
6367
- asyncio.run(main())
6368
- """
6369
- _response = await self._raw_client.get_driver_safety_score_trips(
6370
- end_time=end_time,
6371
- start_time=start_time,
6372
- driver_ids=driver_ids,
6373
- after=after,
6374
- request_options=request_options,
6375
- )
6376
- return _response.data
6377
-
6378
- async def get_tag_group_safety_scores(
6379
- self,
6380
- *,
6381
- end_time: str,
6382
- start_time: str,
6383
- score_type: GetTagGroupSafetyScoresRequestScoreType,
6384
- tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6385
- request_options: typing.Optional[RequestOptions] = None,
6386
- ) -> SafetyScoresGetTagGroupSafetyScoresResponseBody:
6387
- """
6388
- Get a combined safety score and risk factors for a set of tags.
6389
-
6390
- <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>).
6391
-
6392
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6393
-
6394
-
6395
- **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.
6396
-
6397
- Parameters
6398
- ----------
6399
- end_time : str
6400
- End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
6401
-
6402
- start_time : str
6403
- Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6404
-
6405
- score_type : GetTagGroupSafetyScoresRequestScoreType
6406
- Whether to calculate tag score with either all drivers or all vehicles in the tag. Deactivated drivers and unassigned trips are not included when calculating scores for drivers. Valid values: `driver`, `vehicle`
6407
-
6408
- tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6409
- Comma separated list of tag IDs to filter by. Include up to 100 IDs. Defaults to all tags.
5674
+ limit : typing.Optional[int]
5675
+ Maximum number of datasets to return.
6410
5676
 
6411
5677
  request_options : typing.Optional[RequestOptions]
6412
5678
  Request-specific configuration.
6413
5679
 
6414
5680
  Returns
6415
5681
  -------
6416
- SafetyScoresGetTagGroupSafetyScoresResponseBody
5682
+ ReportsGetDatasetsResponseBody
6417
5683
  OK response.
6418
5684
 
6419
5685
  Examples
@@ -6428,67 +5694,55 @@ class AsyncBetaApIsClient:
6428
5694
 
6429
5695
 
6430
5696
  async def main() -> None:
6431
- await client.beta_ap_is.get_tag_group_safety_scores(
6432
- end_time="endTime",
6433
- start_time="startTime",
6434
- score_type="driver",
6435
- )
5697
+ await client.beta_ap_is.get_datasets()
6436
5698
 
6437
5699
 
6438
5700
  asyncio.run(main())
6439
5701
  """
6440
- _response = await self._raw_client.get_tag_group_safety_scores(
6441
- end_time=end_time,
6442
- start_time=start_time,
6443
- score_type=score_type,
6444
- tag_ids=tag_ids,
6445
- request_options=request_options,
5702
+ _response = await self._raw_client.get_datasets(
5703
+ ids=ids, after=after, limit=limit, request_options=request_options
6446
5704
  )
6447
5705
  return _response.data
6448
5706
 
6449
- async def get_tag_safety_scores(
5707
+ async def get_report_runs(
6450
5708
  self,
6451
5709
  *,
6452
- end_time: str,
6453
- start_time: str,
6454
- score_type: GetTagSafetyScoresRequestScoreType,
6455
- tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5710
+ report_config_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5711
+ ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6456
5712
  after: typing.Optional[str] = None,
5713
+ limit: typing.Optional[int] = None,
6457
5714
  request_options: typing.Optional[RequestOptions] = None,
6458
- ) -> SafetyScoresGetTagSafetyScoresResponseBody:
5715
+ ) -> ReportsGetReportRunsResponseBody:
6459
5716
  """
6460
- Get safety scores and overall risk factors for tags.
5717
+ Get custom report runs created by the user.
6461
5718
 
6462
- <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>).
5719
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6463
5720
 
6464
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
5721
+ To use this endpoint, select **Read Custom Reports** under the Custom Reports 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>
6465
5722
 
6466
5723
 
6467
5724
  **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.
6468
5725
 
6469
5726
  Parameters
6470
5727
  ----------
6471
- end_time : str
6472
- End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
6473
-
6474
- start_time : str
6475
- Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6476
-
6477
- score_type : GetTagSafetyScoresRequestScoreType
6478
- Whether to calculate tag score with either all drivers or all vehicles in the tag. Deactivated drivers and unassigned trips are not included when calculating scores for drivers. Valid values: `driver`, `vehicle`
5728
+ report_config_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
5729
+ The list of report config IDs to retrieve the report runs for. Include up to 10 report config IDs. If not provided, runs for all configs will be returned.
6479
5730
 
6480
- tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6481
- Comma separated list of tag IDs to filter by. Include up to 100 IDs. Defaults to all tags.
5731
+ ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
5732
+ The list of report run IDs to retrieve the report runs for. Include up to 10 report run IDs. If not provided, all report runs will be returned.
6482
5733
 
6483
5734
  after : typing.Optional[str]
6484
5735
  If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6485
5736
 
5737
+ limit : typing.Optional[int]
5738
+ Maximum number of runs to return.
5739
+
6486
5740
  request_options : typing.Optional[RequestOptions]
6487
5741
  Request-specific configuration.
6488
5742
 
6489
5743
  Returns
6490
5744
  -------
6491
- SafetyScoresGetTagSafetyScoresResponseBody
5745
+ ReportsGetReportRunsResponseBody
6492
5746
  OK response.
6493
5747
 
6494
5748
  Examples
@@ -6503,71 +5757,49 @@ class AsyncBetaApIsClient:
6503
5757
 
6504
5758
 
6505
5759
  async def main() -> None:
6506
- await client.beta_ap_is.get_tag_safety_scores(
6507
- end_time="endTime",
6508
- start_time="startTime",
6509
- score_type="driver",
6510
- )
5760
+ await client.beta_ap_is.get_report_runs()
6511
5761
 
6512
5762
 
6513
5763
  asyncio.run(main())
6514
5764
  """
6515
- _response = await self._raw_client.get_tag_safety_scores(
6516
- end_time=end_time,
6517
- start_time=start_time,
6518
- score_type=score_type,
6519
- tag_ids=tag_ids,
6520
- after=after,
6521
- request_options=request_options,
5765
+ _response = await self._raw_client.get_report_runs(
5766
+ report_config_ids=report_config_ids, ids=ids, after=after, limit=limit, request_options=request_options
6522
5767
  )
6523
5768
  return _response.data
6524
5769
 
6525
- async def get_vehicle_safety_scores(
5770
+ async def create_report_run(
6526
5771
  self,
6527
5772
  *,
6528
- end_time: str,
6529
- start_time: str,
6530
- vehicle_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6531
- after: typing.Optional[str] = None,
5773
+ report_config: CreateReportConfigObjectRequestBody,
6532
5774
  request_options: typing.Optional[RequestOptions] = None,
6533
- ) -> SafetyScoresGetVehicleSafetyScoresResponseBody:
5775
+ ) -> ReportsCreateReportRunResponseBody:
6534
5776
  """
6535
- Get safety scores and overall risk factors for vehicles.
6536
-
6537
- <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>).
6538
-
6539
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6540
-
5777
+ Triggers a new custom report run based on the provided configuration.
6541
5778
 
6542
- **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.
6543
-
6544
- Parameters
6545
- ----------
6546
- end_time : str
6547
- End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
5779
+ <b>Rate limit:</b> 50 requests/hour (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6548
5780
 
6549
- start_time : str
6550
- Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
5781
+ To use this endpoint, select **Write Custom Reports** under the Custom Reports 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>
6551
5782
 
6552
- vehicle_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6553
- Comma separated list of vehicle IDs to filter by. Include up to 100 IDs. Defaults to all vehicles.
6554
5783
 
6555
- after : typing.Optional[str]
6556
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
5784
+ **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.
5785
+
5786
+ Parameters
5787
+ ----------
5788
+ report_config : CreateReportConfigObjectRequestBody
6557
5789
 
6558
5790
  request_options : typing.Optional[RequestOptions]
6559
5791
  Request-specific configuration.
6560
5792
 
6561
5793
  Returns
6562
5794
  -------
6563
- SafetyScoresGetVehicleSafetyScoresResponseBody
6564
- OK response.
5795
+ ReportsCreateReportRunResponseBody
5796
+ Accepted response.
6565
5797
 
6566
5798
  Examples
6567
5799
  --------
6568
5800
  import asyncio
6569
5801
 
6570
- from samsara import AsyncSamsara
5802
+ from samsara import AsyncSamsara, CreateReportConfigObjectRequestBody
6571
5803
 
6572
5804
  client = AsyncSamsara(
6573
5805
  token="YOUR_TOKEN",
@@ -6575,62 +5807,53 @@ class AsyncBetaApIsClient:
6575
5807
 
6576
5808
 
6577
5809
  async def main() -> None:
6578
- await client.beta_ap_is.get_vehicle_safety_scores(
6579
- end_time="endTime",
6580
- start_time="startTime",
5810
+ await client.beta_ap_is.create_report_run(
5811
+ report_config=CreateReportConfigObjectRequestBody(),
6581
5812
  )
6582
5813
 
6583
5814
 
6584
5815
  asyncio.run(main())
6585
5816
  """
6586
- _response = await self._raw_client.get_vehicle_safety_scores(
6587
- end_time=end_time,
6588
- start_time=start_time,
6589
- vehicle_ids=vehicle_ids,
6590
- after=after,
6591
- request_options=request_options,
5817
+ _response = await self._raw_client.create_report_run(
5818
+ report_config=report_config, request_options=request_options
6592
5819
  )
6593
5820
  return _response.data
6594
5821
 
6595
- async def get_vehicle_safety_score_trips(
5822
+ async def get_report_run_data(
6596
5823
  self,
6597
5824
  *,
6598
- end_time: str,
6599
- start_time: str,
6600
- vehicle_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5825
+ id: str,
6601
5826
  after: typing.Optional[str] = None,
5827
+ limit: typing.Optional[int] = None,
6602
5828
  request_options: typing.Optional[RequestOptions] = None,
6603
- ) -> SafetyScoresGetVehicleSafetyScoreTripsResponseBody:
5829
+ ) -> ReportsGetReportRunDataResponseBody:
6604
5830
  """
6605
- Get trips contributing to a vehicle's safety score, and risk factors in each trip.
5831
+ Get data for the given custom report run.
6606
5832
 
6607
- <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>).
5833
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6608
5834
 
6609
- To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
5835
+ To use this endpoint, select **Read Custom Reports** under the Custom Reports 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>
6610
5836
 
6611
5837
 
6612
5838
  **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.
6613
5839
 
6614
5840
  Parameters
6615
5841
  ----------
6616
- end_time : str
6617
- End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
6618
-
6619
- start_time : str
6620
- Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6621
-
6622
- vehicle_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6623
- Comma separated list of vehicle IDs to fetch trip breakdowns for. Include up to 100 vehicles.
5842
+ id : str
5843
+ ID of the report run.
6624
5844
 
6625
5845
  after : typing.Optional[str]
6626
5846
  If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6627
5847
 
5848
+ limit : typing.Optional[int]
5849
+ Maximum number of rows to return.
5850
+
6628
5851
  request_options : typing.Optional[RequestOptions]
6629
5852
  Request-specific configuration.
6630
5853
 
6631
5854
  Returns
6632
5855
  -------
6633
- SafetyScoresGetVehicleSafetyScoreTripsResponseBody
5856
+ ReportsGetReportRunDataResponseBody
6634
5857
  OK response.
6635
5858
 
6636
5859
  Examples
@@ -6645,60 +5868,57 @@ class AsyncBetaApIsClient:
6645
5868
 
6646
5869
 
6647
5870
  async def main() -> None:
6648
- await client.beta_ap_is.get_vehicle_safety_score_trips(
6649
- end_time="endTime",
6650
- start_time="startTime",
5871
+ await client.beta_ap_is.get_report_run_data(
5872
+ id="id",
6651
5873
  )
6652
5874
 
6653
5875
 
6654
5876
  asyncio.run(main())
6655
5877
  """
6656
- _response = await self._raw_client.get_vehicle_safety_score_trips(
6657
- end_time=end_time,
6658
- start_time=start_time,
6659
- vehicle_ids=vehicle_ids,
6660
- after=after,
6661
- request_options=request_options,
5878
+ _response = await self._raw_client.get_report_run_data(
5879
+ id=id, after=after, limit=limit, request_options=request_options
6662
5880
  )
6663
5881
  return _response.data
6664
5882
 
6665
- async def post_training_assignments(
5883
+ async def get_driver_safety_scores(
6666
5884
  self,
6667
5885
  *,
6668
- course_id: str,
6669
- due_at_time: str,
6670
- learner_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5886
+ end_time: str,
5887
+ start_time: str,
5888
+ driver_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5889
+ after: typing.Optional[str] = None,
6671
5890
  request_options: typing.Optional[RequestOptions] = None,
6672
- ) -> TrainingAssignmentsPostTrainingAssignmentsResponseBody:
5891
+ ) -> SafetyScoresGetDriverSafetyScoresResponseBody:
6673
5892
  """
6674
- Create training assignments. Existing assignments will remain unchanged.
6675
-
6676
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Training APIs enabled for your organization.
5893
+ Get safety scores and overall risk factors for drivers.
6677
5894
 
6678
- <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5895
+ <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>).
6679
5896
 
6680
- To use this endpoint, select **Write Training Assignments** under the Training Assignments 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>
5897
+ To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6681
5898
 
6682
5899
 
6683
5900
  **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.
6684
5901
 
6685
5902
  Parameters
6686
5903
  ----------
6687
- course_id : str
6688
- String for the course ID.
5904
+ end_time : str
5905
+ End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
5906
+
5907
+ start_time : str
5908
+ Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6689
5909
 
6690
- due_at_time : str
6691
- Due date of the training assignment in RFC 3339 format. Millisecond precision and timezones are supported.
5910
+ driver_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
5911
+ Comma separated list of driver IDs to filter by. Include up to 100 IDs. Defaults to all drivers.
6692
5912
 
6693
- learner_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6694
- Optional string of comma separated learner IDs. If learner ID is present, training assignments for the specified learner(s) will be returned. Max value for this value is 100 objects. Example: `learnerIds=driver-281474,driver-46282156`
5913
+ after : typing.Optional[str]
5914
+ If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6695
5915
 
6696
5916
  request_options : typing.Optional[RequestOptions]
6697
5917
  Request-specific configuration.
6698
5918
 
6699
5919
  Returns
6700
5920
  -------
6701
- TrainingAssignmentsPostTrainingAssignmentsResponseBody
5921
+ SafetyScoresGetDriverSafetyScoresResponseBody
6702
5922
  OK response.
6703
5923
 
6704
5924
  Examples
@@ -6713,48 +5933,63 @@ class AsyncBetaApIsClient:
6713
5933
 
6714
5934
 
6715
5935
  async def main() -> None:
6716
- await client.beta_ap_is.post_training_assignments(
6717
- course_id="courseId",
6718
- due_at_time="dueAtTime",
5936
+ await client.beta_ap_is.get_driver_safety_scores(
5937
+ end_time="endTime",
5938
+ start_time="startTime",
6719
5939
  )
6720
5940
 
6721
5941
 
6722
5942
  asyncio.run(main())
6723
5943
  """
6724
- _response = await self._raw_client.post_training_assignments(
6725
- course_id=course_id, due_at_time=due_at_time, learner_ids=learner_ids, request_options=request_options
5944
+ _response = await self._raw_client.get_driver_safety_scores(
5945
+ end_time=end_time,
5946
+ start_time=start_time,
5947
+ driver_ids=driver_ids,
5948
+ after=after,
5949
+ request_options=request_options,
6726
5950
  )
6727
5951
  return _response.data
6728
5952
 
6729
- async def delete_training_assignments(
5953
+ async def get_driver_safety_score_trips(
6730
5954
  self,
6731
5955
  *,
6732
- ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5956
+ end_time: str,
5957
+ start_time: str,
5958
+ driver_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
5959
+ after: typing.Optional[str] = None,
6733
5960
  request_options: typing.Optional[RequestOptions] = None,
6734
- ) -> None:
5961
+ ) -> SafetyScoresGetDriverSafetyScoreTripsResponseBody:
6735
5962
  """
6736
- This endpoint supports batch deletion operations. The response does not indicate which specific deletions, if any, have failed. On a successful deletion or partial failure, a ‘204 No Content’ status is returned.
6737
-
6738
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Training APIs enabled for your organization.
5963
+ Get trips contributing to a driver's safety score, and risk factors in each trip.
6739
5964
 
6740
- <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
5965
+ <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>).
6741
5966
 
6742
- To use this endpoint, select **Write Training Assignments** under the Training Assignments 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>
5967
+ To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6743
5968
 
6744
5969
 
6745
5970
  **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.
6746
5971
 
6747
5972
  Parameters
6748
5973
  ----------
6749
- ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6750
- String of comma separated assignments IDs. Max value for this value is 100 objects .Example: `ids=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
5974
+ end_time : str
5975
+ End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
5976
+
5977
+ start_time : str
5978
+ Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
5979
+
5980
+ driver_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
5981
+ Comma separated list of driver IDs to fetch trip breakdowns for. Include up to 100 drivers.
5982
+
5983
+ after : typing.Optional[str]
5984
+ If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6751
5985
 
6752
5986
  request_options : typing.Optional[RequestOptions]
6753
5987
  Request-specific configuration.
6754
5988
 
6755
5989
  Returns
6756
5990
  -------
6757
- None
5991
+ SafetyScoresGetDriverSafetyScoreTripsResponseBody
5992
+ OK response.
6758
5993
 
6759
5994
  Examples
6760
5995
  --------
@@ -6768,47 +6003,62 @@ class AsyncBetaApIsClient:
6768
6003
 
6769
6004
 
6770
6005
  async def main() -> None:
6771
- await client.beta_ap_is.delete_training_assignments()
6006
+ await client.beta_ap_is.get_driver_safety_score_trips(
6007
+ end_time="endTime",
6008
+ start_time="startTime",
6009
+ )
6772
6010
 
6773
6011
 
6774
6012
  asyncio.run(main())
6775
6013
  """
6776
- _response = await self._raw_client.delete_training_assignments(ids=ids, request_options=request_options)
6014
+ _response = await self._raw_client.get_driver_safety_score_trips(
6015
+ end_time=end_time,
6016
+ start_time=start_time,
6017
+ driver_ids=driver_ids,
6018
+ after=after,
6019
+ request_options=request_options,
6020
+ )
6777
6021
  return _response.data
6778
6022
 
6779
- async def patch_training_assignments(
6023
+ async def get_tag_group_safety_scores(
6780
6024
  self,
6781
6025
  *,
6782
- due_at_time: str,
6783
- ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6026
+ end_time: str,
6027
+ start_time: str,
6028
+ score_type: GetTagGroupSafetyScoresRequestScoreType,
6029
+ tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6784
6030
  request_options: typing.Optional[RequestOptions] = None,
6785
- ) -> TrainingAssignmentsPatchTrainingAssignmentsResponseBody:
6031
+ ) -> SafetyScoresGetTagGroupSafetyScoresResponseBody:
6786
6032
  """
6787
- Update training assignments.
6788
-
6789
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Training APIs enabled for your organization.
6033
+ Get a combined safety score and risk factors for a set of tags.
6790
6034
 
6791
- <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6035
+ <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>).
6792
6036
 
6793
- To use this endpoint, select **Write Training Assignments** under the Training Assignments 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>
6037
+ To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6794
6038
 
6795
6039
 
6796
6040
  **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.
6797
6041
 
6798
6042
  Parameters
6799
6043
  ----------
6800
- due_at_time : str
6801
- Due date of the training assignment in RFC 3339 format. Millisecond precision and timezones are supported.
6044
+ end_time : str
6045
+ End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
6802
6046
 
6803
- ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6804
- String of comma separated assignments IDs. Max value for this value is 100 objects .Example: `ids=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
6047
+ start_time : str
6048
+ Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6049
+
6050
+ score_type : GetTagGroupSafetyScoresRequestScoreType
6051
+ Whether to calculate tag score with either all drivers or all vehicles in the tag. Deactivated drivers and unassigned trips are not included when calculating scores for drivers. Valid values: `driver`, `vehicle`
6052
+
6053
+ tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6054
+ Comma separated list of tag IDs to filter by. Include up to 100 IDs. Defaults to all tags.
6805
6055
 
6806
6056
  request_options : typing.Optional[RequestOptions]
6807
6057
  Request-specific configuration.
6808
6058
 
6809
6059
  Returns
6810
6060
  -------
6811
- TrainingAssignmentsPatchTrainingAssignmentsResponseBody
6061
+ SafetyScoresGetTagGroupSafetyScoresResponseBody
6812
6062
  OK response.
6813
6063
 
6814
6064
  Examples
@@ -6823,67 +6073,67 @@ class AsyncBetaApIsClient:
6823
6073
 
6824
6074
 
6825
6075
  async def main() -> None:
6826
- await client.beta_ap_is.patch_training_assignments(
6827
- due_at_time="dueAtTime",
6076
+ await client.beta_ap_is.get_tag_group_safety_scores(
6077
+ end_time="endTime",
6078
+ start_time="startTime",
6079
+ score_type="driver",
6828
6080
  )
6829
6081
 
6830
6082
 
6831
6083
  asyncio.run(main())
6832
6084
  """
6833
- _response = await self._raw_client.patch_training_assignments(
6834
- due_at_time=due_at_time, ids=ids, request_options=request_options
6085
+ _response = await self._raw_client.get_tag_group_safety_scores(
6086
+ end_time=end_time,
6087
+ start_time=start_time,
6088
+ score_type=score_type,
6089
+ tag_ids=tag_ids,
6090
+ request_options=request_options,
6835
6091
  )
6836
6092
  return _response.data
6837
6093
 
6838
- async def get_training_assignments_stream(
6094
+ async def get_tag_safety_scores(
6839
6095
  self,
6840
6096
  *,
6097
+ end_time: str,
6841
6098
  start_time: str,
6099
+ score_type: GetTagSafetyScoresRequestScoreType,
6100
+ tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6842
6101
  after: typing.Optional[str] = None,
6843
- end_time: typing.Optional[str] = None,
6844
- learner_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6845
- course_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6846
- status: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6847
6102
  request_options: typing.Optional[RequestOptions] = None,
6848
- ) -> TrainingAssignmentsGetTrainingAssignmentsStreamResponseBody:
6103
+ ) -> SafetyScoresGetTagSafetyScoresResponseBody:
6849
6104
  """
6850
- Returns all training assignments data that has been created or modified for your organization based on the time parameters passed in. Results are paginated and are sorted by last modified date. If you include an endTime, the endpoint will return data up until that point (exclusive). If you don't include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call.
6851
-
6852
- **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have Training APIs enabled for your organization.
6105
+ Get safety scores and overall risk factors for tags.
6853
6106
 
6854
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6107
+ <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>).
6855
6108
 
6856
- To use this endpoint, select **Read Training Assignments** under the Training Assignments 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>
6109
+ To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6857
6110
 
6858
6111
 
6859
6112
  **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.
6860
6113
 
6861
6114
  Parameters
6862
6115
  ----------
6863
- start_time : str
6864
- A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
6865
-
6866
- after : typing.Optional[str]
6867
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6116
+ end_time : str
6117
+ End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
6868
6118
 
6869
- end_time : typing.Optional[str]
6870
- An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
6119
+ start_time : str
6120
+ Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6871
6121
 
6872
- learner_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6873
- Optional string of comma separated learner IDs. If learner ID is present, training assignments for the specified learner(s) will be returned. Max value for this value is 100 objects. Example: `learnerIds=driver-281474,driver-46282156`
6122
+ score_type : GetTagSafetyScoresRequestScoreType
6123
+ Whether to calculate tag score with either all drivers or all vehicles in the tag. Deactivated drivers and unassigned trips are not included when calculating scores for drivers. Valid values: `driver`, `vehicle`
6874
6124
 
6875
- course_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6876
- Optional string of comma separated course IDs. If course ID is present, training assignments for the specified course ID(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `courseIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
6125
+ tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6126
+ Comma separated list of tag IDs to filter by. Include up to 100 IDs. Defaults to all tags.
6877
6127
 
6878
- status : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6879
- Optional string of comma separated values. If status is present, training assignments for the specified status(s) will be returned. Valid values: "notStarted", "inProgress", "completed". Defaults to returning all courses.
6128
+ after : typing.Optional[str]
6129
+ If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6880
6130
 
6881
6131
  request_options : typing.Optional[RequestOptions]
6882
6132
  Request-specific configuration.
6883
6133
 
6884
6134
  Returns
6885
6135
  -------
6886
- TrainingAssignmentsGetTrainingAssignmentsStreamResponseBody
6136
+ SafetyScoresGetTagSafetyScoresResponseBody
6887
6137
  OK response.
6888
6138
 
6889
6139
  Examples
@@ -6898,64 +6148,64 @@ class AsyncBetaApIsClient:
6898
6148
 
6899
6149
 
6900
6150
  async def main() -> None:
6901
- await client.beta_ap_is.get_training_assignments_stream(
6151
+ await client.beta_ap_is.get_tag_safety_scores(
6152
+ end_time="endTime",
6902
6153
  start_time="startTime",
6154
+ score_type="driver",
6903
6155
  )
6904
6156
 
6905
6157
 
6906
6158
  asyncio.run(main())
6907
6159
  """
6908
- _response = await self._raw_client.get_training_assignments_stream(
6160
+ _response = await self._raw_client.get_tag_safety_scores(
6161
+ end_time=end_time,
6909
6162
  start_time=start_time,
6163
+ score_type=score_type,
6164
+ tag_ids=tag_ids,
6910
6165
  after=after,
6911
- end_time=end_time,
6912
- learner_ids=learner_ids,
6913
- course_ids=course_ids,
6914
- status=status,
6915
6166
  request_options=request_options,
6916
6167
  )
6917
6168
  return _response.data
6918
6169
 
6919
- async def get_training_courses(
6170
+ async def get_vehicle_safety_scores(
6920
6171
  self,
6921
6172
  *,
6173
+ end_time: str,
6174
+ start_time: str,
6175
+ vehicle_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6922
6176
  after: typing.Optional[str] = None,
6923
- course_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6924
- category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6925
- status: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6926
6177
  request_options: typing.Optional[RequestOptions] = None,
6927
- ) -> TrainingCoursesGetTrainingCoursesResponseBody:
6178
+ ) -> SafetyScoresGetVehicleSafetyScoresResponseBody:
6928
6179
  """
6929
- Returns all training courses data. Results are paginated.
6930
- Courses in the ‘draft’ status are excluded from the data returned by this endpoint.
6180
+ Get safety scores and overall risk factors for vehicles.
6931
6181
 
6932
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6182
+ <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>).
6933
6183
 
6934
- To use this endpoint, select **Read Training Courses** under the Training Courses 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>
6184
+ To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
6935
6185
 
6936
6186
 
6937
6187
  **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.
6938
6188
 
6939
6189
  Parameters
6940
6190
  ----------
6941
- after : typing.Optional[str]
6942
- If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6191
+ end_time : str
6192
+ End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
6943
6193
 
6944
- course_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6945
- Optional string of comma separated course IDs. If course ID is present, training assignments for the specified course ID(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `courseIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
6194
+ start_time : str
6195
+ Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
6946
6196
 
6947
- category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6948
- Optional string of comma separated course category IDs. If courseCategoryId is present, training courses for the specified course category(s) will be returned. Max value for this value is 100 objects. Defaults to returning all courses. Example: `categoryIds=a4db8702-79d5-4396-a717-e301d52ecc11,c6490f6a-d84e-49b5-b0ad-b6baae304075`
6197
+ vehicle_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6198
+ Comma separated list of vehicle IDs to filter by. Include up to 100 IDs. Defaults to all vehicles.
6949
6199
 
6950
- status : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6951
- Optional string of comma separated values. If status is present, training courses with the specified status(s) will be returned. Valid values: “published”, “deleted”, “archived”. Defaults to returning all courses.
6200
+ after : typing.Optional[str]
6201
+ If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
6952
6202
 
6953
6203
  request_options : typing.Optional[RequestOptions]
6954
6204
  Request-specific configuration.
6955
6205
 
6956
6206
  Returns
6957
6207
  -------
6958
- TrainingCoursesGetTrainingCoursesResponseBody
6208
+ SafetyScoresGetVehicleSafetyScoresResponseBody
6959
6209
  OK response.
6960
6210
 
6961
6211
  Examples
@@ -6970,71 +6220,62 @@ class AsyncBetaApIsClient:
6970
6220
 
6971
6221
 
6972
6222
  async def main() -> None:
6973
- await client.beta_ap_is.get_training_courses()
6223
+ await client.beta_ap_is.get_vehicle_safety_scores(
6224
+ end_time="endTime",
6225
+ start_time="startTime",
6226
+ )
6974
6227
 
6975
6228
 
6976
6229
  asyncio.run(main())
6977
6230
  """
6978
- _response = await self._raw_client.get_training_courses(
6231
+ _response = await self._raw_client.get_vehicle_safety_scores(
6232
+ end_time=end_time,
6233
+ start_time=start_time,
6234
+ vehicle_ids=vehicle_ids,
6979
6235
  after=after,
6980
- course_ids=course_ids,
6981
- category_ids=category_ids,
6982
- status=status,
6983
6236
  request_options=request_options,
6984
6237
  )
6985
6238
  return _response.data
6986
6239
 
6987
- async def get_trips(
6240
+ async def get_vehicle_safety_score_trips(
6988
6241
  self,
6989
6242
  *,
6243
+ end_time: str,
6990
6244
  start_time: str,
6991
- include_asset: typing.Optional[bool] = None,
6992
- completion_status: typing.Optional[GetTripsRequestCompletionStatus] = None,
6993
- end_time: typing.Optional[str] = None,
6994
- query_by: typing.Optional[GetTripsRequestQueryBy] = None,
6245
+ vehicle_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6995
6246
  after: typing.Optional[str] = None,
6996
- ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
6997
6247
  request_options: typing.Optional[RequestOptions] = None,
6998
- ) -> TripsGetTripsResponseBody:
6248
+ ) -> SafetyScoresGetVehicleSafetyScoreTripsResponseBody:
6999
6249
  """
7000
- This endpoint will return trips that have been collected for your organization based on the time parameters passed in. Results are paginated. Reach out to your Samsara Representative to have this API enabled for your organization.
6250
+ Get trips contributing to a vehicle's safety score, and risk factors in each trip.
7001
6251
 
7002
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
6252
+ <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>).
7003
6253
 
7004
- To use this endpoint, select **Read Trips** under the Trips 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>
6254
+ To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
7005
6255
 
7006
6256
 
7007
6257
  **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.
7008
6258
 
7009
6259
  Parameters
7010
6260
  ----------
7011
- start_time : str
7012
- RFC 3339 timestamp that indicates when to begin receiving data. Value is compared against `updatedAtTime` or `tripStartTime` depending on the queryBy parameter.
7013
-
7014
- include_asset : typing.Optional[bool]
7015
- Indicates whether or not to return expanded “asset” data
7016
-
7017
- completion_status : typing.Optional[GetTripsRequestCompletionStatus]
7018
- Filters trips based on a specific completion status Valid values: `inProgress`, `completed`, `all`
6261
+ end_time : str
6262
+ End time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end before this timestamp.
7019
6263
 
7020
- end_time : typing.Optional[str]
7021
- RFC 3339 timestamp which is compared against `updatedAtTime` or `tripStartTime` depending on the queryBy parameter. If not provided then the endpoint behaves as an unending feed of changes.
6264
+ start_time : str
6265
+ Start time in RFC 3339 format. Millisecond precision and timezones are supported. Includes trips that end after this timestamp. Can be up to 1 year before endTime.
7022
6266
 
7023
- query_by : typing.Optional[GetTripsRequestQueryBy]
7024
- Decide which timestamp the `startTime` and `endTime` are compared to. Valid values: `updatedAtTime`, `tripStartTime`
6267
+ vehicle_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
6268
+ Comma separated list of vehicle IDs to fetch trip breakdowns for. Include up to 100 vehicles.
7025
6269
 
7026
6270
  after : typing.Optional[str]
7027
6271
  If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
7028
6272
 
7029
- ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
7030
- Comma-separated list of asset IDs. Include up to 50 asset IDs.
7031
-
7032
6273
  request_options : typing.Optional[RequestOptions]
7033
6274
  Request-specific configuration.
7034
6275
 
7035
6276
  Returns
7036
6277
  -------
7037
- TripsGetTripsResponseBody
6278
+ SafetyScoresGetVehicleSafetyScoreTripsResponseBody
7038
6279
  OK response.
7039
6280
 
7040
6281
  Examples
@@ -7049,21 +6290,19 @@ class AsyncBetaApIsClient:
7049
6290
 
7050
6291
 
7051
6292
  async def main() -> None:
7052
- await client.beta_ap_is.get_trips(
6293
+ await client.beta_ap_is.get_vehicle_safety_score_trips(
6294
+ end_time="endTime",
7053
6295
  start_time="startTime",
7054
6296
  )
7055
6297
 
7056
6298
 
7057
6299
  asyncio.run(main())
7058
6300
  """
7059
- _response = await self._raw_client.get_trips(
7060
- start_time=start_time,
7061
- include_asset=include_asset,
7062
- completion_status=completion_status,
6301
+ _response = await self._raw_client.get_vehicle_safety_score_trips(
7063
6302
  end_time=end_time,
7064
- query_by=query_by,
6303
+ start_time=start_time,
6304
+ vehicle_ids=vehicle_ids,
7065
6305
  after=after,
7066
- ids=ids,
7067
6306
  request_options=request_options,
7068
6307
  )
7069
6308
  return _response.data