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
@@ -67,9 +67,7 @@ class GatewaysClient:
67
67
  client = Samsara(
68
68
  token="YOUR_TOKEN",
69
69
  )
70
- client.gateways.get_gateways(
71
- after="after",
72
- )
70
+ client.gateways.get_gateways()
73
71
  """
74
72
  _response = self._raw_client.get_gateways(models=models, after=after, request_options=request_options)
75
73
  return _response.data
@@ -212,9 +210,7 @@ class AsyncGatewaysClient:
212
210
 
213
211
 
214
212
  async def main() -> None:
215
- await client.gateways.get_gateways(
216
- after="after",
217
- )
213
+ await client.gateways.get_gateways()
218
214
 
219
215
 
220
216
  asyncio.run(main())
@@ -85,9 +85,9 @@ class RawGatewaysClient:
85
85
  raise UnauthorizedError(
86
86
  headers=dict(_response.headers),
87
87
  body=typing.cast(
88
- typing.Optional[typing.Any],
88
+ typing.Any,
89
89
  parse_obj_as(
90
- type_=typing.Optional[typing.Any], # type: ignore
90
+ type_=typing.Any, # type: ignore
91
91
  object_=_response.json(),
92
92
  ),
93
93
  ),
@@ -96,9 +96,9 @@ class RawGatewaysClient:
96
96
  raise NotFoundError(
97
97
  headers=dict(_response.headers),
98
98
  body=typing.cast(
99
- typing.Optional[typing.Any],
99
+ typing.Any,
100
100
  parse_obj_as(
101
- type_=typing.Optional[typing.Any], # type: ignore
101
+ type_=typing.Any, # type: ignore
102
102
  object_=_response.json(),
103
103
  ),
104
104
  ),
@@ -107,9 +107,9 @@ class RawGatewaysClient:
107
107
  raise MethodNotAllowedError(
108
108
  headers=dict(_response.headers),
109
109
  body=typing.cast(
110
- typing.Optional[typing.Any],
110
+ typing.Any,
111
111
  parse_obj_as(
112
- type_=typing.Optional[typing.Any], # type: ignore
112
+ type_=typing.Any, # type: ignore
113
113
  object_=_response.json(),
114
114
  ),
115
115
  ),
@@ -118,9 +118,9 @@ class RawGatewaysClient:
118
118
  raise TooManyRequestsError(
119
119
  headers=dict(_response.headers),
120
120
  body=typing.cast(
121
- typing.Optional[typing.Any],
121
+ typing.Any,
122
122
  parse_obj_as(
123
- type_=typing.Optional[typing.Any], # type: ignore
123
+ type_=typing.Any, # type: ignore
124
124
  object_=_response.json(),
125
125
  ),
126
126
  ),
@@ -129,9 +129,9 @@ class RawGatewaysClient:
129
129
  raise InternalServerError(
130
130
  headers=dict(_response.headers),
131
131
  body=typing.cast(
132
- typing.Optional[typing.Any],
132
+ typing.Any,
133
133
  parse_obj_as(
134
- type_=typing.Optional[typing.Any], # type: ignore
134
+ type_=typing.Any, # type: ignore
135
135
  object_=_response.json(),
136
136
  ),
137
137
  ),
@@ -140,9 +140,9 @@ class RawGatewaysClient:
140
140
  raise NotImplementedError(
141
141
  headers=dict(_response.headers),
142
142
  body=typing.cast(
143
- typing.Optional[typing.Any],
143
+ typing.Any,
144
144
  parse_obj_as(
145
- type_=typing.Optional[typing.Any], # type: ignore
145
+ type_=typing.Any, # type: ignore
146
146
  object_=_response.json(),
147
147
  ),
148
148
  ),
@@ -151,9 +151,9 @@ class RawGatewaysClient:
151
151
  raise BadGatewayError(
152
152
  headers=dict(_response.headers),
153
153
  body=typing.cast(
154
- typing.Optional[typing.Any],
154
+ typing.Any,
155
155
  parse_obj_as(
156
- type_=typing.Optional[typing.Any], # type: ignore
156
+ type_=typing.Any, # type: ignore
157
157
  object_=_response.json(),
158
158
  ),
159
159
  ),
@@ -162,9 +162,9 @@ class RawGatewaysClient:
162
162
  raise ServiceUnavailableError(
163
163
  headers=dict(_response.headers),
164
164
  body=typing.cast(
165
- typing.Optional[typing.Any],
165
+ typing.Any,
166
166
  parse_obj_as(
167
- type_=typing.Optional[typing.Any], # type: ignore
167
+ type_=typing.Any, # type: ignore
168
168
  object_=_response.json(),
169
169
  ),
170
170
  ),
@@ -173,9 +173,9 @@ class RawGatewaysClient:
173
173
  raise GatewayTimeoutError(
174
174
  headers=dict(_response.headers),
175
175
  body=typing.cast(
176
- typing.Optional[typing.Any],
176
+ typing.Any,
177
177
  parse_obj_as(
178
- type_=typing.Optional[typing.Any], # type: ignore
178
+ type_=typing.Any, # type: ignore
179
179
  object_=_response.json(),
180
180
  ),
181
181
  ),
@@ -237,9 +237,9 @@ class RawGatewaysClient:
237
237
  raise UnauthorizedError(
238
238
  headers=dict(_response.headers),
239
239
  body=typing.cast(
240
- typing.Optional[typing.Any],
240
+ typing.Any,
241
241
  parse_obj_as(
242
- type_=typing.Optional[typing.Any], # type: ignore
242
+ type_=typing.Any, # type: ignore
243
243
  object_=_response.json(),
244
244
  ),
245
245
  ),
@@ -248,9 +248,9 @@ class RawGatewaysClient:
248
248
  raise NotFoundError(
249
249
  headers=dict(_response.headers),
250
250
  body=typing.cast(
251
- typing.Optional[typing.Any],
251
+ typing.Any,
252
252
  parse_obj_as(
253
- type_=typing.Optional[typing.Any], # type: ignore
253
+ type_=typing.Any, # type: ignore
254
254
  object_=_response.json(),
255
255
  ),
256
256
  ),
@@ -259,9 +259,9 @@ class RawGatewaysClient:
259
259
  raise MethodNotAllowedError(
260
260
  headers=dict(_response.headers),
261
261
  body=typing.cast(
262
- typing.Optional[typing.Any],
262
+ typing.Any,
263
263
  parse_obj_as(
264
- type_=typing.Optional[typing.Any], # type: ignore
264
+ type_=typing.Any, # type: ignore
265
265
  object_=_response.json(),
266
266
  ),
267
267
  ),
@@ -270,9 +270,9 @@ class RawGatewaysClient:
270
270
  raise TooManyRequestsError(
271
271
  headers=dict(_response.headers),
272
272
  body=typing.cast(
273
- typing.Optional[typing.Any],
273
+ typing.Any,
274
274
  parse_obj_as(
275
- type_=typing.Optional[typing.Any], # type: ignore
275
+ type_=typing.Any, # type: ignore
276
276
  object_=_response.json(),
277
277
  ),
278
278
  ),
@@ -281,9 +281,9 @@ class RawGatewaysClient:
281
281
  raise InternalServerError(
282
282
  headers=dict(_response.headers),
283
283
  body=typing.cast(
284
- typing.Optional[typing.Any],
284
+ typing.Any,
285
285
  parse_obj_as(
286
- type_=typing.Optional[typing.Any], # type: ignore
286
+ type_=typing.Any, # type: ignore
287
287
  object_=_response.json(),
288
288
  ),
289
289
  ),
@@ -292,9 +292,9 @@ class RawGatewaysClient:
292
292
  raise NotImplementedError(
293
293
  headers=dict(_response.headers),
294
294
  body=typing.cast(
295
- typing.Optional[typing.Any],
295
+ typing.Any,
296
296
  parse_obj_as(
297
- type_=typing.Optional[typing.Any], # type: ignore
297
+ type_=typing.Any, # type: ignore
298
298
  object_=_response.json(),
299
299
  ),
300
300
  ),
@@ -303,9 +303,9 @@ class RawGatewaysClient:
303
303
  raise BadGatewayError(
304
304
  headers=dict(_response.headers),
305
305
  body=typing.cast(
306
- typing.Optional[typing.Any],
306
+ typing.Any,
307
307
  parse_obj_as(
308
- type_=typing.Optional[typing.Any], # type: ignore
308
+ type_=typing.Any, # type: ignore
309
309
  object_=_response.json(),
310
310
  ),
311
311
  ),
@@ -314,9 +314,9 @@ class RawGatewaysClient:
314
314
  raise ServiceUnavailableError(
315
315
  headers=dict(_response.headers),
316
316
  body=typing.cast(
317
- typing.Optional[typing.Any],
317
+ typing.Any,
318
318
  parse_obj_as(
319
- type_=typing.Optional[typing.Any], # type: ignore
319
+ type_=typing.Any, # type: ignore
320
320
  object_=_response.json(),
321
321
  ),
322
322
  ),
@@ -325,9 +325,9 @@ class RawGatewaysClient:
325
325
  raise GatewayTimeoutError(
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
  ),
@@ -372,9 +372,9 @@ class RawGatewaysClient:
372
372
  raise UnauthorizedError(
373
373
  headers=dict(_response.headers),
374
374
  body=typing.cast(
375
- typing.Optional[typing.Any],
375
+ typing.Any,
376
376
  parse_obj_as(
377
- type_=typing.Optional[typing.Any], # type: ignore
377
+ type_=typing.Any, # type: ignore
378
378
  object_=_response.json(),
379
379
  ),
380
380
  ),
@@ -383,9 +383,9 @@ class RawGatewaysClient:
383
383
  raise NotFoundError(
384
384
  headers=dict(_response.headers),
385
385
  body=typing.cast(
386
- typing.Optional[typing.Any],
386
+ typing.Any,
387
387
  parse_obj_as(
388
- type_=typing.Optional[typing.Any], # type: ignore
388
+ type_=typing.Any, # type: ignore
389
389
  object_=_response.json(),
390
390
  ),
391
391
  ),
@@ -394,9 +394,9 @@ class RawGatewaysClient:
394
394
  raise MethodNotAllowedError(
395
395
  headers=dict(_response.headers),
396
396
  body=typing.cast(
397
- typing.Optional[typing.Any],
397
+ typing.Any,
398
398
  parse_obj_as(
399
- type_=typing.Optional[typing.Any], # type: ignore
399
+ type_=typing.Any, # type: ignore
400
400
  object_=_response.json(),
401
401
  ),
402
402
  ),
@@ -405,9 +405,9 @@ class RawGatewaysClient:
405
405
  raise TooManyRequestsError(
406
406
  headers=dict(_response.headers),
407
407
  body=typing.cast(
408
- typing.Optional[typing.Any],
408
+ typing.Any,
409
409
  parse_obj_as(
410
- type_=typing.Optional[typing.Any], # type: ignore
410
+ type_=typing.Any, # type: ignore
411
411
  object_=_response.json(),
412
412
  ),
413
413
  ),
@@ -416,9 +416,9 @@ class RawGatewaysClient:
416
416
  raise InternalServerError(
417
417
  headers=dict(_response.headers),
418
418
  body=typing.cast(
419
- typing.Optional[typing.Any],
419
+ typing.Any,
420
420
  parse_obj_as(
421
- type_=typing.Optional[typing.Any], # type: ignore
421
+ type_=typing.Any, # type: ignore
422
422
  object_=_response.json(),
423
423
  ),
424
424
  ),
@@ -427,9 +427,9 @@ class RawGatewaysClient:
427
427
  raise NotImplementedError(
428
428
  headers=dict(_response.headers),
429
429
  body=typing.cast(
430
- typing.Optional[typing.Any],
430
+ typing.Any,
431
431
  parse_obj_as(
432
- type_=typing.Optional[typing.Any], # type: ignore
432
+ type_=typing.Any, # type: ignore
433
433
  object_=_response.json(),
434
434
  ),
435
435
  ),
@@ -438,9 +438,9 @@ class RawGatewaysClient:
438
438
  raise BadGatewayError(
439
439
  headers=dict(_response.headers),
440
440
  body=typing.cast(
441
- typing.Optional[typing.Any],
441
+ typing.Any,
442
442
  parse_obj_as(
443
- type_=typing.Optional[typing.Any], # type: ignore
443
+ type_=typing.Any, # type: ignore
444
444
  object_=_response.json(),
445
445
  ),
446
446
  ),
@@ -449,9 +449,9 @@ class RawGatewaysClient:
449
449
  raise ServiceUnavailableError(
450
450
  headers=dict(_response.headers),
451
451
  body=typing.cast(
452
- typing.Optional[typing.Any],
452
+ typing.Any,
453
453
  parse_obj_as(
454
- type_=typing.Optional[typing.Any], # type: ignore
454
+ type_=typing.Any, # type: ignore
455
455
  object_=_response.json(),
456
456
  ),
457
457
  ),
@@ -460,9 +460,9 @@ class RawGatewaysClient:
460
460
  raise GatewayTimeoutError(
461
461
  headers=dict(_response.headers),
462
462
  body=typing.cast(
463
- typing.Optional[typing.Any],
463
+ typing.Any,
464
464
  parse_obj_as(
465
- type_=typing.Optional[typing.Any], # type: ignore
465
+ type_=typing.Any, # type: ignore
466
466
  object_=_response.json(),
467
467
  ),
468
468
  ),
@@ -533,9 +533,9 @@ class AsyncRawGatewaysClient:
533
533
  raise UnauthorizedError(
534
534
  headers=dict(_response.headers),
535
535
  body=typing.cast(
536
- typing.Optional[typing.Any],
536
+ typing.Any,
537
537
  parse_obj_as(
538
- type_=typing.Optional[typing.Any], # type: ignore
538
+ type_=typing.Any, # type: ignore
539
539
  object_=_response.json(),
540
540
  ),
541
541
  ),
@@ -544,9 +544,9 @@ class AsyncRawGatewaysClient:
544
544
  raise NotFoundError(
545
545
  headers=dict(_response.headers),
546
546
  body=typing.cast(
547
- typing.Optional[typing.Any],
547
+ typing.Any,
548
548
  parse_obj_as(
549
- type_=typing.Optional[typing.Any], # type: ignore
549
+ type_=typing.Any, # type: ignore
550
550
  object_=_response.json(),
551
551
  ),
552
552
  ),
@@ -555,9 +555,9 @@ class AsyncRawGatewaysClient:
555
555
  raise MethodNotAllowedError(
556
556
  headers=dict(_response.headers),
557
557
  body=typing.cast(
558
- typing.Optional[typing.Any],
558
+ typing.Any,
559
559
  parse_obj_as(
560
- type_=typing.Optional[typing.Any], # type: ignore
560
+ type_=typing.Any, # type: ignore
561
561
  object_=_response.json(),
562
562
  ),
563
563
  ),
@@ -566,9 +566,9 @@ class AsyncRawGatewaysClient:
566
566
  raise TooManyRequestsError(
567
567
  headers=dict(_response.headers),
568
568
  body=typing.cast(
569
- typing.Optional[typing.Any],
569
+ typing.Any,
570
570
  parse_obj_as(
571
- type_=typing.Optional[typing.Any], # type: ignore
571
+ type_=typing.Any, # type: ignore
572
572
  object_=_response.json(),
573
573
  ),
574
574
  ),
@@ -577,9 +577,9 @@ class AsyncRawGatewaysClient:
577
577
  raise InternalServerError(
578
578
  headers=dict(_response.headers),
579
579
  body=typing.cast(
580
- typing.Optional[typing.Any],
580
+ typing.Any,
581
581
  parse_obj_as(
582
- type_=typing.Optional[typing.Any], # type: ignore
582
+ type_=typing.Any, # type: ignore
583
583
  object_=_response.json(),
584
584
  ),
585
585
  ),
@@ -588,9 +588,9 @@ class AsyncRawGatewaysClient:
588
588
  raise NotImplementedError(
589
589
  headers=dict(_response.headers),
590
590
  body=typing.cast(
591
- typing.Optional[typing.Any],
591
+ typing.Any,
592
592
  parse_obj_as(
593
- type_=typing.Optional[typing.Any], # type: ignore
593
+ type_=typing.Any, # type: ignore
594
594
  object_=_response.json(),
595
595
  ),
596
596
  ),
@@ -599,9 +599,9 @@ class AsyncRawGatewaysClient:
599
599
  raise BadGatewayError(
600
600
  headers=dict(_response.headers),
601
601
  body=typing.cast(
602
- typing.Optional[typing.Any],
602
+ typing.Any,
603
603
  parse_obj_as(
604
- type_=typing.Optional[typing.Any], # type: ignore
604
+ type_=typing.Any, # type: ignore
605
605
  object_=_response.json(),
606
606
  ),
607
607
  ),
@@ -610,9 +610,9 @@ class AsyncRawGatewaysClient:
610
610
  raise ServiceUnavailableError(
611
611
  headers=dict(_response.headers),
612
612
  body=typing.cast(
613
- typing.Optional[typing.Any],
613
+ typing.Any,
614
614
  parse_obj_as(
615
- type_=typing.Optional[typing.Any], # type: ignore
615
+ type_=typing.Any, # type: ignore
616
616
  object_=_response.json(),
617
617
  ),
618
618
  ),
@@ -621,9 +621,9 @@ class AsyncRawGatewaysClient:
621
621
  raise GatewayTimeoutError(
622
622
  headers=dict(_response.headers),
623
623
  body=typing.cast(
624
- typing.Optional[typing.Any],
624
+ typing.Any,
625
625
  parse_obj_as(
626
- type_=typing.Optional[typing.Any], # type: ignore
626
+ type_=typing.Any, # type: ignore
627
627
  object_=_response.json(),
628
628
  ),
629
629
  ),
@@ -685,9 +685,9 @@ class AsyncRawGatewaysClient:
685
685
  raise UnauthorizedError(
686
686
  headers=dict(_response.headers),
687
687
  body=typing.cast(
688
- typing.Optional[typing.Any],
688
+ typing.Any,
689
689
  parse_obj_as(
690
- type_=typing.Optional[typing.Any], # type: ignore
690
+ type_=typing.Any, # type: ignore
691
691
  object_=_response.json(),
692
692
  ),
693
693
  ),
@@ -696,9 +696,9 @@ class AsyncRawGatewaysClient:
696
696
  raise NotFoundError(
697
697
  headers=dict(_response.headers),
698
698
  body=typing.cast(
699
- typing.Optional[typing.Any],
699
+ typing.Any,
700
700
  parse_obj_as(
701
- type_=typing.Optional[typing.Any], # type: ignore
701
+ type_=typing.Any, # type: ignore
702
702
  object_=_response.json(),
703
703
  ),
704
704
  ),
@@ -707,9 +707,9 @@ class AsyncRawGatewaysClient:
707
707
  raise MethodNotAllowedError(
708
708
  headers=dict(_response.headers),
709
709
  body=typing.cast(
710
- typing.Optional[typing.Any],
710
+ typing.Any,
711
711
  parse_obj_as(
712
- type_=typing.Optional[typing.Any], # type: ignore
712
+ type_=typing.Any, # type: ignore
713
713
  object_=_response.json(),
714
714
  ),
715
715
  ),
@@ -718,9 +718,9 @@ class AsyncRawGatewaysClient:
718
718
  raise TooManyRequestsError(
719
719
  headers=dict(_response.headers),
720
720
  body=typing.cast(
721
- typing.Optional[typing.Any],
721
+ typing.Any,
722
722
  parse_obj_as(
723
- type_=typing.Optional[typing.Any], # type: ignore
723
+ type_=typing.Any, # type: ignore
724
724
  object_=_response.json(),
725
725
  ),
726
726
  ),
@@ -729,9 +729,9 @@ class AsyncRawGatewaysClient:
729
729
  raise InternalServerError(
730
730
  headers=dict(_response.headers),
731
731
  body=typing.cast(
732
- typing.Optional[typing.Any],
732
+ typing.Any,
733
733
  parse_obj_as(
734
- type_=typing.Optional[typing.Any], # type: ignore
734
+ type_=typing.Any, # type: ignore
735
735
  object_=_response.json(),
736
736
  ),
737
737
  ),
@@ -740,9 +740,9 @@ class AsyncRawGatewaysClient:
740
740
  raise NotImplementedError(
741
741
  headers=dict(_response.headers),
742
742
  body=typing.cast(
743
- typing.Optional[typing.Any],
743
+ typing.Any,
744
744
  parse_obj_as(
745
- type_=typing.Optional[typing.Any], # type: ignore
745
+ type_=typing.Any, # type: ignore
746
746
  object_=_response.json(),
747
747
  ),
748
748
  ),
@@ -751,9 +751,9 @@ class AsyncRawGatewaysClient:
751
751
  raise BadGatewayError(
752
752
  headers=dict(_response.headers),
753
753
  body=typing.cast(
754
- typing.Optional[typing.Any],
754
+ typing.Any,
755
755
  parse_obj_as(
756
- type_=typing.Optional[typing.Any], # type: ignore
756
+ type_=typing.Any, # type: ignore
757
757
  object_=_response.json(),
758
758
  ),
759
759
  ),
@@ -762,9 +762,9 @@ class AsyncRawGatewaysClient:
762
762
  raise ServiceUnavailableError(
763
763
  headers=dict(_response.headers),
764
764
  body=typing.cast(
765
- typing.Optional[typing.Any],
765
+ typing.Any,
766
766
  parse_obj_as(
767
- type_=typing.Optional[typing.Any], # type: ignore
767
+ type_=typing.Any, # type: ignore
768
768
  object_=_response.json(),
769
769
  ),
770
770
  ),
@@ -773,9 +773,9 @@ class AsyncRawGatewaysClient:
773
773
  raise GatewayTimeoutError(
774
774
  headers=dict(_response.headers),
775
775
  body=typing.cast(
776
- typing.Optional[typing.Any],
776
+ typing.Any,
777
777
  parse_obj_as(
778
- type_=typing.Optional[typing.Any], # type: ignore
778
+ type_=typing.Any, # type: ignore
779
779
  object_=_response.json(),
780
780
  ),
781
781
  ),
@@ -822,9 +822,9 @@ class AsyncRawGatewaysClient:
822
822
  raise UnauthorizedError(
823
823
  headers=dict(_response.headers),
824
824
  body=typing.cast(
825
- typing.Optional[typing.Any],
825
+ typing.Any,
826
826
  parse_obj_as(
827
- type_=typing.Optional[typing.Any], # type: ignore
827
+ type_=typing.Any, # type: ignore
828
828
  object_=_response.json(),
829
829
  ),
830
830
  ),
@@ -833,9 +833,9 @@ class AsyncRawGatewaysClient:
833
833
  raise NotFoundError(
834
834
  headers=dict(_response.headers),
835
835
  body=typing.cast(
836
- typing.Optional[typing.Any],
836
+ typing.Any,
837
837
  parse_obj_as(
838
- type_=typing.Optional[typing.Any], # type: ignore
838
+ type_=typing.Any, # type: ignore
839
839
  object_=_response.json(),
840
840
  ),
841
841
  ),
@@ -844,9 +844,9 @@ class AsyncRawGatewaysClient:
844
844
  raise MethodNotAllowedError(
845
845
  headers=dict(_response.headers),
846
846
  body=typing.cast(
847
- typing.Optional[typing.Any],
847
+ typing.Any,
848
848
  parse_obj_as(
849
- type_=typing.Optional[typing.Any], # type: ignore
849
+ type_=typing.Any, # type: ignore
850
850
  object_=_response.json(),
851
851
  ),
852
852
  ),
@@ -855,9 +855,9 @@ class AsyncRawGatewaysClient:
855
855
  raise TooManyRequestsError(
856
856
  headers=dict(_response.headers),
857
857
  body=typing.cast(
858
- typing.Optional[typing.Any],
858
+ typing.Any,
859
859
  parse_obj_as(
860
- type_=typing.Optional[typing.Any], # type: ignore
860
+ type_=typing.Any, # type: ignore
861
861
  object_=_response.json(),
862
862
  ),
863
863
  ),
@@ -866,9 +866,9 @@ class AsyncRawGatewaysClient:
866
866
  raise InternalServerError(
867
867
  headers=dict(_response.headers),
868
868
  body=typing.cast(
869
- typing.Optional[typing.Any],
869
+ typing.Any,
870
870
  parse_obj_as(
871
- type_=typing.Optional[typing.Any], # type: ignore
871
+ type_=typing.Any, # type: ignore
872
872
  object_=_response.json(),
873
873
  ),
874
874
  ),
@@ -877,9 +877,9 @@ class AsyncRawGatewaysClient:
877
877
  raise NotImplementedError(
878
878
  headers=dict(_response.headers),
879
879
  body=typing.cast(
880
- typing.Optional[typing.Any],
880
+ typing.Any,
881
881
  parse_obj_as(
882
- type_=typing.Optional[typing.Any], # type: ignore
882
+ type_=typing.Any, # type: ignore
883
883
  object_=_response.json(),
884
884
  ),
885
885
  ),
@@ -888,9 +888,9 @@ class AsyncRawGatewaysClient:
888
888
  raise BadGatewayError(
889
889
  headers=dict(_response.headers),
890
890
  body=typing.cast(
891
- typing.Optional[typing.Any],
891
+ typing.Any,
892
892
  parse_obj_as(
893
- type_=typing.Optional[typing.Any], # type: ignore
893
+ type_=typing.Any, # type: ignore
894
894
  object_=_response.json(),
895
895
  ),
896
896
  ),
@@ -899,9 +899,9 @@ class AsyncRawGatewaysClient:
899
899
  raise ServiceUnavailableError(
900
900
  headers=dict(_response.headers),
901
901
  body=typing.cast(
902
- typing.Optional[typing.Any],
902
+ typing.Any,
903
903
  parse_obj_as(
904
- type_=typing.Optional[typing.Any], # type: ignore
904
+ type_=typing.Any, # type: ignore
905
905
  object_=_response.json(),
906
906
  ),
907
907
  ),
@@ -910,9 +910,9 @@ class AsyncRawGatewaysClient:
910
910
  raise GatewayTimeoutError(
911
911
  headers=dict(_response.headers),
912
912
  body=typing.cast(
913
- typing.Optional[typing.Any],
913
+ typing.Any,
914
914
  parse_obj_as(
915
- type_=typing.Optional[typing.Any], # type: ignore
915
+ type_=typing.Any, # type: ignore
916
916
  object_=_response.json(),
917
917
  ),
918
918
  ),
@@ -6,8 +6,11 @@ import typing
6
6
  from importlib import import_module
7
7
 
8
8
  if typing.TYPE_CHECKING:
9
- from .types import GetHosDailyLogsRequestDriverActivationStatus
10
- _dynamic_imports: typing.Dict[str, str] = {"GetHosDailyLogsRequestDriverActivationStatus": ".types"}
9
+ from .types import GetHosDailyLogsRequestDriverActivationStatus, GetHosDailyLogsRequestExpand
10
+ _dynamic_imports: typing.Dict[str, str] = {
11
+ "GetHosDailyLogsRequestDriverActivationStatus": ".types",
12
+ "GetHosDailyLogsRequestExpand": ".types",
13
+ }
11
14
 
12
15
 
13
16
  def __getattr__(attr_name: str) -> typing.Any:
@@ -31,4 +34,4 @@ def __dir__():
31
34
  return sorted(lazy_attrs)
32
35
 
33
36
 
34
- __all__ = ["GetHosDailyLogsRequestDriverActivationStatus"]
37
+ __all__ = ["GetHosDailyLogsRequestDriverActivationStatus", "GetHosDailyLogsRequestExpand"]