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.
- samsara/__init__.py +486 -88
- samsara/addresses/client.py +4 -4
- samsara/addresses/raw_client.py +4 -4
- samsara/addresses/types/create_address_request_address_types_item.py +2 -0
- samsara/addresses/types/update_address_request_address_types_item.py +2 -0
- samsara/alerts/client.py +4 -0
- samsara/alerts/raw_client.py +4 -0
- samsara/assets/client.py +2 -2
- samsara/assets/raw_client.py +2 -2
- samsara/attributes/client.py +4 -4
- samsara/attributes/raw_client.py +4 -4
- samsara/attributes/types/create_attribute_request_attribute_type.py +1 -1
- samsara/attributes/types/update_attribute_request_attribute_type.py +1 -1
- samsara/{types/vehicle_stats_time.py → auth_token_for_driver/__init__.py} +1 -2
- samsara/auth_token_for_driver/client.py +165 -0
- samsara/auth_token_for_driver/raw_client.py +373 -0
- samsara/beta_ap_is/__init__.py +0 -6
- samsara/beta_ap_is/client.py +853 -1614
- samsara/beta_ap_is/raw_client.py +2301 -4062
- samsara/beta_ap_is/types/__init__.py +0 -6
- samsara/client.py +112 -36
- samsara/core/client_wrapper.py +6 -2
- samsara/core/http_client.py +41 -7
- samsara/core/jsonable_encoder.py +8 -0
- samsara/core/pydantic_utilities.py +102 -1
- samsara/{types/vehicle_location_time.py → driver_trailer_assignments/__init__.py} +1 -2
- samsara/driver_trailer_assignments/client.py +383 -0
- samsara/driver_trailer_assignments/raw_client.py +1009 -0
- samsara/drivers/client.py +5 -4
- samsara/drivers/raw_client.py +7 -6
- samsara/legacy_ap_is/client.py +381 -0
- samsara/legacy_ap_is/raw_client.py +598 -0
- samsara/location_and_speed/client.py +12 -2
- samsara/location_and_speed/raw_client.py +12 -2
- samsara/media/client.py +10 -10
- samsara/media/raw_client.py +8 -8
- samsara/media/types/media_retrieval_post_media_retrieval_request_body_media_type.py +3 -1
- samsara/messages/client.py +2 -2
- samsara/messages/raw_client.py +2 -2
- samsara/plans/client.py +24 -4
- samsara/plans/raw_client.py +20 -2
- samsara/preview_ap_is/client.py +140 -0
- samsara/preview_ap_is/raw_client.py +358 -0
- samsara/routes/client.py +38 -6
- samsara/routes/raw_client.py +32 -2
- samsara/safety/__init__.py +30 -0
- samsara/safety/client.py +204 -214
- samsara/safety/raw_client.py +398 -216
- samsara/safety/types/__init__.py +36 -0
- samsara/safety/types/get_safety_events_v_2_stream_request_query_by_time_field.py +7 -0
- samsara/sensors/client.py +2 -2
- samsara/sensors/raw_client.py +2 -2
- samsara/trailer_assignments/client.py +4 -4
- samsara/trailer_assignments/raw_client.py +4 -4
- samsara/{types/safety_event_location.py → training_assignments/__init__.py} +1 -2
- samsara/training_assignments/client.py +528 -0
- samsara/training_assignments/raw_client.py +1330 -0
- samsara/training_courses/__init__.py +4 -0
- samsara/training_courses/client.py +168 -0
- samsara/training_courses/raw_client.py +364 -0
- samsara/trips/__init__.py +33 -0
- samsara/trips/client.py +163 -0
- samsara/trips/raw_client.py +374 -0
- samsara/trips/types/__init__.py +38 -0
- samsara/types/__init__.py +638 -78
- samsara/types/action_object_request_body.py +4 -2
- samsara/types/action_object_response_body.py +4 -2
- samsara/types/action_params_object_request_body.py +1 -1
- samsara/types/action_params_object_response_body.py +1 -1
- samsara/types/address.py +7 -5
- samsara/types/address_address_types_item.py +2 -0
- samsara/types/address_geofence_circle.py +3 -1
- samsara/types/address_geofence_settings.py +1 -1
- samsara/types/address_response_response_body.py +3 -3
- samsara/types/advanced_idling_get_idling_events_bad_gateway_error_response_body.py +1 -1
- samsara/types/advanced_idling_get_idling_events_gateway_timeout_error_response_body.py +1 -1
- samsara/types/advanced_idling_get_idling_events_internal_server_error_response_body.py +1 -1
- samsara/types/advanced_idling_get_idling_events_method_not_allowed_error_response_body.py +1 -1
- samsara/types/advanced_idling_get_idling_events_not_found_error_response_body.py +1 -1
- samsara/types/advanced_idling_get_idling_events_not_implemented_error_response_body.py +1 -1
- samsara/types/advanced_idling_get_idling_events_service_unavailable_error_response_body.py +1 -1
- samsara/types/advanced_idling_get_idling_events_too_many_requests_error_response_body.py +1 -1
- samsara/types/advanced_idling_get_idling_events_unauthorized_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_bad_gateway_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_gateway_timeout_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_internal_server_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_method_not_allowed_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_not_found_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_not_implemented_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_response_body.py +3 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_service_unavailable_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_too_many_requests_error_response_body.py +1 -1
- samsara/types/aemp_equipment_get_aemp_equipment_list_unauthorized_error_response_body.py +1 -1
- samsara/types/aemp_equipment_with_additional_fields_response_body.py +11 -7
- samsara/types/aemp_fleet_list_response_body.py +5 -3
- samsara/types/alert_object_asset_response_body.py +1 -1
- samsara/types/alert_object_driver_response_body.py +1 -1
- samsara/types/alert_object_onvif_camera_stream_response_body.py +1 -1
- samsara/types/alert_object_product_response_body.py +1 -1
- samsara/types/alert_object_sensor_response_body.py +1 -1
- samsara/types/alert_object_trailer_response_body.py +2 -2
- samsara/types/alert_object_vehicle_response_body.py +2 -2
- samsara/types/alerts_delete_configurations_bad_gateway_error_response_body.py +1 -1
- samsara/types/alerts_delete_configurations_gateway_timeout_error_response_body.py +1 -1
- samsara/types/alerts_delete_configurations_internal_server_error_response_body.py +1 -1
- samsara/types/alerts_delete_configurations_method_not_allowed_error_response_body.py +1 -1
- samsara/types/alerts_delete_configurations_not_found_error_response_body.py +1 -1
- samsara/types/alerts_delete_configurations_not_implemented_error_response_body.py +1 -1
- samsara/types/alerts_delete_configurations_service_unavailable_error_response_body.py +1 -1
- samsara/types/alerts_delete_configurations_too_many_requests_error_response_body.py +1 -1
- samsara/types/alerts_delete_configurations_unauthorized_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_bad_gateway_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_gateway_timeout_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_internal_server_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_method_not_allowed_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_not_found_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_not_implemented_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_service_unavailable_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_too_many_requests_error_response_body.py +1 -1
- samsara/types/alerts_get_configurations_unauthorized_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_bad_gateway_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_gateway_timeout_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_internal_server_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_method_not_allowed_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_not_found_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_not_implemented_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_service_unavailable_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_too_many_requests_error_response_body.py +1 -1
- samsara/types/alerts_get_incidents_unauthorized_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_bad_gateway_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_gateway_timeout_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_internal_server_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_method_not_allowed_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_not_found_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_not_implemented_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_service_unavailable_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_too_many_requests_error_response_body.py +1 -1
- samsara/types/alerts_patch_configurations_unauthorized_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_bad_gateway_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_gateway_timeout_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_internal_server_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_method_not_allowed_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_not_found_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_not_implemented_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_service_unavailable_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_too_many_requests_error_response_body.py +1 -1
- samsara/types/alerts_post_configurations_unauthorized_error_response_body.py +1 -1
- samsara/types/ambient_temperature_details_object_request_body.py +6 -4
- samsara/types/ambient_temperature_details_object_response_body.py +6 -4
- samsara/types/appointment_window_request_body.py +4 -2
- samsara/types/appointment_window_response_body.py +4 -2
- samsara/types/asset_data_input.py +2 -2
- samsara/types/asset_data_output.py +5 -3
- samsara/types/asset_data_outputs_patch_asset_data_outputs_bad_gateway_error_response_body.py +1 -1
- samsara/types/asset_data_outputs_patch_asset_data_outputs_gateway_timeout_error_response_body.py +1 -1
- samsara/types/asset_data_outputs_patch_asset_data_outputs_internal_server_error_response_body.py +1 -1
- samsara/types/asset_data_outputs_patch_asset_data_outputs_method_not_allowed_error_response_body.py +1 -1
- samsara/types/asset_data_outputs_patch_asset_data_outputs_not_found_error_response_body.py +1 -1
- samsara/types/asset_data_outputs_patch_asset_data_outputs_not_implemented_error_response_body.py +1 -1
- samsara/types/asset_data_outputs_patch_asset_data_outputs_service_unavailable_error_response_body.py +1 -1
- samsara/types/asset_data_outputs_patch_asset_data_outputs_too_many_requests_error_response_body.py +1 -1
- samsara/types/asset_data_outputs_patch_asset_data_outputs_unauthorized_error_response_body.py +1 -1
- samsara/types/asset_location.py +1 -1
- samsara/types/asset_response.py +7 -7
- samsara/types/asset_response_body.py +11 -7
- samsara/types/asset_response_response_body.py +1 -1
- samsara/types/assets_create_asset_bad_gateway_error_response_body.py +1 -1
- samsara/types/assets_create_asset_gateway_timeout_error_response_body.py +1 -1
- samsara/types/assets_create_asset_internal_server_error_response_body.py +1 -1
- samsara/types/assets_create_asset_method_not_allowed_error_response_body.py +1 -1
- samsara/types/assets_create_asset_not_found_error_response_body.py +1 -1
- samsara/types/assets_create_asset_not_implemented_error_response_body.py +1 -1
- samsara/types/assets_create_asset_service_unavailable_error_response_body.py +1 -1
- samsara/types/assets_create_asset_too_many_requests_error_response_body.py +1 -1
- samsara/types/assets_create_asset_unauthorized_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_bad_gateway_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_gateway_timeout_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_internal_server_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_method_not_allowed_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_not_found_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_not_implemented_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_service_unavailable_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_too_many_requests_error_response_body.py +1 -1
- samsara/types/assets_delete_asset_unauthorized_error_response_body.py +1 -1
- samsara/types/assets_inputs_asset_response_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_bad_gateway_error_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_gateway_timeout_error_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_internal_server_error_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_method_not_allowed_error_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_not_found_error_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_not_implemented_error_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_service_unavailable_error_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_too_many_requests_error_response_body.py +1 -1
- samsara/types/assets_inputs_get_assets_inputs_unauthorized_error_response_body.py +1 -1
- samsara/types/assets_inputs_response_response_body.py +4 -2
- samsara/types/assets_list_assets_bad_gateway_error_response_body.py +1 -1
- samsara/types/assets_list_assets_gateway_timeout_error_response_body.py +1 -1
- samsara/types/assets_list_assets_internal_server_error_response_body.py +1 -1
- samsara/types/assets_list_assets_method_not_allowed_error_response_body.py +1 -1
- samsara/types/assets_list_assets_not_found_error_response_body.py +1 -1
- samsara/types/assets_list_assets_not_implemented_error_response_body.py +1 -1
- samsara/types/assets_list_assets_service_unavailable_error_response_body.py +1 -1
- samsara/types/assets_list_assets_too_many_requests_error_response_body.py +1 -1
- samsara/types/assets_list_assets_unauthorized_error_response_body.py +1 -1
- samsara/types/assets_location_link_config_address_details_object.py +3 -1
- samsara/types/assets_location_link_config_address_details_object_response_body.py +3 -1
- samsara/types/assets_location_link_request_config_object.py +2 -2
- samsara/types/assets_location_link_response_config_object_response_body.py +1 -1
- samsara/types/assets_near_location_link_config_object.py +1 -1
- samsara/types/assets_near_location_link_config_object_response_body.py +1 -1
- samsara/types/assets_on_route_link_config_object.py +3 -1
- samsara/types/assets_on_route_link_config_object_response_body.py +3 -1
- samsara/types/assets_update_asset_bad_gateway_error_response_body.py +1 -1
- samsara/types/assets_update_asset_gateway_timeout_error_response_body.py +1 -1
- samsara/types/assets_update_asset_internal_server_error_response_body.py +1 -1
- samsara/types/assets_update_asset_method_not_allowed_error_response_body.py +1 -1
- samsara/types/assets_update_asset_not_found_error_response_body.py +1 -1
- samsara/types/assets_update_asset_not_implemented_error_response_body.py +1 -1
- samsara/types/assets_update_asset_service_unavailable_error_response_body.py +1 -1
- samsara/types/assets_update_asset_too_many_requests_error_response_body.py +1 -1
- samsara/types/assets_update_asset_unauthorized_error_response_body.py +1 -1
- samsara/types/attribute.py +5 -5
- samsara/types/attribute_attribute_type.py +1 -1
- samsara/types/attribute_entity.py +13 -4
- samsara/types/attribute_tiny.py +9 -2
- samsara/types/attribute_value_tiny.py +1 -1
- samsara/types/auth_token_auth_token_bad_gateway_error_response_body.py +33 -0
- samsara/types/auth_token_auth_token_gateway_timeout_error_response_body.py +33 -0
- samsara/types/auth_token_auth_token_internal_server_error_response_body.py +33 -0
- samsara/types/auth_token_auth_token_method_not_allowed_error_response_body.py +33 -0
- samsara/types/auth_token_auth_token_not_found_error_response_body.py +33 -0
- samsara/types/auth_token_auth_token_not_implemented_error_response_body.py +33 -0
- samsara/types/auth_token_auth_token_response_body.py +20 -0
- samsara/types/auth_token_auth_token_service_unavailable_error_response_body.py +33 -0
- samsara/types/auth_token_auth_token_too_many_requests_error_response_body.py +33 -0
- samsara/types/auth_token_auth_token_unauthorized_error_response_body.py +33 -0
- samsara/types/auth_token_for_driver_response_response_body.py +35 -0
- samsara/types/author_signature_object_response_body.py +6 -2
- samsara/types/barcode_value_object_request_body.py +2 -2
- samsara/types/barcode_value_object_response_body.py +2 -2
- samsara/types/base_route_response_object_response_body.py +8 -8
- samsara/types/behavior_count_details_request_body.py +41 -0
- samsara/types/behavior_count_details_request_body_comparison.py +8 -0
- samsara/types/behavior_count_details_response_body.py +41 -0
- samsara/types/behavior_count_details_response_body_comparison.py +8 -0
- samsara/types/behavior_response_body.py +6 -4
- samsara/types/camera_details_response_response_body.py +3 -3
- samsara/types/camera_stream_issue_response_body.py +1 -1
- samsara/types/carrier_proposed_assignment.py +7 -5
- samsara/types/carrier_proposed_assignment_driver_all_of.py +1 -1
- samsara/types/cell_connectivity_response_response_body.py +1 -1
- samsara/types/cell_signal_loss_details_object_request_body.py +1 -1
- samsara/types/cell_signal_loss_details_object_response_body.py +1 -1
- samsara/types/circle_request_body.py +3 -1
- samsara/types/circle_response_body.py +3 -1
- samsara/types/coach_assignment_with_driver_external_ids_response_response_body.py +7 -3
- samsara/types/coach_assignment_without_driver_external_ids_response_response_body.py +8 -4
- samsara/types/coaching_sessions_get_coaching_sessions_bad_gateway_error_response_body.py +1 -1
- samsara/types/coaching_sessions_get_coaching_sessions_gateway_timeout_error_response_body.py +1 -1
- samsara/types/coaching_sessions_get_coaching_sessions_internal_server_error_response_body.py +1 -1
- samsara/types/coaching_sessions_get_coaching_sessions_method_not_allowed_error_response_body.py +1 -1
- samsara/types/coaching_sessions_get_coaching_sessions_not_found_error_response_body.py +1 -1
- samsara/types/coaching_sessions_get_coaching_sessions_not_implemented_error_response_body.py +1 -1
- samsara/types/coaching_sessions_get_coaching_sessions_service_unavailable_error_response_body.py +1 -1
- samsara/types/coaching_sessions_get_coaching_sessions_too_many_requests_error_response_body.py +1 -1
- samsara/types/coaching_sessions_get_coaching_sessions_unauthorized_error_response_body.py +1 -1
- samsara/types/coaching_sessions_response_response_body.py +12 -8
- samsara/types/column_response_body.py +38 -0
- samsara/types/column_response_body_data_type.py +7 -0
- samsara/types/column_response_body_unit.py +88 -0
- samsara/types/conditional_field_section_object_response_body.py +4 -4
- samsara/types/connection_status_response_object_response_body.py +2 -2
- samsara/types/contact.py +6 -2
- samsara/types/contact_tiny_response.py +2 -2
- samsara/types/continuous_reading_alert_threshold_response_body.py +2 -2
- samsara/types/continuous_reading_alert_threshold_response_body_unit.py +10 -0
- samsara/types/create_address_request_geofence_settings.py +1 -1
- samsara/types/create_attribute_request_entities.py +12 -4
- samsara/types/create_driver_auth_token_response_response_body.py +3 -1
- samsara/types/create_driver_request_attributes.py +2 -2
- samsara/types/create_report_config_column_request_body.py +24 -0
- samsara/types/create_report_config_object_request_body.py +43 -0
- samsara/types/create_routes_stop_request_object_request_body.py +8 -8
- samsara/types/create_user_request_roles.py +2 -2
- samsara/types/cumulative_operating_hours_response_body.py +1 -1
- samsara/types/current_duty_status.py +1 -1
- samsara/types/data_input_response_all_of.py +5 -5
- samsara/types/data_input_snapshot_all_of.py +5 -5
- samsara/types/data_input_tiny_response.py +2 -2
- samsara/types/data_input_value_response_body.py +1 -1
- samsara/types/data_usage_response_object_response_body.py +2 -2
- samsara/types/date_time_value_object_request_body.py +1 -1
- samsara/types/date_time_value_object_response_body.py +1 -1
- samsara/types/def_level_trigger_details_object_request_body.py +4 -2
- samsara/types/def_level_trigger_details_object_response_body.py +4 -2
- samsara/types/def_remaining_response_body.py +1 -1
- samsara/types/defect.py +9 -7
- samsara/types/defect_photo_response_response_body.py +3 -1
- samsara/types/defect_trailer_response_response_body.py +1 -1
- samsara/types/defect_types_response_data_response_body.py +4 -2
- samsara/types/defect_vehicle_response_response_body.py +1 -1
- samsara/types/defects_response_data_response_body.py +11 -9
- samsara/types/depreciation_get_depreciation_transactions_bad_gateway_error_response_body.py +33 -0
- samsara/types/depreciation_get_depreciation_transactions_gateway_timeout_error_response_body.py +33 -0
- samsara/types/depreciation_get_depreciation_transactions_internal_server_error_response_body.py +33 -0
- samsara/types/depreciation_get_depreciation_transactions_method_not_allowed_error_response_body.py +33 -0
- samsara/types/depreciation_get_depreciation_transactions_not_found_error_response_body.py +33 -0
- samsara/types/depreciation_get_depreciation_transactions_not_implemented_error_response_body.py +33 -0
- samsara/types/depreciation_get_depreciation_transactions_response_body.py +26 -0
- samsara/types/depreciation_get_depreciation_transactions_service_unavailable_error_response_body.py +33 -0
- samsara/types/depreciation_get_depreciation_transactions_too_many_requests_error_response_body.py +33 -0
- samsara/types/depreciation_get_depreciation_transactions_unauthorized_error_response_body.py +33 -0
- samsara/types/depreciation_transaction_money_object_response_body.py +34 -0
- samsara/types/depreciation_transaction_money_object_response_body_currency.py +7 -0
- samsara/types/depreciation_transaction_object_response_body.py +79 -0
- samsara/types/depreciation_transaction_object_response_body_transaction_type.py +7 -0
- samsara/types/detection_log_detection_object_response_body.py +12 -6
- samsara/types/detection_log_detection_object_response_body_trigger_detection_label.py +7 -0
- samsara/types/detection_log_driver_object_response_body.py +1 -1
- samsara/types/detection_log_get_detections_bad_gateway_error_response_body.py +1 -1
- samsara/types/detection_log_get_detections_gateway_timeout_error_response_body.py +1 -1
- samsara/types/detection_log_get_detections_internal_server_error_response_body.py +1 -1
- samsara/types/detection_log_get_detections_method_not_allowed_error_response_body.py +1 -1
- samsara/types/detection_log_get_detections_not_found_error_response_body.py +1 -1
- samsara/types/detection_log_get_detections_not_implemented_error_response_body.py +1 -1
- samsara/types/detection_log_get_detections_service_unavailable_error_response_body.py +1 -1
- samsara/types/detection_log_get_detections_too_many_requests_error_response_body.py +1 -1
- samsara/types/detection_log_get_detections_unauthorized_error_response_body.py +1 -1
- samsara/types/detection_log_safety_event_object_response_body.py +10 -3
- samsara/types/detection_log_safety_event_object_response_body_inbox_filter_reason.py +1 -0
- samsara/types/device_movement_trigger_details_object_request_body.py +1 -1
- samsara/types/device_movement_trigger_details_object_response_body.py +1 -1
- samsara/types/device_response_response_body.py +8 -2
- samsara/types/devices_get_devices_bad_gateway_error_response_body.py +1 -1
- samsara/types/devices_get_devices_gateway_timeout_error_response_body.py +1 -1
- samsara/types/devices_get_devices_internal_server_error_response_body.py +1 -1
- samsara/types/devices_get_devices_method_not_allowed_error_response_body.py +1 -1
- samsara/types/devices_get_devices_not_found_error_response_body.py +1 -1
- samsara/types/devices_get_devices_not_implemented_error_response_body.py +1 -1
- samsara/types/devices_get_devices_service_unavailable_error_response_body.py +1 -1
- samsara/types/devices_get_devices_too_many_requests_error_response_body.py +1 -1
- samsara/types/devices_get_devices_unauthorized_error_response_body.py +1 -1
- samsara/types/distance_response_body.py +2 -2
- samsara/types/distance_traveled_object_response_body.py +3 -3
- samsara/types/distracted_driving_detection_alert_settings_object_response_body.py +3 -3
- samsara/types/document_pdf_generation_response_data.py +1 -1
- samsara/types/document_pdf_query_response_data.py +5 -5
- samsara/types/document_response_object_response_body.py +7 -5
- samsara/types/document_types_get_document_types_bad_gateway_error_response_body.py +1 -1
- samsara/types/document_types_get_document_types_gateway_timeout_error_response_body.py +1 -1
- samsara/types/document_types_get_document_types_internal_server_error_response_body.py +1 -1
- samsara/types/document_types_get_document_types_method_not_allowed_error_response_body.py +1 -1
- samsara/types/document_types_get_document_types_not_found_error_response_body.py +1 -1
- samsara/types/document_types_get_document_types_not_implemented_error_response_body.py +1 -1
- samsara/types/document_types_get_document_types_service_unavailable_error_response_body.py +1 -1
- samsara/types/document_types_get_document_types_too_many_requests_error_response_body.py +1 -1
- samsara/types/document_types_get_document_types_unauthorized_error_response_body.py +1 -1
- samsara/types/documents_delete_document_bad_gateway_error_response_body.py +1 -1
- samsara/types/documents_delete_document_gateway_timeout_error_response_body.py +1 -1
- samsara/types/documents_delete_document_internal_server_error_response_body.py +1 -1
- samsara/types/documents_delete_document_method_not_allowed_error_response_body.py +1 -1
- samsara/types/documents_delete_document_not_found_error_response_body.py +1 -1
- samsara/types/documents_delete_document_not_implemented_error_response_body.py +1 -1
- samsara/types/documents_delete_document_service_unavailable_error_response_body.py +1 -1
- samsara/types/documents_delete_document_too_many_requests_error_response_body.py +1 -1
- samsara/types/documents_delete_document_unauthorized_error_response_body.py +1 -1
- samsara/types/documents_get_document_bad_gateway_error_response_body.py +1 -1
- samsara/types/documents_get_document_gateway_timeout_error_response_body.py +1 -1
- samsara/types/documents_get_document_internal_server_error_response_body.py +1 -1
- samsara/types/documents_get_document_method_not_allowed_error_response_body.py +1 -1
- samsara/types/documents_get_document_not_found_error_response_body.py +1 -1
- samsara/types/documents_get_document_not_implemented_error_response_body.py +1 -1
- samsara/types/documents_get_document_service_unavailable_error_response_body.py +1 -1
- samsara/types/documents_get_document_too_many_requests_error_response_body.py +1 -1
- samsara/types/documents_get_document_unauthorized_error_response_body.py +1 -1
- samsara/types/documents_get_documents_bad_gateway_error_response_body.py +1 -1
- samsara/types/documents_get_documents_gateway_timeout_error_response_body.py +1 -1
- samsara/types/documents_get_documents_internal_server_error_response_body.py +1 -1
- samsara/types/documents_get_documents_method_not_allowed_error_response_body.py +1 -1
- samsara/types/documents_get_documents_not_found_error_response_body.py +1 -1
- samsara/types/documents_get_documents_not_implemented_error_response_body.py +1 -1
- samsara/types/documents_get_documents_service_unavailable_error_response_body.py +1 -1
- samsara/types/documents_get_documents_too_many_requests_error_response_body.py +1 -1
- samsara/types/documents_get_documents_unauthorized_error_response_body.py +1 -1
- samsara/types/documents_post_document_bad_gateway_error_response_body.py +1 -1
- samsara/types/documents_post_document_gateway_timeout_error_response_body.py +1 -1
- samsara/types/documents_post_document_internal_server_error_response_body.py +1 -1
- samsara/types/documents_post_document_method_not_allowed_error_response_body.py +1 -1
- samsara/types/documents_post_document_not_found_error_response_body.py +1 -1
- samsara/types/documents_post_document_not_implemented_error_response_body.py +1 -1
- samsara/types/documents_post_document_service_unavailable_error_response_body.py +1 -1
- samsara/types/documents_post_document_too_many_requests_error_response_body.py +1 -1
- samsara/types/documents_post_document_unauthorized_error_response_body.py +1 -1
- samsara/types/driver.py +28 -26
- samsara/types/driver_app_notification_object_request_body.py +2 -2
- samsara/types/driver_app_notification_object_response_body.py +2 -2
- samsara/types/driver_app_settings_gamification_config_tiny_object_request_body.py +1 -1
- samsara/types/driver_app_settings_gamification_config_tiny_object_response_body.py +1 -1
- samsara/types/driver_app_settings_response_object_response_body.py +5 -5
- samsara/types/driver_app_settings_trailer_selection_config_tiny_object_request_body.py +3 -3
- samsara/types/driver_app_settings_trailer_selection_config_tiny_object_response_body.py +3 -3
- samsara/types/driver_app_sign_in_response_body.py +1 -1
- samsara/types/driver_assignment_metadata_tiny_object_response_body.py +1 -1
- samsara/types/driver_assignment_object_response_body.py +4 -4
- samsara/types/driver_carrier_settings.py +5 -5
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_internal_server_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_not_found_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_get_driver_coach_assignment_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_internal_server_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_not_found_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_coach_assignments_put_driver_coach_assignment_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_document_submitted_details_object_request_body.py +3 -1
- samsara/types/driver_document_submitted_details_object_response_body.py +3 -1
- samsara/types/driver_efficiencies_response_data.py +3 -3
- samsara/types/driver_efficiency.py +15 -13
- samsara/types/driver_efficiency_data_object_response_body.py +11 -9
- samsara/types/driver_efficiency_difficulty_score_data_object_response_body.py +3 -3
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_internal_server_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_not_found_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_drivers_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_internal_server_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_not_found_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_efficiency_get_driver_efficiency_by_vehicles_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_efficiency_percentage_data_object_response_body.py +11 -9
- samsara/types/driver_efficiency_raw_data_object_response_body.py +17 -15
- samsara/types/driver_eld_ruleset.py +3 -1
- samsara/types/driver_hos_setting.py +1 -1
- samsara/types/driver_or_tag_ids_details_request_body.py +37 -0
- samsara/types/driver_or_tag_ids_details_response_body.py +37 -0
- samsara/types/driver_qr_codes_create_driver_qr_code_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_create_driver_qr_code_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_create_driver_qr_code_internal_server_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_create_driver_qr_code_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_create_driver_qr_code_not_found_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_create_driver_qr_code_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_create_driver_qr_code_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_create_driver_qr_code_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_create_driver_qr_code_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_internal_server_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_not_found_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_delete_driver_qr_code_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_internal_server_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_not_found_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_qr_codes_get_drivers_qr_codes_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_internal_server_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_not_found_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_remote_signout_post_driver_remote_signout_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_ruleset_object_response_body.py +1 -1
- samsara/types/driver_safety_score_response_body.py +6 -4
- samsara/types/driver_vehicle_assignment_v_2_object_response_body.py +7 -5
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_internal_server_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_not_found_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_create_driver_vehicle_assignment_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_internal_server_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_not_found_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_delete_driver_vehicle_assignments_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_internal_server_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_not_found_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_get_driver_vehicle_assignments_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_bad_gateway_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_gateway_timeout_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_internal_server_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_method_not_allowed_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_not_found_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_not_implemented_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_service_unavailable_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_too_many_requests_error_response_body.py +1 -1
- samsara/types/driver_vehicle_assignments_v_2_update_driver_vehicle_assignment_unauthorized_error_response_body.py +1 -1
- samsara/types/driver_vehicle_group_tag.py +1 -1
- samsara/types/driver_with_external_id_object_response_body.py +2 -2
- samsara/types/driver_with_timezone_eld_settings_object_response_body.py +2 -2
- samsara/types/drivers_auth_token_create_driver_auth_token_bad_gateway_error_response_body.py +1 -1
- samsara/types/drivers_auth_token_create_driver_auth_token_gateway_timeout_error_response_body.py +1 -1
- samsara/types/drivers_auth_token_create_driver_auth_token_internal_server_error_response_body.py +1 -1
- samsara/types/drivers_auth_token_create_driver_auth_token_method_not_allowed_error_response_body.py +1 -1
- samsara/types/drivers_auth_token_create_driver_auth_token_not_found_error_response_body.py +1 -1
- samsara/types/drivers_auth_token_create_driver_auth_token_not_implemented_error_response_body.py +1 -1
- samsara/types/drivers_auth_token_create_driver_auth_token_service_unavailable_error_response_body.py +1 -1
- samsara/types/drivers_auth_token_create_driver_auth_token_too_many_requests_error_response_body.py +1 -1
- samsara/types/drivers_auth_token_create_driver_auth_token_unauthorized_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_bad_gateway_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_gateway_timeout_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_internal_server_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_method_not_allowed_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_not_found_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_not_implemented_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_service_unavailable_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_too_many_requests_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_get_drivers_vehicle_assignments_unauthorized_error_response_body.py +1 -1
- samsara/types/drivers_vehicle_assignments_object_response_body.py +3 -3
- samsara/types/duty_status_duration_object_response_body.py +8 -8
- samsara/types/dvir.py +12 -12
- samsara/types/{reading_type_response_body.py → dvir_2_assigned_to_polymorphic_user_object_response_body.py} +10 -9
- samsara/types/dvir_2_device_object_response_body.py +49 -0
- samsara/types/dvir_2_form_submission_object_response_body.py +47 -0
- samsara/types/dvir_2_related_device_object_response_body.py +38 -0
- samsara/types/dvir_2_related_device_object_response_body_asset_type.py +5 -0
- samsara/types/dvir_2_submission_response_object_response_body.py +50 -0
- samsara/types/dvir_2_submission_response_object_response_body_inspection_type.py +7 -0
- samsara/types/dvir_defect_get_defect_bad_gateway_error_response_body.py +1 -1
- samsara/types/dvir_defect_get_defect_gateway_timeout_error_response_body.py +1 -1
- samsara/types/dvir_defect_get_defect_internal_server_error_response_body.py +1 -1
- samsara/types/dvir_defect_get_defect_method_not_allowed_error_response_body.py +1 -1
- samsara/types/dvir_defect_get_defect_not_found_error_response_body.py +1 -1
- samsara/types/dvir_defect_get_defect_not_implemented_error_response_body.py +1 -1
- samsara/types/dvir_defect_get_defect_response_body.py +11 -9
- samsara/types/dvir_defect_get_defect_service_unavailable_error_response_body.py +1 -1
- samsara/types/dvir_defect_get_defect_too_many_requests_error_response_body.py +1 -1
- samsara/types/dvir_defect_get_defect_unauthorized_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_bad_gateway_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_gateway_timeout_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_internal_server_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_method_not_allowed_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_not_found_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_not_implemented_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_service_unavailable_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_too_many_requests_error_response_body.py +1 -1
- samsara/types/dvir_defect_stream_defects_unauthorized_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_bad_gateway_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_gateway_timeout_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_internal_server_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_method_not_allowed_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_not_found_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_not_implemented_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_service_unavailable_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_too_many_requests_error_response_body.py +1 -1
- samsara/types/dvir_defect_type_get_defect_types_unauthorized_error_response_body.py +1 -1
- samsara/types/dvir_defects_object_v_20220913_response_body.py +13 -7
- samsara/types/dvir_get_dvir_bad_gateway_error_response_body.py +1 -1
- samsara/types/dvir_get_dvir_gateway_timeout_error_response_body.py +1 -1
- samsara/types/dvir_get_dvir_internal_server_error_response_body.py +1 -1
- samsara/types/dvir_get_dvir_method_not_allowed_error_response_body.py +1 -1
- samsara/types/dvir_get_dvir_not_found_error_response_body.py +1 -1
- samsara/types/dvir_get_dvir_not_implemented_error_response_body.py +1 -1
- samsara/types/dvir_get_dvir_response_body.py +18 -12
- samsara/types/dvir_get_dvir_service_unavailable_error_response_body.py +1 -1
- samsara/types/dvir_get_dvir_too_many_requests_error_response_body.py +1 -1
- samsara/types/dvir_get_dvir_unauthorized_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_bad_gateway_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_gateway_timeout_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_internal_server_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_method_not_allowed_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_not_found_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_not_implemented_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_service_unavailable_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_too_many_requests_error_response_body.py +1 -1
- samsara/types/dvir_get_dvirs_unauthorized_error_response_body.py +1 -1
- samsara/types/dvir_signature.py +2 -2
- samsara/types/dvir_stream_response_data_response_body.py +18 -12
- samsara/types/dvir_submitted_device_trigger_details_object_request_body.py +2 -2
- samsara/types/dvir_submitted_device_trigger_details_object_response_body.py +2 -2
- samsara/types/dvir_trailer_defects_items.py +9 -7
- samsara/types/dvir_trailer_defects_items_vehicle.py +1 -1
- samsara/types/engine_idle_trigger_details_object_request_body.py +1 -1
- samsara/types/engine_idle_trigger_details_object_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_bad_gateway_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_gateway_timeout_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_internal_server_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_method_not_allowed_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_not_found_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_not_implemented_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_service_unavailable_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_too_many_requests_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_get_engine_immobilizer_states_unauthorized_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_relay_state_response_body.py +1 -1
- samsara/types/engine_immobilizer_state_response_body.py +6 -4
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_bad_gateway_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_gateway_timeout_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_internal_server_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_method_not_allowed_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_not_found_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_not_implemented_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_service_unavailable_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_too_many_requests_error_response_body.py +1 -1
- samsara/types/engine_immobilizer_update_engine_immobilizer_state_unauthorized_error_response_body.py +1 -1
- samsara/types/engine_off_details_object_request_body.py +1 -1
- samsara/types/engine_off_details_object_response_body.py +1 -1
- samsara/types/engine_on_details_object_request_body.py +1 -1
- samsara/types/engine_on_details_object_response_body.py +1 -1
- samsara/types/engine_status_response_body.py +1 -1
- samsara/types/equipment_header_with_additional_fields_response_body.py +8 -6
- samsara/types/equipment_object.py +3 -3
- samsara/types/equipment_patch_equipment_bad_gateway_error_response_body.py +1 -1
- samsara/types/equipment_patch_equipment_gateway_timeout_error_response_body.py +1 -1
- samsara/types/equipment_patch_equipment_internal_server_error_response_body.py +1 -1
- samsara/types/equipment_patch_equipment_method_not_allowed_error_response_body.py +1 -1
- samsara/types/equipment_patch_equipment_not_found_error_response_body.py +1 -1
- samsara/types/equipment_patch_equipment_not_implemented_error_response_body.py +1 -1
- samsara/types/equipment_patch_equipment_service_unavailable_error_response_body.py +1 -1
- samsara/types/equipment_patch_equipment_too_many_requests_error_response_body.py +1 -1
- samsara/types/equipment_patch_equipment_unauthorized_error_response_body.py +1 -1
- samsara/types/equipment_stats_gps.py +5 -3
- samsara/types/equipment_stats_list_response_data.py +11 -11
- samsara/types/equipment_stats_response_data.py +10 -10
- samsara/types/equipment_with_attributes_response_object_response_body.py +3 -3
- samsara/types/extended_driver_tiny_response.py +1 -1
- samsara/types/fft_spectra_data_point.py +1 -1
- samsara/types/field_object_value_request_body.py +8 -8
- samsara/types/field_object_value_response_body.py +8 -8
- samsara/types/field_types_object_response_body.py +7 -5
- samsara/types/filters_request_body.py +28 -0
- samsara/types/filters_response_body.py +28 -0
- samsara/types/following_distance_detection_alert_settings_object_response_body.py +4 -4
- samsara/types/form_submission_pdf_export_response_object_response_body.py +10 -8
- samsara/types/form_submission_request_check_boxes_value_object_request_body.py +3 -1
- samsara/types/form_submission_request_field_input_object_request_body.py +9 -9
- samsara/types/form_submission_request_media_item_object_request_body.py +4 -2
- samsara/types/form_submission_request_media_value_object_request_body.py +1 -1
- samsara/types/form_submission_request_multiple_choice_value_object_request_body.py +1 -1
- samsara/types/form_submission_request_person_object_request_body.py +3 -1
- samsara/types/form_submission_request_table_cell_object_request_body.py +6 -6
- samsara/types/form_submission_response_object_response_body.py +19 -13
- samsara/types/form_submissions_get_form_submissions_bad_gateway_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_gateway_timeout_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_internal_server_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_method_not_allowed_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_not_found_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_not_implemented_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_bad_gateway_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_gateway_timeout_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_internal_server_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_method_not_allowed_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_not_found_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_not_implemented_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_service_unavailable_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_too_many_requests_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_pdf_exports_unauthorized_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_service_unavailable_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_bad_gateway_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_gateway_timeout_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_internal_server_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_method_not_allowed_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_not_found_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_not_implemented_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_service_unavailable_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_too_many_requests_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_stream_unauthorized_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_too_many_requests_error_response_body.py +1 -1
- samsara/types/form_submissions_get_form_submissions_unauthorized_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_bad_gateway_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_gateway_timeout_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_internal_server_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_method_not_allowed_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_not_found_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_not_implemented_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_service_unavailable_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_too_many_requests_error_response_body.py +1 -1
- samsara/types/form_submissions_patch_form_submission_unauthorized_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_bad_gateway_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_gateway_timeout_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_internal_server_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_method_not_allowed_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_not_found_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_not_implemented_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_service_unavailable_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_too_many_requests_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submission_unauthorized_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_bad_gateway_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_gateway_timeout_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_internal_server_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_method_not_allowed_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_not_found_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_not_implemented_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_service_unavailable_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_too_many_requests_error_response_body.py +1 -1
- samsara/types/form_submissions_post_form_submissions_pdf_exports_unauthorized_error_response_body.py +1 -1
- samsara/types/form_template_reference_object_response_body.py +3 -1
- samsara/types/form_template_request_object_request_body.py +1 -1
- samsara/types/form_template_response_object_response_body.py +17 -7
- samsara/types/form_template_section_object_response_body.py +2 -2
- samsara/types/form_templates_get_form_templates_bad_gateway_error_response_body.py +1 -1
- samsara/types/form_templates_get_form_templates_gateway_timeout_error_response_body.py +1 -1
- samsara/types/form_templates_get_form_templates_internal_server_error_response_body.py +1 -1
- samsara/types/form_templates_get_form_templates_method_not_allowed_error_response_body.py +1 -1
- samsara/types/form_templates_get_form_templates_not_found_error_response_body.py +1 -1
- samsara/types/form_templates_get_form_templates_not_implemented_error_response_body.py +1 -1
- samsara/types/form_templates_get_form_templates_service_unavailable_error_response_body.py +1 -1
- samsara/types/form_templates_get_form_templates_too_many_requests_error_response_body.py +1 -1
- samsara/types/form_templates_get_form_templates_unauthorized_error_response_body.py +1 -1
- samsara/types/forms_action_object_response_body.py +2 -2
- samsara/types/forms_approval_config_object_response_body.py +1 -1
- samsara/types/forms_asset_object_response_body.py +2 -2
- samsara/types/forms_check_boxes_value_object_response_body.py +3 -1
- samsara/types/forms_condition_object_response_body.py +1 -1
- samsara/types/forms_field_definition_object_response_body.py +14 -12
- samsara/types/forms_field_input_object_response_body.py +12 -12
- samsara/types/forms_geofence_object_response_body.py +2 -2
- samsara/types/forms_issue_created_by_field_object_response_body.py +1 -1
- samsara/types/forms_media_record_object_response_body.py +2 -2
- samsara/types/forms_media_value_object_response_body.py +1 -1
- samsara/types/forms_multiple_choice_value_object_response_body.py +1 -1
- samsara/types/forms_person_object_response_body.py +2 -2
- samsara/types/forms_score_object_response_body.py +7 -3
- samsara/types/forms_select_option_object_response_body.py +2 -2
- samsara/types/forms_single_approval_config_object_response_body.py +1 -1
- samsara/types/forms_table_cell_object_response_body.py +8 -8
- samsara/types/forms_table_field_definition_object_response_body.py +6 -6
- samsara/types/forward_collision_detection_alert_settings_object_response_body.py +2 -2
- samsara/types/fuel_energy_cost_response_response_body.py +3 -1
- samsara/types/fuel_energy_driver_report_data_object_response_body.py +1 -1
- samsara/types/fuel_energy_driver_report_object_response_body.py +10 -8
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_bad_gateway_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_gateway_timeout_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_internal_server_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_method_not_allowed_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_not_found_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_not_implemented_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_service_unavailable_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_too_many_requests_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_driver_reports_unauthorized_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_bad_gateway_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_gateway_timeout_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_internal_server_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_method_not_allowed_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_not_found_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_not_implemented_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_service_unavailable_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_too_many_requests_error_response_body.py +1 -1
- samsara/types/fuel_energy_get_fuel_energy_vehicle_reports_unauthorized_error_response_body.py +1 -1
- samsara/types/fuel_energy_vehicle_object_response_body.py +2 -2
- samsara/types/fuel_energy_vehicle_report_data_object_response_body.py +1 -1
- samsara/types/fuel_energy_vehicle_report_object_response_body.py +10 -8
- samsara/types/fuel_level_trigger_details_object_request_body.py +4 -2
- samsara/types/fuel_level_trigger_details_object_response_body.py +4 -2
- samsara/types/fuel_purchase_post_fuel_purchase_bad_gateway_error_response_body.py +1 -1
- samsara/types/fuel_purchase_post_fuel_purchase_gateway_timeout_error_response_body.py +1 -1
- samsara/types/fuel_purchase_post_fuel_purchase_internal_server_error_response_body.py +1 -1
- samsara/types/fuel_purchase_post_fuel_purchase_method_not_allowed_error_response_body.py +1 -1
- samsara/types/fuel_purchase_post_fuel_purchase_not_found_error_response_body.py +1 -1
- samsara/types/fuel_purchase_post_fuel_purchase_not_implemented_error_response_body.py +1 -1
- samsara/types/fuel_purchase_post_fuel_purchase_service_unavailable_error_response_body.py +1 -1
- samsara/types/fuel_purchase_post_fuel_purchase_too_many_requests_error_response_body.py +1 -1
- samsara/types/fuel_purchase_post_fuel_purchase_unauthorized_error_response_body.py +1 -1
- samsara/types/fuel_remaining_response_body.py +1 -1
- samsara/types/functions_start_function_run_bad_gateway_error_response_body.py +1 -1
- samsara/types/functions_start_function_run_gateway_timeout_error_response_body.py +1 -1
- samsara/types/functions_start_function_run_internal_server_error_response_body.py +1 -1
- samsara/types/functions_start_function_run_method_not_allowed_error_response_body.py +1 -1
- samsara/types/functions_start_function_run_not_found_error_response_body.py +1 -1
- samsara/types/functions_start_function_run_not_implemented_error_response_body.py +1 -1
- samsara/types/functions_start_function_run_service_unavailable_error_response_body.py +1 -1
- samsara/types/functions_start_function_run_too_many_requests_error_response_body.py +1 -1
- samsara/types/functions_start_function_run_unauthorized_error_response_body.py +1 -1
- samsara/types/gateway_asset_response_object_response_body.py +1 -1
- samsara/types/gateway_details_response_response_body.py +6 -6
- samsara/types/gateway_disconnected_details_object_request_body.py +1 -1
- samsara/types/gateway_disconnected_details_object_response_body.py +1 -1
- samsara/types/gateway_response_object_response_body.py +3 -3
- samsara/types/gateway_unplugged_trigger_details_object_request_body.py +1 -1
- samsara/types/gateway_unplugged_trigger_details_object_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_bad_gateway_error_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_gateway_timeout_error_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_internal_server_error_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_method_not_allowed_error_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_not_found_error_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_not_implemented_error_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_service_unavailable_error_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_too_many_requests_error_response_body.py +1 -1
- samsara/types/gateways_delete_gateway_unauthorized_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_bad_gateway_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_gateway_timeout_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_internal_server_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_method_not_allowed_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_not_found_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_not_implemented_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_service_unavailable_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_too_many_requests_error_response_body.py +1 -1
- samsara/types/gateways_get_gateways_unauthorized_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_bad_gateway_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_gateway_timeout_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_internal_server_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_method_not_allowed_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_not_found_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_not_implemented_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_service_unavailable_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_too_many_requests_error_response_body.py +1 -1
- samsara/types/gateways_post_gateway_unauthorized_error_response_body.py +1 -1
- samsara/types/geofence_response_response_body.py +1 -1
- samsara/types/get_document_type_response_object_response_body.py +3 -3
- samsara/types/get_driver_trailer_assignments_response_body_response_body.py +4 -4
- samsara/types/get_report_runs_data_object_response_body.py +34 -0
- samsara/types/get_report_runs_data_object_response_body_status.py +7 -0
- samsara/types/get_response_workflow_configuration_object_response_body.py +8 -6
- samsara/types/get_workflow_incident_response_object_response_body.py +16 -6
- samsara/types/goa_address_tiny_response_response_body.py +1 -1
- samsara/types/goa_attribute_tiny.py +9 -2
- samsara/types/goa_attribute_tiny_request_body.py +9 -2
- samsara/types/goa_attribute_tiny_response_body.py +9 -2
- samsara/types/goa_driver_tiny_response_response_body.py +1 -1
- samsara/types/goa_pagination_response_response_body.py +4 -2
- samsara/types/goa_pagination_with_tokens_response_response_body.py +4 -2
- samsara/types/goa_route_stop_tiny_response_response_body.py +1 -1
- samsara/types/goa_route_tiny_response_response_body.py +1 -1
- samsara/types/goa_tag_tiny_response_request_body.py +1 -1
- samsara/types/goa_tag_tiny_response_response_body.py +1 -1
- samsara/types/goa_trailer_tiny_response_response_body.py +1 -1
- samsara/types/goa_vehicle_tiny_response_response_body.py +1 -1
- samsara/types/gps_signal_loss_details_object_request_body.py +1 -1
- samsara/types/gps_signal_loss_details_object_response_body.py +1 -1
- samsara/types/harsh_accel_sensitivity_g_force_settings_object_response_body.py +2 -2
- samsara/types/harsh_accel_sensitivity_v_2_settings_object_response_body.py +2 -2
- samsara/types/harsh_brake_sensitivity_g_force_settings_object_response_body.py +2 -2
- samsara/types/harsh_brake_sensitivity_v_2_settings_object_response_body.py +2 -2
- samsara/types/harsh_event_sensitivity_settings_object_response_body.py +3 -3
- samsara/types/harsh_event_sensitivity_v_2_settings_object_response_body.py +3 -3
- samsara/types/harsh_event_trigger_details_object_request_body_types_item.py +3 -0
- samsara/types/harsh_event_trigger_details_object_response_body_types_item.py +3 -0
- samsara/types/harsh_turn_sensitivity_g_force_settings_object_response_body.py +2 -2
- samsara/types/harsh_turn_sensitivity_v_2_settings_object_response_body.py +2 -2
- samsara/types/health_details_response_response_body.py +2 -2
- samsara/types/health_reason_response_response_body.py +3 -3
- samsara/types/health_reason_response_response_body_health_reason_code.py +1 -0
- samsara/types/health_response_response_body.py +14 -10
- samsara/types/health_response_response_body_primary_health_reason.py +1 -0
- samsara/types/health_response_response_body_recommended_action.py +4 -0
- samsara/types/hos_break.py +1 -1
- samsara/types/hos_clocks.py +3 -1
- samsara/types/hos_clocks_for_driver.py +2 -2
- samsara/types/hos_cycle.py +3 -3
- samsara/types/hos_daily_logs_get_hos_daily_logs_bad_gateway_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_get_hos_daily_logs_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_get_hos_daily_logs_internal_server_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_get_hos_daily_logs_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_get_hos_daily_logs_not_found_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_get_hos_daily_logs_not_implemented_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_get_hos_daily_logs_service_unavailable_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_get_hos_daily_logs_too_many_requests_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_get_hos_daily_logs_unauthorized_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_object_response_body.py +6 -6
- samsara/types/hos_daily_logs_update_shipping_docs_bad_gateway_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_update_shipping_docs_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_update_shipping_docs_internal_server_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_update_shipping_docs_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_update_shipping_docs_not_found_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_update_shipping_docs_not_implemented_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_update_shipping_docs_service_unavailable_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_update_shipping_docs_too_many_requests_error_response_body.py +1 -1
- samsara/types/hos_daily_logs_update_shipping_docs_unauthorized_error_response_body.py +1 -1
- samsara/types/hos_drive.py +1 -1
- samsara/types/hos_drivers_eld_event_object_response_body.py +3 -3
- samsara/types/hos_eld_event_location_object_response_body.py +1 -1
- samsara/types/hos_eld_event_object_response_body.py +13 -9
- samsara/types/hos_eld_event_remark_object_response_body.py +2 -2
- samsara/types/hos_eld_events_get_hos_eld_events_bad_gateway_error_response_body.py +1 -1
- samsara/types/hos_eld_events_get_hos_eld_events_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hos_eld_events_get_hos_eld_events_internal_server_error_response_body.py +1 -1
- samsara/types/hos_eld_events_get_hos_eld_events_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hos_eld_events_get_hos_eld_events_not_found_error_response_body.py +1 -1
- samsara/types/hos_eld_events_get_hos_eld_events_not_implemented_error_response_body.py +1 -1
- samsara/types/hos_eld_events_get_hos_eld_events_service_unavailable_error_response_body.py +1 -1
- samsara/types/hos_eld_events_get_hos_eld_events_too_many_requests_error_response_body.py +1 -1
- samsara/types/hos_eld_events_get_hos_eld_events_unauthorized_error_response_body.py +1 -1
- samsara/types/hos_log_entry.py +8 -4
- samsara/types/hos_logs_for_driver.py +3 -1
- samsara/types/hos_shift.py +1 -1
- samsara/types/hos_violation_day_object_response_body.py +2 -2
- samsara/types/hos_violation_object_response_body.py +6 -2
- samsara/types/hos_violation_trigger_details_object_request_body.py +1 -1
- samsara/types/hos_violation_trigger_details_object_response_body.py +1 -1
- samsara/types/hos_violations.py +2 -2
- samsara/types/hos_violations_get_hos_violations_bad_gateway_error_response_body.py +1 -1
- samsara/types/hos_violations_get_hos_violations_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hos_violations_get_hos_violations_internal_server_error_response_body.py +1 -1
- samsara/types/hos_violations_get_hos_violations_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hos_violations_get_hos_violations_not_found_error_response_body.py +1 -1
- samsara/types/hos_violations_get_hos_violations_not_implemented_error_response_body.py +1 -1
- samsara/types/hos_violations_get_hos_violations_service_unavailable_error_response_body.py +1 -1
- samsara/types/hos_violations_get_hos_violations_too_many_requests_error_response_body.py +1 -1
- samsara/types/hos_violations_get_hos_violations_unauthorized_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_bad_gateway_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_internal_server_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_not_found_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_not_implemented_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_service_unavailable_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_too_many_requests_error_response_body.py +1 -1
- samsara/types/hub_capacities_list_hub_capacities_unauthorized_error_response_body.py +1 -1
- samsara/types/hub_capacity_object_response_body.py +7 -3
- samsara/types/hub_custom_properties_list_hub_custom_properties_bad_gateway_error_response_body.py +33 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_gateway_timeout_error_response_body.py +33 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_internal_server_error_response_body.py +33 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_method_not_allowed_error_response_body.py +33 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_not_found_error_response_body.py +33 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_not_implemented_error_response_body.py +33 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_response_body.py +28 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_service_unavailable_error_response_body.py +33 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_too_many_requests_error_response_body.py +33 -0
- samsara/types/hub_custom_properties_list_hub_custom_properties_unauthorized_error_response_body.py +33 -0
- samsara/types/hub_custom_property_object_response_body.py +60 -0
- samsara/types/hub_location_created_object_response_body.py +22 -10
- samsara/types/hub_location_input_object_request_body.py +14 -12
- samsara/types/hub_location_object_response_body.py +22 -10
- samsara/types/hub_location_service_window_input_request_body.py +5 -3
- samsara/types/hub_location_updated_object_response_body.py +22 -10
- samsara/types/hub_locations_create_hub_locations_bad_gateway_error_response_body.py +1 -1
- samsara/types/hub_locations_create_hub_locations_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hub_locations_create_hub_locations_internal_server_error_response_body.py +1 -1
- samsara/types/hub_locations_create_hub_locations_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hub_locations_create_hub_locations_not_found_error_response_body.py +1 -1
- samsara/types/hub_locations_create_hub_locations_not_implemented_error_response_body.py +1 -1
- samsara/types/hub_locations_create_hub_locations_service_unavailable_error_response_body.py +1 -1
- samsara/types/hub_locations_create_hub_locations_too_many_requests_error_response_body.py +1 -1
- samsara/types/hub_locations_create_hub_locations_unauthorized_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_bad_gateway_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_internal_server_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_not_found_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_not_implemented_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_service_unavailable_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_too_many_requests_error_response_body.py +1 -1
- samsara/types/hub_locations_list_hub_locations_unauthorized_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_bad_gateway_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_internal_server_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_not_found_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_not_implemented_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_service_unavailable_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_too_many_requests_error_response_body.py +1 -1
- samsara/types/hub_locations_update_hub_location_unauthorized_error_response_body.py +1 -1
- samsara/types/hub_object_response_body.py +7 -3
- samsara/types/hub_plan_routes_list_hub_plan_routes_bad_gateway_error_response_body.py +1 -1
- samsara/types/hub_plan_routes_list_hub_plan_routes_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hub_plan_routes_list_hub_plan_routes_internal_server_error_response_body.py +1 -1
- samsara/types/hub_plan_routes_list_hub_plan_routes_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hub_plan_routes_list_hub_plan_routes_not_found_error_response_body.py +1 -1
- samsara/types/hub_plan_routes_list_hub_plan_routes_not_implemented_error_response_body.py +1 -1
- samsara/types/hub_plan_routes_list_hub_plan_routes_service_unavailable_error_response_body.py +1 -1
- samsara/types/hub_plan_routes_list_hub_plan_routes_too_many_requests_error_response_body.py +1 -1
- samsara/types/hub_plan_routes_list_hub_plan_routes_unauthorized_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_bad_gateway_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_internal_server_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_not_found_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_not_implemented_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_service_unavailable_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_too_many_requests_error_response_body.py +1 -1
- samsara/types/hub_plans_create_hub_plan_unauthorized_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_bad_gateway_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_internal_server_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_not_found_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_not_implemented_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_service_unavailable_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_too_many_requests_error_response_body.py +1 -1
- samsara/types/hub_plans_list_hub_plans_unauthorized_error_response_body.py +1 -1
- samsara/types/hub_skill_object_response_body.py +7 -3
- samsara/types/hub_skills_list_hub_skills_bad_gateway_error_response_body.py +1 -1
- samsara/types/hub_skills_list_hub_skills_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hub_skills_list_hub_skills_internal_server_error_response_body.py +1 -1
- samsara/types/hub_skills_list_hub_skills_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hub_skills_list_hub_skills_not_found_error_response_body.py +1 -1
- samsara/types/hub_skills_list_hub_skills_not_implemented_error_response_body.py +1 -1
- samsara/types/hub_skills_list_hub_skills_service_unavailable_error_response_body.py +1 -1
- samsara/types/hub_skills_list_hub_skills_too_many_requests_error_response_body.py +1 -1
- samsara/types/hub_skills_list_hub_skills_unauthorized_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_bad_gateway_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_gateway_timeout_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_internal_server_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_method_not_allowed_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_not_found_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_not_implemented_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_service_unavailable_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_too_many_requests_error_response_body.py +1 -1
- samsara/types/hubs_list_hubs_unauthorized_error_response_body.py +1 -1
- samsara/types/idling_event_address_object_response_body.py +2 -2
- samsara/types/idling_event_address_object_response_body_address_types_item.py +2 -0
- samsara/types/idling_event_asset_object_response_body.py +1 -1
- samsara/types/idling_event_object_v_20251023_response_body.py +11 -9
- samsara/types/idling_event_operator_object_response_body.py +1 -1
- samsara/types/idling_report_event_response_body.py +11 -5
- samsara/types/idling_reports_get_vehicle_idling_reports_bad_gateway_error_response_body.py +1 -1
- samsara/types/idling_reports_get_vehicle_idling_reports_gateway_timeout_error_response_body.py +1 -1
- samsara/types/idling_reports_get_vehicle_idling_reports_internal_server_error_response_body.py +1 -1
- samsara/types/idling_reports_get_vehicle_idling_reports_method_not_allowed_error_response_body.py +1 -1
- samsara/types/idling_reports_get_vehicle_idling_reports_not_found_error_response_body.py +1 -1
- samsara/types/idling_reports_get_vehicle_idling_reports_not_implemented_error_response_body.py +1 -1
- samsara/types/idling_reports_get_vehicle_idling_reports_response_body.py +6 -2
- samsara/types/idling_reports_get_vehicle_idling_reports_service_unavailable_error_response_body.py +1 -1
- samsara/types/idling_reports_get_vehicle_idling_reports_too_many_requests_error_response_body.py +1 -1
- samsara/types/idling_reports_get_vehicle_idling_reports_unauthorized_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_bad_gateway_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_gateway_timeout_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_internal_server_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_method_not_allowed_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_not_found_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_not_implemented_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_service_unavailable_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_too_many_requests_error_response_body.py +1 -1
- samsara/types/ifta_create_ifta_detail_job_unauthorized_error_response_body.py +1 -1
- samsara/types/ifta_detail_job_args_response_body.py +5 -3
- samsara/types/ifta_detail_job_output_response_body.py +10 -4
- samsara/types/ifta_detail_job_response_body.py +8 -6
- samsara/types/ifta_get_ifta_detail_job_bad_gateway_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_detail_job_gateway_timeout_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_detail_job_internal_server_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_detail_job_method_not_allowed_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_detail_job_not_found_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_detail_job_not_implemented_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_detail_job_service_unavailable_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_detail_job_too_many_requests_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_detail_job_unauthorized_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_bad_gateway_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_gateway_timeout_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_internal_server_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_method_not_allowed_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_not_found_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_not_implemented_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_service_unavailable_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_too_many_requests_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_jurisdiction_reports_unauthorized_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_bad_gateway_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_gateway_timeout_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_internal_server_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_method_not_allowed_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_not_found_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_not_implemented_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_service_unavailable_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_too_many_requests_error_response_body.py +1 -1
- samsara/types/ifta_get_ifta_vehicle_reports_unauthorized_error_response_body.py +1 -1
- samsara/types/ifta_jurisdiction_report_data_object_response_body.py +1 -1
- samsara/types/ifta_jurisdiction_summary_object_response_body.py +7 -3
- samsara/types/ifta_report_troubleshooting_object_response_body.py +6 -4
- samsara/types/ifta_vehicle_report_data_object_response_body.py +1 -1
- samsara/types/in_app_notification_options_object_request_body.py +4 -4
- samsara/types/in_app_notification_options_object_response_body.py +4 -4
- samsara/types/inactivity_response_body.py +1 -1
- samsara/types/inattentive_driving_detection_alert_settings_object_response_body.py +3 -3
- samsara/types/inside_geofence_trigger_details_object_request_body.py +1 -1
- samsara/types/inside_geofence_trigger_details_object_response_body.py +1 -1
- samsara/types/invoice_scan_file_request_body.py +37 -0
- samsara/types/issue_response_object_response_body.py +15 -9
- samsara/types/issues_get_issues_bad_gateway_error_response_body.py +1 -1
- samsara/types/issues_get_issues_gateway_timeout_error_response_body.py +1 -1
- samsara/types/issues_get_issues_internal_server_error_response_body.py +1 -1
- samsara/types/issues_get_issues_method_not_allowed_error_response_body.py +1 -1
- samsara/types/issues_get_issues_not_found_error_response_body.py +1 -1
- samsara/types/issues_get_issues_not_implemented_error_response_body.py +1 -1
- samsara/types/issues_get_issues_service_unavailable_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_bad_gateway_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_gateway_timeout_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_internal_server_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_method_not_allowed_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_not_found_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_not_implemented_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_service_unavailable_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_too_many_requests_error_response_body.py +1 -1
- samsara/types/issues_get_issues_stream_unauthorized_error_response_body.py +1 -1
- samsara/types/issues_get_issues_too_many_requests_error_response_body.py +1 -1
- samsara/types/issues_get_issues_unauthorized_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_bad_gateway_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_gateway_timeout_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_internal_server_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_method_not_allowed_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_not_found_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_not_implemented_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_service_unavailable_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_too_many_requests_error_response_body.py +1 -1
- samsara/types/issues_patch_issue_unauthorized_error_response_body.py +1 -1
- samsara/types/j_1939_d_1_status_data_point_value.py +16 -6
- samsara/types/job_response_object_response_body.py +14 -10
- samsara/types/jobs_create_job_bad_gateway_error_response_body.py +1 -1
- samsara/types/jobs_create_job_gateway_timeout_error_response_body.py +1 -1
- samsara/types/jobs_create_job_internal_server_error_response_body.py +1 -1
- samsara/types/jobs_create_job_method_not_allowed_error_response_body.py +1 -1
- samsara/types/jobs_create_job_not_found_error_response_body.py +1 -1
- samsara/types/jobs_create_job_not_implemented_error_response_body.py +1 -1
- samsara/types/jobs_create_job_response_body.py +3 -1
- samsara/types/jobs_create_job_service_unavailable_error_response_body.py +1 -1
- samsara/types/jobs_create_job_too_many_requests_error_response_body.py +1 -1
- samsara/types/jobs_create_job_unauthorized_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_bad_gateway_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_gateway_timeout_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_internal_server_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_method_not_allowed_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_not_found_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_not_implemented_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_response_body.py +3 -1
- samsara/types/jobs_delete_job_service_unavailable_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_too_many_requests_error_response_body.py +1 -1
- samsara/types/jobs_delete_job_unauthorized_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_bad_gateway_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_gateway_timeout_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_internal_server_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_method_not_allowed_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_not_found_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_not_implemented_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_response_body.py +3 -1
- samsara/types/jobs_get_jobs_service_unavailable_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_too_many_requests_error_response_body.py +1 -1
- samsara/types/jobs_get_jobs_unauthorized_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_bad_gateway_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_gateway_timeout_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_internal_server_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_method_not_allowed_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_not_found_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_not_implemented_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_response_body.py +3 -1
- samsara/types/jobs_patch_job_service_unavailable_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_too_many_requests_error_response_body.py +1 -1
- samsara/types/jobs_patch_job_unauthorized_error_response_body.py +1 -1
- samsara/types/list_hub_capacities_response_pagination_response_body.py +4 -2
- samsara/types/list_hub_custom_properties_response_pagination_response_body.py +37 -0
- samsara/types/list_hub_locations_response_pagination_response_body.py +4 -2
- samsara/types/list_hub_plan_routes_response_pagination_response_body.py +4 -2
- samsara/types/list_hub_plans_response_pagination_response_body.py +4 -2
- samsara/types/list_hub_skills_response_pagination_response_body.py +4 -2
- samsara/types/list_hubs_response_pagination_response_body.py +4 -2
- samsara/types/live_sharing_link_full_response_object_response_body.py +7 -5
- samsara/types/live_sharing_link_response_object_response_body.py +4 -2
- samsara/types/live_sharing_links_create_live_sharing_link_bad_gateway_error_response_body.py +1 -1
- samsara/types/live_sharing_links_create_live_sharing_link_gateway_timeout_error_response_body.py +1 -1
- samsara/types/live_sharing_links_create_live_sharing_link_internal_server_error_response_body.py +1 -1
- samsara/types/live_sharing_links_create_live_sharing_link_method_not_allowed_error_response_body.py +1 -1
- samsara/types/live_sharing_links_create_live_sharing_link_not_found_error_response_body.py +1 -1
- samsara/types/live_sharing_links_create_live_sharing_link_not_implemented_error_response_body.py +1 -1
- samsara/types/live_sharing_links_create_live_sharing_link_service_unavailable_error_response_body.py +1 -1
- samsara/types/live_sharing_links_create_live_sharing_link_too_many_requests_error_response_body.py +1 -1
- samsara/types/live_sharing_links_create_live_sharing_link_unauthorized_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_bad_gateway_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_gateway_timeout_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_internal_server_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_method_not_allowed_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_not_found_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_not_implemented_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_service_unavailable_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_too_many_requests_error_response_body.py +1 -1
- samsara/types/live_sharing_links_delete_live_sharing_link_unauthorized_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_bad_gateway_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_gateway_timeout_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_internal_server_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_method_not_allowed_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_not_found_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_not_implemented_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_service_unavailable_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_too_many_requests_error_response_body.py +1 -1
- samsara/types/live_sharing_links_get_live_sharing_links_unauthorized_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_bad_gateway_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_gateway_timeout_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_internal_server_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_method_not_allowed_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_not_found_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_not_implemented_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_service_unavailable_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_too_many_requests_error_response_body.py +1 -1
- samsara/types/live_sharing_links_update_live_sharing_link_unauthorized_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_bad_gateway_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_gateway_timeout_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_internal_server_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_method_not_allowed_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_not_found_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_not_implemented_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_service_unavailable_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_too_many_requests_error_response_body.py +1 -1
- samsara/types/location_and_speed_get_location_and_speed_unauthorized_error_response_body.py +1 -1
- samsara/types/location_and_speed_response_response_body.py +3 -1
- samsara/types/location_data_point.py +1 -1
- samsara/types/location_data_point_gps_location.py +3 -3
- samsara/types/location_data_point_gps_location_place.py +1 -1
- samsara/types/location_object_request_body.py +3 -3
- samsara/types/location_object_request_body_address_types_item.py +2 -0
- samsara/types/location_object_response_body.py +3 -3
- samsara/types/location_object_response_body_address_types_item.py +2 -0
- samsara/types/location_response_body.py +2 -2
- samsara/types/location_response_response_body.py +4 -2
- samsara/types/log_meta_data_object_response_body.py +12 -12
- samsara/types/media_object_response_body.py +7 -7
- samsara/types/media_retrieval_get_media_retrieval_bad_gateway_error_response_body.py +1 -1
- samsara/types/media_retrieval_get_media_retrieval_gateway_timeout_error_response_body.py +1 -1
- samsara/types/media_retrieval_get_media_retrieval_internal_server_error_response_body.py +1 -1
- samsara/types/media_retrieval_get_media_retrieval_method_not_allowed_error_response_body.py +1 -1
- samsara/types/media_retrieval_get_media_retrieval_not_found_error_response_body.py +1 -1
- samsara/types/media_retrieval_get_media_retrieval_not_implemented_error_response_body.py +1 -1
- samsara/types/media_retrieval_get_media_retrieval_service_unavailable_error_response_body.py +1 -1
- samsara/types/media_retrieval_get_media_retrieval_too_many_requests_error_response_body.py +1 -1
- samsara/types/media_retrieval_get_media_retrieval_unauthorized_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_bad_gateway_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_gateway_timeout_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_internal_server_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_method_not_allowed_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_not_found_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_not_implemented_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_service_unavailable_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_too_many_requests_error_response_body.py +1 -1
- samsara/types/media_retrieval_list_uploaded_media_unauthorized_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_bad_gateway_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_gateway_timeout_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_internal_server_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_method_not_allowed_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_not_found_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_not_implemented_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_service_unavailable_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_too_many_requests_error_response_body.py +1 -1
- samsara/types/media_retrieval_post_media_retrieval_unauthorized_error_response_body.py +1 -1
- samsara/types/minimal_route_stop_audit_logs_response_body.py +8 -8
- samsara/types/minimal_route_stop_response_body.py +6 -6
- samsara/types/missing_dvir_past_due_response_body.py +24 -0
- samsara/types/mobile_usage_detection_alert_settings_object_response_body.py +3 -3
- samsara/types/motion_detected_response_body.py +1 -1
- samsara/types/number_field_type_meta_data_object_response_body.py +1 -1
- samsara/types/operational_settings_object_request_body.py +2 -2
- samsara/types/operational_settings_object_response_body.py +2 -2
- samsara/types/order_custom_property_input_request_body.py +35 -0
- samsara/types/order_custom_property_response_body.py +40 -0
- samsara/types/order_input_object_request_body.py +14 -4
- samsara/types/order_object_response_body.py +20 -6
- samsara/types/order_quantity_input_request_body.py +3 -1
- samsara/types/order_quantity_response_body.py +3 -1
- samsara/types/order_task_custom_property_object_response_body.py +36 -0
- samsara/types/order_task_object_response_body.py +10 -2
- samsara/types/order_task_request_body.py +5 -5
- samsara/types/order_task_response_body.py +5 -5
- samsara/types/organization_info_carrier_settings.py +3 -3
- samsara/types/organization_info_object.py +1 -1
- samsara/types/out_of_route_details_object_request_body.py +4 -2
- samsara/types/out_of_route_details_object_response_body.py +4 -2
- samsara/types/outside_geofence_trigger_details_object_request_body.py +1 -1
- samsara/types/outside_geofence_trigger_details_object_response_body.py +1 -1
- samsara/types/pagination_response.py +4 -2
- samsara/types/panic_button_details_object_request_body.py +1 -1
- samsara/types/panic_button_details_object_response_body.py +1 -1
- samsara/types/part_instance_input_object_request_body.py +2 -2
- samsara/types/part_instance_object_response_body.py +2 -2
- samsara/types/patch_asset_data_outputs_single_response_response_body.py +4 -2
- samsara/types/patch_driver_trailer_assignments_response_body_response_body.py +6 -6
- samsara/types/patch_driver_vehicle_assignments_v_2_request_body_metadata_request_body.py +1 -1
- samsara/types/patch_job_object_request_body.py +7 -7
- samsara/types/patch_response_workflow_configuration_object_response_body.py +8 -6
- samsara/types/patch_shipping_docs_response_body_response_body.py +10 -10
- samsara/types/pending_duty_status_durations_object_response_body.py +8 -8
- samsara/types/person_detected_response_body.py +1 -1
- samsara/types/plan_object_response_body.py +14 -3
- samsara/types/plan_orders_create_plan_orders_bad_gateway_error_response_body.py +1 -1
- samsara/types/plan_orders_create_plan_orders_gateway_timeout_error_response_body.py +1 -1
- samsara/types/plan_orders_create_plan_orders_internal_server_error_response_body.py +1 -1
- samsara/types/plan_orders_create_plan_orders_method_not_allowed_error_response_body.py +1 -1
- samsara/types/plan_orders_create_plan_orders_not_found_error_response_body.py +1 -1
- samsara/types/plan_orders_create_plan_orders_not_implemented_error_response_body.py +1 -1
- samsara/types/plan_orders_create_plan_orders_service_unavailable_error_response_body.py +1 -1
- samsara/types/plan_orders_create_plan_orders_too_many_requests_error_response_body.py +1 -1
- samsara/types/plan_orders_create_plan_orders_unauthorized_error_response_body.py +1 -1
- samsara/types/policy_violations_detection_alert_settings_object_response_body.py +5 -5
- samsara/types/post_driver_trailer_assignments_response_body_response_body.py +9 -5
- samsara/types/post_driver_vehicle_assignments_v_2_request_body_metadata_request_body.py +1 -1
- samsara/types/post_fuel_purchase_response_body_response_body.py +1 -1
- samsara/types/post_invoice_scan_response_data_response_body.py +30 -0
- samsara/types/post_job_object_request_body.py +7 -7
- samsara/types/post_media_retrieval_object_response_body.py +6 -2
- samsara/types/post_response_res_workflow_configuration_object_response_body.py +8 -6
- samsara/types/primary_time_range_request_body.py +36 -0
- samsara/types/primary_time_range_response_body.py +36 -0
- samsara/types/push_notification_options_object_request_body.py +1 -1
- samsara/types/push_notification_options_object_response_body.py +1 -1
- samsara/types/qr_code_response_object_response_body.py +2 -2
- samsara/types/qualification_field_input_object_response_body.py +8 -8
- samsara/types/qualification_owner_object_response_body.py +2 -2
- samsara/types/qualification_owner_request_object_request_body.py +1 -1
- samsara/types/qualification_record_request_field_input_object_request_body.py +8 -8
- samsara/types/qualification_record_response_object_response_body.py +19 -9
- samsara/types/qualification_type_reference_object_response_body.py +1 -1
- samsara/types/qualification_type_response_object_response_body.py +16 -6
- samsara/types/qualifications_archive_qualification_record_bad_gateway_error_response_body.py +1 -1
- samsara/types/qualifications_archive_qualification_record_gateway_timeout_error_response_body.py +1 -1
- samsara/types/qualifications_archive_qualification_record_internal_server_error_response_body.py +1 -1
- samsara/types/qualifications_archive_qualification_record_method_not_allowed_error_response_body.py +1 -1
- samsara/types/qualifications_archive_qualification_record_not_found_error_response_body.py +1 -1
- samsara/types/qualifications_archive_qualification_record_not_implemented_error_response_body.py +1 -1
- samsara/types/qualifications_archive_qualification_record_service_unavailable_error_response_body.py +1 -1
- samsara/types/qualifications_archive_qualification_record_too_many_requests_error_response_body.py +1 -1
- samsara/types/qualifications_archive_qualification_record_unauthorized_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_bad_gateway_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_gateway_timeout_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_internal_server_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_method_not_allowed_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_not_found_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_not_implemented_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_service_unavailable_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_too_many_requests_error_response_body.py +1 -1
- samsara/types/qualifications_delete_qualification_record_unauthorized_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_bad_gateway_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_gateway_timeout_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_internal_server_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_method_not_allowed_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_not_found_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_not_implemented_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_service_unavailable_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_bad_gateway_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_gateway_timeout_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_internal_server_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_method_not_allowed_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_not_found_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_not_implemented_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_service_unavailable_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_too_many_requests_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_stream_unauthorized_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_too_many_requests_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_records_unauthorized_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_bad_gateway_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_gateway_timeout_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_internal_server_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_method_not_allowed_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_not_found_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_not_implemented_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_service_unavailable_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_too_many_requests_error_response_body.py +1 -1
- samsara/types/qualifications_get_qualification_types_unauthorized_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_bad_gateway_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_gateway_timeout_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_internal_server_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_method_not_allowed_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_not_found_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_not_implemented_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_service_unavailable_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_too_many_requests_error_response_body.py +1 -1
- samsara/types/qualifications_patch_qualification_record_unauthorized_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_bad_gateway_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_gateway_timeout_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_internal_server_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_method_not_allowed_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_not_found_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_not_implemented_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_service_unavailable_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_too_many_requests_error_response_body.py +1 -1
- samsara/types/qualifications_post_qualification_record_unauthorized_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_bad_gateway_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_gateway_timeout_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_internal_server_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_method_not_allowed_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_not_found_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_not_implemented_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_service_unavailable_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_too_many_requests_error_response_body.py +1 -1
- samsara/types/qualifications_unarchive_qualification_record_unauthorized_error_response_body.py +1 -1
- samsara/types/quantity_object_response_body.py +3 -1
- samsara/types/reading_datapoint_request_body.py +6 -4
- samsara/types/reading_definition_response_body.py +12 -6
- samsara/types/reading_history_response_body.py +3 -3
- samsara/types/reading_snapshot_response_body.py +4 -4
- samsara/types/reading_trigger_continuous_value_object_request_body.py +2 -2
- samsara/types/reading_trigger_continuous_value_object_request_body_unit.py +10 -0
- samsara/types/reading_trigger_continuous_value_object_response_body.py +2 -2
- samsara/types/reading_trigger_continuous_value_object_response_body_unit.py +10 -0
- samsara/types/reading_trigger_details_object_request_body.py +6 -4
- samsara/types/reading_trigger_details_object_response_body.py +6 -4
- samsara/types/reading_trigger_details_response_body.py +2 -2
- samsara/types/readings_get_readings_history_bad_gateway_error_response_body.py +1 -1
- samsara/types/readings_get_readings_history_gateway_timeout_error_response_body.py +1 -1
- samsara/types/readings_get_readings_history_internal_server_error_response_body.py +1 -1
- samsara/types/readings_get_readings_history_method_not_allowed_error_response_body.py +1 -1
- samsara/types/readings_get_readings_history_not_found_error_response_body.py +1 -1
- samsara/types/readings_get_readings_history_not_implemented_error_response_body.py +1 -1
- samsara/types/readings_get_readings_history_service_unavailable_error_response_body.py +1 -1
- samsara/types/readings_get_readings_history_too_many_requests_error_response_body.py +1 -1
- samsara/types/readings_get_readings_history_unauthorized_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_bad_gateway_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_gateway_timeout_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_internal_server_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_method_not_allowed_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_not_found_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_not_implemented_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_service_unavailable_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_too_many_requests_error_response_body.py +1 -1
- samsara/types/readings_get_readings_snapshot_unauthorized_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_bad_gateway_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_gateway_timeout_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_internal_server_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_method_not_allowed_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_not_found_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_not_implemented_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_service_unavailable_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_too_many_requests_error_response_body.py +1 -1
- samsara/types/readings_list_readings_definitions_unauthorized_error_response_body.py +1 -1
- samsara/types/readings_post_readings_bad_gateway_error_response_body.py +1 -1
- samsara/types/readings_post_readings_gateway_timeout_error_response_body.py +1 -1
- samsara/types/readings_post_readings_internal_server_error_response_body.py +1 -1
- samsara/types/readings_post_readings_method_not_allowed_error_response_body.py +1 -1
- samsara/types/readings_post_readings_not_found_error_response_body.py +1 -1
- samsara/types/readings_post_readings_not_implemented_error_response_body.py +1 -1
- samsara/types/readings_post_readings_service_unavailable_error_response_body.py +1 -1
- samsara/types/readings_post_readings_too_many_requests_error_response_body.py +1 -1
- samsara/types/readings_post_readings_unauthorized_error_response_body.py +1 -1
- samsara/types/recipient_object_request_body.py +4 -4
- samsara/types/recipient_object_response_body.py +4 -4
- samsara/types/report_columns_object_response_body.py +38 -0
- samsara/types/report_columns_object_response_body_data_type.py +7 -0
- samsara/types/report_columns_object_response_body_unit.py +88 -0
- samsara/types/report_config_object_response_body.py +42 -0
- samsara/types/report_run_object_response_body.py +49 -0
- samsara/types/report_run_object_response_body_status.py +7 -0
- samsara/types/reports_create_report_run_bad_gateway_error_response_body.py +33 -0
- samsara/types/reports_create_report_run_gateway_timeout_error_response_body.py +33 -0
- samsara/types/reports_create_report_run_internal_server_error_response_body.py +33 -0
- samsara/types/reports_create_report_run_method_not_allowed_error_response_body.py +33 -0
- samsara/types/reports_create_report_run_not_found_error_response_body.py +33 -0
- samsara/types/reports_create_report_run_not_implemented_error_response_body.py +33 -0
- samsara/types/reports_create_report_run_response_body.py +20 -0
- samsara/types/reports_create_report_run_service_unavailable_error_response_body.py +33 -0
- samsara/types/reports_create_report_run_too_many_requests_error_response_body.py +33 -0
- samsara/types/reports_create_report_run_unauthorized_error_response_body.py +33 -0
- samsara/types/reports_dataset_field_response_body.py +49 -0
- samsara/types/reports_dataset_field_response_body_data_type.py +7 -0
- samsara/types/reports_dataset_field_response_body_unit.py +88 -0
- samsara/types/reports_dataset_response_body.py +55 -0
- samsara/types/reports_get_datasets_bad_gateway_error_response_body.py +33 -0
- samsara/types/reports_get_datasets_gateway_timeout_error_response_body.py +33 -0
- samsara/types/reports_get_datasets_internal_server_error_response_body.py +33 -0
- samsara/types/reports_get_datasets_method_not_allowed_error_response_body.py +33 -0
- samsara/types/reports_get_datasets_not_found_error_response_body.py +33 -0
- samsara/types/reports_get_datasets_not_implemented_error_response_body.py +33 -0
- samsara/types/reports_get_datasets_response_body.py +26 -0
- samsara/types/reports_get_datasets_service_unavailable_error_response_body.py +33 -0
- samsara/types/reports_get_datasets_too_many_requests_error_response_body.py +33 -0
- samsara/types/reports_get_datasets_unauthorized_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_bad_gateway_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_gateway_timeout_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_internal_server_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_method_not_allowed_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_not_found_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_not_implemented_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_response_body.py +26 -0
- samsara/types/reports_get_report_configs_service_unavailable_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_too_many_requests_error_response_body.py +33 -0
- samsara/types/reports_get_report_configs_unauthorized_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_bad_gateway_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_gateway_timeout_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_internal_server_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_method_not_allowed_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_not_found_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_not_implemented_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_response_body.py +22 -0
- samsara/types/reports_get_report_run_data_service_unavailable_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_too_many_requests_error_response_body.py +33 -0
- samsara/types/reports_get_report_run_data_unauthorized_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_bad_gateway_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_gateway_timeout_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_internal_server_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_method_not_allowed_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_not_found_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_not_implemented_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_response_body.py +26 -0
- samsara/types/reports_get_report_runs_service_unavailable_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_too_many_requests_error_response_body.py +33 -0
- samsara/types/reports_get_report_runs_unauthorized_error_response_body.py +33 -0
- samsara/types/reverse_geo.py +1 -1
- samsara/types/reverse_geo_object_response_body.py +1 -1
- samsara/types/rolling_stop_detection_alert_settings_object_response_body.py +2 -2
- samsara/types/route_event_details_response_body.py +3 -3
- samsara/types/route_event_response_response_body.py +8 -4
- samsara/types/route_event_route_response_response_body.py +1 -1
- samsara/types/route_event_stop_response_response_body.py +1 -1
- samsara/types/route_object_response_body.py +20 -12
- samsara/types/route_settings_request_body.py +3 -3
- samsara/types/route_settings_response_body.py +3 -3
- samsara/types/route_stop_details_object_response_body.py +1 -1
- samsara/types/route_stop_estimated_arrival_details_object_request_body.py +3 -3
- samsara/types/route_stop_estimated_arrival_details_object_response_body.py +3 -3
- samsara/types/route_stop_object_response_body.py +4 -4
- samsara/types/routes_create_route_bad_gateway_error_response_body.py +1 -1
- samsara/types/routes_create_route_gateway_timeout_error_response_body.py +1 -1
- samsara/types/routes_create_route_internal_server_error_response_body.py +1 -1
- samsara/types/routes_create_route_method_not_allowed_error_response_body.py +1 -1
- samsara/types/routes_create_route_not_found_error_response_body.py +1 -1
- samsara/types/routes_create_route_not_implemented_error_response_body.py +1 -1
- samsara/types/routes_create_route_service_unavailable_error_response_body.py +1 -1
- samsara/types/routes_create_route_too_many_requests_error_response_body.py +1 -1
- samsara/types/routes_create_route_unauthorized_error_response_body.py +1 -1
- samsara/types/routes_delete_route_bad_gateway_error_response_body.py +1 -1
- samsara/types/routes_delete_route_gateway_timeout_error_response_body.py +1 -1
- samsara/types/routes_delete_route_internal_server_error_response_body.py +1 -1
- samsara/types/routes_delete_route_method_not_allowed_error_response_body.py +1 -1
- samsara/types/routes_delete_route_not_found_error_response_body.py +1 -1
- samsara/types/routes_delete_route_not_implemented_error_response_body.py +1 -1
- samsara/types/routes_delete_route_service_unavailable_error_response_body.py +1 -1
- samsara/types/routes_delete_route_too_many_requests_error_response_body.py +1 -1
- samsara/types/routes_delete_route_unauthorized_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_bad_gateway_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_gateway_timeout_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_internal_server_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_method_not_allowed_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_not_found_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_not_implemented_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_service_unavailable_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_too_many_requests_error_response_body.py +1 -1
- samsara/types/routes_fetch_route_unauthorized_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_bad_gateway_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_gateway_timeout_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_internal_server_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_method_not_allowed_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_not_found_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_not_implemented_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_service_unavailable_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_too_many_requests_error_response_body.py +1 -1
- samsara/types/routes_fetch_routes_unauthorized_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_bad_gateway_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_gateway_timeout_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_internal_server_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_method_not_allowed_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_not_found_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_not_implemented_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_service_unavailable_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_too_many_requests_error_response_body.py +1 -1
- samsara/types/routes_get_route_events_stream_unauthorized_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_bad_gateway_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_gateway_timeout_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_internal_server_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_method_not_allowed_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_not_found_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_not_implemented_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_service_unavailable_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_too_many_requests_error_response_body.py +1 -1
- samsara/types/routes_get_routes_feed_unauthorized_error_response_body.py +1 -1
- samsara/types/routes_patch_route_bad_gateway_error_response_body.py +1 -1
- samsara/types/routes_patch_route_gateway_timeout_error_response_body.py +1 -1
- samsara/types/routes_patch_route_internal_server_error_response_body.py +1 -1
- samsara/types/routes_patch_route_method_not_allowed_error_response_body.py +1 -1
- samsara/types/routes_patch_route_not_found_error_response_body.py +1 -1
- samsara/types/routes_patch_route_not_implemented_error_response_body.py +1 -1
- samsara/types/routes_patch_route_service_unavailable_error_response_body.py +1 -1
- samsara/types/routes_patch_route_too_many_requests_error_response_body.py +1 -1
- samsara/types/routes_patch_route_unauthorized_error_response_body.py +1 -1
- samsara/types/routes_single_use_address_object_request_body.py +1 -1
- samsara/types/routes_single_use_address_object_response_body.py +1 -1
- samsara/types/routes_stop_response_object_response_body.py +27 -13
- samsara/types/safety_behavior_trigger_details_object_request_body.py +61 -0
- samsara/types/safety_behavior_trigger_details_object_request_body_behaviors_item.py +86 -0
- samsara/types/safety_behavior_trigger_details_object_request_body_severities_item.py +7 -0
- samsara/types/safety_behavior_trigger_details_object_request_body_statuses_item.py +7 -0
- samsara/types/safety_behavior_trigger_details_object_response_body.py +61 -0
- samsara/types/safety_behavior_trigger_details_object_response_body_behaviors_item.py +86 -0
- samsara/types/safety_behavior_trigger_details_object_response_body_severities_item.py +7 -0
- samsara/types/safety_behavior_trigger_details_object_response_body_statuses_item.py +7 -0
- samsara/types/safety_event.py +12 -12
- samsara/types/safety_event_activity_feed_item_response_body.py +3 -1
- samsara/types/safety_event_behavior_labels_response_body.py +1 -1
- samsara/types/safety_event_behavior_labels_response_body_type.py +3 -0
- samsara/types/safety_event_object_response_body.py +1 -1
- samsara/types/safety_event_speeding_metadata_response_body.py +37 -0
- samsara/types/safety_event_v_2_asset_object_response_body.py +1 -1
- samsara/types/safety_event_v_2_behavior_labels_response_body.py +1 -1
- samsara/types/safety_event_v_2_behavior_labels_response_body_label.py +3 -0
- samsara/types/safety_event_v_2_context_labels_response_body.py +4 -2
- samsara/types/safety_event_v_2_driver_object_response_body.py +2 -2
- samsara/types/safety_event_v_2_media_response_body.py +49 -0
- samsara/types/safety_event_v_2_media_response_body_camera_role.py +28 -0
- samsara/types/safety_event_v_2_media_response_body_input.py +7 -0
- samsara/types/safety_event_v_2_object_response_body.py +45 -27
- samsara/types/safety_events_get_safety_activity_event_feed_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_events_get_safety_activity_event_feed_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_events_get_safety_activity_event_feed_internal_server_error_response_body.py +1 -1
- samsara/types/safety_events_get_safety_activity_event_feed_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_events_get_safety_activity_event_feed_not_found_error_response_body.py +1 -1
- samsara/types/safety_events_get_safety_activity_event_feed_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_events_get_safety_activity_event_feed_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_events_get_safety_activity_event_feed_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_events_get_safety_activity_event_feed_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_internal_server_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_not_found_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_internal_server_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_not_found_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_stream_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_events_v_2_get_safety_events_v_2_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_score_behavior_object_response_body.py +4 -2
- samsara/types/safety_score_configuration_settings_object_response_body.py +30 -30
- samsara/types/safety_score_details_request_body.py +32 -0
- samsara/types/safety_score_details_request_body_comparison.py +8 -0
- samsara/types/safety_score_details_response_body.py +32 -0
- samsara/types/safety_score_details_response_body_comparison.py +8 -0
- samsara/types/safety_score_speeding_object_response_body.py +5 -3
- samsara/types/safety_scores_get_driver_safety_score_trips_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_score_trips_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_score_trips_internal_server_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_score_trips_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_score_trips_not_found_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_score_trips_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_score_trips_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_score_trips_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_score_trips_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_internal_server_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_not_found_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_scores_get_driver_safety_scores_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_internal_server_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_not_found_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_group_safety_scores_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_internal_server_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_not_found_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_scores_get_tag_safety_scores_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_internal_server_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_not_found_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_score_trips_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_internal_server_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_not_found_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_scores_get_vehicle_safety_scores_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_bad_gateway_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_gateway_timeout_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_internal_server_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_method_not_allowed_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_not_found_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_not_implemented_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_service_unavailable_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_too_many_requests_error_response_body.py +1 -1
- samsara/types/safety_settings_get_safety_settings_unauthorized_error_response_body.py +1 -1
- samsara/types/safety_settings_object_response_body.py +14 -12
- samsara/types/scheduled_maintenance_by_engine_hours_details_object_request_body.py +6 -2
- samsara/types/scheduled_maintenance_by_engine_hours_details_object_response_body.py +6 -2
- samsara/types/scheduled_maintenance_odometer_trigger_details_object_request_body.py +6 -2
- samsara/types/scheduled_maintenance_odometer_trigger_details_object_response_body.py +6 -2
- samsara/types/scheduled_maintenance_trigger_details_object_request_body.py +4 -2
- samsara/types/scheduled_maintenance_trigger_details_object_response_body.py +4 -2
- samsara/types/scope_object_request_body.py +1 -1
- samsara/types/scope_object_response_body.py +1 -1
- samsara/types/service_task_definition_object_response_body.py +2 -2
- samsara/types/service_task_instance_input_object_request_body.py +6 -4
- samsara/types/service_task_instance_object_response_body.py +6 -4
- samsara/types/service_window_object_response_body.py +5 -3
- samsara/types/settings_compliance_response_object_response_body.py +10 -10
- samsara/types/settings_get_compliance_settings_bad_gateway_error_response_body.py +1 -1
- samsara/types/settings_get_compliance_settings_gateway_timeout_error_response_body.py +1 -1
- samsara/types/settings_get_compliance_settings_internal_server_error_response_body.py +1 -1
- samsara/types/settings_get_compliance_settings_method_not_allowed_error_response_body.py +1 -1
- samsara/types/settings_get_compliance_settings_not_found_error_response_body.py +1 -1
- samsara/types/settings_get_compliance_settings_not_implemented_error_response_body.py +1 -1
- samsara/types/settings_get_compliance_settings_service_unavailable_error_response_body.py +1 -1
- samsara/types/settings_get_compliance_settings_too_many_requests_error_response_body.py +1 -1
- samsara/types/settings_get_compliance_settings_unauthorized_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_bad_gateway_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_gateway_timeout_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_internal_server_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_method_not_allowed_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_not_found_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_not_implemented_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_service_unavailable_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_too_many_requests_error_response_body.py +1 -1
- samsara/types/settings_get_driver_app_settings_unauthorized_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_bad_gateway_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_gateway_timeout_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_internal_server_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_method_not_allowed_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_not_found_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_not_implemented_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_service_unavailable_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_too_many_requests_error_response_body.py +1 -1
- samsara/types/settings_patch_compliance_settings_unauthorized_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_bad_gateway_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_gateway_timeout_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_internal_server_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_method_not_allowed_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_not_found_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_not_implemented_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_service_unavailable_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_too_many_requests_error_response_body.py +1 -1
- samsara/types/settings_patch_driver_app_settings_unauthorized_error_response_body.py +1 -1
- samsara/types/settings_response_body.py +1 -1
- samsara/types/severe_speeding_started_object_response_body.py +2 -2
- samsara/types/signature_field_type_meta_data_object_response_body.py +1 -1
- samsara/types/signature_value_object_request_body.py +1 -1
- samsara/types/signature_value_object_response_body.py +1 -1
- samsara/types/single_approval_requirements_object_response_body.py +3 -1
- samsara/types/single_driver_efficiency_by_driver_data_object_response_body.py +5 -5
- samsara/types/single_driver_efficiency_by_vehicle_data_object_response_body.py +5 -5
- samsara/types/specific_vehicle_fault_code_object_request_body.py +1 -1
- samsara/types/specific_vehicle_fault_code_object_response_body.py +1 -1
- samsara/types/speed_data_response_body.py +3 -3
- samsara/types/speed_response_response_body.py +2 -2
- samsara/types/speed_trigger_details_object_request_body.py +2 -2
- samsara/types/speed_trigger_details_object_response_body.py +2 -2
- samsara/types/speeding_interval_location_response_response_body.py +4 -2
- samsara/types/speeding_interval_response_body.py +8 -6
- samsara/types/speeding_intervals_get_speeding_intervals_bad_gateway_error_response_body.py +1 -1
- samsara/types/speeding_intervals_get_speeding_intervals_gateway_timeout_error_response_body.py +1 -1
- samsara/types/speeding_intervals_get_speeding_intervals_internal_server_error_response_body.py +1 -1
- samsara/types/speeding_intervals_get_speeding_intervals_method_not_allowed_error_response_body.py +1 -1
- samsara/types/speeding_intervals_get_speeding_intervals_not_found_error_response_body.py +1 -1
- samsara/types/speeding_intervals_get_speeding_intervals_not_implemented_error_response_body.py +1 -1
- samsara/types/speeding_intervals_get_speeding_intervals_service_unavailable_error_response_body.py +1 -1
- samsara/types/speeding_intervals_get_speeding_intervals_too_many_requests_error_response_body.py +1 -1
- samsara/types/speeding_intervals_get_speeding_intervals_unauthorized_error_response_body.py +1 -1
- samsara/types/speeding_settings_object_response_body.py +1 -1
- samsara/types/speeding_severity_level_response_body.py +6 -4
- samsara/types/start_function_run_response_body_response_body.py +3 -1
- samsara/types/stop_eta_updated_event_details_response_body.py +4 -2
- samsara/types/stop_task_completed_event_details_response_body.py +2 -2
- samsara/types/stop_task_skipped_event_details_response_body.py +2 -2
- samsara/types/sudden_fuel_level_drop_response_body.py +4 -4
- samsara/types/sudden_fuel_level_drop_trigger_details_object_request_body.py +1 -1
- samsara/types/sudden_fuel_level_drop_trigger_details_object_response_body.py +1 -1
- samsara/types/sudden_fuel_level_rise_response_body.py +4 -4
- samsara/types/sudden_fuel_level_rise_trigger_details_object_request_body.py +1 -1
- samsara/types/sudden_fuel_level_rise_trigger_details_object_response_body.py +1 -1
- samsara/types/tachograph_activity.py +3 -3
- samsara/types/tachograph_driver_file.py +2 -2
- samsara/types/tachograph_vehicle_file.py +2 -2
- samsara/types/tag_all_of.py +4 -2
- samsara/types/tag_group_safety_score_response_body.py +5 -3
- samsara/types/tag_safety_score_response_body.py +4 -4
- samsara/types/tag_tiny_response.py +1 -1
- samsara/types/time_range_object_request_body.py +3 -3
- samsara/types/time_range_object_response_body.py +3 -3
- samsara/types/tiny_asset_object_request_body.py +2 -2
- samsara/types/tiny_asset_object_response_body.py +2 -2
- samsara/types/tiny_driver_object_request_body.py +1 -1
- samsara/types/tiny_driver_object_response_body.py +1 -1
- samsara/types/tiny_tag.py +3 -1
- samsara/types/tiny_widget_object_request_body.py +1 -1
- samsara/types/tiny_widget_object_response_body.py +1 -1
- samsara/types/tire_fault_code_details_object_request_body.py +3 -3
- samsara/types/tire_fault_code_details_object_response_body.py +3 -3
- samsara/types/trailer_assignments_create_driver_trailer_assignment_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailer_assignments_create_driver_trailer_assignment_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailer_assignments_create_driver_trailer_assignment_internal_server_error_response_body.py +1 -1
- samsara/types/trailer_assignments_create_driver_trailer_assignment_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailer_assignments_create_driver_trailer_assignment_not_found_error_response_body.py +1 -1
- samsara/types/trailer_assignments_create_driver_trailer_assignment_not_implemented_error_response_body.py +1 -1
- samsara/types/trailer_assignments_create_driver_trailer_assignment_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailer_assignments_create_driver_trailer_assignment_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailer_assignments_create_driver_trailer_assignment_unauthorized_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_internal_server_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_not_found_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_not_implemented_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailer_assignments_get_driver_trailer_assignments_unauthorized_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_internal_server_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_not_found_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_not_implemented_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailer_assignments_update_driver_trailer_assignment_unauthorized_error_response_body.py +1 -1
- samsara/types/trailer_dvir_object_response_body.py +1 -1
- samsara/types/trailer_object_response_body.py +1 -1
- samsara/types/trailer_response_object_response_body.py +5 -5
- samsara/types/trailer_stat_decoration_response_body.py +22 -22
- samsara/types/trailer_stat_gps_type_response_body.py +3 -3
- samsara/types/trailer_stat_gps_with_decorations_type_response_body.py +3 -3
- samsara/types/trailer_stat_reefer_alarm_response_body.py +4 -2
- samsara/types/trailer_stat_reefer_state_type_response_body.py +1 -1
- samsara/types/trailer_stat_reefer_state_with_decorations_type_response_body.py +1 -1
- samsara/types/trailer_stat_reefer_state_zone_1_type_response_body.py +1 -1
- samsara/types/trailer_stat_reefer_state_zone_1_with_decorations_type_response_body.py +1 -1
- samsara/types/trailer_stat_reefer_state_zone_2_type_response_body.py +1 -1
- samsara/types/trailer_stat_reefer_state_zone_2_with_decorations_type_response_body.py +1 -1
- samsara/types/trailer_stat_reefer_state_zone_3_type_response_body.py +1 -1
- samsara/types/trailer_stat_reefer_state_zone_3_with_decorations_type_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_internal_server_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_not_found_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_not_implemented_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_feed_unauthorized_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_internal_server_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_not_found_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_not_implemented_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_history_unauthorized_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_internal_server_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_not_found_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_not_implemented_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailer_stats_get_trailer_stats_snapshot_unauthorized_error_response_body.py +1 -1
- samsara/types/trailer_stats_object_response_body.py +22 -22
- samsara/types/trailer_stats_snapshot_object_response_body.py +22 -22
- samsara/types/trailer_with_attributes_response_object_response_body.py +5 -5
- samsara/types/trailers_create_trailer_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailers_create_trailer_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailers_create_trailer_internal_server_error_response_body.py +1 -1
- samsara/types/trailers_create_trailer_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailers_create_trailer_not_found_error_response_body.py +1 -1
- samsara/types/trailers_create_trailer_not_implemented_error_response_body.py +1 -1
- samsara/types/trailers_create_trailer_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailers_create_trailer_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailers_create_trailer_unauthorized_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_internal_server_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_not_found_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_not_implemented_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailers_delete_trailer_unauthorized_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_internal_server_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_not_found_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_not_implemented_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailers_get_trailer_unauthorized_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_internal_server_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_not_found_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_not_implemented_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailers_list_trailers_unauthorized_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_bad_gateway_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_internal_server_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_not_found_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_not_implemented_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_service_unavailable_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_too_many_requests_error_response_body.py +1 -1
- samsara/types/trailers_update_trailer_unauthorized_error_response_body.py +1 -1
- samsara/types/training_assignment_near_due_date_trigger_assignment_group_object_request_body.py +2 -2
- samsara/types/training_assignment_near_due_date_trigger_assignment_group_object_response_body.py +2 -2
- samsara/types/training_assignment_near_due_date_trigger_details_object_request_body.py +5 -3
- samsara/types/training_assignment_near_due_date_trigger_details_object_response_body.py +5 -3
- samsara/types/training_assignment_post_response_object_response_body.py +8 -4
- samsara/types/training_assignment_response_object_response_body.py +22 -12
- samsara/types/training_assignments_delete_training_assignments_bad_gateway_error_response_body.py +1 -1
- samsara/types/training_assignments_delete_training_assignments_gateway_timeout_error_response_body.py +1 -1
- samsara/types/training_assignments_delete_training_assignments_internal_server_error_response_body.py +1 -1
- samsara/types/training_assignments_delete_training_assignments_method_not_allowed_error_response_body.py +1 -1
- samsara/types/training_assignments_delete_training_assignments_not_found_error_response_body.py +1 -1
- samsara/types/training_assignments_delete_training_assignments_not_implemented_error_response_body.py +1 -1
- samsara/types/training_assignments_delete_training_assignments_service_unavailable_error_response_body.py +1 -1
- samsara/types/training_assignments_delete_training_assignments_too_many_requests_error_response_body.py +1 -1
- samsara/types/training_assignments_delete_training_assignments_unauthorized_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_bad_gateway_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_gateway_timeout_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_internal_server_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_method_not_allowed_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_not_found_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_not_implemented_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_service_unavailable_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_too_many_requests_error_response_body.py +1 -1
- samsara/types/training_assignments_get_training_assignments_stream_unauthorized_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_bad_gateway_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_gateway_timeout_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_internal_server_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_method_not_allowed_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_not_found_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_not_implemented_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_service_unavailable_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_too_many_requests_error_response_body.py +1 -1
- samsara/types/training_assignments_patch_training_assignments_unauthorized_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_bad_gateway_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_gateway_timeout_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_internal_server_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_method_not_allowed_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_not_found_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_not_implemented_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_service_unavailable_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_too_many_requests_error_response_body.py +1 -1
- samsara/types/training_assignments_post_training_assignments_unauthorized_error_response_body.py +1 -1
- samsara/types/training_course_object_response_body.py +3 -1
- samsara/types/training_course_response_object_response_body.py +4 -2
- samsara/types/training_courses_get_training_courses_bad_gateway_error_response_body.py +1 -1
- samsara/types/training_courses_get_training_courses_gateway_timeout_error_response_body.py +1 -1
- samsara/types/training_courses_get_training_courses_internal_server_error_response_body.py +1 -1
- samsara/types/training_courses_get_training_courses_method_not_allowed_error_response_body.py +1 -1
- samsara/types/training_courses_get_training_courses_not_found_error_response_body.py +1 -1
- samsara/types/training_courses_get_training_courses_not_implemented_error_response_body.py +1 -1
- samsara/types/training_courses_get_training_courses_service_unavailable_error_response_body.py +1 -1
- samsara/types/training_courses_get_training_courses_too_many_requests_error_response_body.py +1 -1
- samsara/types/training_courses_get_training_courses_unauthorized_error_response_body.py +1 -1
- samsara/types/trigger_params_object_request_body.py +36 -32
- samsara/types/trigger_params_object_response_body.py +36 -32
- samsara/types/trip_response_body.py +15 -7
- samsara/types/trip_speeding_intervals_response_body.py +10 -4
- samsara/types/trips_breakdown_response_body.py +12 -6
- samsara/types/trips_get_trips_bad_gateway_error_response_body.py +1 -1
- samsara/types/trips_get_trips_gateway_timeout_error_response_body.py +1 -1
- samsara/types/trips_get_trips_internal_server_error_response_body.py +1 -1
- samsara/types/trips_get_trips_method_not_allowed_error_response_body.py +1 -1
- samsara/types/trips_get_trips_not_found_error_response_body.py +1 -1
- samsara/types/trips_get_trips_not_implemented_error_response_body.py +1 -1
- samsara/types/trips_get_trips_service_unavailable_error_response_body.py +1 -1
- samsara/types/trips_get_trips_too_many_requests_error_response_body.py +1 -1
- samsara/types/trips_get_trips_unauthorized_error_response_body.py +1 -1
- samsara/types/unassigned_driving_trigger_details_object_request_body.py +1 -1
- samsara/types/unassigned_driving_trigger_details_object_response_body.py +1 -1
- samsara/types/update_driver_request_attributes.py +54 -0
- samsara/types/update_driver_request_hos_setting.py +1 -1
- samsara/types/update_engine_immobilizer_relay_state_request_body_request_body.py +1 -1
- samsara/types/update_hub_location_request_body_request_body.py +7 -7
- samsara/types/update_routes_stop_request_object_request_body.py +8 -8
- samsara/types/uploaded_media_object_response_body.py +10 -8
- samsara/types/url_info_object_response_body.py +3 -1
- samsara/types/us_driver_ruleset_override.py +1 -1
- samsara/types/user.py +3 -1
- samsara/types/user_role_assignment.py +3 -1
- samsara/types/v_1_asset.py +3 -3
- samsara/types/v_1_asset_cable.py +1 -1
- samsara/types/v_1_asset_current_location.py +2 -2
- samsara/types/v_1_asset_current_locations_response.py +2 -2
- samsara/types/v_1_asset_location_response_item.py +1 -1
- samsara/types/v_1_asset_reefer_response.py +2 -2
- samsara/types/v_1_asset_reefer_response_reefer_stats.py +5 -5
- samsara/types/v_1_asset_reefer_response_reefer_stats_alarms.py +2 -2
- samsara/types/v_1_asset_reefer_response_reefer_stats_alarms_1.py +1 -1
- samsara/types/v_1_asset_reefer_response_reefer_stats_engine_hours.py +2 -2
- samsara/types/v_1_asset_reefer_response_reefer_stats_fuel_percentage.py +2 -2
- samsara/types/v_1_asset_reefer_response_reefer_stats_power_status.py +1 -1
- samsara/types/v_1_asset_reefer_response_reefer_stats_return_air_temp.py +2 -2
- samsara/types/v_1_asset_reefer_response_reefer_stats_set_point.py +2 -2
- samsara/types/v_1_assets_reefer.py +2 -2
- samsara/types/v_1_assets_reefer_reefer_stats.py +8 -8
- samsara/types/v_1_assets_reefer_reefer_stats_ambient_air_temperature.py +2 -2
- samsara/types/v_1_assets_reefer_reefer_stats_discharge_air_temperature.py +2 -2
- samsara/types/v_1_assets_reefer_reefer_stats_power_status.py +1 -1
- samsara/types/v_1_cargo_response.py +1 -1
- samsara/types/v_1_cargo_response_sensors.py +5 -5
- samsara/types/v_1_door_response.py +1 -1
- samsara/types/v_1_door_response_sensors.py +4 -4
- samsara/types/v_1_driver_safety_score_response.py +12 -12
- samsara/types/v_1_hos_authentication_logs_response.py +1 -1
- samsara/types/v_1_hos_authentication_logs_response_authentication_logs.py +3 -3
- samsara/types/v_1_humidity_response.py +1 -1
- samsara/types/v_1_humidity_response_sensors.py +3 -3
- samsara/types/v_1_machine_history_response_vibrations.py +9 -3
- samsara/types/v_1_message.py +1 -1
- samsara/types/v_1_message_response.py +3 -3
- samsara/types/v_1_pagination.py +10 -4
- samsara/types/v_1_programs_for_the_camera_response_item.py +6 -2
- samsara/types/v_1_safety_report_harsh_event.py +3 -3
- samsara/types/v_1_sensor.py +1 -1
- samsara/types/v_1_sensor_history_response_results.py +1 -1
- samsara/types/v_1_sensors_history_series.py +1 -1
- samsara/types/v_1_temperature_response.py +1 -1
- samsara/types/v_1_temperature_response_sensors.py +6 -6
- samsara/types/v_1_trailer_assignment_response.py +3 -3
- samsara/types/v_1_trailer_assignments_response_all_of.py +1 -1
- samsara/types/v_1_trip_response_trips.py +16 -16
- samsara/types/v_1_vehicle_harsh_event_response.py +10 -6
- samsara/types/v_1_vehicle_maintenance.py +3 -1
- samsara/types/v_1_vehicle_maintenance_j_1939.py +2 -2
- samsara/types/v_1_vehicle_maintenance_j_1939_check_engine_light.py +12 -4
- samsara/types/v_1_vehicle_maintenance_j_1939_diagnostic_trouble_codes.py +10 -6
- samsara/types/v_1_vehicle_maintenance_passenger.py +2 -2
- samsara/types/v_1_vehicle_maintenance_passenger_check_engine_light.py +3 -1
- samsara/types/v_1_vehicle_maintenance_passenger_diagnostic_trouble_codes.py +7 -3
- samsara/types/v_1_vehicle_safety_score_response.py +12 -12
- samsara/types/v_1_vision_cameras_response_item.py +12 -4
- samsara/types/v_1_vision_run_by_camera_response.py +14 -6
- samsara/types/v_1_vision_run_by_camera_response_inspection_results.py +4 -2
- samsara/types/v_1_vision_run_by_camera_response_run_summary.py +12 -4
- samsara/types/v_1_vision_runs_by_camera_and_program_response.py +13 -5
- samsara/types/v_1_vision_runs_by_camera_response_item.py +10 -4
- samsara/types/v_1_vision_runs_by_camera_response_item_report_metadata.py +12 -4
- samsara/types/v_1_vision_runs_response.py +1 -1
- samsara/types/v_1_vision_runs_response_report_metadata.py +4 -4
- samsara/types/v_1_vision_runs_response_vision_runs.py +13 -5
- samsara/types/v_1_vision_step_results_item.py +9 -9
- samsara/types/v_1_vision_step_results_item_angle_check.py +4 -4
- samsara/types/v_1_vision_step_results_item_barcode_item.py +3 -1
- samsara/types/v_1_vision_step_results_item_caliper.py +8 -8
- samsara/types/v_1_vision_step_results_item_contour.py +4 -4
- samsara/types/v_1_vision_step_results_item_distance.py +9 -9
- samsara/types/v_1_vision_step_results_item_expiration_date.py +9 -3
- samsara/types/v_1_vision_step_results_item_find_copies.py +4 -4
- samsara/types/v_1_vision_step_results_item_find_edge.py +9 -9
- samsara/types/v_1_vision_step_results_item_find_shapes.py +9 -3
- samsara/types/v_1_vision_step_results_item_fixture.py +3 -1
- samsara/types/v_1_vision_step_results_item_presence_absence.py +10 -8
- samsara/types/v_1_vision_step_results_item_text_match.py +6 -2
- samsara/types/vehicle.py +40 -50
- samsara/types/vehicle_assignment_object_response_body.py +6 -4
- samsara/types/vehicle_batter_voltage_details_object_request_body.py +4 -2
- samsara/types/vehicle_batter_voltage_details_object_response_body.py +4 -2
- samsara/types/vehicle_detected_response_body.py +1 -1
- samsara/types/vehicle_dvir_object_response_body.py +1 -1
- samsara/types/vehicle_fault_code_details_object_request_body.py +8 -8
- samsara/types/vehicle_fault_code_details_object_response_body.py +8 -8
- samsara/types/vehicle_location.py +6 -6
- samsara/types/vehicle_response_object_response_body.py +35 -26
- samsara/types/vehicle_response_response_body.py +4 -4
- samsara/types/vehicle_safety_score_response_body.py +6 -4
- samsara/types/vehicle_sensor_configuration_area.py +3 -3
- samsara/types/vehicle_sensor_configuration_area_response_body.py +3 -3
- samsara/types/vehicle_stats_ambient_air_temp_milli_c.py +2 -2
- samsara/types/vehicle_stats_ambient_air_temp_milli_c_with_decoration.py +2 -2
- samsara/types/vehicle_stats_barometric_pressure_pa.py +2 -2
- samsara/types/vehicle_stats_barometric_pressure_pa_with_decoration.py +2 -2
- samsara/types/vehicle_stats_battery_voltage.py +2 -2
- samsara/types/vehicle_stats_battery_voltage_with_decoration.py +2 -2
- samsara/types/vehicle_stats_decorations.py +60 -60
- samsara/types/vehicle_stats_decorations_gps.py +7 -7
- samsara/types/vehicle_stats_def_level_milli_percent.py +2 -2
- samsara/types/vehicle_stats_def_level_milli_percent_with_decoration.py +2 -2
- samsara/types/vehicle_stats_ecu_door_status.py +2 -2
- samsara/types/vehicle_stats_ecu_speed_mph.py +2 -2
- samsara/types/vehicle_stats_ecu_speed_mph_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_coolant_temp_milli_c.py +2 -2
- samsara/types/vehicle_stats_engine_coolant_temp_milli_c_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_load_percent.py +2 -2
- samsara/types/vehicle_stats_engine_load_percent_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_oil_pressure_k_pa.py +2 -2
- samsara/types/vehicle_stats_engine_oil_pressure_k_pa_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_rpm.py +2 -2
- samsara/types/vehicle_stats_engine_rpm_with_decoration.py +2 -2
- samsara/types/vehicle_stats_engine_state.py +2 -2
- samsara/types/vehicle_stats_engine_state_with_decoration.py +2 -2
- samsara/types/vehicle_stats_ev_average_battery_temperature_milli_celsius.py +2 -2
- samsara/types/vehicle_stats_ev_battery_current_milli_amp.py +2 -2
- samsara/types/vehicle_stats_ev_battery_state_of_health_milli_percent.py +2 -2
- samsara/types/vehicle_stats_ev_battery_voltage_milli_volt.py +2 -2
- samsara/types/vehicle_stats_ev_charging_current_milli_amp.py +2 -2
- samsara/types/vehicle_stats_ev_charging_energy_micro_wh.py +2 -2
- samsara/types/vehicle_stats_ev_charging_status.py +2 -2
- samsara/types/vehicle_stats_ev_charging_voltage_milli_volt.py +2 -2
- samsara/types/vehicle_stats_ev_consumed_energy_micro_wh.py +2 -2
- samsara/types/vehicle_stats_ev_distance_driven_meters.py +2 -2
- samsara/types/vehicle_stats_ev_regenerated_energy_micro_wh.py +2 -2
- samsara/types/vehicle_stats_ev_state_of_charge_milli_percent.py +2 -2
- samsara/types/vehicle_stats_fault_codes.py +2 -2
- samsara/types/vehicle_stats_fault_codes_j_1939.py +2 -2
- samsara/types/vehicle_stats_fault_codes_j_1939_lights.py +10 -4
- samsara/types/vehicle_stats_fault_codes_j_1939_trouble_code.py +13 -9
- samsara/types/vehicle_stats_fault_codes_obdii.py +2 -2
- samsara/types/vehicle_stats_fault_codes_obdii_trouble_code.py +9 -7
- samsara/types/vehicle_stats_fault_codes_oem.py +1 -1
- samsara/types/vehicle_stats_fault_codes_oem_trouble_code.py +4 -4
- samsara/types/vehicle_stats_fault_codes_passenger_dtc.py +3 -3
- samsara/types/vehicle_stats_fault_codes_passenger_monitor_status.py +7 -7
- samsara/types/vehicle_stats_fault_codes_value.py +2 -2
- samsara/types/vehicle_stats_fault_codes_value_j_1939.py +2 -2
- samsara/types/vehicle_stats_fault_codes_value_j_1939_check_engine_lights.py +10 -4
- samsara/types/vehicle_stats_fault_codes_value_j_1939_diagnostic_trouble_codes.py +11 -9
- samsara/types/vehicle_stats_fault_codes_value_j_1939_vendor_specific_fields.py +2 -2
- samsara/types/vehicle_stats_fault_codes_value_obdii.py +2 -2
- samsara/types/vehicle_stats_fault_codes_value_obdii_confirmed_dtcs.py +3 -3
- samsara/types/vehicle_stats_fault_codes_value_obdii_diagnostic_trouble_codes.py +7 -7
- samsara/types/vehicle_stats_fault_codes_value_obdii_monitor_status.py +7 -7
- samsara/types/vehicle_stats_fault_codes_value_oem.py +1 -1
- samsara/types/vehicle_stats_fault_codes_value_oem_diagnostic_trouble_codes.py +4 -4
- samsara/types/vehicle_stats_fault_codes_vendor_specific_fields.py +2 -2
- samsara/types/vehicle_stats_fault_codes_with_decoration.py +4 -4
- samsara/types/vehicle_stats_fuel_consumed_milliliters.py +2 -2
- samsara/types/vehicle_stats_fuel_consumed_milliliters_with_decoration.py +2 -2
- samsara/types/vehicle_stats_fuel_percent.py +2 -2
- samsara/types/vehicle_stats_fuel_percent_with_decoration.py +2 -2
- samsara/types/vehicle_stats_gps.py +9 -9
- samsara/types/vehicle_stats_gps_distance_meters.py +2 -2
- samsara/types/vehicle_stats_gps_distance_meters_with_decoration.py +2 -2
- samsara/types/vehicle_stats_gps_odometer_meters.py +2 -2
- samsara/types/vehicle_stats_gps_odometer_meters_with_decoration.py +2 -2
- samsara/types/vehicle_stats_idling_duration_milliseconds.py +2 -2
- samsara/types/vehicle_stats_idling_duration_milliseconds_with_decoration.py +2 -2
- samsara/types/vehicle_stats_intake_manifold_temp_milli_c.py +2 -2
- samsara/types/vehicle_stats_intake_manifold_temp_milli_c_with_decoration.py +2 -2
- samsara/types/vehicle_stats_list_gps.py +9 -9
- samsara/types/vehicle_stats_list_response_data.py +62 -62
- samsara/types/vehicle_stats_obd_engine_seconds.py +2 -2
- samsara/types/vehicle_stats_obd_engine_seconds_with_decoration.py +2 -2
- samsara/types/vehicle_stats_obd_odometer_meters.py +2 -2
- samsara/types/vehicle_stats_obd_odometer_meters_with_decoration.py +2 -2
- samsara/types/vehicle_stats_response_data.py +62 -62
- samsara/types/vehicle_stats_seatbelt_driver.py +2 -2
- samsara/types/vehicle_stats_spreader_active.py +2 -2
- samsara/types/vehicle_stats_spreader_air_temp.py +2 -2
- samsara/types/vehicle_stats_spreader_blast_state.py +2 -2
- samsara/types/vehicle_stats_spreader_granular_name.py +2 -2
- samsara/types/vehicle_stats_spreader_granular_rate.py +2 -2
- samsara/types/vehicle_stats_spreader_liquid_name.py +2 -2
- samsara/types/vehicle_stats_spreader_liquid_rate.py +2 -2
- samsara/types/vehicle_stats_spreader_on_state.py +2 -2
- samsara/types/vehicle_stats_spreader_plow_status.py +2 -2
- samsara/types/vehicle_stats_spreader_prewet_name.py +2 -2
- samsara/types/vehicle_stats_spreader_prewet_rate.py +2 -2
- samsara/types/vehicle_stats_spreader_road_temp.py +2 -2
- samsara/types/vehicle_stats_tire_pressures.py +4 -4
- samsara/types/vehicle_summary.py +14 -12
- samsara/types/vehicle_tiny_response.py +1 -1
- samsara/types/vehicle_with_gateway_tiny_response_response_body.py +3 -3
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_bad_gateway_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_gateway_timeout_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_internal_server_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_method_not_allowed_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_not_found_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_not_implemented_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_service_unavailable_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_too_many_requests_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_get_vehicles_driver_assignments_unauthorized_error_response_body.py +1 -1
- samsara/types/vehicles_driver_assignments_object_response_body.py +2 -2
- samsara/types/vehicles_list_vehicles_bad_gateway_error_response_body.py +1 -1
- samsara/types/vehicles_list_vehicles_gateway_timeout_error_response_body.py +1 -1
- samsara/types/vehicles_list_vehicles_internal_server_error_response_body.py +1 -1
- samsara/types/vehicles_list_vehicles_method_not_allowed_error_response_body.py +1 -1
- samsara/types/vehicles_list_vehicles_not_found_error_response_body.py +1 -1
- samsara/types/vehicles_list_vehicles_not_implemented_error_response_body.py +1 -1
- samsara/types/vehicles_list_vehicles_service_unavailable_error_response_body.py +1 -1
- samsara/types/vehicles_list_vehicles_too_many_requests_error_response_body.py +1 -1
- samsara/types/vehicles_list_vehicles_unauthorized_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_bad_gateway_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_gateway_timeout_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_internal_server_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_method_not_allowed_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_not_found_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_not_implemented_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_service_unavailable_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_too_many_requests_error_response_body.py +1 -1
- samsara/types/vehicles_lock_lock_vehicle_unauthorized_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_bad_gateway_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_gateway_timeout_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_internal_server_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_method_not_allowed_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_not_found_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_not_implemented_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_service_unavailable_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_too_many_requests_error_response_body.py +1 -1
- samsara/types/vehicles_lock_unlock_vehicle_unauthorized_error_response_body.py +1 -1
- samsara/types/voice_coaching_settings_object_response_body.py +3 -3
- samsara/types/walkaround_photo_object_response_body.py +3 -1
- samsara/types/webhook_params_object_request_body.py +4 -2
- samsara/types/webhook_params_object_response_body.py +4 -2
- samsara/types/webhook_response_response_body.py +3 -3
- samsara/types/webhook_response_response_body_event_types_item.py +3 -0
- samsara/types/webhook_route_response_object_response_body.py +5 -5
- samsara/types/webhooks_delete_webhook_bad_gateway_error_response_body.py +1 -1
- samsara/types/webhooks_delete_webhook_gateway_timeout_error_response_body.py +1 -1
- samsara/types/webhooks_delete_webhook_internal_server_error_response_body.py +1 -1
- samsara/types/webhooks_delete_webhook_method_not_allowed_error_response_body.py +1 -1
- samsara/types/webhooks_delete_webhook_not_found_error_response_body.py +1 -1
- samsara/types/webhooks_delete_webhook_not_implemented_error_response_body.py +1 -1
- samsara/types/webhooks_delete_webhook_service_unavailable_error_response_body.py +1 -1
- samsara/types/webhooks_delete_webhook_too_many_requests_error_response_body.py +1 -1
- samsara/types/webhooks_delete_webhook_unauthorized_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_bad_gateway_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_gateway_timeout_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_internal_server_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_method_not_allowed_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_not_found_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_not_implemented_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_response_body.py +3 -3
- samsara/types/webhooks_get_webhook_response_body_event_types_item.py +3 -0
- samsara/types/webhooks_get_webhook_service_unavailable_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_too_many_requests_error_response_body.py +1 -1
- samsara/types/webhooks_get_webhook_unauthorized_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_bad_gateway_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_gateway_timeout_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_internal_server_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_method_not_allowed_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_not_found_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_not_implemented_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_service_unavailable_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_too_many_requests_error_response_body.py +1 -1
- samsara/types/webhooks_list_webhooks_unauthorized_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_bad_gateway_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_gateway_timeout_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_internal_server_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_method_not_allowed_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_not_found_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_not_implemented_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_response_body.py +3 -3
- samsara/types/webhooks_patch_webhook_response_body_event_types_item.py +3 -0
- samsara/types/webhooks_patch_webhook_service_unavailable_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_too_many_requests_error_response_body.py +1 -1
- samsara/types/webhooks_patch_webhook_unauthorized_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_bad_gateway_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_gateway_timeout_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_internal_server_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_method_not_allowed_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_not_found_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_not_implemented_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_response_body.py +3 -3
- samsara/types/webhooks_post_webhooks_response_body_event_types_item.py +3 -0
- samsara/types/webhooks_post_webhooks_service_unavailable_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_too_many_requests_error_response_body.py +1 -1
- samsara/types/webhooks_post_webhooks_unauthorized_error_response_body.py +1 -1
- samsara/types/work_order_attachment_object_response_body.py +2 -2
- samsara/types/work_order_discount_object_request_body.py +1 -1
- samsara/types/work_order_discount_object_response_body.py +1 -1
- samsara/types/work_order_object_response_body.py +21 -18
- samsara/types/work_order_tax_create_object_request_body.py +1 -1
- samsara/types/work_order_tax_object_request_body.py +1 -1
- samsara/types/work_order_tax_object_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_bad_gateway_error_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_gateway_timeout_error_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_internal_server_error_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_method_not_allowed_error_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_not_found_error_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_not_implemented_error_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_service_unavailable_error_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_too_many_requests_error_response_body.py +1 -1
- samsara/types/work_orders_delete_work_orders_unauthorized_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_bad_gateway_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_gateway_timeout_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_internal_server_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_method_not_allowed_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_not_found_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_not_implemented_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_service_unavailable_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_too_many_requests_error_response_body.py +1 -1
- samsara/types/work_orders_get_service_tasks_unauthorized_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_bad_gateway_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_gateway_timeout_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_internal_server_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_method_not_allowed_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_not_found_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_not_implemented_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_service_unavailable_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_too_many_requests_error_response_body.py +1 -1
- samsara/types/work_orders_get_work_orders_unauthorized_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_bad_gateway_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_gateway_timeout_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_internal_server_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_method_not_allowed_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_not_found_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_not_implemented_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_service_unavailable_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_too_many_requests_error_response_body.py +1 -1
- samsara/types/work_orders_patch_work_orders_unauthorized_error_response_body.py +1 -1
- samsara/types/work_orders_post_invoice_scan_bad_gateway_error_response_body.py +33 -0
- samsara/types/work_orders_post_invoice_scan_gateway_timeout_error_response_body.py +33 -0
- samsara/types/work_orders_post_invoice_scan_internal_server_error_response_body.py +33 -0
- samsara/types/work_orders_post_invoice_scan_method_not_allowed_error_response_body.py +33 -0
- samsara/types/work_orders_post_invoice_scan_not_found_error_response_body.py +33 -0
- samsara/types/work_orders_post_invoice_scan_not_implemented_error_response_body.py +33 -0
- samsara/types/work_orders_post_invoice_scan_response_body.py +20 -0
- samsara/types/work_orders_post_invoice_scan_service_unavailable_error_response_body.py +33 -0
- samsara/types/work_orders_post_invoice_scan_too_many_requests_error_response_body.py +33 -0
- samsara/types/work_orders_post_invoice_scan_unauthorized_error_response_body.py +33 -0
- samsara/types/work_orders_post_work_orders_bad_gateway_error_response_body.py +1 -1
- samsara/types/work_orders_post_work_orders_gateway_timeout_error_response_body.py +1 -1
- samsara/types/work_orders_post_work_orders_internal_server_error_response_body.py +1 -1
- samsara/types/work_orders_post_work_orders_method_not_allowed_error_response_body.py +1 -1
- samsara/types/work_orders_post_work_orders_not_found_error_response_body.py +1 -1
- samsara/types/work_orders_post_work_orders_not_implemented_error_response_body.py +1 -1
- samsara/types/work_orders_post_work_orders_service_unavailable_error_response_body.py +1 -1
- samsara/types/work_orders_post_work_orders_too_many_requests_error_response_body.py +1 -1
- samsara/types/work_orders_post_work_orders_unauthorized_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_bad_gateway_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_gateway_timeout_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_internal_server_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_method_not_allowed_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_not_found_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_not_implemented_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_service_unavailable_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_too_many_requests_error_response_body.py +1 -1
- samsara/types/work_orders_stream_work_orders_unauthorized_error_response_body.py +1 -1
- samsara/types/worker_safety_sos_data_response_body.py +44 -0
- samsara/types/worker_safety_sos_data_response_body_source_type.py +7 -0
- samsara/types/workflow_address_event_with_geofence_object_response_body.py +4 -2
- samsara/types/workflow_author_signature_object_response_body.py +4 -2
- samsara/types/workflow_circle_response_body.py +3 -1
- samsara/types/workflow_dvir_object_response_body.py +12 -10
- samsara/types/workflow_geofence_event_response_object_response_body.py +1 -1
- samsara/types/workflow_incident_condition_object_response_body.py +1 -1
- samsara/types/workflow_incident_details_object_response_body.py +64 -56
- samsara/types/workflow_trigger_object_request_body.py +6 -2
- samsara/types/workflow_trigger_object_response_body.py +6 -2
- samsara/vehicles/client.py +2 -2
- samsara/vehicles/raw_client.py +2 -2
- samsara/webhooks/types/webhooks_post_webhooks_request_body_event_types_item.py +3 -0
- samsara/work_orders/__init__.py +0 -6
- samsara/work_orders/client.py +132 -14
- samsara/work_orders/raw_client.py +346 -14
- samsara/work_orders/types/__init__.py +0 -6
- {samsara_api-4.3.0.dist-info → samsara_api-5.4.0.dist-info}/LICENSE +1 -1
- {samsara_api-4.3.0.dist-info → samsara_api-5.4.0.dist-info}/METADATA +1 -1
- {samsara_api-4.3.0.dist-info → samsara_api-5.4.0.dist-info}/RECORD +2382 -2239
- samsara/types/reading_type_response_body_data_type.py +0 -5
- samsara/types/safety_event_driver.py +0 -5
- samsara/types/safety_event_vehicle.py +0 -5
- samsara/types/unit_response_body.py +0 -39
- samsara/types/unit_response_body_base_unit.py +0 -77
- samsara/types/unit_response_body_measurement_type.py +0 -32
- samsara/types/vehicle_aux_input_type_1.py +0 -5
- samsara/types/vehicle_aux_input_type_10.py +0 -5
- samsara/types/vehicle_aux_input_type_11.py +0 -5
- samsara/types/vehicle_aux_input_type_12.py +0 -5
- samsara/types/vehicle_aux_input_type_13.py +0 -5
- samsara/types/vehicle_aux_input_type_2.py +0 -5
- samsara/types/vehicle_aux_input_type_3.py +0 -5
- samsara/types/vehicle_aux_input_type_4.py +0 -5
- samsara/types/vehicle_aux_input_type_5.py +0 -5
- samsara/types/vehicle_aux_input_type_6.py +0 -5
- samsara/types/vehicle_aux_input_type_7.py +0 -5
- samsara/types/vehicle_aux_input_type_8.py +0 -5
- samsara/types/vehicle_aux_input_type_9.py +0 -5
- samsara/types/vehicle_location_reverse_geo.py +0 -5
- samsara/types/vehicle_static_assigned_driver.py +0 -5
- samsara/types/work_order_object_response_body_category.py +0 -7
- samsara/work_orders/types/work_orders_patch_work_orders_request_body_category.py +0 -7
- samsara/work_orders/types/work_orders_post_work_orders_request_body_category.py +0 -7
- /samsara/{beta_ap_is → trips}/types/get_trips_request_completion_status.py +0 -0
- /samsara/{beta_ap_is → trips}/types/get_trips_request_query_by.py +0 -0
- {samsara_api-4.3.0.dist-info → samsara_api-5.4.0.dist-info}/WHEEL +0 -0
samsara/beta_ap_is/client.py
CHANGED
|
@@ -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.
|
|
55
|
-
from ..types.
|
|
56
|
-
|
|
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=
|
|
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
|
|
1527
|
+
def list_hub_custom_properties(
|
|
1686
1528
|
self,
|
|
1687
1529
|
*,
|
|
1688
|
-
|
|
1689
|
-
|
|
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
|
-
) ->
|
|
1538
|
+
) -> HubCustomPropertiesListHubCustomPropertiesResponseBody:
|
|
1692
1539
|
"""
|
|
1693
|
-
|
|
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>
|
|
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 **
|
|
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
|
-
|
|
1707
|
-
|
|
1553
|
+
hub_id : str
|
|
1554
|
+
The hub identifier
|
|
1708
1555
|
|
|
1709
|
-
|
|
1710
|
-
|
|
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
|
-
|
|
1579
|
+
HubCustomPropertiesListHubCustomPropertiesResponseBody
|
|
1718
1580
|
OK response.
|
|
1719
1581
|
|
|
1720
1582
|
Examples
|
|
1721
1583
|
--------
|
|
1722
|
-
from samsara import
|
|
1584
|
+
from samsara import Samsara
|
|
1723
1585
|
|
|
1724
1586
|
client = Samsara(
|
|
1725
1587
|
token="YOUR_TOKEN",
|
|
1726
1588
|
)
|
|
1727
|
-
client.beta_ap_is.
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
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
|
|
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
|
|
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
|
-
) ->
|
|
2405
|
+
) -> ReportsGetReportConfigsResponseBody:
|
|
2515
2406
|
"""
|
|
2516
|
-
|
|
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
|
|
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
|
-
|
|
2528
|
-
|
|
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
|
-
|
|
2531
|
-
|
|
2421
|
+
limit : typing.Optional[int]
|
|
2422
|
+
Maximum number of configs to return
|
|
2532
2423
|
|
|
2533
|
-
|
|
2534
|
-
|
|
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
|
-
|
|
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.
|
|
2493
|
+
client.beta_ap_is.get_datasets()
|
|
2555
2494
|
"""
|
|
2556
|
-
_response = self._raw_client.
|
|
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
|
|
2498
|
+
def get_report_runs(
|
|
2566
2499
|
self,
|
|
2567
2500
|
*,
|
|
2568
|
-
|
|
2569
|
-
|
|
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
|
-
) ->
|
|
2506
|
+
) -> ReportsGetReportRunsResponseBody:
|
|
2581
2507
|
"""
|
|
2582
|
-
|
|
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
|
|
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
|
-
|
|
2594
|
-
|
|
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
|
-
|
|
2597
|
-
|
|
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
|
-
|
|
2600
|
-
|
|
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
|
-
|
|
2603
|
-
|
|
2528
|
+
limit : typing.Optional[int]
|
|
2529
|
+
Maximum number of runs to return.
|
|
2604
2530
|
|
|
2605
|
-
|
|
2606
|
-
|
|
2531
|
+
request_options : typing.Optional[RequestOptions]
|
|
2532
|
+
Request-specific configuration.
|
|
2607
2533
|
|
|
2608
|
-
|
|
2609
|
-
|
|
2534
|
+
Returns
|
|
2535
|
+
-------
|
|
2536
|
+
ReportsGetReportRunsResponseBody
|
|
2537
|
+
OK response.
|
|
2610
2538
|
|
|
2611
|
-
|
|
2612
|
-
|
|
2539
|
+
Examples
|
|
2540
|
+
--------
|
|
2541
|
+
from samsara import Samsara
|
|
2613
2542
|
|
|
2614
|
-
|
|
2615
|
-
|
|
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
|
-
|
|
2618
|
-
|
|
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
|
-
|
|
2621
|
-
|
|
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
|
-
|
|
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.
|
|
2642
|
-
|
|
2639
|
+
client.beta_ap_is.get_report_run_data(
|
|
2640
|
+
id="id",
|
|
2643
2641
|
)
|
|
2644
2642
|
"""
|
|
2645
|
-
_response = self._raw_client.
|
|
2646
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
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
|
-
) ->
|
|
3051
|
+
) -> DepreciationGetDepreciationTransactionsResponseBody:
|
|
3048
3052
|
"""
|
|
3049
|
-
|
|
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>
|
|
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 **
|
|
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
|
-
|
|
3063
|
-
|
|
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
|
-
|
|
3066
|
-
|
|
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
|
-
|
|
3069
|
-
|
|
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
|
-
|
|
3081
|
+
DepreciationGetDepreciationTransactionsResponseBody
|
|
3077
3082
|
OK response.
|
|
3078
3083
|
|
|
3079
3084
|
Examples
|
|
3080
3085
|
--------
|
|
3081
|
-
|
|
3086
|
+
import asyncio
|
|
3082
3087
|
|
|
3083
|
-
|
|
3088
|
+
from samsara import AsyncSamsara
|
|
3089
|
+
|
|
3090
|
+
client = AsyncSamsara(
|
|
3084
3091
|
token="YOUR_TOKEN",
|
|
3085
3092
|
)
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
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.
|
|
3092
|
-
|
|
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
|
|
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
|
-
) ->
|
|
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=
|
|
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
|
-
|
|
4670
|
-
|
|
4364
|
+
include_tags : typing.Optional[bool]
|
|
4365
|
+
Optional boolean to control whether tags are returned in the response. Defaults to false.
|
|
4671
4366
|
|
|
4672
|
-
|
|
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
|
|
4411
|
+
async def get_engine_immobilizer_states(
|
|
4705
4412
|
self,
|
|
4706
4413
|
*,
|
|
4707
|
-
|
|
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
|
-
) ->
|
|
4419
|
+
) -> EngineImmobilizerGetEngineImmobilizerStatesResponseBody:
|
|
4712
4420
|
"""
|
|
4713
|
-
Get
|
|
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
|
|
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
|
-
|
|
4725
|
-
A filter on the data based on this comma-separated list of
|
|
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
|
-
|
|
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.
|
|
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.
|
|
4759
|
-
|
|
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
|
|
4481
|
+
async def start_function_run(
|
|
4767
4482
|
self,
|
|
4483
|
+
name: str,
|
|
4768
4484
|
*,
|
|
4769
|
-
|
|
4770
|
-
trailer_id: str,
|
|
4771
|
-
start_time: typing.Optional[str] = OMIT,
|
|
4485
|
+
params_override: FunctionsStartFunctionRunRequestBodyParamsOverride,
|
|
4772
4486
|
request_options: typing.Optional[RequestOptions] = None,
|
|
4773
|
-
) ->
|
|
4487
|
+
) -> FunctionsStartFunctionRunResponseBody:
|
|
4774
4488
|
"""
|
|
4775
|
-
|
|
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>
|
|
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
|
|
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
|
-
|
|
4787
|
-
|
|
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
|
-
|
|
4793
|
-
|
|
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
|
-
|
|
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.
|
|
4816
|
-
|
|
4817
|
-
|
|
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.
|
|
4824
|
-
|
|
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
|
|
4829
|
-
self,
|
|
4830
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
4844
|
-
|
|
4562
|
+
hos_date : str
|
|
4563
|
+
A start date in yyyy-mm-dd format. Required.
|
|
4845
4564
|
|
|
4846
|
-
|
|
4847
|
-
|
|
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
|
-
|
|
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.
|
|
4870
|
-
|
|
4871
|
-
|
|
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.
|
|
4878
|
-
|
|
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
|
|
4605
|
+
async def list_hub_custom_properties(
|
|
4883
4606
|
self,
|
|
4884
4607
|
*,
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
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
|
-
) ->
|
|
4616
|
+
) -> HubCustomPropertiesListHubCustomPropertiesResponseBody:
|
|
4891
4617
|
"""
|
|
4892
|
-
|
|
4618
|
+
Retrieve custom properties for a specific hub.
|
|
4893
4619
|
|
|
4894
|
-
|
|
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 **
|
|
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
|
-
|
|
4904
|
-
|
|
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
|
-
|
|
4907
|
-
|
|
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
|
-
|
|
4910
|
-
|
|
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
|
-
|
|
4913
|
-
|
|
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
|
-
|
|
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.
|
|
4936
|
-
|
|
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.
|
|
4943
|
-
|
|
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
|
|
4691
|
+
async def create_plan_orders(
|
|
4948
4692
|
self,
|
|
4949
4693
|
*,
|
|
4950
|
-
|
|
4951
|
-
|
|
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
|
-
) ->
|
|
4697
|
+
) -> PlanOrdersCreatePlanOrdersResponseBody:
|
|
4956
4698
|
"""
|
|
4957
|
-
|
|
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 **
|
|
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
|
-
|
|
4969
|
-
|
|
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
|
-
|
|
4978
|
-
|
|
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
|
-
|
|
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.
|
|
5001
|
-
|
|
5002
|
-
|
|
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.
|
|
5009
|
-
|
|
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
|
|
4756
|
+
async def get_qualification_records(
|
|
5018
4757
|
self,
|
|
5019
|
-
name: str,
|
|
5020
4758
|
*,
|
|
5021
|
-
|
|
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
|
-
) ->
|
|
4762
|
+
) -> QualificationsGetQualificationRecordsResponseBody:
|
|
5024
4763
|
"""
|
|
5025
|
-
|
|
4764
|
+
Returns qualification records for the specified list of IDs.
|
|
5026
4765
|
|
|
5027
|
-
<b>Rate limit:</b>
|
|
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 **
|
|
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
|
-
|
|
5037
|
-
|
|
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
|
-
|
|
5040
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
5074
|
-
|
|
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
|
|
4811
|
+
async def post_qualification_record(
|
|
5079
4812
|
self,
|
|
5080
4813
|
*,
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
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
|
-
) ->
|
|
4821
|
+
) -> QualificationsPostQualificationRecordResponseBody:
|
|
5086
4822
|
"""
|
|
5087
|
-
|
|
4823
|
+
Creates a new qualification record.
|
|
5088
4824
|
|
|
5089
|
-
<b>Rate limit:</b>
|
|
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
|
|
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
|
-
|
|
5099
|
-
|
|
4834
|
+
issue_date : dt.datetime
|
|
4835
|
+
Issue/effective date. UTC timestamp in RFC 3339 format.
|
|
5100
4836
|
|
|
5101
|
-
|
|
5102
|
-
ID of the driver for whom the duty status is being set.
|
|
4837
|
+
owner : QualificationOwnerRequestObjectRequestBody
|
|
5103
4838
|
|
|
5104
|
-
|
|
5105
|
-
|
|
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
|
-
|
|
5113
|
-
|
|
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
|
|
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
|
|
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
|
-
) ->
|
|
5596
|
+
) -> ReportsGetReportConfigsResponseBody:
|
|
6150
5597
|
"""
|
|
6151
|
-
|
|
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
|
|
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
|
-
|
|
6196
|
-
|
|
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
|
-
|
|
6269
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
6300
|
-
|
|
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
|
|
5648
|
+
async def get_datasets(
|
|
6309
5649
|
self,
|
|
6310
5650
|
*,
|
|
6311
|
-
|
|
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
|
-
) ->
|
|
5655
|
+
) -> ReportsGetDatasetsResponseBody:
|
|
6317
5656
|
"""
|
|
6318
|
-
Get
|
|
5657
|
+
Get datasets for custom reports.
|
|
6319
5658
|
|
|
6320
|
-
<b>Rate limit:</b>
|
|
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
|
|
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
|
-
|
|
6330
|
-
|
|
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
|
-
|
|
6342
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
6441
|
-
|
|
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
|
|
5707
|
+
async def get_report_runs(
|
|
6450
5708
|
self,
|
|
6451
5709
|
*,
|
|
6452
|
-
|
|
6453
|
-
|
|
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
|
-
) ->
|
|
5715
|
+
) -> ReportsGetReportRunsResponseBody:
|
|
6459
5716
|
"""
|
|
6460
|
-
Get
|
|
5717
|
+
Get custom report runs created by the user.
|
|
6461
5718
|
|
|
6462
|
-
<b>Rate limit:</b>
|
|
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
|
|
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
|
-
|
|
6472
|
-
|
|
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
|
-
|
|
6481
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
6516
|
-
|
|
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
|
|
5770
|
+
async def create_report_run(
|
|
6526
5771
|
self,
|
|
6527
5772
|
*,
|
|
6528
|
-
|
|
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
|
-
) ->
|
|
5775
|
+
) -> ReportsCreateReportRunResponseBody:
|
|
6534
5776
|
"""
|
|
6535
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
6556
|
-
|
|
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
|
-
|
|
6564
|
-
|
|
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.
|
|
6579
|
-
|
|
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.
|
|
6587
|
-
|
|
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
|
|
5822
|
+
async def get_report_run_data(
|
|
6596
5823
|
self,
|
|
6597
5824
|
*,
|
|
6598
|
-
|
|
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
|
-
) ->
|
|
5829
|
+
) -> ReportsGetReportRunDataResponseBody:
|
|
6604
5830
|
"""
|
|
6605
|
-
Get
|
|
5831
|
+
Get data for the given custom report run.
|
|
6606
5832
|
|
|
6607
|
-
<b>Rate limit:</b>
|
|
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
|
|
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
|
-
|
|
6617
|
-
|
|
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
|
-
|
|
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.
|
|
6649
|
-
|
|
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.
|
|
6657
|
-
|
|
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
|
|
5883
|
+
async def get_driver_safety_scores(
|
|
6666
5884
|
self,
|
|
6667
5885
|
*,
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
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
|
-
) ->
|
|
5891
|
+
) -> SafetyScoresGetDriverSafetyScoresResponseBody:
|
|
6673
5892
|
"""
|
|
6674
|
-
|
|
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>
|
|
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 **
|
|
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
|
-
|
|
6688
|
-
|
|
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
|
-
|
|
6691
|
-
|
|
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
|
-
|
|
6694
|
-
|
|
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
|
-
|
|
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.
|
|
6717
|
-
|
|
6718
|
-
|
|
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.
|
|
6725
|
-
|
|
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
|
|
5953
|
+
async def get_driver_safety_score_trips(
|
|
6730
5954
|
self,
|
|
6731
5955
|
*,
|
|
6732
|
-
|
|
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
|
-
) ->
|
|
5961
|
+
) -> SafetyScoresGetDriverSafetyScoreTripsResponseBody:
|
|
6735
5962
|
"""
|
|
6736
|
-
|
|
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>
|
|
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 **
|
|
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
|
-
|
|
6750
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
|
6023
|
+
async def get_tag_group_safety_scores(
|
|
6780
6024
|
self,
|
|
6781
6025
|
*,
|
|
6782
|
-
|
|
6783
|
-
|
|
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
|
-
) ->
|
|
6031
|
+
) -> SafetyScoresGetTagGroupSafetyScoresResponseBody:
|
|
6786
6032
|
"""
|
|
6787
|
-
|
|
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>
|
|
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 **
|
|
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
|
-
|
|
6801
|
-
|
|
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
|
-
|
|
6804
|
-
|
|
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
|
-
|
|
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.
|
|
6827
|
-
|
|
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.
|
|
6834
|
-
|
|
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
|
|
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
|
-
) ->
|
|
6103
|
+
) -> SafetyScoresGetTagSafetyScoresResponseBody:
|
|
6849
6104
|
"""
|
|
6850
|
-
|
|
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>
|
|
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
|
|
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
|
-
|
|
6864
|
-
|
|
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
|
-
|
|
6870
|
-
|
|
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
|
-
|
|
6873
|
-
|
|
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
|
-
|
|
6876
|
-
|
|
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
|
-
|
|
6879
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
|
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
|
-
) ->
|
|
6178
|
+
) -> SafetyScoresGetVehicleSafetyScoresResponseBody:
|
|
6928
6179
|
"""
|
|
6929
|
-
|
|
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>
|
|
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
|
|
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
|
-
|
|
6942
|
-
|
|
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
|
-
|
|
6945
|
-
|
|
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
|
-
|
|
6948
|
-
|
|
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
|
-
|
|
6951
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
|
6240
|
+
async def get_vehicle_safety_score_trips(
|
|
6988
6241
|
self,
|
|
6989
6242
|
*,
|
|
6243
|
+
end_time: str,
|
|
6990
6244
|
start_time: str,
|
|
6991
|
-
|
|
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
|
-
) ->
|
|
6248
|
+
) -> SafetyScoresGetVehicleSafetyScoreTripsResponseBody:
|
|
6999
6249
|
"""
|
|
7000
|
-
|
|
6250
|
+
Get trips contributing to a vehicle's safety score, and risk factors in each trip.
|
|
7001
6251
|
|
|
7002
|
-
<b>Rate limit:</b>
|
|
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
|
|
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
|
-
|
|
7012
|
-
RFC 3339
|
|
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
|
-
|
|
7021
|
-
|
|
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
|
-
|
|
7024
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|