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
@@ -7,7 +7,7 @@ from ..core.api_error import ApiError
7
7
  from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
8
8
  from ..core.http_response import AsyncHttpResponse, HttpResponse
9
9
  from ..core.jsonable_encoder import jsonable_encoder
10
- from ..core.pagination import AsyncPager, BaseHttpResponse, SyncPager
10
+ from ..core.pagination import AsyncPager, SyncPager
11
11
  from ..core.pydantic_utilities import parse_obj_as
12
12
  from ..core.request_options import RequestOptions
13
13
  from ..errors.bad_gateway_error import BadGatewayError
@@ -29,9 +29,9 @@ from ..types.v_1_asset_location_response import V1AssetLocationResponse
29
29
  from ..types.v_1_asset_reefer_response import V1AssetReeferResponse
30
30
  from .types.assets_create_asset_request_body_regulation_mode import AssetsCreateAssetRequestBodyRegulationMode
31
31
  from .types.assets_create_asset_request_body_type import AssetsCreateAssetRequestBodyType
32
- from .types.assets_list_request_type import AssetsListRequestType
33
32
  from .types.assets_update_asset_request_body_regulation_mode import AssetsUpdateAssetRequestBodyRegulationMode
34
33
  from .types.assets_update_asset_request_body_type import AssetsUpdateAssetRequestBodyType
34
+ from .types.list_assets_request_type import ListAssetsRequestType
35
35
 
36
36
  # this is used as the default value for optional parameters
37
37
  OMIT = typing.cast(typing.Any, ...)
@@ -44,7 +44,7 @@ class RawAssetsClient:
44
44
  def list(
45
45
  self,
46
46
  *,
47
- type: typing.Optional[AssetsListRequestType] = None,
47
+ type: typing.Optional[ListAssetsRequestType] = None,
48
48
  after: typing.Optional[str] = None,
49
49
  updated_after_time: typing.Optional[str] = None,
50
50
  include_external_ids: typing.Optional[bool] = None,
@@ -55,7 +55,7 @@ class RawAssetsClient:
55
55
  attribute_value_ids: typing.Optional[str] = None,
56
56
  attributes: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
57
57
  request_options: typing.Optional[RequestOptions] = None,
58
- ) -> SyncPager[AssetResponseBody]:
58
+ ) -> SyncPager[AssetResponseBody, AssetsListAssetsResponseBody]:
59
59
  """
60
60
  List all assets. Up to 300 assets will be returned per page.
61
61
 
@@ -68,7 +68,7 @@ class RawAssetsClient:
68
68
 
69
69
  Parameters
70
70
  ----------
71
- type : typing.Optional[AssetsListRequestType]
71
+ type : typing.Optional[ListAssetsRequestType]
72
72
  The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized. Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`
73
73
 
74
74
  after : typing.Optional[str]
@@ -103,7 +103,7 @@ class RawAssetsClient:
103
103
 
104
104
  Returns
105
105
  -------
106
- SyncPager[AssetResponseBody]
106
+ SyncPager[AssetResponseBody, AssetsListAssetsResponseBody]
107
107
  OK response.
108
108
  """
109
109
  _response = self._client_wrapper.httpx_client.request(
@@ -151,16 +151,14 @@ class RawAssetsClient:
151
151
  attributes=attributes,
152
152
  request_options=request_options,
153
153
  )
154
- return SyncPager(
155
- has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response)
156
- )
154
+ return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response)
157
155
  if _response.status_code == 401:
