samsara-api 4.2.0__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 (159) hide show
  1. samsara/__init__.py +69 -9
  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 +137 -187
  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 +0 -18
  67. samsara/idling/raw_client.py +36 -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 +0 -4
  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 +54 -0
  109. samsara/types/create_routes_stop_request_object_request_body.py +7 -0
  110. samsara/types/driver_assignment_object_response_body.py +2 -1
  111. samsara/types/driver_assignment_object_response_body_assignment_type.py +5 -0
  112. samsara/types/driver_external_ids.py +1 -1
  113. samsara/types/forms_approval_config_object_response_body.py +2 -1
  114. samsara/types/forms_approval_config_object_response_body_type.py +5 -0
  115. samsara/types/fuel_level_trigger_details_object_request_body.py +2 -1
  116. samsara/types/fuel_level_trigger_details_object_request_body_operation.py +5 -0
  117. samsara/types/fuel_level_trigger_details_object_response_body.py +4 -1
  118. samsara/types/fuel_level_trigger_details_object_response_body_operation.py +5 -0
  119. samsara/types/idling_event_object_v_20251023_response_body.py +4 -3
  120. samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
  121. samsara/types/patch_issue_request_body_assigned_to_request_body.py +2 -1
  122. samsara/types/patch_issue_request_body_assigned_to_request_body_type.py +5 -0
  123. samsara/types/reading_datapoint_request_body.py +5 -4
  124. samsara/types/reading_datapoint_request_body_entity_type.py +5 -0
  125. samsara/types/reading_history_response_body.py +1 -1
  126. samsara/types/reading_snapshot_response_body.py +1 -1
  127. samsara/types/resolved_by.py +2 -1
  128. samsara/types/resolved_by_type.py +5 -0
  129. samsara/types/route_feed_object_response_body.py +2 -1
  130. samsara/types/route_feed_object_response_body_type.py +5 -0
  131. samsara/types/route_settings_request_body.py +8 -0
  132. samsara/types/route_settings_request_body_sequencing_method.py +7 -0
  133. samsara/types/route_settings_response_body.py +8 -0
  134. samsara/types/route_settings_response_body_sequencing_method.py +7 -0
  135. samsara/types/route_stop_details_object_response_body.py +2 -1
  136. samsara/types/route_stop_details_object_response_body_type.py +5 -0
  137. samsara/types/routes_stop_response_object_response_body.py +7 -0
  138. samsara/types/training_learner_object_response_body.py +2 -1
  139. samsara/types/training_learner_object_response_body_type.py +5 -0
  140. samsara/types/update_routes_stop_request_object_request_body.py +7 -0
  141. samsara/types/vehicle_assignment_object_response_body.py +4 -3
  142. samsara/types/vehicle_assignment_object_response_body_assignment_type.py +5 -0
  143. samsara/types/vehicle_external_ids.py +1 -1
  144. samsara/types/work_order_money_object_request_body.py +2 -1
  145. samsara/types/work_order_money_object_request_body_currency.py +5 -0
  146. samsara/types/work_order_money_object_response_body.py +2 -1
  147. samsara/types/work_order_money_object_response_body_currency.py +5 -0
  148. samsara/users/client.py +4 -16
  149. samsara/vehicle_locations/client.py +4 -16
  150. samsara/vehicles/client.py +7 -22
  151. samsara/vehicles/raw_client.py +43 -47
  152. samsara/webhooks/client.py +2 -10
  153. samsara/webhooks/raw_client.py +180 -180
  154. samsara/work_orders/client.py +4 -18
  155. samsara/work_orders/raw_client.py +216 -216
  156. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
  157. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/RECORD +159 -132
  158. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
  159. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
