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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. samsara/__init__.py +84 -15
  2. samsara/addresses/client.py +7 -14
  3. samsara/addresses/raw_client.py +7 -11
  4. samsara/alerts/client.py +2 -10
  5. samsara/alerts/raw_client.py +180 -180
  6. samsara/assets/__init__.py +3 -3
  7. samsara/assets/client.py +14 -45
  8. samsara/assets/raw_client.py +156 -160
  9. samsara/assets/types/__init__.py +3 -3
  10. samsara/assets/types/{assets_list_request_type.py → list_assets_request_type.py} +1 -1
  11. samsara/attributes/client.py +0 -4
  12. samsara/beta_ap_is/client.py +139 -189
  13. samsara/beta_ap_is/raw_client.py +2035 -1702
  14. samsara/carrier_proposed_assignments/client.py +2 -10
  15. samsara/client.py +5 -0
  16. samsara/coaching/client.py +2 -22
  17. samsara/coaching/raw_client.py +108 -108
  18. samsara/contacts/client.py +2 -8
  19. samsara/core/__init__.py +5 -0
  20. samsara/core/client_wrapper.py +18 -10
  21. samsara/core/custom_pagination.py +152 -0
  22. samsara/core/http_client.py +176 -90
  23. samsara/core/http_sse/__init__.py +42 -0
  24. samsara/core/http_sse/_api.py +112 -0
  25. samsara/core/http_sse/_decoders.py +61 -0
  26. samsara/core/http_sse/_exceptions.py +7 -0
  27. samsara/core/http_sse/_models.py +17 -0
  28. samsara/core/pagination.py +14 -14
  29. samsara/core/pydantic_utilities.py +3 -1
  30. samsara/documents/client.py +2 -12
  31. samsara/documents/raw_client.py +180 -180
  32. samsara/driver_qr_codes/raw_client.py +108 -108
  33. samsara/driver_vehicle_assignments/client.py +0 -12
  34. samsara/driver_vehicle_assignments/raw_client.py +144 -144
  35. samsara/drivers/__init__.py +3 -3
  36. samsara/drivers/client.py +12 -23
  37. samsara/drivers/raw_client.py +48 -52
  38. samsara/drivers/types/__init__.py +3 -3
  39. samsara/drivers/types/{drivers_list_request_driver_activation_status.py → list_drivers_request_driver_activation_status.py} +1 -1
  40. samsara/equipment/client.py +6 -22
  41. samsara/errors/bad_gateway_error.py +1 -1
  42. samsara/errors/gateway_timeout_error.py +1 -1
  43. samsara/errors/internal_server_error.py +1 -1
  44. samsara/errors/method_not_allowed_error.py +1 -1
  45. samsara/errors/not_found_error.py +1 -1
  46. samsara/errors/not_implemented_error.py +1 -1
  47. samsara/errors/service_unavailable_error.py +1 -1
  48. samsara/errors/too_many_requests_error.py +1 -1
  49. samsara/errors/unauthorized_error.py +1 -1
  50. samsara/forms/__init__.py +9 -3
  51. samsara/forms/client.py +17 -10
  52. samsara/forms/raw_client.py +265 -254
  53. samsara/forms/types/__init__.py +6 -2
  54. samsara/forms/types/form_submissions_post_form_submission_request_body_status.py +5 -0
  55. samsara/fuel_and_energy/client.py +0 -30
  56. samsara/fuel_and_energy/raw_client.py +180 -180
  57. samsara/gateways/client.py +2 -6
  58. samsara/gateways/raw_client.py +108 -108
  59. samsara/hours_of_service/__init__.py +6 -3
  60. samsara/hours_of_service/client.py +13 -52
  61. samsara/hours_of_service/raw_client.py +77 -76
  62. samsara/hours_of_service/types/__init__.py +4 -2
  63. samsara/hours_of_service/types/get_hos_daily_logs_request_expand.py +5 -0
  64. samsara/hubs/client.py +2 -94
  65. samsara/hubs/raw_client.py +216 -216
  66. samsara/idling/client.py +10 -16
  67. samsara/idling/raw_client.py +46 -36
  68. samsara/ifta/client.py +4 -34
  69. samsara/ifta/raw_client.py +144 -144
  70. samsara/industrial/client.py +12 -56
  71. samsara/industrial/raw_client.py +40 -48
  72. samsara/issues/client.py +0 -4
  73. samsara/issues/raw_client.py +108 -108
  74. samsara/legacy_ap_is/client.py +4 -56
  75. samsara/legacy_ap_is/raw_client.py +108 -108
  76. samsara/live_sharing_links/client.py +2 -10
  77. samsara/live_sharing_links/raw_client.py +144 -144
  78. samsara/location_and_speed/client.py +2 -20
  79. samsara/location_and_speed/raw_client.py +36 -36
  80. samsara/maintenance/__init__.py +3 -3
  81. samsara/maintenance/client.py +15 -30
  82. samsara/maintenance/raw_client.py +191 -182
  83. samsara/maintenance/types/__init__.py +6 -2
  84. samsara/maintenance/types/create_dvir_request_type.py +5 -0
  85. samsara/media/client.py +2 -16
  86. samsara/media/raw_client.py +108 -108
  87. samsara/messages/client.py +2 -8
  88. samsara/plans/client.py +0 -21
  89. samsara/plans/raw_client.py +72 -72
  90. samsara/preview_ap_is/client.py +0 -140
  91. samsara/preview_ap_is/raw_client.py +72 -430
  92. samsara/route_events/client.py +2 -12
  93. samsara/route_events/raw_client.py +36 -36
  94. samsara/routes/__init__.py +30 -0
  95. samsara/routes/client.py +7 -35
  96. samsara/routes/raw_client.py +257 -256
  97. samsara/routes/types/__init__.py +34 -0
  98. samsara/routes/types/get_routes_feed_request_expand.py +5 -0
  99. samsara/safety/client.py +2 -10
  100. samsara/safety/raw_client.py +36 -36
  101. samsara/settings/raw_client.py +180 -180
  102. samsara/speeding_intervals/raw_client.py +36 -36
  103. samsara/tachograph_eu_only/client.py +0 -6
  104. samsara/tags/client.py +2 -8
  105. samsara/trailer_assignments/client.py +2 -18
  106. samsara/trailers/client.py +2 -12
  107. samsara/trailers/raw_client.py +180 -180
  108. samsara/types/__init__.py +71 -6
  109. samsara/types/advanced_idling_get_idling_events_response_body.py +2 -2
  110. samsara/types/create_routes_stop_request_object_request_body.py +7 -0
  111. samsara/types/driver_assignment_object_response_body.py +2 -1
  112. samsara/types/driver_assignment_object_response_body_assignment_type.py +5 -0
  113. samsara/types/driver_external_ids.py +1 -1
  114. samsara/types/forms_approval_config_object_response_body.py +2 -1
  115. samsara/types/forms_approval_config_object_response_body_type.py +5 -0
  116. samsara/types/fuel_level_trigger_details_object_request_body.py +2 -1
  117. samsara/types/fuel_level_trigger_details_object_request_body_operation.py +5 -0
  118. samsara/types/fuel_level_trigger_details_object_response_body.py +4 -1
  119. samsara/types/fuel_level_trigger_details_object_response_body_operation.py +5 -0
  120. samsara/types/harsh_event_trigger_details_object_request_body_types_item.py +1 -0
  121. samsara/types/harsh_event_trigger_details_object_response_body_types_item.py +1 -0
  122. samsara/types/idling_event_address_object_response_body.py +46 -0
  123. samsara/types/{idling_event_object_response_body_address_type.py → idling_event_address_object_response_body_address_types_item.py} +1 -1
  124. samsara/types/idling_event_asset_object_response_body.py +35 -0
  125. samsara/types/{idling_event_object_response_body.py → idling_event_object_v_20251023_response_body.py} +18 -28
  126. samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
  127. samsara/types/idling_event_operator_object_response_body.py +35 -0
  128. samsara/types/patch_issue_request_body_assigned_to_request_body.py +2 -1
  129. samsara/types/patch_issue_request_body_assigned_to_request_body_type.py +5 -0
  130. samsara/types/reading_datapoint_request_body.py +5 -4
  131. samsara/types/reading_datapoint_request_body_entity_type.py +5 -0
  132. samsara/types/reading_history_response_body.py +1 -1
  133. samsara/types/reading_snapshot_response_body.py +1 -1
  134. samsara/types/resolved_by.py +2 -1
  135. samsara/types/resolved_by_type.py +5 -0
  136. samsara/types/route_feed_object_response_body.py +2 -1
  137. samsara/types/route_feed_object_response_body_type.py +5 -0
  138. samsara/types/route_settings_request_body.py +8 -0
  139. samsara/types/route_settings_request_body_sequencing_method.py +7 -0
  140. samsara/types/route_settings_response_body.py +8 -0
  141. samsara/types/route_settings_response_body_sequencing_method.py +7 -0
  142. samsara/types/route_stop_details_object_response_body.py +2 -1
  143. samsara/types/route_stop_details_object_response_body_type.py +5 -0
  144. samsara/types/routes_stop_response_object_response_body.py +7 -0
  145. samsara/types/training_learner_object_response_body.py +2 -1
  146. samsara/types/training_learner_object_response_body_type.py +5 -0
  147. samsara/types/update_routes_stop_request_object_request_body.py +7 -0
  148. samsara/types/vehicle_assignment_object_response_body.py +4 -3
  149. samsara/types/vehicle_assignment_object_response_body_assignment_type.py +5 -0
  150. samsara/types/vehicle_external_ids.py +1 -1
  151. samsara/types/work_order_money_object_request_body.py +2 -1
  152. samsara/types/work_order_money_object_request_body_currency.py +5 -0
  153. samsara/types/work_order_money_object_response_body.py +2 -1
  154. samsara/types/work_order_money_object_response_body_currency.py +5 -0
  155. samsara/users/client.py +4 -16
  156. samsara/vehicle_locations/client.py +4 -16
  157. samsara/vehicles/client.py +7 -22
  158. samsara/vehicles/raw_client.py +43 -47
  159. samsara/webhooks/client.py +2 -10
  160. samsara/webhooks/raw_client.py +180 -180
  161. samsara/work_orders/client.py +4 -18
  162. samsara/work_orders/raw_client.py +216 -216
  163. {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
  164. {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/RECORD +166 -136
  165. {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
  166. {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
samsara/idling/client.py CHANGED
@@ -39,6 +39,7 @@ class IdlingClient:
39
39
  max_duration_milliseconds: typing.Optional[int] = None,
40
40
  tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
41
41
  parent_tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
42
+ include_external_ids: typing.Optional[bool] = None,
42
43
  after: typing.Optional[str] = None,
43
44
  limit: typing.Optional[int] = None,
44
45
  request_options: typing.Optional[RequestOptions] = None,
@@ -93,6 +94,9 @@ class IdlingClient:
93
94
  parent_tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
94
95
  A filter on the data based on this comma-separated list of parent tag IDs. Parent tag IDs only include vehicle IDs at this time.
95
96
 
97
+ include_external_ids : typing.Optional[bool]
98
+ Optional boolean indicating whether to return external IDs on supported entities
99
+
96
100
  after : typing.Optional[str]
97
101
  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.
98
102
 
@@ -117,14 +121,6 @@ class IdlingClient:
117
121
  client.idling.get_idling_events(
118
122
  start_time="startTime",
119
123
  end_time="endTime",
120
- pto_state="active",
121
- min_air_temperature_millicelsius=1,
122
- max_air_temperature_millicelsius=1,
123
- exclude_events_with_unknown_air_temperature=True,
124
- min_duration_milliseconds=1,
125
- max_duration_milliseconds=1,
126
- after="after",
127
- limit=1,
128
124
  )
129
125
  """
130
126
  _response = self._raw_client.get_idling_events(
@@ -140,6 +136,7 @@ class IdlingClient:
140
136
  max_duration_milliseconds=max_duration_milliseconds,
141
137
  tag_ids=tag_ids,
142
138
  parent_tag_ids=parent_tag_ids,
139
+ include_external_ids=include_external_ids,
143
140
  after=after,
144
141
  limit=limit,
145
142
  request_options=request_options,
@@ -177,6 +174,7 @@ class AsyncIdlingClient:
177
174
  max_duration_milliseconds: typing.Optional[int] = None,
178
175
  tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
179
176
  parent_tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
177
+ include_external_ids: typing.Optional[bool] = None,
180
178
  after: typing.Optional[str] = None,
181
179
  limit: typing.Optional[int] = None,
182
180
  request_options: typing.Optional[RequestOptions] = None,
@@ -231,6 +229,9 @@ class AsyncIdlingClient:
231
229
  parent_tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
232
230
  A filter on the data based on this comma-separated list of parent tag IDs. Parent tag IDs only include vehicle IDs at this time.
233
231
 
232
+ include_external_ids : typing.Optional[bool]
233
+ Optional boolean indicating whether to return external IDs on supported entities
234
+
234
235
  after : typing.Optional[str]
235
236
  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.
236
237
 
@@ -260,14 +261,6 @@ class AsyncIdlingClient:
260
261
  await client.idling.get_idling_events(
261
262
  start_time="startTime",
262
263
  end_time="endTime",
263
- pto_state="active",
264
- min_air_temperature_millicelsius=1,
265
- max_air_temperature_millicelsius=1,
266
- exclude_events_with_unknown_air_temperature=True,
267
- min_duration_milliseconds=1,
268
- max_duration_milliseconds=1,
269
- after="after",
270
- limit=1,
271
264
  )
272
265
 
273
266
 
@@ -286,6 +279,7 @@ class AsyncIdlingClient:
286
279
  max_duration_milliseconds=max_duration_milliseconds,
287
280
  tag_ids=tag_ids,
288
281
  parent_tag_ids=parent_tag_ids,
282
+ include_external_ids=include_external_ids,
289
283
  after=after,
290
284
  limit=limit,
291
285
  request_options=request_options,
@@ -40,6 +40,7 @@ class RawIdlingClient:
40
40
  max_duration_milliseconds: typing.Optional[int] = None,
41
41
  tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
42
42
  parent_tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
43
+ include_external_ids: typing.Optional[bool] = None,
43
44
  after: typing.Optional[str] = None,
44
45
  limit: typing.Optional[int] = None,
45
46
  request_options: typing.Optional[RequestOptions] = None,
@@ -94,6 +95,9 @@ class RawIdlingClient:
94
95
  parent_tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
95
96
  A filter on the data based on this comma-separated list of parent tag IDs. Parent tag IDs only include vehicle IDs at this time.
96
97
 
98
+ include_external_ids : typing.Optional[bool]
99
+ Optional boolean indicating whether to return external IDs on supported entities
100
+
97
101
  after : typing.Optional[str]
98
102
  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.
99
103
 
@@ -124,6 +128,7 @@ class RawIdlingClient:
124
128
  "maxDurationMilliseconds": max_duration_milliseconds,
125
129
  "tagIds": tag_ids,
126
130
  "parentTagIds": parent_tag_ids,
131
+ "includeExternalIds": include_external_ids,
127
132
  "after": after,
128
133
  "limit": limit,
129
134
  },
@@ -143,9 +148,9 @@ class RawIdlingClient:
143
148
  raise UnauthorizedError(
144
149
  headers=dict(_response.headers),
145
150
  body=typing.cast(
146
- typing.Optional[typing.Any],
151
+ typing.Any,
147
152
  parse_obj_as(
148
- type_=typing.Optional[typing.Any], # type: ignore
153
+ type_=typing.Any, # type: ignore
149
154
  object_=_response.json(),
150
155
  ),
151
156
  ),
@@ -154,9 +159,9 @@ class RawIdlingClient:
154
159
  raise NotFoundError(
155
160
  headers=dict(_response.headers),
156
161
  body=typing.cast(
157
- typing.Optional[typing.Any],
162
+ typing.Any,
158
163
  parse_obj_as(
159
- type_=typing.Optional[typing.Any], # type: ignore
164
+ type_=typing.Any, # type: ignore
160
165
  object_=_response.json(),
161
166
  ),
162
167
  ),
@@ -165,9 +170,9 @@ class RawIdlingClient:
165
170
  raise MethodNotAllowedError(
166
171
  headers=dict(_response.headers),
167
172
  body=typing.cast(
168
- typing.Optional[typing.Any],
173
+ typing.Any,
169
174
  parse_obj_as(
170
- type_=typing.Optional[typing.Any], # type: ignore
175
+ type_=typing.Any, # type: ignore
171
176
  object_=_response.json(),
172
177
  ),
173
178
  ),
@@ -176,9 +181,9 @@ class RawIdlingClient:
176
181
  raise TooManyRequestsError(
177
182
  headers=dict(_response.headers),
178
183
  body=typing.cast(
179
- typing.Optional[typing.Any],
184
+ typing.Any,
180
185
  parse_obj_as(
181
- type_=typing.Optional[typing.Any], # type: ignore
186
+ type_=typing.Any, # type: ignore
182
187
  object_=_response.json(),
183
188
  ),
184
189
  ),
@@ -187,9 +192,9 @@ class RawIdlingClient:
187
192
  raise InternalServerError(
188
193
  headers=dict(_response.headers),
189
194
  body=typing.cast(
190
- typing.Optional[typing.Any],
195
+ typing.Any,
191
196
  parse_obj_as(
192
- type_=typing.Optional[typing.Any], # type: ignore
197
+ type_=typing.Any, # type: ignore
193
198
  object_=_response.json(),
194
199
  ),
195
200
  ),
@@ -198,9 +203,9 @@ class RawIdlingClient:
198
203
  raise NotImplementedError(
199
204
  headers=dict(_response.headers),
200
205
  body=typing.cast(
201
- typing.Optional[typing.Any],
206
+ typing.Any,
202
207
  parse_obj_as(
203
- type_=typing.Optional[typing.Any], # type: ignore
208
+ type_=typing.Any, # type: ignore
204
209
  object_=_response.json(),
205
210
  ),
206
211
  ),
@@ -209,9 +214,9 @@ class RawIdlingClient:
209
214
  raise BadGatewayError(
210
215
  headers=dict(_response.headers),
211
216
  body=typing.cast(
212
- typing.Optional[typing.Any],
217
+ typing.Any,
213
218
  parse_obj_as(
214
- type_=typing.Optional[typing.Any], # type: ignore
219
+ type_=typing.Any, # type: ignore
215
220
  object_=_response.json(),
216
221
  ),
217
222
  ),
@@ -220,9 +225,9 @@ class RawIdlingClient:
220
225
  raise ServiceUnavailableError(
221
226
  headers=dict(_response.headers),
222
227
  body=typing.cast(
223
- typing.Optional[typing.Any],
228
+ typing.Any,
224
229
  parse_obj_as(
225
- type_=typing.Optional[typing.Any], # type: ignore
230
+ type_=typing.Any, # type: ignore
226
231
  object_=_response.json(),
227
232
  ),
228
233
  ),
@@ -231,9 +236,9 @@ class RawIdlingClient:
231
236
  raise GatewayTimeoutError(
232
237
  headers=dict(_response.headers),
233
238
  body=typing.cast(
234
- typing.Optional[typing.Any],
239
+ typing.Any,
235
240
  parse_obj_as(
236
- type_=typing.Optional[typing.Any], # type: ignore
241
+ type_=typing.Any, # type: ignore
237
242
  object_=_response.json(),
238
243
  ),
239
244
  ),
@@ -263,6 +268,7 @@ class AsyncRawIdlingClient:
263
268
  max_duration_milliseconds: typing.Optional[int] = None,
264
269
  tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
265
270
  parent_tag_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
271
+ include_external_ids: typing.Optional[bool] = None,
266
272
  after: typing.Optional[str] = None,
267
273
  limit: typing.Optional[int] = None,
268
274
  request_options: typing.Optional[RequestOptions] = None,
@@ -317,6 +323,9 @@ class AsyncRawIdlingClient:
317
323
  parent_tag_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
318
324
  A filter on the data based on this comma-separated list of parent tag IDs. Parent tag IDs only include vehicle IDs at this time.
319
325
 
326
+ include_external_ids : typing.Optional[bool]
327
+ Optional boolean indicating whether to return external IDs on supported entities
328
+
320
329
  after : typing.Optional[str]
321
330
  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.
322
331
 
@@ -347,6 +356,7 @@ class AsyncRawIdlingClient:
347
356
  "maxDurationMilliseconds": max_duration_milliseconds,
348
357
  "tagIds": tag_ids,
349
358
  "parentTagIds": parent_tag_ids,
359
+ "includeExternalIds": include_external_ids,
350
360
  "after": after,
351
361
  "limit": limit,
352
362
  },
@@ -366,9 +376,9 @@ class AsyncRawIdlingClient:
366
376
  raise UnauthorizedError(
367
377
  headers=dict(_response.headers),
368
378
  body=typing.cast(
369
- typing.Optional[typing.Any],
379
+ typing.Any,
370
380
  parse_obj_as(
371
- type_=typing.Optional[typing.Any], # type: ignore
381
+ type_=typing.Any, # type: ignore
372
382
  object_=_response.json(),
373
383
  ),
374
384
  ),
@@ -377,9 +387,9 @@ class AsyncRawIdlingClient:
377
387
  raise NotFoundError(
378
388
  headers=dict(_response.headers),
379
389
  body=typing.cast(
380
- typing.Optional[typing.Any],
390
+ typing.Any,
381
391
  parse_obj_as(
382
- type_=typing.Optional[typing.Any], # type: ignore
392
+ type_=typing.Any, # type: ignore
383
393
  object_=_response.json(),
384
394
  ),
385
395
  ),
@@ -388,9 +398,9 @@ class AsyncRawIdlingClient:
388
398
  raise MethodNotAllowedError(
389
399
  headers=dict(_response.headers),
390
400
  body=typing.cast(
391
- typing.Optional[typing.Any],
401
+ typing.Any,
392
402
  parse_obj_as(
393
- type_=typing.Optional[typing.Any], # type: ignore
403
+ type_=typing.Any, # type: ignore
394
404
  object_=_response.json(),
395
405
  ),
396
406
  ),
@@ -399,9 +409,9 @@ class AsyncRawIdlingClient:
399
409
  raise TooManyRequestsError(
400
410
  headers=dict(_response.headers),
401
411
  body=typing.cast(
402
- typing.Optional[typing.Any],
412
+ typing.Any,
403
413
  parse_obj_as(
404
- type_=typing.Optional[typing.Any], # type: ignore
414
+ type_=typing.Any, # type: ignore
405
415
  object_=_response.json(),
406
416
  ),
407
417
  ),
@@ -410,9 +420,9 @@ class AsyncRawIdlingClient:
410
420
  raise InternalServerError(
411
421
  headers=dict(_response.headers),
412
422
  body=typing.cast(
413
- typing.Optional[typing.Any],
423
+ typing.Any,
414
424
  parse_obj_as(
415
- type_=typing.Optional[typing.Any], # type: ignore
425
+ type_=typing.Any, # type: ignore
416
426
  object_=_response.json(),
417
427
  ),
418
428
  ),
@@ -421,9 +431,9 @@ class AsyncRawIdlingClient:
421
431
  raise NotImplementedError(
422
432
  headers=dict(_response.headers),
423
433
  body=typing.cast(
424
- typing.Optional[typing.Any],
434
+ typing.Any,
425
435
  parse_obj_as(
426
- type_=typing.Optional[typing.Any], # type: ignore
436
+ type_=typing.Any, # type: ignore
427
437
  object_=_response.json(),
428
438
  ),
429
439
  ),
@@ -432,9 +442,9 @@ class AsyncRawIdlingClient:
432
442
  raise BadGatewayError(
433
443
  headers=dict(_response.headers),
434
444
  body=typing.cast(
435
- typing.Optional[typing.Any],
445
+ typing.Any,
436
446
  parse_obj_as(
437
- type_=typing.Optional[typing.Any], # type: ignore
447
+ type_=typing.Any, # type: ignore
438
448
  object_=_response.json(),
439
449
  ),
440
450
  ),
@@ -443,9 +453,9 @@ class AsyncRawIdlingClient:
443
453
  raise ServiceUnavailableError(
444
454
  headers=dict(_response.headers),
445
455
  body=typing.cast(
446
- typing.Optional[typing.Any],
456
+ typing.Any,
447
457
  parse_obj_as(
448
- type_=typing.Optional[typing.Any], # type: ignore
458
+ type_=typing.Any, # type: ignore
449
459
  object_=_response.json(),
450
460
  ),
451
461
  ),
@@ -454,9 +464,9 @@ class AsyncRawIdlingClient:
454
464
  raise GatewayTimeoutError(
455
465
  headers=dict(_response.headers),
456
466
  body=typing.cast(
457
- typing.Optional[typing.Any],
467
+ typing.Any,
458
468
  parse_obj_as(
459
- type_=typing.Optional[typing.Any], # type: ignore
469
+ type_=typing.Any, # type: ignore
460
470
  object_=_response.json(),
461
471
  ),
462
472
  ),
samsara/ifta/client.py CHANGED
@@ -102,14 +102,7 @@ class IftaClient:
102
102
  token="YOUR_TOKEN",
103
103
  )
104
104
  client.ifta.get_ifta_jurisdiction_reports(
105
- year=1,
106
- month="January",
107
- quarter="Q1",
108
- jurisdictions="jurisdictions",
109
- fuel_type="Unspecified",
110
- vehicle_ids="vehicleIds",
111
- tag_ids="tagIds",
112
- parent_tag_ids="parentTagIds",
105
+ year=1000000,
113
106
  )
114
107
  """
115
108
  _response = self._raw_client.get_ifta_jurisdiction_reports(
@@ -196,15 +189,7 @@ class IftaClient:
196
189
  token="YOUR_TOKEN",
197
190
  )
198
191
  client.ifta.get_ifta_vehicle_reports(
199
- year=1,
200
- month="January",
201
- quarter="Q1",
202
- jurisdictions="jurisdictions",
203
- fuel_type="Unspecified",
204
- vehicle_ids="vehicleIds",
205
- tag_ids="tagIds",
206
- parent_tag_ids="parentTagIds",
207
- after="after",
192
+ year=1000000,
208
193
  )
209
194
  """
210
195
  _response = self._raw_client.get_ifta_vehicle_reports(
@@ -416,14 +401,7 @@ class AsyncIftaClient:
416
401
 
417
402
  async def main() -> None:
418
403
  await client.ifta.get_ifta_jurisdiction_reports(
419
- year=1,
420
- month="January",
421
- quarter="Q1",
422
- jurisdictions="jurisdictions",
423
- fuel_type="Unspecified",
424
- vehicle_ids="vehicleIds",
425
- tag_ids="tagIds",
426
- parent_tag_ids="parentTagIds",
404
+ year=1000000,
427
405
  )
428
406
 
429
407
 
@@ -518,15 +496,7 @@ class AsyncIftaClient:
518
496
 
519
497
  async def main() -> None:
520
498
  await client.ifta.get_ifta_vehicle_reports(
521
- year=1,
522
- month="January",
523
- quarter="Q1",
524
- jurisdictions="jurisdictions",
525
- fuel_type="Unspecified",
526
- vehicle_ids="vehicleIds",
527
- tag_ids="tagIds",
528
- parent_tag_ids="parentTagIds",
529
- after="after",
499
+ year=1000000,
530
500
  )
531
501
 
532
502