158
156
  raise UnauthorizedError(
159
157
  headers=dict(_response.headers),
160
158
  body=typing.cast(
161
- typing.Optional[typing.Any],
159
+ typing.Any,
162
160
  parse_obj_as(
163
- type_=typing.Optional[typing.Any], # type: ignore
161
+ type_=typing.Any, # type: ignore
164
162
  object_=_response.json(),
165
163
  ),
166
164
  ),
@@ -169,9 +167,9 @@ class RawAssetsClient:
169
167
  raise NotFoundError(
170
168
  headers=dict(_response.headers),
171
169
  body=typing.cast(
172
- typing.Optional[typing.Any],
170
+ typing.Any,
173
171
  parse_obj_as(
174
- type_=typing.Optional[typing.Any], # type: ignore
172
+ type_=typing.Any, # type: ignore
175
173
  object_=_response.json(),
176
174
  ),
177
175
  ),
@@ -180,9 +178,9 @@ class RawAssetsClient:
180
178
  raise MethodNotAllowedError(
181
179
  headers=dict(_response.headers),
182
180
  body=typing.cast(
183
- typing.Optional[typing.Any],
181
+ typing.Any,
184
182
  parse_obj_as(
185
- type_=typing.Optional[typing.Any], # type: ignore
183
+ type_=typing.Any, # type: ignore
186
184
  object_=_response.json(),
187
185
  ),
188
186
  ),
@@ -191,9 +189,9 @@ class RawAssetsClient:
191
189
  raise TooManyRequestsError(
192
190
  headers=dict(_response.headers),
193
191
  body=typing.cast(
194
- typing.Optional[typing.Any],
192
+ typing.Any,
195
193
  parse_obj_as(
196
- type_=typing.Optional[typing.Any], # type: ignore
194
+ type_=typing.Any, # type: ignore
197
195
  object_=_response.json(),
198
196
  ),
199
197
  ),
@@ -202,9 +200,9 @@ class RawAssetsClient:
202
200
  raise InternalServerError(
203
201
  headers=dict(_response.headers),
204
202
  body=typing.cast(
205
- typing.Optional[typing.Any],
203
+ typing.Any,
206
204
  parse_obj_as(
207
- type_=typing.Optional[typing.Any], # type: ignore
205
+ type_=typing.Any, # type: ignore
208
206
  object_=_response.json(),
209
207
  ),
210
208
  ),
@@ -213,9 +211,9 @@ class RawAssetsClient:
213
211
  raise NotImplementedError(
214
212
  headers=dict(_response.headers),
215
213
  body=typing.cast(
216
- typing.Optional[typing.Any],
214
+ typing.Any,
217
215
  parse_obj_as(
218
- type_=typing.Optional[typing.Any], # type: ignore
216
+ type_=typing.Any, # type: ignore
219
217
  object_=_response.json(),
220
218
  ),
221
219
  ),
@@ -224,9 +222,9 @@ class RawAssetsClient:
224
222
  raise BadGatewayError(
225
223
  headers=dict(_response.headers),
226
224
  body=typing.cast(
227
- typing.Optional[typing.Any],
225
+ typing.Any,
228
226
  parse_obj_as(
229
- type_=typing.Optional[typing.Any], # type: ignore
227
+ type_=typing.Any, # type: ignore
230
228
  object_=_response.json(),
231
229
  ),
232
230
  ),
@@ -235,9 +233,9 @@ class RawAssetsClient:
235
233
  raise ServiceUnavailableError(
236
234
  headers=dict(_response.headers),
237
235
  body=typing.cast(
238
- typing.Optional[typing.Any],
236
+ typing.Any,
239
237
  parse_obj_as(
240
- type_=typing.Optional[typing.Any], # type: ignore
238
+ type_=typing.Any, # type: ignore
241
239
  object_=_response.json(),
242
240
  ),
243
241
  ),
@@ -246,9 +244,9 @@ class RawAssetsClient:
246
244
  raise GatewayTimeoutError(
247
245
  headers=dict(_response.headers),
248
246
  body=typing.cast(
249
- typing.Optional[typing.Any],
247
+ typing.Any,
250
248
  parse_obj_as(
251
- type_=typing.Optional[typing.Any], # type: ignore
249
+ type_=typing.Any, # type: ignore
252
250
  object_=_response.json(),
253
251
  ),
254
252
  ),
@@ -368,9 +366,9 @@ class RawAssetsClient:
368
366
  raise UnauthorizedError(
369
367
  headers=dict(_response.headers),
370
368
  body=typing.cast(
371
- typing.Optional[typing.Any],
369
+ typing.Any,
372
370
  parse_obj_as(
373
- type_=typing.Optional[typing.Any], # type: ignore
371
+ type_=typing.Any, # type: ignore
374
372
  object_=_response.json(),
375
373
  ),
376
374
  ),
@@ -379,9 +377,9 @@ class RawAssetsClient:
379
377
  raise NotFoundError(
380
378
  headers=dict(_response.headers),
381
379
  body=typing.cast(
382
- typing.Optional[typing.Any],
380
+ typing.Any,
383
381
  parse_obj_as(
384
- type_=typing.Optional[typing.Any], # type: ignore
382
+ type_=typing.Any, # type: ignore
385
383
  object_=_response.json(),
386
384
  ),
387
385
  ),
@@ -390,9 +388,9 @@ class RawAssetsClient:
390
388
  raise MethodNotAllowedError(
391
389
  headers=dict(_response.headers),
392
390
  body=typing.cast(
393
- typing.Optional[typing.Any],
391
+ typing.Any,
394
392
  parse_obj_as(
395
- type_=typing.Optional[typing.Any], # type: ignore
393
+ type_=typing.Any, # type: ignore
396
394
  object_=_response.json(),
397
395
  ),
398
396
  ),
@@ -401,9 +399,9 @@ class RawAssetsClient:
401
399
  raise TooManyRequestsError(
402
400
  headers=dict(_response.headers),
403
401
  body=typing.cast(
404
- typing.Optional[typing.Any],
402
+ typing.Any,
405
403
  parse_obj_as(
406
- type_=typing.Optional[typing.Any], # type: ignore
404
+ type_=typing.Any, # type: ignore
407
405
  object_=_response.json(),
408
406
  ),
409
407
  ),
@@ -412,9 +410,9 @@ class RawAssetsClient:
412
410
  raise InternalServerError(
413
411
  headers=dict(_response.headers),
414
412
  body=typing.cast(
415
- typing.Optional[typing.Any],
413
+ typing.Any,
416
414
  parse_obj_as(
417
- type_=typing.Optional[typing.Any], # type: ignore
415
+ type_=typing.Any, # type: ignore
418
416
  object_=_response.json(),
419
417
  ),
420
418
  ),
@@ -423,9 +421,9 @@ class RawAssetsClient:
423
421
  raise NotImplementedError(
424
422
  headers=dict(_response.headers),
425
423
  body=typing.cast(
426
- typing.Optional[typing.Any],
424
+ typing.Any,
427
425
  parse_obj_as(
428
- type_=typing.Optional[typing.Any], # type: ignore
426
+ type_=typing.Any, # type: ignore
429
427
  object_=_response.json(),
430
428
  ),
431
429
  ),
@@ -434,9 +432,9 @@ class RawAssetsClient:
434
432
  raise BadGatewayError(
435
433
  headers=dict(_response.headers),
436
434
  body=typing.cast(
437
- typing.Optional[typing.Any],
435
+ typing.Any,
438
436
  parse_obj_as(
439
- type_=typing.Optional[typing.Any], # type: ignore
437
+ type_=typing.Any, # type: ignore
440
438
  object_=_response.json(),
441
439
  ),
442
440
  ),
@@ -445,9 +443,9 @@ class RawAssetsClient:
445
443
  raise ServiceUnavailableError(
446
444
  headers=dict(_response.headers),
447
445
  body=typing.cast(
448
- typing.Optional[typing.Any],
446
+ typing.Any,
449
447
  parse_obj_as(
450
- type_=typing.Optional[typing.Any], # type: ignore
448
+ type_=typing.Any, # type: ignore
451
449
  object_=_response.json(),
452
450
  ),
453
451
  ),
@@ -456,9 +454,9 @@ class RawAssetsClient:
456
454
  raise GatewayTimeoutError(
457
455
  headers=dict(_response.headers),
458
456
  body=typing.cast(
459
- typing.Optional[typing.Any],
457
+ typing.Any,
460
458
  parse_obj_as(
461
- type_=typing.Optional[typing.Any], # type: ignore
459
+ type_=typing.Any, # type: ignore
462
460
  object_=_response.json(),
463
461
  ),
464
462
  ),
@@ -506,9 +504,9 @@ class RawAssetsClient:
506
504
  raise UnauthorizedError(
507
505
  headers=dict(_response.headers),
508
506
  body=typing.cast(
509
- typing.Optional[typing.Any],
507
+ typing.Any,
510
508
  parse_obj_as(
511
- type_=typing.Optional[typing.Any], # type: ignore
509
+ type_=typing.Any, # type: ignore
512
510
  object_=_response.json(),
513
511
  ),
514
512
  ),
@@ -517,9 +515,9 @@ class RawAssetsClient:
517
515
  raise NotFoundError(
518
516
  headers=dict(_response.headers),
519
517
  body=typing.cast(
520
- typing.Optional[typing.Any],
518
+ typing.Any,
521
519
  parse_obj_as(
522
- type_=typing.Optional[typing.Any], # type: ignore
520
+ type_=typing.Any, # type: ignore
523
521
  object_=_response.json(),
524
522
  ),
525
523
  ),
@@ -528,9 +526,9 @@ class RawAssetsClient:
528
526
  raise MethodNotAllowedError(
529
527
  headers=dict(_response.headers),
530
528
  body=typing.cast(
531
- typing.Optional[typing.Any],
529
+ typing.Any,
532
530
  parse_obj_as(
533
- type_=typing.Optional[typing.Any], # type: ignore
531
+ type_=typing.Any, # type: ignore
534
532
  object_=_response.json(),
535
533
  ),
536
534
  ),
@@ -539,9 +537,9 @@ class RawAssetsClient:
539
537
  raise TooManyRequestsError(
540
538
  headers=dict(_response.headers),
541
539
  body=typing.cast(
542
- typing.Optional[typing.Any],
540
+ typing.Any,
543
541
  parse_obj_as(
544
- type_=typing.Optional[typing.Any], # type: ignore
542
+ type_=typing.Any, # type: ignore
545
543
  object_=_response.json(),
546
544
  ),
547
545
  ),
@@ -550,9 +548,9 @@ class RawAssetsClient:
550
548
  raise InternalServerError(
551
549
  headers=dict(_response.headers),
552
550
  body=typing.cast(
553
- typing.Optional[typing.Any],
551
+ typing.Any,
554
552
  parse_obj_as(
555
- type_=typing.Optional[typing.Any], # type: ignore
553
+ type_=typing.Any, # type: ignore
556
554
  object_=_response.json(),
557
555
  ),
558
556
  ),
@@ -561,9 +559,9 @@ class RawAssetsClient:
561
559
  raise NotImplementedError(
562
560
  headers=dict(_response.headers),
563
561
  body=typing.cast(
564
- typing.Optional[typing.Any],
562
+ typing.Any,
565
563
  parse_obj_as(
566
- type_=typing.Optional[typing.Any], # type: ignore
564
+ type_=typing.Any, # type: ignore
567
565
  object_=_response.json(),
568
566
  ),
569
567
  ),
@@ -572,9 +570,9 @@ class RawAssetsClient:
572
570
  raise BadGatewayError(
573
571
  headers=dict(_response.headers),
574
572
  body=typing.cast(
575
- typing.Optional[typing.Any],
573
+ typing.Any,
576
574
  parse_obj_as(
577
- type_=typing.Optional[typing.Any], # type: ignore
575
+ type_=typing.Any, # type: ignore
578
576
  object_=_response.json(),
579
577
  ),
580
578
  ),
@@ -583,9 +581,9 @@ class RawAssetsClient:
583
581
  raise ServiceUnavailableError(
584
582
  headers=dict(_response.headers),
585
583
  body=typing.cast(
586
- typing.Optional[typing.Any],
584
+ typing.Any,
587
585
  parse_obj_as(
588
- type_=typing.Optional[typing.Any], # type: ignore
586
+ type_=typing.Any, # type: ignore
589
587
  object_=_response.json(),
590
588
  ),
591
589
  ),
@@ -594,9 +592,9 @@ class RawAssetsClient:
594
592
  raise GatewayTimeoutError(
595
593
  headers=dict(_response.headers),
596
594
  body=typing.cast(
597
- typing.Optional[typing.Any],
595
+ typing.Any,
598
596
  parse_obj_as(
599
- type_=typing.Optional[typing.Any], # type: ignore
597
+ type_=typing.Any, # type: ignore
600
598
  object_=_response.json(),
601
599
  ),
602
600
  ),
@@ -723,9 +721,9 @@ class RawAssetsClient:
723
721
  raise UnauthorizedError(
724
722
  headers=dict(_response.headers),
725
723
  body=typing.cast(
726
- typing.Optional[typing.Any],
724
+ typing.Any,
727
725
  parse_obj_as(
728
- type_=typing.Optional[typing.Any], # type: ignore
726
+ type_=typing.Any, # type: ignore
729
727
  object_=_response.json(),
730
728
  ),
731
729
  ),
@@ -734,9 +732,9 @@ class RawAssetsClient:
734
732
  raise NotFoundError(
735
733
  headers=dict(_response.headers),
736
734
  body=typing.cast(
737
- typing.Optional[typing.Any],
735
+ typing.Any,
738
736
  parse_obj_as(
739
- type_=typing.Optional[typing.Any], # type: ignore
737
+ type_=typing.Any, # type: ignore
740
738
  object_=_response.json(),
741
739
  ),
742
740
  ),
@@ -745,9 +743,9 @@ class RawAssetsClient:
745
743
  raise MethodNotAllowedError(
746
744
  headers=dict(_response.headers),
747
745
  body=typing.cast(
748
- typing.Optional[typing.Any],
746
+ typing.Any,
749
747
  parse_obj_as(
750
- type_=typing.Optional[typing.Any], # type: ignore
748
+ type_=typing.Any, # type: ignore
751
749
  object_=_response.json(),
752
750
  ),
753
751
  ),
@@ -756,9 +754,9 @@ class RawAssetsClient:
756
754
  raise TooManyRequestsError(
757
755
  headers=dict(_response.headers),
758
756
  body=typing.cast(
759
- typing.Optional[typing.Any],
757
+ typing.Any,
760
758
  parse_obj_as(
761
- type_=typing.Optional[typing.Any], # type: ignore
759
+ type_=typing.Any, # type: ignore
762
760
  object_=_response.json(),
763
761
  ),
764
762
  ),
@@ -767,9 +765,9 @@ class RawAssetsClient:
767
765
  raise InternalServerError(
768
766
  headers=dict(_response.headers),
769
767
  body=typing.cast(
770
- typing.Optional[typing.Any],
768
+ typing.Any,
771
769
  parse_obj_as(
772
- type_=typing.Optional[typing.Any], # type: ignore
770
+ type_=typing.Any, # type: ignore
773
771
  object_=_response.json(),
774
772
  ),
775
773
  ),
@@ -778,9 +776,9 @@ class RawAssetsClient:
778
776
  raise NotImplementedError(
779
777
  headers=dict(_response.headers),
780
778
  body=typing.cast(
781
- typing.Optional[typing.Any],
779
+ typing.Any,
782
780
  parse_obj_as(
783
- type_=typing.Optional[typing.Any], # type: ignore
781
+ type_=typing.Any, # type: ignore
784
782
  object_=_response.json(),
785
783
  ),
786
784
  ),
@@ -789,9 +787,9 @@ class RawAssetsClient:
789
787
  raise BadGatewayError(
790
788
  headers=dict(_response.headers),
791
789
  body=typing.cast(
792
- typing.Optional[typing.Any],
790
+ typing.Any,
793
791
  parse_obj_as(
794
- type_=typing.Optional[typing.Any], # type: ignore
792
+ type_=typing.Any, # type: ignore
795
793
  object_=_response.json(),
796
794
  ),
797
795
  ),
@@ -800,9 +798,9 @@ class RawAssetsClient:
800
798
  raise ServiceUnavailableError(
801
799
  headers=dict(_response.headers),
802
800
  body=typing.cast(
803
- typing.Optional[typing.Any],
801
+ typing.Any,
804
802
  parse_obj_as(
805
- type_=typing.Optional[typing.Any], # type: ignore
803
+ type_=typing.Any, # type: ignore
806
804
  object_=_response.json(),
807
805
  ),
808
806
  ),
@@ -811,9 +809,9 @@ class RawAssetsClient:
811
809
  raise GatewayTimeoutError(
812
810
  headers=dict(_response.headers),
813
811
  body=typing.cast(
814
- typing.Optional[typing.Any],
812
+ typing.Any,
815
813
  parse_obj_as(
816
- type_=typing.Optional[typing.Any], # type: ignore
814
+ type_=typing.Any, # type: ignore
817
815
  object_=_response.json(),
818
816
  ),
819
817
  ),
@@ -1145,7 +1143,7 @@ class AsyncRawAssetsClient:
1145
1143
  async def list(
1146
1144
  self,
1147
1145
  *,
1148
- type: typing.Optional[AssetsListRequestType] = None,
1146
+ type: typing.Optional[ListAssetsRequestType] = None,
1149
1147
  after: typing.Optional[str] = None,
1150
1148
  updated_after_time: typing.Optional[str] = None,
1151
1149
  include_external_ids: typing.Optional[bool] = None,
@@ -1156,7 +1154,7 @@ class AsyncRawAssetsClient:
1156
1154
  attribute_value_ids: typing.Optional[str] = None,
1157
1155
  attributes: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
1158
1156
  request_options: typing.Optional[RequestOptions] = None,
1159
- ) -> AsyncPager[AssetResponseBody]:
1157
+ ) -> AsyncPager[AssetResponseBody, AssetsListAssetsResponseBody]:
1160
1158
  """
1161
1159
  List all assets. Up to 300 assets will be returned per page.
1162
1160
 
@@ -1169,7 +1167,7 @@ class AsyncRawAssetsClient:
1169
1167
 
1170
1168
  Parameters
1171
1169
  ----------
1172
- type : typing.Optional[AssetsListRequestType]
1170
+ type : typing.Optional[ListAssetsRequestType]
1173
1171
  The operational context in which the asset interacts with the Samsara system. Examples: Vehicle (eg: truck, bus...), Trailer (eg: dry van, reefer, flatbed...), Powered Equipment (eg: dozer, crane...), Unpowered Equipment (eg: container, dumpster...), or Uncategorized. Valid values: `uncategorized`, `trailer`, `equipment`, `unpowered`, `vehicle`
1174
1172
 
1175
1173
  after : typing.Optional[str]
@@ -1204,7 +1202,7 @@ class AsyncRawAssetsClient:
1204
1202
 
1205
1203
  Returns
1206
1204
  -------
1207
- AsyncPager[AssetResponseBody]
1205
+ AsyncPager[AssetResponseBody, AssetsListAssetsResponseBody]
1208
1206
  OK response.
1209
1207
  """
1210
1208
  _response = await self._client_wrapper.httpx_client.request(
@@ -1255,16 +1253,14 @@ class AsyncRawAssetsClient:
1255
1253
  request_options=request_options,
1256
1254
  )
1257
1255
 
1258
- return AsyncPager(
1259
- has_next=_has_next, items=_items, get_next=_get_next, response=BaseHttpResponse(response=_response)
1260
- )
1256
+ return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response)
1261
1257
  if _response.status_code == 401:
1262
1258
  raise UnauthorizedError(
1263
1259
  headers=dict(_response.headers),
1264
1260
  body=typing.cast(
1265
- typing.Optional[typing.Any],
1261
+ typing.Any,
1266
1262
  parse_obj_as(
1267
- type_=typing.Optional[typing.Any], # type: ignore
1263
+ type_=typing.Any, # type: ignore
1268
1264
  object_=_response.json(),
1269
1265
  ),
1270
1266
  ),
@@ -1273,9 +1269,9 @@ class AsyncRawAssetsClient:
1273
1269
  raise NotFoundError(
1274
1270
  headers=dict(_response.headers),
1275
1271
  body=typing.cast(
1276
- typing.Optional[typing.Any],
1272
+ typing.Any,
1277
1273
  parse_obj_as(
1278
- type_=typing.Optional[typing.Any], # type: ignore
1274
+ type_=typing.Any, # type: ignore
1279
1275
  object_=_response.json(),
1280
1276
  ),
1281
1277
  ),
@@ -1284,9 +1280,9 @@ class AsyncRawAssetsClient:
1284
1280
  raise MethodNotAllowedError(
1285
1281
  headers=dict(_response.headers),
1286
1282
  body=typing.cast(
1287
- typing.Optional[typing.Any],
1283
+ typing.Any,
1288
1284
  parse_obj_as(
1289
- type_=typing.Optional[typing.Any], # type: ignore
1285
+ type_=typing.Any, # type: ignore
1290
1286
  object_=_response.json(),
1291
1287
  ),
1292
1288
  ),
@@ -1295,9 +1291,9 @@ class AsyncRawAssetsClient:
1295
1291
  raise TooManyRequestsError(
1296
1292
  headers=dict(_response.headers),
1297
1293
  body=typing.cast(
1298
- typing.Optional[typing.Any],
1294
+ typing.Any,
1299
1295
  parse_obj_as(
1300
- type_=typing.Optional[typing.Any], # type: ignore
1296
+ type_=typing.Any, # type: ignore
1301
1297
  object_=_response.json(),
1302
1298
  ),
1303
1299
  ),
@@ -1306,9 +1302,9 @@ class AsyncRawAssetsClient:
1306
1302
  raise InternalServerError(
1307
1303
  headers=dict(_response.headers),
1308
1304
  body=typing.cast(
1309
- typing.Optional[typing.Any],
1305
+ typing.Any,
1310
1306
  parse_obj_as(
1311
- type_=typing.Optional[typing.Any], # type: ignore
1307
+ type_=typing.Any, # type: ignore
1312
1308
  object_=_response.json(),
1313
1309
  ),
1314
1310
  ),
@@ -1317,9 +1313,9 @@ class AsyncRawAssetsClient:
1317
1313
  raise NotImplementedError(
1318
1314
  headers=dict(_response.headers),
1319
1315
  body=typing.cast(
1320
- typing.Optional[typing.Any],
1316
+ typing.Any,
1321
1317
  parse_obj_as(
1322
- type_=typing.Optional[typing.Any], # type: ignore
1318
+ type_=typing.Any, # type: ignore
1323
1319
  object_=_response.json(),
1324
1320
  ),
1325
1321
  ),
@@ -1328,9 +1324,9 @@ class AsyncRawAssetsClient:
1328
1324
  raise BadGatewayError(
1329
1325
  headers=dict(_response.headers),
1330
1326
  body=typing.cast(
1331
- typing.Optional[typing.Any],
1327
+ typing.Any,
1332
1328
  parse_obj_as(
1333
- type_=typing.Optional[typing.Any], # type: ignore
1329
+ type_=typing.Any, # type: ignore
1334
1330
  object_=_response.json(),
1335
1331
  ),
1336
1332
  ),
@@ -1339,9 +1335,9 @@ class AsyncRawAssetsClient:
1339
1335
  raise ServiceUnavailableError(
1340
1336
  headers=dict(_response.headers),
1341
1337
  body=typing.cast(
1342
- typing.Optional[typing.Any],
1338
+ typing.Any,
1343
1339
  parse_obj_as(
1344
- type_=typing.Optional[typing.Any], # type: ignore
1340
+ type_=typing.Any, # type: ignore
1345
1341
  object_=_response.json(),
1346
1342
  ),
1347
1343
  ),
@@ -1350,9 +1346,9 @@ class AsyncRawAssetsClient:
1350
1346
  raise GatewayTimeoutError(
1351
1347
  headers=dict(_response.headers),
1352
1348
  body=typing.cast(
1353
- typing.Optional[typing.Any],
1349
+ typing.Any,
1354
1350
  parse_obj_as(
1355
- type_=typing.Optional[typing.Any], # type: ignore
1351
+ type_=typing.Any, # type: ignore
1356
1352
  object_=_response.json(),
1357
1353
  ),
1358
1354
  ),
@@ -1472,9 +1468,9 @@ class AsyncRawAssetsClient:
1472
1468
  raise UnauthorizedError(
1473
1469
  headers=dict(_response.headers),
1474
1470
  body=typing.cast(
1475
- typing.Optional[typing.Any],
1471
+ typing.Any,
1476
1472
  parse_obj_as(
1477
- type_=typing.Optional[typing.Any], # type: ignore
1473
+ type_=typing.Any, # type: ignore
1478
1474
  object_=_response.json(),
1479
1475
  ),
1480
1476
  ),
@@ -1483,9 +1479,9 @@ class AsyncRawAssetsClient:
1483
1479
  raise NotFoundError(
1484
1480
  headers=dict(_response.headers),
1485
1481
  body=typing.cast(
1486
- typing.Optional[typing.Any],
1482
+ typing.Any,
1487
1483
  parse_obj_as(
1488
- type_=typing.Optional[typing.Any], # type: ignore
1484
+ type_=typing.Any, # type: ignore
1489
1485
  object_=_response.json(),
1490
1486
  ),
1491
1487
  ),
@@ -1494,9 +1490,9 @@ class AsyncRawAssetsClient:
1494
1490
  raise MethodNotAllowedError(
1495
1491
  headers=dict(_response.headers),
1496
1492
  body=typing.cast(
1497
- typing.Optional[typing.Any],
1493
+ typing.Any,
1498
1494
  parse_obj_as(
1499
- type_=typing.Optional[typing.Any], # type: ignore
1495
+ type_=typing.Any, # type: ignore
1500
1496
  object_=_response.json(),
1501
1497
  ),
1502
1498
  ),
@@ -1505,9 +1501,9 @@ class AsyncRawAssetsClient:
1505
1501
  raise TooManyRequestsError(
1506
1502
  headers=dict(_response.headers),
1507
1503
  body=typing.cast(
1508
- typing.Optional[typing.Any],
1504
+ typing.Any,
1509
1505
  parse_obj_as(
1510
- type_=typing.Optional[typing.Any], # type: ignore
1506
+ type_=typing.Any, # type: ignore
1511
1507
  object_=_response.json(),
1512
1508
  ),
1513
1509
  ),
@@ -1516,9 +1512,9 @@ class AsyncRawAssetsClient:
1516
1512
  raise InternalServerError(
1517
1513
  headers=dict(_response.headers),
1518
1514
  body=typing.cast(
1519
- typing.Optional[typing.Any],
1515
+ typing.Any,
1520
1516
  parse_obj_as(
1521
- type_=typing.Optional[typing.Any], # type: ignore
1517
+ type_=typing.Any, # type: ignore
1522
1518
  object_=_response.json(),
1523
1519
  ),
1524
1520
  ),
@@ -1527,9 +1523,9 @@ class AsyncRawAssetsClient:
1527
1523
  raise NotImplementedError(
1528
1524
  headers=dict(_response.headers),
1529
1525
  body=typing.cast(
1530
- typing.Optional[typing.Any],
1526
+ typing.Any,
1531
1527
  parse_obj_as(
1532
- type_=typing.Optional[typing.Any], # type: ignore
1528
+ type_=typing.Any, # type: ignore
1533
1529
  object_=_response.json(),
1534
1530
  ),
1535
1531
  ),
@@ -1538,9 +1534,9 @@ class AsyncRawAssetsClient:
1538
1534
  raise BadGatewayError(
1539
1535
  headers=dict(_response.headers),
1540
1536
  body=typing.cast(
1541
- typing.Optional[typing.Any],
1537
+ typing.Any,
1542
1538
  parse_obj_as(
1543
- type_=typing.Optional[typing.Any], # type: ignore
1539
+ type_=typing.Any, # type: ignore
1544
1540
  object_=_response.json(),
1545
1541
  ),
1546
1542
  ),
@@ -1549,9 +1545,9 @@ class AsyncRawAssetsClient:
1549
1545
  raise ServiceUnavailableError(
1550
1546
  headers=dict(_response.headers),
1551
1547
  body=typing.cast(
1552
- typing.Optional[typing.Any],
1548
+ typing.Any,
1553
1549
  parse_obj_as(
1554
- type_=typing.Optional[typing.Any], # type: ignore
1550
+ type_=typing.Any, # type: ignore
1555
1551
  object_=_response.json(),
1556
1552
  ),
1557
1553
  ),
@@ -1560,9 +1556,9 @@ class AsyncRawAssetsClient:
1560
1556
  raise GatewayTimeoutError(
1561
1557
  headers=dict(_response.headers),
1562
1558
  body=typing.cast(
1563
- typing.Optional[typing.Any],
1559
+ typing.Any,
1564
1560
  parse_obj_as(
1565
- type_=typing.Optional[typing.Any], # type: ignore
1561
+ type_=typing.Any, # type: ignore
1566
1562
  object_=_response.json(),
1567
1563
  ),
1568
1564
  ),
@@ -1612,9 +1608,9 @@ class AsyncRawAssetsClient:
1612
1608
  raise UnauthorizedError(
1613
1609
  headers=dict(_response.headers),
1614
1610
  body=typing.cast(
1615
- typing.Optional[typing.Any],
1611
+ typing.Any,
1616
1612
  parse_obj_as(
1617
- type_=typing.Optional[typing.Any], # type: ignore
1613
+ type_=typing.Any, # type: ignore
1618
1614
  object_=_response.json(),
1619
1615
  ),
1620
1616
  ),
@@ -1623,9 +1619,9 @@ class AsyncRawAssetsClient:
1623
1619
  raise NotFoundError(
1624
1620
  headers=dict(_response.headers),
1625
1621
  body=typing.cast(
1626
- typing.Optional[typing.Any],
1622
+ typing.Any,
1627
1623
  parse_obj_as(
1628
- type_=typing.Optional[typing.Any], # type: ignore
1624
+ type_=typing.Any, # type: ignore
1629
1625
  object_=_response.json(),
1630
1626
  ),
1631
1627
  ),
@@ -1634,9 +1630,9 @@ class AsyncRawAssetsClient:
1634
1630
  raise MethodNotAllowedError(
1635
1631
  headers=dict(_response.headers),
1636
1632
  body=typing.cast(
1637
- typing.Optional[typing.Any],
1633
+ typing.Any,
1638
1634
  parse_obj_as(
1639
- type_=typing.Optional[typing.Any], # type: ignore
1635
+ type_=typing.Any, # type: ignore
1640
1636
  object_=_response.json(),
1641
1637
  ),
1642
1638
  ),
@@ -1645,9 +1641,9 @@ class AsyncRawAssetsClient:
1645
1641
  raise TooManyRequestsError(
1646
1642
  headers=dict(_response.headers),
1647
1643
  body=typing.cast(
1648
- typing.Optional[typing.Any],
1644
+ typing.Any,
1649
1645
  parse_obj_as(
1650
- type_=typing.Optional[typing.Any], # type: ignore
1646
+ type_=typing.Any, # type: ignore
1651
1647
  object_=_response.json(),
1652
1648
  ),
1653
1649
  ),
@@ -1656,9 +1652,9 @@ class AsyncRawAssetsClient:
1656
1652
  raise InternalServerError(
1657
1653
  headers=dict(_response.headers),
1658
1654
  body=typing.cast(
1659
- typing.Optional[typing.Any],
1655
+ typing.Any,
1660
1656
  parse_obj_as(
1661
- type_=typing.Optional[typing.Any], # type: ignore
1657
+ type_=typing.Any, # type: ignore
1662
1658
  object_=_response.json(),
1663
1659
  ),
1664
1660
  ),
@@ -1667,9 +1663,9 @@ class AsyncRawAssetsClient:
1667
1663
  raise NotImplementedError(
1668
1664
  headers=dict(_response.headers),
1669
1665
  body=typing.cast(
1670
- typing.Optional[typing.Any],
1666
+ typing.Any,
1671
1667
  parse_obj_as(
1672
- type_=typing.Optional[typing.Any], # type: ignore
1668
+ type_=typing.Any, # type: ignore
1673
1669
  object_=_response.json(),
1674
1670
  ),
1675
1671
  ),
@@ -1678,9 +1674,9 @@ class AsyncRawAssetsClient:
1678
1674
  raise BadGatewayError(
1679
1675
  headers=dict(_response.headers),
1680
1676
  body=typing.cast(
1681
- typing.Optional[typing.Any],
1677
+ typing.Any,
1682
1678
  parse_obj_as(
1683
- type_=typing.Optional[typing.Any], # type: ignore
1679
+ type_=typing.Any, # type: ignore
1684
1680
  object_=_response.json(),
1685
1681
  ),
1686
1682
  ),
@@ -1689,9 +1685,9 @@ class AsyncRawAssetsClient:
1689
1685
  raise ServiceUnavailableError(
1690
1686
  headers=dict(_response.headers),
1691
1687
  body=typing.cast(
1692
- typing.Optional[typing.Any],
1688
+ typing.Any,
1693
1689
  parse_obj_as(
1694
- type_=typing.Optional[typing.Any], # type: ignore
1690
+ type_=typing.Any, # type: ignore
1695
1691
  object_=_response.json(),
1696
1692
  ),
1697
1693
  ),
@@ -1700,9 +1696,9 @@ class AsyncRawAssetsClient:
1700
1696
  raise GatewayTimeoutError(
1701
1697
  headers=dict(_response.headers),
1702
1698
  body=typing.cast(
1703
- typing.Optional[typing.Any],
1699
+ typing.Any,
1704
1700
  parse_obj_as(
1705
- type_=typing.Optional[typing.Any], # type: ignore
1701
+ type_=typing.Any, # type: ignore
1706
1702
  object_=_response.json(),
1707
1703
  ),
1708
1704
  ),
@@ -1829,9 +1825,9 @@ class AsyncRawAssetsClient:
1829
1825
  raise UnauthorizedError(
1830
1826
  headers=dict(_response.headers),
1831
1827
  body=typing.cast(
1832
- typing.Optional[typing.Any],
1828
+ typing.Any,
1833
1829
  parse_obj_as(
1834
- type_=typing.Optional[typing.Any], # type: ignore
1830
+ type_=typing.Any, # type: ignore
1835
1831
  object_=_response.json(),
1836
1832
  ),
1837
1833
  ),
@@ -1840,9 +1836,9 @@ class AsyncRawAssetsClient:
1840
1836
  raise NotFoundError(
1841
1837
  headers=dict(_response.headers),
1842
1838
  body=typing.cast(
1843
- typing.Optional[typing.Any],
1839
+ typing.Any,
1844
1840
  parse_obj_as(
1845
- type_=typing.Optional[typing.Any], # type: ignore
1841
+ type_=typing.Any, # type: ignore
1846
1842
  object_=_response.json(),
1847
1843
  ),
1848
1844
  ),
@@ -1851,9 +1847,9 @@ class AsyncRawAssetsClient:
1851
1847
  raise MethodNotAllowedError(
1852
1848
  headers=dict(_response.headers),
1853
1849
  body=typing.cast(
1854
- typing.Optional[typing.Any],
1850
+ typing.Any,
1855
1851
  parse_obj_as(
1856
- type_=typing.Optional[typing.Any], # type: ignore
1852
+ type_=typing.Any, # type: ignore
1857
1853
  object_=_response.json(),
1858
1854
  ),
1859
1855
  ),
@@ -1862,9 +1858,9 @@ class AsyncRawAssetsClient:
1862
1858
  raise TooManyRequestsError(
1863
1859
  headers=dict(_response.headers),
1864
1860
  body=typing.cast(
1865
- typing.Optional[typing.Any],
1861
+ typing.Any,
1866
1862
  parse_obj_as(
1867
- type_=typing.Optional[typing.Any], # type: ignore
1863
+ type_=typing.Any, # type: ignore
1868
1864
  object_=_response.json(),
1869
1865
  ),
1870
1866
  ),
@@ -1873,9 +1869,9 @@ class AsyncRawAssetsClient:
1873
1869
  raise InternalServerError(
1874
1870
  headers=dict(_response.headers),
1875
1871
  body=typing.cast(
1876
- typing.Optional[typing.Any],
1872
+ typing.Any,
1877
1873
  parse_obj_as(
1878
- type_=typing.Optional[typing.Any], # type: ignore
1874
+ type_=typing.Any, # type: ignore
1879
1875
  object_=_response.json(),
1880
1876
  ),
1881
1877
  ),
@@ -1884,9 +1880,9 @@ class AsyncRawAssetsClient:
1884
1880
  raise NotImplementedError(
1885
1881
  headers=dict(_response.headers),
1886
1882
  body=typing.cast(
1887
- typing.Optional[typing.Any],
1883
+ typing.Any,
1888
1884
  parse_obj_as(
1889
- type_=typing.Optional[typing.Any], # type: ignore
1885
+ type_=typing.Any, # type: ignore
1890
1886
  object_=_response.json(),
1891
1887
  ),
1892
1888
  ),
@@ -1895,9 +1891,9 @@ class AsyncRawAssetsClient:
1895
1891
  raise BadGatewayError(
1896
1892
  headers=dict(_response.headers),
1897
1893
  body=typing.cast(
1898
- typing.Optional[typing.Any],
1894
+ typing.Any,
1899
1895
  parse_obj_as(
1900
- type_=typing.Optional[typing.Any], # type: ignore
1896
+ type_=typing.Any, # type: ignore
1901
1897
  object_=_response.json(),
1902
1898
  ),
1903
1899
  ),
@@ -1906,9 +1902,9 @@ class AsyncRawAssetsClient:
1906
1902
  raise ServiceUnavailableError(
1907
1903
  headers=dict(_response.headers),
1908
1904
  body=typing.cast(
1909
- typing.Optional[typing.Any],
1905
+ typing.Any,
1910
1906
  parse_obj_as(
1911
- type_=typing.Optional[typing.Any], # type: ignore
1907
+ type_=typing.Any, # type: ignore
1912
1908
  object_=_response.json(),
1913
1909
  ),
1914
1910
  ),
@@ -1917,9 +1913,9 @@ class AsyncRawAssetsClient:
1917
1913
  raise GatewayTimeoutError(
1918
1914
  headers=dict(_response.headers),
1919
1915
  body=typing.cast(
1920
- typing.Optional[typing.Any],
1916
+ typing.Any,
1921
1917
  parse_obj_as(
1922
- type_=typing.Optional[typing.Any], # type: ignore
1918
+ type_=typing.Any, # type: ignore
1923
1919
  object_=_response.json(),
1924
1920
  ),
1925
1921
  ),