@@ -137,9 +137,9 @@ class RawDriverVehicleAssignmentsClient:
137
137
  raise UnauthorizedError(
138
138
  headers=dict(_response.headers),
139
139
  body=typing.cast(
140
- typing.Optional[typing.Any],
140
+ typing.Any,
141
141
  parse_obj_as(
142
- type_=typing.Optional[typing.Any], # type: ignore
142
+ type_=typing.Any, # type: ignore
143
143
  object_=_response.json(),
144
144
  ),
145
145
  ),
@@ -148,9 +148,9 @@ class RawDriverVehicleAssignmentsClient:
148
148
  raise NotFoundError(
149
149
  headers=dict(_response.headers),
150
150
  body=typing.cast(
151
- typing.Optional[typing.Any],
151
+ typing.Any,
152
152
  parse_obj_as(
153
- type_=typing.Optional[typing.Any], # type: ignore
153
+ type_=typing.Any, # type: ignore
154
154
  object_=_response.json(),
155
155
  ),
156
156
  ),
@@ -159,9 +159,9 @@ class RawDriverVehicleAssignmentsClient:
159
159
  raise MethodNotAllowedError(
160
160
  headers=dict(_response.headers),
161
161
  body=typing.cast(
162
- typing.Optional[typing.Any],
162
+ typing.Any,
163
163
  parse_obj_as(
164
- type_=typing.Optional[typing.Any], # type: ignore
164
+ type_=typing.Any, # type: ignore
165
165
  object_=_response.json(),
166
166
  ),
167
167
  ),
@@ -170,9 +170,9 @@ class RawDriverVehicleAssignmentsClient:
170
170
  raise TooManyRequestsError(
171
171
  headers=dict(_response.headers),
172
172
  body=typing.cast(
173
- typing.Optional[typing.Any],
173
+ typing.Any,
174
174
  parse_obj_as(
175
- type_=typing.Optional[typing.Any], # type: ignore
175
+ type_=typing.Any, # type: ignore
176
176
  object_=_response.json(),
177
177
  ),
178
178
  ),
@@ -181,9 +181,9 @@ class RawDriverVehicleAssignmentsClient:
181
181
  raise InternalServerError(
182
182
  headers=dict(_response.headers),
183
183
  body=typing.cast(
184
- typing.Optional[typing.Any],
184
+ typing.Any,
185
185
  parse_obj_as(
186
- type_=typing.Optional[typing.Any], # type: ignore
186
+ type_=typing.Any, # type: ignore
187
187
  object_=_response.json(),
188
188
  ),
189
189
  ),
@@ -192,9 +192,9 @@ class RawDriverVehicleAssignmentsClient:
192
192
  raise NotImplementedError(
193
193
  headers=dict(_response.headers),
194
194
  body=typing.cast(
195
- typing.Optional[typing.Any],
195
+ typing.Any,
196
196
  parse_obj_as(
197
- type_=typing.Optional[typing.Any], # type: ignore
197
+ type_=typing.Any, # type: ignore
198
198
  object_=_response.json(),
199
199
  ),
200
200
  ),
@@ -203,9 +203,9 @@ class RawDriverVehicleAssignmentsClient:
203
203
  raise BadGatewayError(
204
204
  headers=dict(_response.headers),
205
205
  body=typing.cast(
206
- typing.Optional[typing.Any],
206
+ typing.Any,
207
207
  parse_obj_as(
208
- type_=typing.Optional[typing.Any], # type: ignore
208
+ type_=typing.Any, # type: ignore
209
209
  object_=_response.json(),
210
210
  ),
211
211
  ),
@@ -214,9 +214,9 @@ class RawDriverVehicleAssignmentsClient:
214
214
  raise ServiceUnavailableError(
215
215
  headers=dict(_response.headers),
216
216
  body=typing.cast(
217
- typing.Optional[typing.Any],
217
+ typing.Any,
218
218
  parse_obj_as(
219
- type_=typing.Optional[typing.Any], # type: ignore
219
+ type_=typing.Any, # type: ignore
220
220
  object_=_response.json(),
221
221
  ),
222
222
  ),
@@ -225,9 +225,9 @@ class RawDriverVehicleAssignmentsClient:
225
225
  raise GatewayTimeoutError(
226
226
  headers=dict(_response.headers),
227
227
  body=typing.cast(
228
- typing.Optional[typing.Any],
228
+ typing.Any,
229
229
  parse_obj_as(
230
- type_=typing.Optional[typing.Any], # type: ignore
230
+ type_=typing.Any, # type: ignore
231
231
  object_=_response.json(),
232
232
  ),
233
233
  ),
@@ -325,9 +325,9 @@ class RawDriverVehicleAssignmentsClient:
325
325
  raise UnauthorizedError(
326
326
  headers=dict(_response.headers),
327
327
  body=typing.cast(
328
- typing.Optional[typing.Any],
328
+ typing.Any,
329
329
  parse_obj_as(
330
- type_=typing.Optional[typing.Any], # type: ignore
330
+ type_=typing.Any, # type: ignore
331
331
  object_=_response.json(),
332
332
  ),
333
333
  ),
@@ -336,9 +336,9 @@ class RawDriverVehicleAssignmentsClient:
336
336
  raise NotFoundError(
337
337
  headers=dict(_response.headers),
338
338
  body=typing.cast(
339
- typing.Optional[typing.Any],
339
+ typing.Any,
340
340
  parse_obj_as(
341
- type_=typing.Optional[typing.Any], # type: ignore
341
+ type_=typing.Any, # type: ignore
342
342
  object_=_response.json(),
343
343
  ),
344
344
  ),
@@ -347,9 +347,9 @@ class RawDriverVehicleAssignmentsClient:
347
347
  raise MethodNotAllowedError(
348
348
  headers=dict(_response.headers),
349
349
  body=typing.cast(
350
- typing.Optional[typing.Any],
350
+ typing.Any,
351
351
  parse_obj_as(
352
- type_=typing.Optional[typing.Any], # type: ignore
352
+ type_=typing.Any, # type: ignore
353
353
  object_=_response.json(),
354
354
  ),
355
355
  ),
@@ -358,9 +358,9 @@ class RawDriverVehicleAssignmentsClient:
358
358
  raise TooManyRequestsError(
359
359
  headers=dict(_response.headers),
360
360
  body=typing.cast(
361
- typing.Optional[typing.Any],
361
+ typing.Any,
362
362
  parse_obj_as(
363
- type_=typing.Optional[typing.Any], # type: ignore
363
+ type_=typing.Any, # type: ignore
364
364
  object_=_response.json(),
365
365
  ),
366
366
  ),
@@ -369,9 +369,9 @@ class RawDriverVehicleAssignmentsClient:
369
369
  raise InternalServerError(
370
370
  headers=dict(_response.headers),
371
371
  body=typing.cast(
372
- typing.Optional[typing.Any],
372
+ typing.Any,
373
373
  parse_obj_as(
374
- type_=typing.Optional[typing.Any], # type: ignore
374
+ type_=typing.Any, # type: ignore
375
375
  object_=_response.json(),
376
376
  ),
377
377
  ),
@@ -380,9 +380,9 @@ class RawDriverVehicleAssignmentsClient:
380
380
  raise NotImplementedError(
381
381
  headers=dict(_response.headers),
382
382
  body=typing.cast(
383
- typing.Optional[typing.Any],
383
+ typing.Any,
384
384
  parse_obj_as(
385
- type_=typing.Optional[typing.Any], # type: ignore
385
+ type_=typing.Any, # type: ignore
386
386
  object_=_response.json(),
387
387
  ),
388
388
  ),
@@ -391,9 +391,9 @@ class RawDriverVehicleAssignmentsClient:
391
391
  raise BadGatewayError(
392
392
  headers=dict(_response.headers),
393
393
  body=typing.cast(
394
- typing.Optional[typing.Any],
394
+ typing.Any,
395
395
  parse_obj_as(
396
- type_=typing.Optional[typing.Any], # type: ignore
396
+ type_=typing.Any, # type: ignore
397
397
  object_=_response.json(),
398
398
  ),
399
399
  ),
@@ -402,9 +402,9 @@ class RawDriverVehicleAssignmentsClient:
402
402
  raise ServiceUnavailableError(
403
403
  headers=dict(_response.headers),
404
404
  body=typing.cast(
405
- typing.Optional[typing.Any],
405
+ typing.Any,
406
406
  parse_obj_as(
407
- type_=typing.Optional[typing.Any], # type: ignore
407
+ type_=typing.Any, # type: ignore
408
408
  object_=_response.json(),
409
409
  ),
410
410
  ),
@@ -413,9 +413,9 @@ class RawDriverVehicleAssignmentsClient:
413
413
  raise GatewayTimeoutError(
414
414
  headers=dict(_response.headers),
415
415
  body=typing.cast(
416
- typing.Optional[typing.Any],
416
+ typing.Any,
417
417
  parse_obj_as(
418
- type_=typing.Optional[typing.Any], # type: ignore
418
+ type_=typing.Any, # type: ignore
419
419
  object_=_response.json(),
420
420
  ),
421
421
  ),
@@ -492,9 +492,9 @@ class RawDriverVehicleAssignmentsClient:
492
492
  raise UnauthorizedError(
493
493
  headers=dict(_response.headers),
494
494
  body=typing.cast(
495
- typing.Optional[typing.Any],
495
+ typing.Any,
496
496
  parse_obj_as(
497
- type_=typing.Optional[typing.Any], # type: ignore
497
+ type_=typing.Any, # type: ignore
498
498
  object_=_response.json(),
499
499
  ),
500
500
  ),
@@ -503,9 +503,9 @@ class RawDriverVehicleAssignmentsClient:
503
503
  raise NotFoundError(
504
504
  headers=dict(_response.headers),
505
505
  body=typing.cast(
506
- typing.Optional[typing.Any],
506
+ typing.Any,
507
507
  parse_obj_as(
508
- type_=typing.Optional[typing.Any], # type: ignore
508
+ type_=typing.Any, # type: ignore
509
509
  object_=_response.json(),
510
510
  ),
511
511
  ),
@@ -514,9 +514,9 @@ class RawDriverVehicleAssignmentsClient:
514
514
  raise MethodNotAllowedError(
515
515
  headers=dict(_response.headers),
516
516
  body=typing.cast(
517
- typing.Optional[typing.Any],
517
+ typing.Any,
518
518
  parse_obj_as(
519
- type_=typing.Optional[typing.Any], # type: ignore
519
+ type_=typing.Any, # type: ignore
520
520
  object_=_response.json(),
521
521
  ),
522
522
  ),
@@ -525,9 +525,9 @@ class RawDriverVehicleAssignmentsClient:
525
525
  raise TooManyRequestsError(
526
526
  headers=dict(_response.headers),
527
527
  body=typing.cast(
528
- typing.Optional[typing.Any],
528
+ typing.Any,
529
529
  parse_obj_as(
530
- type_=typing.Optional[typing.Any], # type: ignore
530
+ type_=typing.Any, # type: ignore
531
531
  object_=_response.json(),
532
532
  ),
533
533
  ),
@@ -536,9 +536,9 @@ class RawDriverVehicleAssignmentsClient:
536
536
  raise InternalServerError(
537
537
  headers=dict(_response.headers),
538
538
  body=typing.cast(
539
- typing.Optional[typing.Any],
539
+ typing.Any,
540
540
  parse_obj_as(
541
- type_=typing.Optional[typing.Any], # type: ignore
541
+ type_=typing.Any, # type: ignore
542
542
  object_=_response.json(),
543
543
  ),
544
544
  ),
@@ -547,9 +547,9 @@ class RawDriverVehicleAssignmentsClient:
547
547
  raise NotImplementedError(
548
548
  headers=dict(_response.headers),
549
549
  body=typing.cast(
550
- typing.Optional[typing.Any],
550
+ typing.Any,
551
551
  parse_obj_as(
552
- type_=typing.Optional[typing.Any], # type: ignore
552
+ type_=typing.Any, # type: ignore
553
553
  object_=_response.json(),
554
554
  ),
555
555
  ),
@@ -558,9 +558,9 @@ class RawDriverVehicleAssignmentsClient:
558
558
  raise BadGatewayError(
559
559
  headers=dict(_response.headers),
560
560
  body=typing.cast(
561
- typing.Optional[typing.Any],
561
+ typing.Any,
562
562
  parse_obj_as(
563
- type_=typing.Optional[typing.Any], # type: ignore
563
+ type_=typing.Any, # type: ignore
564
564
  object_=_response.json(),
565
565
  ),
566
566
  ),
@@ -569,9 +569,9 @@ class RawDriverVehicleAssignmentsClient:
569
569
  raise ServiceUnavailableError(
570
570
  headers=dict(_response.headers),
571
571
  body=typing.cast(
572
- typing.Optional[typing.Any],
572
+ typing.Any,
573
573
  parse_obj_as(
574
- type_=typing.Optional[typing.Any], # type: ignore
574
+ type_=typing.Any, # type: ignore
575
575
  object_=_response.json(),
576
576
  ),
577
577
  ),
@@ -580,9 +580,9 @@ class RawDriverVehicleAssignmentsClient:
580
580
  raise GatewayTimeoutError(
581
581
  headers=dict(_response.headers),
582
582
  body=typing.cast(
583
- typing.Optional[typing.Any],
583
+ typing.Any,
584
584
  parse_obj_as(
585
- type_=typing.Optional[typing.Any], # type: ignore
585
+ type_=typing.Any, # type: ignore
586
586
  object_=_response.json(),
587
587
  ),
588
588
  ),
@@ -680,9 +680,9 @@ class RawDriverVehicleAssignmentsClient:
680
680
  raise UnauthorizedError(
681
681
  headers=dict(_response.headers),
682
682
  body=typing.cast(
683
- typing.Optional[typing.Any],
683
+ typing.Any,
684
684
  parse_obj_as(
685
- type_=typing.Optional[typing.Any], # type: ignore
685
+ type_=typing.Any, # type: ignore
686
686
  object_=_response.json(),
687
687
  ),
688
688
  ),
@@ -691,9 +691,9 @@ class RawDriverVehicleAssignmentsClient:
691
691
  raise NotFoundError(
692
692
  headers=dict(_response.headers),
693
693
  body=typing.cast(
694
- typing.Optional[typing.Any],
694
+ typing.Any,
695
695
  parse_obj_as(
696
- type_=typing.Optional[typing.Any], # type: ignore
696
+ type_=typing.Any, # type: ignore
697
697
  object_=_response.json(),
698
698
  ),
699
699
  ),
@@ -702,9 +702,9 @@ class RawDriverVehicleAssignmentsClient:
702
702
  raise MethodNotAllowedError(
703
703
  headers=dict(_response.headers),
704
704
  body=typing.cast(
705
- typing.Optional[typing.Any],
705
+ typing.Any,
706
706
  parse_obj_as(
707
- type_=typing.Optional[typing.Any], # type: ignore
707
+ type_=typing.Any, # type: ignore
708
708
  object_=_response.json(),
709
709
  ),
710
710
  ),
@@ -713,9 +713,9 @@ class RawDriverVehicleAssignmentsClient:
713
713
  raise TooManyRequestsError(
714
714
  headers=dict(_response.headers),
715
715
  body=typing.cast(
716
- typing.Optional[typing.Any],
716
+ typing.Any,
717
717
  parse_obj_as(
718
- type_=typing.Optional[typing.Any], # type: ignore
718
+ type_=typing.Any, # type: ignore
719
719
  object_=_response.json(),
720
720
  ),
721
721
  ),
@@ -724,9 +724,9 @@ class RawDriverVehicleAssignmentsClient:
724
724
  raise InternalServerError(
725
725
  headers=dict(_response.headers),
726
726
  body=typing.cast(
727
- typing.Optional[typing.Any],
727
+ typing.Any,
728
728
  parse_obj_as(
729
- type_=typing.Optional[typing.Any], # type: ignore
729
+ type_=typing.Any, # type: ignore
730
730
  object_=_response.json(),
731
731
  ),
732
732
  ),
@@ -735,9 +735,9 @@ class RawDriverVehicleAssignmentsClient:
735
735
  raise NotImplementedError(
736
736
  headers=dict(_response.headers),
737
737
  body=typing.cast(
738
- typing.Optional[typing.Any],
738
+ typing.Any,
739
739
  parse_obj_as(
740
- type_=typing.Optional[typing.Any], # type: ignore
740
+ type_=typing.Any, # type: ignore
741
741
  object_=_response.json(),
742
742
  ),
743
743
  ),
@@ -746,9 +746,9 @@ class RawDriverVehicleAssignmentsClient:
746
746
  raise BadGatewayError(
747
747
  headers=dict(_response.headers),
748
748
  body=typing.cast(
749
- typing.Optional[typing.Any],
749
+ typing.Any,
750
750
  parse_obj_as(
751
- type_=typing.Optional[typing.Any], # type: ignore
751
+ type_=typing.Any, # type: ignore
752
752
  object_=_response.json(),
753
753
  ),
754
754
  ),
@@ -757,9 +757,9 @@ class RawDriverVehicleAssignmentsClient:
757
757
  raise ServiceUnavailableError(
758
758
  headers=dict(_response.headers),
759
759
  body=typing.cast(
760
- typing.Optional[typing.Any],
760
+ typing.Any,
761
761
  parse_obj_as(
762
- type_=typing.Optional[typing.Any], # type: ignore
762
+ type_=typing.Any, # type: ignore
763
763
  object_=_response.json(),
764
764
  ),
765
765
  ),
@@ -768,9 +768,9 @@ class RawDriverVehicleAssignmentsClient:
768
768
  raise GatewayTimeoutError(
769
769
  headers=dict(_response.headers),
770
770
  body=typing.cast(
771
- typing.Optional[typing.Any],
771
+ typing.Any,
772
772
  parse_obj_as(
773
- type_=typing.Optional[typing.Any], # type: ignore
773
+ type_=typing.Any, # type: ignore
774
774
  object_=_response.json(),
775
775
  ),
776
776
  ),
@@ -876,9 +876,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
876
876
  raise UnauthorizedError(
877
877
  headers=dict(_response.headers),
878
878
  body=typing.cast(
879
- typing.Optional[typing.Any],
879
+ typing.Any,
880
880
  parse_obj_as(
881
- type_=typing.Optional[typing.Any], # type: ignore
881
+ type_=typing.Any, # type: ignore
882
882
  object_=_response.json(),
883
883
  ),
884
884
  ),
@@ -887,9 +887,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
887
887
  raise NotFoundError(
888
888
  headers=dict(_response.headers),
889
889
  body=typing.cast(
890
- typing.Optional[typing.Any],
890
+ typing.Any,
891
891
  parse_obj_as(
892
- type_=typing.Optional[typing.Any], # type: ignore
892
+ type_=typing.Any, # type: ignore
893
893
  object_=_response.json(),
894
894
  ),
895
895
  ),
@@ -898,9 +898,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
898
898
  raise MethodNotAllowedError(
899
899
  headers=dict(_response.headers),
900
900
  body=typing.cast(
901
- typing.Optional[typing.Any],
901
+ typing.Any,
902
902
  parse_obj_as(
903
- type_=typing.Optional[typing.Any], # type: ignore
903
+ type_=typing.Any, # type: ignore
904
904
  object_=_response.json(),
905
905
  ),
906
906
  ),
@@ -909,9 +909,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
909
909
  raise TooManyRequestsError(
910
910
  headers=dict(_response.headers),
911
911
  body=typing.cast(
912
- typing.Optional[typing.Any],
912
+ typing.Any,
913
913
  parse_obj_as(
914
- type_=typing.Optional[typing.Any], # type: ignore
914
+ type_=typing.Any, # type: ignore
915
915
  object_=_response.json(),
916
916
  ),
917
917
  ),
@@ -920,9 +920,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
920
920
  raise InternalServerError(
921
921
  headers=dict(_response.headers),
922
922
  body=typing.cast(
923
- typing.Optional[typing.Any],
923
+ typing.Any,
924
924
  parse_obj_as(
925
- type_=typing.Optional[typing.Any], # type: ignore
925
+ type_=typing.Any, # type: ignore
926
926
  object_=_response.json(),
927
927
  ),
928
928
  ),
@@ -931,9 +931,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
931
931
  raise NotImplementedError(
932
932
  headers=dict(_response.headers),
933
933
  body=typing.cast(
934
- typing.Optional[typing.Any],
934
+ typing.Any,
935
935
  parse_obj_as(
936
- type_=typing.Optional[typing.Any], # type: ignore
936
+ type_=typing.Any, # type: ignore
937
937
  object_=_response.json(),
938
938
  ),
939
939
  ),
@@ -942,9 +942,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
942
942
  raise BadGatewayError(
943
943
  headers=dict(_response.headers),
944
944
  body=typing.cast(
945
- typing.Optional[typing.Any],
945
+ typing.Any,
946
946
  parse_obj_as(
947
- type_=typing.Optional[typing.Any], # type: ignore
947
+ type_=typing.Any, # type: ignore
948
948
  object_=_response.json(),
949
949
  ),
950
950
  ),
@@ -953,9 +953,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
953
953
  raise ServiceUnavailableError(
954
954
  headers=dict(_response.headers),
955
955
  body=typing.cast(
956
- typing.Optional[typing.Any],
956
+ typing.Any,
957
957
  parse_obj_as(
958
- type_=typing.Optional[typing.Any], # type: ignore
958
+ type_=typing.Any, # type: ignore
959
959
  object_=_response.json(),
960
960
  ),
961
961
  ),
@@ -964,9 +964,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
964
964
  raise GatewayTimeoutError(
965
965
  headers=dict(_response.headers),
966
966
  body=typing.cast(
967
- typing.Optional[typing.Any],
967
+ typing.Any,
968
968
  parse_obj_as(
969
- type_=typing.Optional[typing.Any], # type: ignore
969
+ type_=typing.Any, # type: ignore
970
970
  object_=_response.json(),
971
971
  ),
972
972
  ),
@@ -1064,9 +1064,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1064
1064
  raise UnauthorizedError(
1065
1065
  headers=dict(_response.headers),
1066
1066
  body=typing.cast(
1067
- typing.Optional[typing.Any],
1067
+ typing.Any,
1068
1068
  parse_obj_as(
1069
- type_=typing.Optional[typing.Any], # type: ignore
1069
+ type_=typing.Any, # type: ignore
1070
1070
  object_=_response.json(),
1071
1071
  ),
1072
1072
  ),
@@ -1075,9 +1075,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1075
1075
  raise NotFoundError(
1076
1076
  headers=dict(_response.headers),
1077
1077
  body=typing.cast(
1078
- typing.Optional[typing.Any],
1078
+ typing.Any,
1079
1079
  parse_obj_as(
1080
- type_=typing.Optional[typing.Any], # type: ignore
1080
+ type_=typing.Any, # type: ignore
1081
1081
  object_=_response.json(),
1082
1082
  ),
1083
1083
  ),
@@ -1086,9 +1086,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1086
1086
  raise MethodNotAllowedError(
1087
1087
  headers=dict(_response.headers),
1088
1088
  body=typing.cast(
1089
- typing.Optional[typing.Any],
1089
+ typing.Any,
1090
1090
  parse_obj_as(
1091
- type_=typing.Optional[typing.Any], # type: ignore
1091
+ type_=typing.Any, # type: ignore
1092
1092
  object_=_response.json(),
1093
1093
  ),
1094
1094
  ),
@@ -1097,9 +1097,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1097
1097
  raise TooManyRequestsError(
1098
1098
  headers=dict(_response.headers),
1099
1099
  body=typing.cast(
1100
- typing.Optional[typing.Any],
1100
+ typing.Any,
1101
1101
  parse_obj_as(
1102
- type_=typing.Optional[typing.Any], # type: ignore
1102
+ type_=typing.Any, # type: ignore
1103
1103
  object_=_response.json(),
1104
1104
  ),
1105
1105
  ),
@@ -1108,9 +1108,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1108
1108
  raise InternalServerError(
1109
1109
  headers=dict(_response.headers),
1110
1110
  body=typing.cast(
1111
- typing.Optional[typing.Any],
1111
+ typing.Any,
1112
1112
  parse_obj_as(
1113
- type_=typing.Optional[typing.Any], # type: ignore
1113
+ type_=typing.Any, # type: ignore
1114
1114
  object_=_response.json(),
1115
1115
  ),
1116
1116
  ),
@@ -1119,9 +1119,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1119
1119
  raise NotImplementedError(
1120
1120
  headers=dict(_response.headers),
1121
1121
  body=typing.cast(
1122
- typing.Optional[typing.Any],
1122
+ typing.Any,
1123
1123
  parse_obj_as(
1124
- type_=typing.Optional[typing.Any], # type: ignore
1124
+ type_=typing.Any, # type: ignore
1125
1125
  object_=_response.json(),
1126
1126
  ),
1127
1127
  ),
@@ -1130,9 +1130,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1130
1130
  raise BadGatewayError(
1131
1131
  headers=dict(_response.headers),
1132
1132
  body=typing.cast(
1133
- typing.Optional[typing.Any],
1133
+ typing.Any,
1134
1134
  parse_obj_as(
1135
- type_=typing.Optional[typing.Any], # type: ignore
1135
+ type_=typing.Any, # type: ignore
1136
1136
  object_=_response.json(),
1137
1137
  ),
1138
1138
  ),
@@ -1141,9 +1141,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1141
1141
  raise ServiceUnavailableError(
1142
1142
  headers=dict(_response.headers),
1143
1143
  body=typing.cast(
1144
- typing.Optional[typing.Any],
1144
+ typing.Any,
1145
1145
  parse_obj_as(
1146
- type_=typing.Optional[typing.Any], # type: ignore
1146
+ type_=typing.Any, # type: ignore
1147
1147
  object_=_response.json(),
1148
1148
  ),
1149
1149
  ),
@@ -1152,9 +1152,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1152
1152
  raise GatewayTimeoutError(
1153
1153
  headers=dict(_response.headers),
1154
1154
  body=typing.cast(
1155
- typing.Optional[typing.Any],
1155
+ typing.Any,
1156
1156
  parse_obj_as(
1157
- type_=typing.Optional[typing.Any], # type: ignore
1157
+ type_=typing.Any, # type: ignore
1158
1158
  object_=_response.json(),
1159
1159
  ),
1160
1160
  ),
@@ -1231,9 +1231,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1231
1231
  raise UnauthorizedError(
1232
1232
  headers=dict(_response.headers),
1233
1233
  body=typing.cast(
1234
- typing.Optional[typing.Any],
1234
+ typing.Any,
1235
1235
  parse_obj_as(
1236
- type_=typing.Optional[typing.Any], # type: ignore
1236
+ type_=typing.Any, # type: ignore
1237
1237
  object_=_response.json(),
1238
1238
  ),
1239
1239
  ),
@@ -1242,9 +1242,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1242
1242
  raise NotFoundError(
1243
1243
  headers=dict(_response.headers),
1244
1244
  body=typing.cast(
1245
- typing.Optional[typing.Any],
1245
+ typing.Any,
1246
1246
  parse_obj_as(
1247
- type_=typing.Optional[typing.Any], # type: ignore
1247
+ type_=typing.Any, # type: ignore
1248
1248
  object_=_response.json(),
1249
1249
  ),
1250
1250
  ),
@@ -1253,9 +1253,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1253
1253
  raise MethodNotAllowedError(
1254
1254
  headers=dict(_response.headers),
1255
1255
  body=typing.cast(
1256
- typing.Optional[typing.Any],
1256
+ typing.Any,
1257
1257
  parse_obj_as(
1258
- type_=typing.Optional[typing.Any], # type: ignore
1258
+ type_=typing.Any, # type: ignore
1259
1259
  object_=_response.json(),
1260
1260
  ),
1261
1261
  ),
@@ -1264,9 +1264,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1264
1264
  raise TooManyRequestsError(
1265
1265
  headers=dict(_response.headers),
1266
1266
  body=typing.cast(
1267
- typing.Optional[typing.Any],
1267
+ typing.Any,
1268
1268
  parse_obj_as(
1269
- type_=typing.Optional[typing.Any], # type: ignore
1269
+ type_=typing.Any, # type: ignore
1270
1270
  object_=_response.json(),
1271
1271
  ),
1272
1272
  ),
@@ -1275,9 +1275,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1275
1275
  raise InternalServerError(
1276
1276
  headers=dict(_response.headers),
1277
1277
  body=typing.cast(
1278
- typing.Optional[typing.Any],
1278
+ typing.Any,
1279
1279
  parse_obj_as(
1280
- type_=typing.Optional[typing.Any], # type: ignore
1280
+ type_=typing.Any, # type: ignore
1281
1281
  object_=_response.json(),
1282
1282
  ),
1283
1283
  ),
@@ -1286,9 +1286,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1286
1286
  raise NotImplementedError(
1287
1287
  headers=dict(_response.headers),
1288
1288
  body=typing.cast(
1289
- typing.Optional[typing.Any],
1289
+ typing.Any,
1290
1290
  parse_obj_as(
1291
- type_=typing.Optional[typing.Any], # type: ignore
1291
+ type_=typing.Any, # type: ignore
1292
1292
  object_=_response.json(),
1293
1293
  ),
1294
1294
  ),
@@ -1297,9 +1297,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1297
1297
  raise BadGatewayError(
1298
1298
  headers=dict(_response.headers),
1299
1299
  body=typing.cast(
1300
- typing.Optional[typing.Any],
1300
+ typing.Any,
1301
1301
  parse_obj_as(
1302
- type_=typing.Optional[typing.Any], # type: ignore
1302
+ type_=typing.Any, # type: ignore
1303
1303
  object_=_response.json(),
1304
1304
  ),
1305
1305
  ),
@@ -1308,9 +1308,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1308
1308
  raise ServiceUnavailableError(
1309
1309
  headers=dict(_response.headers),
1310
1310
  body=typing.cast(
1311
- typing.Optional[typing.Any],
1311
+ typing.Any,
1312
1312
  parse_obj_as(
1313
- type_=typing.Optional[typing.Any], # type: ignore
1313
+ type_=typing.Any, # type: ignore
1314
1314
  object_=_response.json(),
1315
1315
  ),
1316
1316
  ),
@@ -1319,9 +1319,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1319
1319
  raise GatewayTimeoutError(
1320
1320
  headers=dict(_response.headers),
1321
1321
  body=typing.cast(
1322
- typing.Optional[typing.Any],
1322
+ typing.Any,
1323
1323
  parse_obj_as(
1324
- type_=typing.Optional[typing.Any], # type: ignore
1324
+ type_=typing.Any, # type: ignore
1325
1325
  object_=_response.json(),
1326
1326
  ),
1327
1327
  ),
@@ -1419,9 +1419,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1419
1419
  raise UnauthorizedError(
1420
1420
  headers=dict(_response.headers),
1421
1421
  body=typing.cast(
1422
- typing.Optional[typing.Any],
1422
+ typing.Any,
1423
1423
  parse_obj_as(
1424
- type_=typing.Optional[typing.Any], # type: ignore
1424
+ type_=typing.Any, # type: ignore
1425
1425
  object_=_response.json(),
1426
1426
  ),
1427
1427
  ),
@@ -1430,9 +1430,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1430
1430
  raise NotFoundError(
1431
1431
  headers=dict(_response.headers),
1432
1432
  body=typing.cast(
1433
- typing.Optional[typing.Any],
1433
+ typing.Any,
1434
1434
  parse_obj_as(
1435
- type_=typing.Optional[typing.Any], # type: ignore
1435
+ type_=typing.Any, # type: ignore
1436
1436
  object_=_response.json(),
1437
1437
  ),
1438
1438
  ),
@@ -1441,9 +1441,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1441
1441
  raise MethodNotAllowedError(
1442
1442
  headers=dict(_response.headers),
1443
1443
  body=typing.cast(
1444
- typing.Optional[typing.Any],
1444
+ typing.Any,
1445
1445
  parse_obj_as(
1446
- type_=typing.Optional[typing.Any], # type: ignore
1446
+ type_=typing.Any, # type: ignore
1447
1447
  object_=_response.json(),
1448
1448
  ),
1449
1449
  ),
@@ -1452,9 +1452,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1452
1452
  raise TooManyRequestsError(
1453
1453
  headers=dict(_response.headers),
1454
1454
  body=typing.cast(
1455
- typing.Optional[typing.Any],
1455
+ typing.Any,
1456
1456
  parse_obj_as(
1457
- type_=typing.Optional[typing.Any], # type: ignore
1457
+ type_=typing.Any, # type: ignore
1458
1458
  object_=_response.json(),
1459
1459
  ),
1460
1460
  ),
@@ -1463,9 +1463,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1463
1463
  raise InternalServerError(
1464
1464
  headers=dict(_response.headers),
1465
1465
  body=typing.cast(
1466
- typing.Optional[typing.Any],
1466
+ typing.Any,
1467
1467
  parse_obj_as(
1468
- type_=typing.Optional[typing.Any], # type: ignore
1468
+ type_=typing.Any, # type: ignore
1469
1469
  object_=_response.json(),
1470
1470
  ),
1471
1471
  ),
@@ -1474,9 +1474,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1474
1474
  raise NotImplementedError(
1475
1475
  headers=dict(_response.headers),
1476
1476
  body=typing.cast(
1477
- typing.Optional[typing.Any],
1477
+ typing.Any,
1478
1478
  parse_obj_as(
1479
- type_=typing.Optional[typing.Any], # type: ignore
1479
+ type_=typing.Any, # type: ignore
1480
1480
  object_=_response.json(),
1481
1481
  ),
1482
1482
  ),
@@ -1485,9 +1485,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1485
1485
  raise BadGatewayError(
1486
1486
  headers=dict(_response.headers),
1487
1487
  body=typing.cast(
1488
- typing.Optional[typing.Any],
1488
+ typing.Any,
1489
1489
  parse_obj_as(
1490
- type_=typing.Optional[typing.Any], # type: ignore
1490
+ type_=typing.Any, # type: ignore
1491
1491
  object_=_response.json(),
1492
1492
  ),
1493
1493
  ),
@@ -1496,9 +1496,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1496
1496
  raise ServiceUnavailableError(
1497
1497
  headers=dict(_response.headers),
1498
1498
  body=typing.cast(
1499
- typing.Optional[typing.Any],
1499
+ typing.Any,
1500
1500
  parse_obj_as(
1501
- type_=typing.Optional[typing.Any], # type: ignore
1501
+ type_=typing.Any, # type: ignore
1502
1502
  object_=_response.json(),
1503
1503
  ),
1504
1504
  ),
@@ -1507,9 +1507,9 @@ class AsyncRawDriverVehicleAssignmentsClient:
1507
1507
  raise GatewayTimeoutError(
1508
1508
  headers=dict(_response.headers),
1509
1509
  body=typing.cast(
1510
- typing.Optional[typing.Any],
1510
+ typing.Any,
1511
1511
  parse_obj_as(
1512
- type_=typing.Optional[typing.Any], # type: ignore
1512
+ type_=typing.Any, # type: ignore
1513
1513
  object_=_response.json(),
1514
1514
  ),
1515
1515
  ),