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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. samsara/__init__.py +84 -15
  2. samsara/addresses/client.py +7 -14
  3. samsara/addresses/raw_client.py +7 -11
  4. samsara/alerts/client.py +2 -10
  5. samsara/alerts/raw_client.py +180 -180
  6. samsara/assets/__init__.py +3 -3
  7. samsara/assets/client.py +14 -45
  8. samsara/assets/raw_client.py +156 -160
  9. samsara/assets/types/__init__.py +3 -3
  10. samsara/assets/types/{assets_list_request_type.py → list_assets_request_type.py} +1 -1
  11. samsara/attributes/client.py +0 -4
  12. samsara/beta_ap_is/client.py +139 -189
  13. samsara/beta_ap_is/raw_client.py +2035 -1702
  14. samsara/carrier_proposed_assignments/client.py +2 -10
  15. samsara/client.py +5 -0
  16. samsara/coaching/client.py +2 -22
  17. samsara/coaching/raw_client.py +108 -108
  18. samsara/contacts/client.py +2 -8
  19. samsara/core/__init__.py +5 -0
  20. samsara/core/client_wrapper.py +18 -10
  21. samsara/core/custom_pagination.py +152 -0
  22. samsara/core/http_client.py +176 -90
  23. samsara/core/http_sse/__init__.py +42 -0
  24. samsara/core/http_sse/_api.py +112 -0
  25. samsara/core/http_sse/_decoders.py +61 -0
  26. samsara/core/http_sse/_exceptions.py +7 -0
  27. samsara/core/http_sse/_models.py +17 -0
  28. samsara/core/pagination.py +14 -14
  29. samsara/core/pydantic_utilities.py +3 -1
  30. samsara/documents/client.py +2 -12
  31. samsara/documents/raw_client.py +180 -180
  32. samsara/driver_qr_codes/raw_client.py +108 -108
  33. samsara/driver_vehicle_assignments/client.py +0 -12
  34. samsara/driver_vehicle_assignments/raw_client.py +144 -144
  35. samsara/drivers/__init__.py +3 -3
  36. samsara/drivers/client.py +12 -23
  37. samsara/drivers/raw_client.py +48 -52
  38. samsara/drivers/types/__init__.py +3 -3
  39. samsara/drivers/types/{drivers_list_request_driver_activation_status.py → list_drivers_request_driver_activation_status.py} +1 -1
  40. samsara/equipment/client.py +6 -22
  41. samsara/errors/bad_gateway_error.py +1 -1
  42. samsara/errors/gateway_timeout_error.py +1 -1
  43. samsara/errors/internal_server_error.py +1 -1
  44. samsara/errors/method_not_allowed_error.py +1 -1
  45. samsara/errors/not_found_error.py +1 -1
  46. samsara/errors/not_implemented_error.py +1 -1
  47. samsara/errors/service_unavailable_error.py +1 -1
  48. samsara/errors/too_many_requests_error.py +1 -1
  49. samsara/errors/unauthorized_error.py +1 -1
  50. samsara/forms/__init__.py +9 -3
  51. samsara/forms/client.py +17 -10
  52. samsara/forms/raw_client.py +265 -254
  53. samsara/forms/types/__init__.py +6 -2
  54. samsara/forms/types/form_submissions_post_form_submission_request_body_status.py +5 -0
  55. samsara/fuel_and_energy/client.py +0 -30
  56. samsara/fuel_and_energy/raw_client.py +180 -180
  57. samsara/gateways/client.py +2 -6
  58. samsara/gateways/raw_client.py +108 -108
  59. samsara/hours_of_service/__init__.py +6 -3
  60. samsara/hours_of_service/client.py +13 -52
  61. samsara/hours_of_service/raw_client.py +77 -76
  62. samsara/hours_of_service/types/__init__.py +4 -2
  63. samsara/hours_of_service/types/get_hos_daily_logs_request_expand.py +5 -0
  64. samsara/hubs/client.py +2 -94
  65. samsara/hubs/raw_client.py +216 -216
  66. samsara/idling/client.py +10 -16
  67. samsara/idling/raw_client.py +46 -36
  68. samsara/ifta/client.py +4 -34
  69. samsara/ifta/raw_client.py +144 -144
  70. samsara/industrial/client.py +12 -56
  71. samsara/industrial/raw_client.py +40 -48
  72. samsara/issues/client.py +0 -4
  73. samsara/issues/raw_client.py +108 -108
  74. samsara/legacy_ap_is/client.py +4 -56
  75. samsara/legacy_ap_is/raw_client.py +108 -108
  76. samsara/live_sharing_links/client.py +2 -10
  77. samsara/live_sharing_links/raw_client.py +144 -144
  78. samsara/location_and_speed/client.py +2 -20
  79. samsara/location_and_speed/raw_client.py +36 -36
  80. samsara/maintenance/__init__.py +3 -3
  81. samsara/maintenance/client.py +15 -30
  82. samsara/maintenance/raw_client.py +191 -182
  83. samsara/maintenance/types/__init__.py +6 -2
  84. samsara/maintenance/types/create_dvir_request_type.py +5 -0
  85. samsara/media/client.py +2 -16
  86. samsara/media/raw_client.py +108 -108
  87. samsara/messages/client.py +2 -8
  88. samsara/plans/client.py +0 -21
  89. samsara/plans/raw_client.py +72 -72
  90. samsara/preview_ap_is/client.py +0 -140
  91. samsara/preview_ap_is/raw_client.py +72 -430
  92. samsara/route_events/client.py +2 -12
  93. samsara/route_events/raw_client.py +36 -36
  94. samsara/routes/__init__.py +30 -0
  95. samsara/routes/client.py +7 -35
  96. samsara/routes/raw_client.py +257 -256
  97. samsara/routes/types/__init__.py +34 -0
  98. samsara/routes/types/get_routes_feed_request_expand.py +5 -0
  99. samsara/safety/client.py +2 -10
  100. samsara/safety/raw_client.py +36 -36
  101. samsara/settings/raw_client.py +180 -180
  102. samsara/speeding_intervals/raw_client.py +36 -36
  103. samsara/tachograph_eu_only/client.py +0 -6
  104. samsara/tags/client.py +2 -8
  105. samsara/trailer_assignments/client.py +2 -18
  106. samsara/trailers/client.py +2 -12
  107. samsara/trailers/raw_client.py +180 -180
  108. samsara/types/__init__.py +71 -6
  109. samsara/types/advanced_idling_get_idling_events_response_body.py +2 -2
  110. samsara/types/create_routes_stop_request_object_request_body.py +7 -0
  111. samsara/types/driver_assignment_object_response_body.py +2 -1
  112. samsara/types/driver_assignment_object_response_body_assignment_type.py +5 -0
  113. samsara/types/driver_external_ids.py +1 -1
  114. samsara/types/forms_approval_config_object_response_body.py +2 -1
  115. samsara/types/forms_approval_config_object_response_body_type.py +5 -0
  116. samsara/types/fuel_level_trigger_details_object_request_body.py +2 -1
  117. samsara/types/fuel_level_trigger_details_object_request_body_operation.py +5 -0
  118. samsara/types/fuel_level_trigger_details_object_response_body.py +4 -1
  119. samsara/types/fuel_level_trigger_details_object_response_body_operation.py +5 -0
  120. samsara/types/harsh_event_trigger_details_object_request_body_types_item.py +1 -0
  121. samsara/types/harsh_event_trigger_details_object_response_body_types_item.py +1 -0
  122. samsara/types/idling_event_address_object_response_body.py +46 -0
  123. samsara/types/{idling_event_object_response_body_address_type.py → idling_event_address_object_response_body_address_types_item.py} +1 -1
  124. samsara/types/idling_event_asset_object_response_body.py +35 -0
  125. samsara/types/{idling_event_object_response_body.py → idling_event_object_v_20251023_response_body.py} +18 -28
  126. samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
  127. samsara/types/idling_event_operator_object_response_body.py +35 -0
  128. samsara/types/patch_issue_request_body_assigned_to_request_body.py +2 -1
  129. samsara/types/patch_issue_request_body_assigned_to_request_body_type.py +5 -0
  130. samsara/types/reading_datapoint_request_body.py +5 -4
  131. samsara/types/reading_datapoint_request_body_entity_type.py +5 -0
  132. samsara/types/reading_history_response_body.py +1 -1
  133. samsara/types/reading_snapshot_response_body.py +1 -1
  134. samsara/types/resolved_by.py +2 -1
  135. samsara/types/resolved_by_type.py +5 -0
  136. samsara/types/route_feed_object_response_body.py +2 -1
  137. samsara/types/route_feed_object_response_body_type.py +5 -0
  138. samsara/types/route_settings_request_body.py +8 -0
  139. samsara/types/route_settings_request_body_sequencing_method.py +7 -0
  140. samsara/types/route_settings_response_body.py +8 -0
  141. samsara/types/route_settings_response_body_sequencing_method.py +7 -0
  142. samsara/types/route_stop_details_object_response_body.py +2 -1
  143. samsara/types/route_stop_details_object_response_body_type.py +5 -0
  144. samsara/types/routes_stop_response_object_response_body.py +7 -0
  145. samsara/types/training_learner_object_response_body.py +2 -1
  146. samsara/types/training_learner_object_response_body_type.py +5 -0
  147. samsara/types/update_routes_stop_request_object_request_body.py +7 -0
  148. samsara/types/vehicle_assignment_object_response_body.py +4 -3
  149. samsara/types/vehicle_assignment_object_response_body_assignment_type.py +5 -0
  150. samsara/types/vehicle_external_ids.py +1 -1
  151. samsara/types/work_order_money_object_request_body.py +2 -1
  152. samsara/types/work_order_money_object_request_body_currency.py +5 -0
  153. samsara/types/work_order_money_object_response_body.py +2 -1
  154. samsara/types/work_order_money_object_response_body_currency.py +5 -0
  155. samsara/users/client.py +4 -16
  156. samsara/vehicle_locations/client.py +4 -16
  157. samsara/vehicles/client.py +7 -22
  158. samsara/vehicles/raw_client.py +43 -47
  159. samsara/webhooks/client.py +2 -10
  160. samsara/webhooks/raw_client.py +180 -180
  161. samsara/work_orders/client.py +4 -18
  162. samsara/work_orders/raw_client.py +216 -216
  163. {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
  164. {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/RECORD +166 -136
  165. {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
  166. {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
@@ -99,9 +99,9 @@ class RawTrailersClient:
99
99
  raise UnauthorizedError(
100
100
  headers=dict(_response.headers),
101
101
  body=typing.cast(
102
- typing.Optional[typing.Any],
102
+ typing.Any,
103
103
  parse_obj_as(
104
- type_=typing.Optional[typing.Any], # type: ignore
104
+ type_=typing.Any, # type: ignore
105
105
  object_=_response.json(),
106
106
  ),
107
107
  ),
@@ -110,9 +110,9 @@ class RawTrailersClient:
110
110
  raise NotFoundError(
111
111
  headers=dict(_response.headers),
112
112
  body=typing.cast(
113
- typing.Optional[typing.Any],
113
+ typing.Any,
114
114
  parse_obj_as(
115
- type_=typing.Optional[typing.Any], # type: ignore
115
+ type_=typing.Any, # type: ignore
116
116
  object_=_response.json(),
117
117
  ),
118
118
  ),
@@ -121,9 +121,9 @@ class RawTrailersClient:
121
121
  raise MethodNotAllowedError(
122
122
  headers=dict(_response.headers),
123
123
  body=typing.cast(
124
- typing.Optional[typing.Any],
124
+ typing.Any,
125
125
  parse_obj_as(
126
- type_=typing.Optional[typing.Any], # type: ignore
126
+ type_=typing.Any, # type: ignore
127
127
  object_=_response.json(),
128
128
  ),
129
129
  ),
@@ -132,9 +132,9 @@ class RawTrailersClient:
132
132
  raise TooManyRequestsError(
133
133
  headers=dict(_response.headers),
134
134
  body=typing.cast(
135
- typing.Optional[typing.Any],
135
+ typing.Any,
136
136
  parse_obj_as(
137
- type_=typing.Optional[typing.Any], # type: ignore
137
+ type_=typing.Any, # type: ignore
138
138
  object_=_response.json(),
139
139
  ),
140
140
  ),
@@ -143,9 +143,9 @@ class RawTrailersClient:
143
143
  raise InternalServerError(
144
144
  headers=dict(_response.headers),
145
145
  body=typing.cast(
146
- typing.Optional[typing.Any],
146
+ typing.Any,
147
147
  parse_obj_as(
148
- type_=typing.Optional[typing.Any], # type: ignore
148
+ type_=typing.Any, # type: ignore
149
149
  object_=_response.json(),
150
150
  ),
151
151
  ),
@@ -154,9 +154,9 @@ class RawTrailersClient:
154
154
  raise NotImplementedError(
155
155
  headers=dict(_response.headers),
156
156
  body=typing.cast(
157
- typing.Optional[typing.Any],
157
+ typing.Any,
158
158
  parse_obj_as(
159
- type_=typing.Optional[typing.Any], # type: ignore
159
+ type_=typing.Any, # type: ignore
160
160
  object_=_response.json(),
161
161
  ),
162
162
  ),
@@ -165,9 +165,9 @@ class RawTrailersClient:
165
165
  raise BadGatewayError(
166
166
  headers=dict(_response.headers),
167
167
  body=typing.cast(
168
- typing.Optional[typing.Any],
168
+ typing.Any,
169
169
  parse_obj_as(
170
- type_=typing.Optional[typing.Any], # type: ignore
170
+ type_=typing.Any, # type: ignore
171
171
  object_=_response.json(),
172
172
  ),
173
173
  ),
@@ -176,9 +176,9 @@ class RawTrailersClient:
176
176
  raise ServiceUnavailableError(
177
177
  headers=dict(_response.headers),
178
178
  body=typing.cast(
179
- typing.Optional[typing.Any],
179
+ typing.Any,
180
180
  parse_obj_as(
181
- type_=typing.Optional[typing.Any], # type: ignore
181
+ type_=typing.Any, # type: ignore
182
182
  object_=_response.json(),
183
183
  ),
184
184
  ),
@@ -187,9 +187,9 @@ class RawTrailersClient:
187
187
  raise GatewayTimeoutError(
188
188
  headers=dict(_response.headers),
189
189
  body=typing.cast(
190
- typing.Optional[typing.Any],
190
+ typing.Any,
191
191
  parse_obj_as(
192
- type_=typing.Optional[typing.Any], # type: ignore
192
+ type_=typing.Any, # type: ignore
193
193
  object_=_response.json(),
194
194
  ),
195
195
  ),
@@ -291,9 +291,9 @@ class RawTrailersClient:
291
291
  raise UnauthorizedError(
292
292
  headers=dict(_response.headers),
293
293
  body=typing.cast(
294
- typing.Optional[typing.Any],
294
+ typing.Any,
295
295
  parse_obj_as(
296
- type_=typing.Optional[typing.Any], # type: ignore
296
+ type_=typing.Any, # type: ignore
297
297
  object_=_response.json(),
298
298
  ),
299
299
  ),
@@ -302,9 +302,9 @@ class RawTrailersClient:
302
302
  raise NotFoundError(
303
303
  headers=dict(_response.headers),
304
304
  body=typing.cast(
305
- typing.Optional[typing.Any],
305
+ typing.Any,
306
306
  parse_obj_as(
307
- type_=typing.Optional[typing.Any], # type: ignore
307
+ type_=typing.Any, # type: ignore
308
308
  object_=_response.json(),
309
309
  ),
310
310
  ),
@@ -313,9 +313,9 @@ class RawTrailersClient:
313
313
  raise MethodNotAllowedError(
314
314
  headers=dict(_response.headers),
315
315
  body=typing.cast(
316
- typing.Optional[typing.Any],
316
+ typing.Any,
317
317
  parse_obj_as(
318
- type_=typing.Optional[typing.Any], # type: ignore
318
+ type_=typing.Any, # type: ignore
319
319
  object_=_response.json(),
320
320
  ),
321
321
  ),
@@ -324,9 +324,9 @@ class RawTrailersClient:
324
324
  raise TooManyRequestsError(
325
325
  headers=dict(_response.headers),
326
326
  body=typing.cast(
327
- typing.Optional[typing.Any],
327
+ typing.Any,
328
328
  parse_obj_as(
329
- type_=typing.Optional[typing.Any], # type: ignore
329
+ type_=typing.Any, # type: ignore
330
330
  object_=_response.json(),
331
331
  ),
332
332
  ),
@@ -335,9 +335,9 @@ class RawTrailersClient:
335
335
  raise InternalServerError(
336
336
  headers=dict(_response.headers),
337
337
  body=typing.cast(
338
- typing.Optional[typing.Any],
338
+ typing.Any,
339
339
  parse_obj_as(
340
- type_=typing.Optional[typing.Any], # type: ignore
340
+ type_=typing.Any, # type: ignore
341
341
  object_=_response.json(),
342
342
  ),
343
343
  ),
@@ -346,9 +346,9 @@ class RawTrailersClient:
346
346
  raise NotImplementedError(
347
347
  headers=dict(_response.headers),
348
348
  body=typing.cast(
349
- typing.Optional[typing.Any],
349
+ typing.Any,
350
350
  parse_obj_as(
351
- type_=typing.Optional[typing.Any], # type: ignore
351
+ type_=typing.Any, # type: ignore
352
352
  object_=_response.json(),
353
353
  ),
354
354
  ),
@@ -357,9 +357,9 @@ class RawTrailersClient:
357
357
  raise BadGatewayError(
358
358
  headers=dict(_response.headers),
359
359
  body=typing.cast(
360
- typing.Optional[typing.Any],
360
+ typing.Any,
361
361
  parse_obj_as(
362
- type_=typing.Optional[typing.Any], # type: ignore
362
+ type_=typing.Any, # type: ignore
363
363
  object_=_response.json(),
364
364
  ),
365
365
  ),
@@ -368,9 +368,9 @@ class RawTrailersClient:
368
368
  raise ServiceUnavailableError(
369
369
  headers=dict(_response.headers),
370
370
  body=typing.cast(
371
- typing.Optional[typing.Any],
371
+ typing.Any,
372
372
  parse_obj_as(
373
- type_=typing.Optional[typing.Any], # type: ignore
373
+ type_=typing.Any, # type: ignore
374
374
  object_=_response.json(),
375
375
  ),
376
376
  ),
@@ -379,9 +379,9 @@ class RawTrailersClient:
379
379
  raise GatewayTimeoutError(
380
380
  headers=dict(_response.headers),
381
381
  body=typing.cast(
382
- typing.Optional[typing.Any],
382
+ typing.Any,
383
383
  parse_obj_as(
384
- type_=typing.Optional[typing.Any], # type: ignore
384
+ type_=typing.Any, # type: ignore
385
385
  object_=_response.json(),
386
386
  ),
387
387
  ),
@@ -436,9 +436,9 @@ class RawTrailersClient:
436
436
  raise UnauthorizedError(
437
437
  headers=dict(_response.headers),
438
438
  body=typing.cast(
439
- typing.Optional[typing.Any],
439
+ typing.Any,
440
440
  parse_obj_as(
441
- type_=typing.Optional[typing.Any], # type: ignore
441
+ type_=typing.Any, # type: ignore
442
442
  object_=_response.json(),
443
443
  ),
444
444
  ),
@@ -447,9 +447,9 @@ class RawTrailersClient:
447
447
  raise NotFoundError(
448
448
  headers=dict(_response.headers),
449
449
  body=typing.cast(
450
- typing.Optional[typing.Any],
450
+ typing.Any,
451
451
  parse_obj_as(
452
- type_=typing.Optional[typing.Any], # type: ignore
452
+ type_=typing.Any, # type: ignore
453
453
  object_=_response.json(),
454
454
  ),
455
455
  ),
@@ -458,9 +458,9 @@ class RawTrailersClient:
458
458
  raise MethodNotAllowedError(
459
459
  headers=dict(_response.headers),
460
460
  body=typing.cast(
461
- typing.Optional[typing.Any],
461
+ typing.Any,
462
462
  parse_obj_as(
463
- type_=typing.Optional[typing.Any], # type: ignore
463
+ type_=typing.Any, # type: ignore
464
464
  object_=_response.json(),
465
465
  ),
466
466
  ),
@@ -469,9 +469,9 @@ class RawTrailersClient:
469
469
  raise TooManyRequestsError(
470
470
  headers=dict(_response.headers),
471
471
  body=typing.cast(
472
- typing.Optional[typing.Any],
472
+ typing.Any,
473
473
  parse_obj_as(
474
- type_=typing.Optional[typing.Any], # type: ignore
474
+ type_=typing.Any, # type: ignore
475
475
  object_=_response.json(),
476
476
  ),
477
477
  ),
@@ -480,9 +480,9 @@ class RawTrailersClient:
480
480
  raise InternalServerError(
481
481
  headers=dict(_response.headers),
482
482
  body=typing.cast(
483
- typing.Optional[typing.Any],
483
+ typing.Any,
484
484
  parse_obj_as(
485
- type_=typing.Optional[typing.Any], # type: ignore
485
+ type_=typing.Any, # type: ignore
486
486
  object_=_response.json(),
487
487
  ),
488
488
  ),
@@ -491,9 +491,9 @@ class RawTrailersClient:
491
491
  raise NotImplementedError(
492
492
  headers=dict(_response.headers),
493
493
  body=typing.cast(
494
- typing.Optional[typing.Any],
494
+ typing.Any,
495
495
  parse_obj_as(
496
- type_=typing.Optional[typing.Any], # type: ignore
496
+ type_=typing.Any, # type: ignore
497
497
  object_=_response.json(),
498
498
  ),
499
499
  ),
@@ -502,9 +502,9 @@ class RawTrailersClient:
502
502
  raise BadGatewayError(
503
503
  headers=dict(_response.headers),
504
504
  body=typing.cast(
505
- typing.Optional[typing.Any],
505
+ typing.Any,
506
506
  parse_obj_as(
507
- type_=typing.Optional[typing.Any], # type: ignore
507
+ type_=typing.Any, # type: ignore
508
508
  object_=_response.json(),
509
509
  ),
510
510
  ),
@@ -513,9 +513,9 @@ class RawTrailersClient:
513
513
  raise ServiceUnavailableError(
514
514
  headers=dict(_response.headers),
515
515
  body=typing.cast(
516
- typing.Optional[typing.Any],
516
+ typing.Any,
517
517
  parse_obj_as(
518
- type_=typing.Optional[typing.Any], # type: ignore
518
+ type_=typing.Any, # type: ignore
519
519
  object_=_response.json(),
520
520
  ),
521
521
  ),
@@ -524,9 +524,9 @@ class RawTrailersClient:
524
524
  raise GatewayTimeoutError(
525
525
  headers=dict(_response.headers),
526
526
  body=typing.cast(
527
- typing.Optional[typing.Any],
527
+ typing.Any,
528
528
  parse_obj_as(
529
- type_=typing.Optional[typing.Any], # type: ignore
529
+ type_=typing.Any, # type: ignore
530
530
  object_=_response.json(),
531
531
  ),
532
532
  ),
@@ -571,9 +571,9 @@ class RawTrailersClient:
571
571
  raise UnauthorizedError(
572
572
  headers=dict(_response.headers),
573
573
  body=typing.cast(
574
- typing.Optional[typing.Any],
574
+ typing.Any,
575
575
  parse_obj_as(
576
- type_=typing.Optional[typing.Any], # type: ignore
576
+ type_=typing.Any, # type: ignore
577
577
  object_=_response.json(),
578
578
  ),
579
579
  ),
@@ -582,9 +582,9 @@ class RawTrailersClient:
582
582
  raise NotFoundError(
583
583
  headers=dict(_response.headers),
584
584
  body=typing.cast(
585
- typing.Optional[typing.Any],
585
+ typing.Any,
586
586
  parse_obj_as(
587
- type_=typing.Optional[typing.Any], # type: ignore
587
+ type_=typing.Any, # type: ignore
588
588
  object_=_response.json(),
589
589
  ),
590
590
  ),
@@ -593,9 +593,9 @@ class RawTrailersClient:
593
593
  raise MethodNotAllowedError(
594
594
  headers=dict(_response.headers),
595
595
  body=typing.cast(
596
- typing.Optional[typing.Any],
596
+ typing.Any,
597
597
  parse_obj_as(
598
- type_=typing.Optional[typing.Any], # type: ignore
598
+ type_=typing.Any, # type: ignore
599
599
  object_=_response.json(),
600
600
  ),
601
601
  ),
@@ -604,9 +604,9 @@ class RawTrailersClient:
604
604
  raise TooManyRequestsError(
605
605
  headers=dict(_response.headers),
606
606
  body=typing.cast(
607
- typing.Optional[typing.Any],
607
+ typing.Any,
608
608
  parse_obj_as(
609
- type_=typing.Optional[typing.Any], # type: ignore
609
+ type_=typing.Any, # type: ignore
610
610
  object_=_response.json(),
611
611
  ),
612
612
  ),
@@ -615,9 +615,9 @@ class RawTrailersClient:
615
615
  raise InternalServerError(
616
616
  headers=dict(_response.headers),
617
617
  body=typing.cast(
618
- typing.Optional[typing.Any],
618
+ typing.Any,
619
619
  parse_obj_as(
620
- type_=typing.Optional[typing.Any], # type: ignore
620
+ type_=typing.Any, # type: ignore
621
621
  object_=_response.json(),
622
622
  ),
623
623
  ),
@@ -626,9 +626,9 @@ class RawTrailersClient:
626
626
  raise NotImplementedError(
627
627
  headers=dict(_response.headers),
628
628
  body=typing.cast(
629
- typing.Optional[typing.Any],
629
+ typing.Any,
630
630
  parse_obj_as(
631
- type_=typing.Optional[typing.Any], # type: ignore
631
+ type_=typing.Any, # type: ignore
632
632
  object_=_response.json(),
633
633
  ),
634
634
  ),
@@ -637,9 +637,9 @@ class RawTrailersClient:
637
637
  raise BadGatewayError(
638
638
  headers=dict(_response.headers),
639
639
  body=typing.cast(
640
- typing.Optional[typing.Any],
640
+ typing.Any,
641
641
  parse_obj_as(
642
- type_=typing.Optional[typing.Any], # type: ignore
642
+ type_=typing.Any, # type: ignore
643
643
  object_=_response.json(),
644
644
  ),
645
645
  ),
@@ -648,9 +648,9 @@ class RawTrailersClient:
648
648
  raise ServiceUnavailableError(
649
649
  headers=dict(_response.headers),
650
650
  body=typing.cast(
651
- typing.Optional[typing.Any],
651
+ typing.Any,
652
652
  parse_obj_as(
653
- type_=typing.Optional[typing.Any], # type: ignore
653
+ type_=typing.Any, # type: ignore
654
654
  object_=_response.json(),
655
655
  ),
656
656
  ),
@@ -659,9 +659,9 @@ class RawTrailersClient:
659
659
  raise GatewayTimeoutError(
660
660
  headers=dict(_response.headers),
661
661
  body=typing.cast(
662
- typing.Optional[typing.Any],
662
+ typing.Any,
663
663
  parse_obj_as(
664
- type_=typing.Optional[typing.Any], # type: ignore
664
+ type_=typing.Any, # type: ignore
665
665
  object_=_response.json(),
666
666
  ),
667
667
  ),
@@ -774,9 +774,9 @@ class RawTrailersClient:
774
774
  raise UnauthorizedError(
775
775
  headers=dict(_response.headers),
776
776
  body=typing.cast(
777
- typing.Optional[typing.Any],
777
+ typing.Any,
778
778
  parse_obj_as(
779
- type_=typing.Optional[typing.Any], # type: ignore
779
+ type_=typing.Any, # type: ignore
780
780
  object_=_response.json(),
781
781
  ),
782
782
  ),
@@ -785,9 +785,9 @@ class RawTrailersClient:
785
785
  raise NotFoundError(
786
786
  headers=dict(_response.headers),
787
787
  body=typing.cast(
788
- typing.Optional[typing.Any],
788
+ typing.Any,
789
789
  parse_obj_as(
790
- type_=typing.Optional[typing.Any], # type: ignore
790
+ type_=typing.Any, # type: ignore
791
791
  object_=_response.json(),
792
792
  ),
793
793
  ),
@@ -796,9 +796,9 @@ class RawTrailersClient:
796
796
  raise MethodNotAllowedError(
797
797
  headers=dict(_response.headers),
798
798
  body=typing.cast(
799
- typing.Optional[typing.Any],
799
+ typing.Any,
800
800
  parse_obj_as(
801
- type_=typing.Optional[typing.Any], # type: ignore
801
+ type_=typing.Any, # type: ignore
802
802
  object_=_response.json(),
803
803
  ),
804
804
  ),
@@ -807,9 +807,9 @@ class RawTrailersClient:
807
807
  raise TooManyRequestsError(
808
808
  headers=dict(_response.headers),
809
809
  body=typing.cast(
810
- typing.Optional[typing.Any],
810
+ typing.Any,
811
811
  parse_obj_as(
812
- type_=typing.Optional[typing.Any], # type: ignore
812
+ type_=typing.Any, # type: ignore
813
813
  object_=_response.json(),
814
814
  ),
815
815
  ),
@@ -818,9 +818,9 @@ class RawTrailersClient:
818
818
  raise InternalServerError(
819
819
  headers=dict(_response.headers),
820
820
  body=typing.cast(
821
- typing.Optional[typing.Any],
821
+ typing.Any,
822
822
  parse_obj_as(
823
- type_=typing.Optional[typing.Any], # type: ignore
823
+ type_=typing.Any, # type: ignore
824
824
  object_=_response.json(),
825
825
  ),
826
826
  ),
@@ -829,9 +829,9 @@ class RawTrailersClient:
829
829
  raise NotImplementedError(
830
830
  headers=dict(_response.headers),
831
831
  body=typing.cast(
832
- typing.Optional[typing.Any],
832
+ typing.Any,
833
833
  parse_obj_as(
834
- type_=typing.Optional[typing.Any], # type: ignore
834
+ type_=typing.Any, # type: ignore
835
835
  object_=_response.json(),
836
836
  ),
837
837
  ),
@@ -840,9 +840,9 @@ class RawTrailersClient:
840
840
  raise BadGatewayError(
841
841
  headers=dict(_response.headers),
842
842
  body=typing.cast(
843
- typing.Optional[typing.Any],
843
+ typing.Any,
844
844
  parse_obj_as(
845
- type_=typing.Optional[typing.Any], # type: ignore
845
+ type_=typing.Any, # type: ignore
846
846
  object_=_response.json(),
847
847
  ),
848
848
  ),
@@ -851,9 +851,9 @@ class RawTrailersClient:
851
851
  raise ServiceUnavailableError(
852
852
  headers=dict(_response.headers),
853
853
  body=typing.cast(
854
- typing.Optional[typing.Any],
854
+ typing.Any,
855
855
  parse_obj_as(
856
- type_=typing.Optional[typing.Any], # type: ignore
856
+ type_=typing.Any, # type: ignore
857
857
  object_=_response.json(),
858
858
  ),
859
859
  ),
@@ -862,9 +862,9 @@ class RawTrailersClient:
862
862
  raise GatewayTimeoutError(
863
863
  headers=dict(_response.headers),
864
864
  body=typing.cast(
865
- typing.Optional[typing.Any],
865
+ typing.Any,
866
866
  parse_obj_as(
867
- type_=typing.Optional[typing.Any], # type: ignore
867
+ type_=typing.Any, # type: ignore
868
868
  object_=_response.json(),
869
869
  ),
870
870
  ),
@@ -945,9 +945,9 @@ class AsyncRawTrailersClient:
945
945
  raise UnauthorizedError(
946
946
  headers=dict(_response.headers),
947
947
  body=typing.cast(
948
- typing.Optional[typing.Any],
948
+ typing.Any,
949
949
  parse_obj_as(
950
- type_=typing.Optional[typing.Any], # type: ignore
950
+ type_=typing.Any, # type: ignore
951
951
  object_=_response.json(),
952
952
  ),
953
953
  ),
@@ -956,9 +956,9 @@ class AsyncRawTrailersClient:
956
956
  raise NotFoundError(
957
957
  headers=dict(_response.headers),
958
958
  body=typing.cast(
959
- typing.Optional[typing.Any],
959
+ typing.Any,
960
960
  parse_obj_as(
961
- type_=typing.Optional[typing.Any], # type: ignore
961
+ type_=typing.Any, # type: ignore
962
962
  object_=_response.json(),
963
963
  ),
964
964
  ),
@@ -967,9 +967,9 @@ class AsyncRawTrailersClient:
967
967
  raise MethodNotAllowedError(
968
968
  headers=dict(_response.headers),
969
969
  body=typing.cast(
970
- typing.Optional[typing.Any],
970
+ typing.Any,
971
971
  parse_obj_as(
972
- type_=typing.Optional[typing.Any], # type: ignore
972
+ type_=typing.Any, # type: ignore
973
973
  object_=_response.json(),
974
974
  ),
975
975
  ),
@@ -978,9 +978,9 @@ class AsyncRawTrailersClient:
978
978
  raise TooManyRequestsError(
979
979
  headers=dict(_response.headers),
980
980
  body=typing.cast(
981
- typing.Optional[typing.Any],
981
+ typing.Any,
982
982
  parse_obj_as(
983
- type_=typing.Optional[typing.Any], # type: ignore
983
+ type_=typing.Any, # type: ignore
984
984
  object_=_response.json(),
985
985
  ),
986
986
  ),
@@ -989,9 +989,9 @@ class AsyncRawTrailersClient:
989
989
  raise InternalServerError(
990
990
  headers=dict(_response.headers),
991
991
  body=typing.cast(
992
- typing.Optional[typing.Any],
992
+ typing.Any,
993
993
  parse_obj_as(
994
- type_=typing.Optional[typing.Any], # type: ignore
994
+ type_=typing.Any, # type: ignore
995
995
  object_=_response.json(),
996
996
  ),
997
997
  ),
@@ -1000,9 +1000,9 @@ class AsyncRawTrailersClient:
1000
1000
  raise NotImplementedError(
1001
1001
  headers=dict(_response.headers),
1002
1002
  body=typing.cast(
1003
- typing.Optional[typing.Any],
1003
+ typing.Any,
1004
1004
  parse_obj_as(
1005
- type_=typing.Optional[typing.Any], # type: ignore
1005
+ type_=typing.Any, # type: ignore
1006
1006
  object_=_response.json(),
1007
1007
  ),
1008
1008
  ),
@@ -1011,9 +1011,9 @@ class AsyncRawTrailersClient:
1011
1011
  raise BadGatewayError(
1012
1012
  headers=dict(_response.headers),
1013
1013
  body=typing.cast(
1014
- typing.Optional[typing.Any],
1014
+ typing.Any,
1015
1015
  parse_obj_as(
1016
- type_=typing.Optional[typing.Any], # type: ignore
1016
+ type_=typing.Any, # type: ignore
1017
1017
  object_=_response.json(),
1018
1018
  ),
1019
1019
  ),
@@ -1022,9 +1022,9 @@ class AsyncRawTrailersClient:
1022
1022
  raise ServiceUnavailableError(
1023
1023
  headers=dict(_response.headers),
1024
1024
  body=typing.cast(
1025
- typing.Optional[typing.Any],
1025
+ typing.Any,
1026
1026
  parse_obj_as(
1027
- type_=typing.Optional[typing.Any], # type: ignore
1027
+ type_=typing.Any, # type: ignore
1028
1028
  object_=_response.json(),
1029
1029
  ),
1030
1030
  ),
@@ -1033,9 +1033,9 @@ class AsyncRawTrailersClient:
1033
1033
  raise GatewayTimeoutError(
1034
1034
  headers=dict(_response.headers),
1035
1035
  body=typing.cast(
1036
- typing.Optional[typing.Any],
1036
+ typing.Any,
1037
1037
  parse_obj_as(
1038
- type_=typing.Optional[typing.Any], # type: ignore
1038
+ type_=typing.Any, # type: ignore
1039
1039
  object_=_response.json(),
1040
1040
  ),
1041
1041
  ),
@@ -1137,9 +1137,9 @@ class AsyncRawTrailersClient:
1137
1137
  raise UnauthorizedError(
1138
1138
  headers=dict(_response.headers),
1139
1139
  body=typing.cast(
1140
- typing.Optional[typing.Any],
1140
+ typing.Any,
1141
1141
  parse_obj_as(
1142
- type_=typing.Optional[typing.Any], # type: ignore
1142
+ type_=typing.Any, # type: ignore
1143
1143
  object_=_response.json(),
1144
1144
  ),
1145
1145
  ),
@@ -1148,9 +1148,9 @@ class AsyncRawTrailersClient:
1148
1148
  raise NotFoundError(
1149
1149
  headers=dict(_response.headers),
1150
1150
  body=typing.cast(
1151
- typing.Optional[typing.Any],
1151
+ typing.Any,
1152
1152
  parse_obj_as(
1153
- type_=typing.Optional[typing.Any], # type: ignore
1153
+ type_=typing.Any, # type: ignore
1154
1154
  object_=_response.json(),
1155
1155
  ),
1156
1156
  ),
@@ -1159,9 +1159,9 @@ class AsyncRawTrailersClient:
1159
1159
  raise MethodNotAllowedError(
1160
1160
  headers=dict(_response.headers),
1161
1161
  body=typing.cast(
1162
- typing.Optional[typing.Any],
1162
+ typing.Any,
1163
1163
  parse_obj_as(
1164
- type_=typing.Optional[typing.Any], # type: ignore
1164
+ type_=typing.Any, # type: ignore
1165
1165
  object_=_response.json(),
1166
1166
  ),
1167
1167
  ),
@@ -1170,9 +1170,9 @@ class AsyncRawTrailersClient:
1170
1170
  raise TooManyRequestsError(
1171
1171
  headers=dict(_response.headers),
1172
1172
  body=typing.cast(
1173
- typing.Optional[typing.Any],
1173
+ typing.Any,
1174
1174
  parse_obj_as(
1175
- type_=typing.Optional[typing.Any], # type: ignore
1175
+ type_=typing.Any, # type: ignore
1176
1176
  object_=_response.json(),
1177
1177
  ),
1178
1178
  ),
@@ -1181,9 +1181,9 @@ class AsyncRawTrailersClient:
1181
1181
  raise InternalServerError(
1182
1182
  headers=dict(_response.headers),
1183
1183
  body=typing.cast(
1184
- typing.Optional[typing.Any],
1184
+ typing.Any,
1185
1185
  parse_obj_as(
1186
- type_=typing.Optional[typing.Any], # type: ignore
1186
+ type_=typing.Any, # type: ignore
1187
1187
  object_=_response.json(),
1188
1188
  ),
1189
1189
  ),
@@ -1192,9 +1192,9 @@ class AsyncRawTrailersClient:
1192
1192
  raise NotImplementedError(
1193
1193
  headers=dict(_response.headers),
1194
1194
  body=typing.cast(
1195
- typing.Optional[typing.Any],
1195
+ typing.Any,
1196
1196
  parse_obj_as(
1197
- type_=typing.Optional[typing.Any], # type: ignore
1197
+ type_=typing.Any, # type: ignore
1198
1198
  object_=_response.json(),
1199
1199
  ),
1200
1200
  ),
@@ -1203,9 +1203,9 @@ class AsyncRawTrailersClient:
1203
1203
  raise BadGatewayError(
1204
1204
  headers=dict(_response.headers),
1205
1205
  body=typing.cast(
1206
- typing.Optional[typing.Any],
1206
+ typing.Any,
1207
1207
  parse_obj_as(
1208
- type_=typing.Optional[typing.Any], # type: ignore
1208
+ type_=typing.Any, # type: ignore
1209
1209
  object_=_response.json(),
1210
1210
  ),
1211
1211
  ),
@@ -1214,9 +1214,9 @@ class AsyncRawTrailersClient:
1214
1214
  raise ServiceUnavailableError(
1215
1215
  headers=dict(_response.headers),
1216
1216
  body=typing.cast(
1217
- typing.Optional[typing.Any],
1217
+ typing.Any,
1218
1218
  parse_obj_as(
1219
- type_=typing.Optional[typing.Any], # type: ignore
1219
+ type_=typing.Any, # type: ignore
1220
1220
  object_=_response.json(),
1221
1221
  ),
1222
1222
  ),
@@ -1225,9 +1225,9 @@ class AsyncRawTrailersClient:
1225
1225
  raise GatewayTimeoutError(
1226
1226
  headers=dict(_response.headers),
1227
1227
  body=typing.cast(
1228
- typing.Optional[typing.Any],
1228
+ typing.Any,
1229
1229
  parse_obj_as(
1230
- type_=typing.Optional[typing.Any], # type: ignore
1230
+ type_=typing.Any, # type: ignore
1231
1231
  object_=_response.json(),
1232
1232
  ),
1233
1233
  ),
@@ -1282,9 +1282,9 @@ class AsyncRawTrailersClient:
1282
1282
  raise UnauthorizedError(
1283
1283
  headers=dict(_response.headers),
1284
1284
  body=typing.cast(
1285
- typing.Optional[typing.Any],
1285
+ typing.Any,
1286
1286
  parse_obj_as(
1287
- type_=typing.Optional[typing.Any], # type: ignore
1287
+ type_=typing.Any, # type: ignore
1288
1288
  object_=_response.json(),
1289
1289
  ),
1290
1290
  ),
@@ -1293,9 +1293,9 @@ class AsyncRawTrailersClient:
1293
1293
  raise NotFoundError(
1294
1294
  headers=dict(_response.headers),
1295
1295
  body=typing.cast(
1296
- typing.Optional[typing.Any],
1296
+ typing.Any,
1297
1297
  parse_obj_as(
1298
- type_=typing.Optional[typing.Any], # type: ignore
1298
+ type_=typing.Any, # type: ignore
1299
1299
  object_=_response.json(),
1300
1300
  ),
1301
1301
  ),
@@ -1304,9 +1304,9 @@ class AsyncRawTrailersClient:
1304
1304
  raise MethodNotAllowedError(
1305
1305
  headers=dict(_response.headers),
1306
1306
  body=typing.cast(
1307
- typing.Optional[typing.Any],
1307
+ typing.Any,
1308
1308
  parse_obj_as(
1309
- type_=typing.Optional[typing.Any], # type: ignore
1309
+ type_=typing.Any, # type: ignore
1310
1310
  object_=_response.json(),
1311
1311
  ),
1312
1312
  ),
@@ -1315,9 +1315,9 @@ class AsyncRawTrailersClient:
1315
1315
  raise TooManyRequestsError(
1316
1316
  headers=dict(_response.headers),
1317
1317
  body=typing.cast(
1318
- typing.Optional[typing.Any],
1318
+ typing.Any,
1319
1319
  parse_obj_as(
1320
- type_=typing.Optional[typing.Any], # type: ignore
1320
+ type_=typing.Any, # type: ignore
1321
1321
  object_=_response.json(),
1322
1322
  ),
1323
1323
  ),
@@ -1326,9 +1326,9 @@ class AsyncRawTrailersClient:
1326
1326
  raise InternalServerError(
1327
1327
  headers=dict(_response.headers),
1328
1328
  body=typing.cast(
1329
- typing.Optional[typing.Any],
1329
+ typing.Any,
1330
1330
  parse_obj_as(
1331
- type_=typing.Optional[typing.Any], # type: ignore
1331
+ type_=typing.Any, # type: ignore
1332
1332
  object_=_response.json(),
1333
1333
  ),
1334
1334
  ),
@@ -1337,9 +1337,9 @@ class AsyncRawTrailersClient:
1337
1337
  raise NotImplementedError(
1338
1338
  headers=dict(_response.headers),
1339
1339
  body=typing.cast(
1340
- typing.Optional[typing.Any],
1340
+ typing.Any,
1341
1341
  parse_obj_as(
1342
- type_=typing.Optional[typing.Any], # type: ignore
1342
+ type_=typing.Any, # type: ignore
1343
1343
  object_=_response.json(),
1344
1344
  ),
1345
1345
  ),
@@ -1348,9 +1348,9 @@ class AsyncRawTrailersClient:
1348
1348
  raise BadGatewayError(
1349
1349
  headers=dict(_response.headers),
1350
1350
  body=typing.cast(
1351
- typing.Optional[typing.Any],
1351
+ typing.Any,
1352
1352
  parse_obj_as(
1353
- type_=typing.Optional[typing.Any], # type: ignore
1353
+ type_=typing.Any, # type: ignore
1354
1354
  object_=_response.json(),
1355
1355
  ),
1356
1356
  ),
@@ -1359,9 +1359,9 @@ class AsyncRawTrailersClient:
1359
1359
  raise ServiceUnavailableError(
1360
1360
  headers=dict(_response.headers),
1361
1361
  body=typing.cast(
1362
- typing.Optional[typing.Any],
1362
+ typing.Any,
1363
1363
  parse_obj_as(
1364
- type_=typing.Optional[typing.Any], # type: ignore
1364
+ type_=typing.Any, # type: ignore
1365
1365
  object_=_response.json(),
1366
1366
  ),
1367
1367
  ),
@@ -1370,9 +1370,9 @@ class AsyncRawTrailersClient:
1370
1370
  raise GatewayTimeoutError(
1371
1371
  headers=dict(_response.headers),
1372
1372
  body=typing.cast(
1373
- typing.Optional[typing.Any],
1373
+ typing.Any,
1374
1374
  parse_obj_as(
1375
- type_=typing.Optional[typing.Any], # type: ignore
1375
+ type_=typing.Any, # type: ignore
1376
1376
  object_=_response.json(),
1377
1377
  ),
1378
1378
  ),
@@ -1419,9 +1419,9 @@ class AsyncRawTrailersClient:
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 AsyncRawTrailersClient:
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 AsyncRawTrailersClient:
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 AsyncRawTrailersClient:
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 AsyncRawTrailersClient:
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 AsyncRawTrailersClient:
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 AsyncRawTrailersClient:
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 AsyncRawTrailersClient:
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 AsyncRawTrailersClient:
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
  ),
@@ -1622,9 +1622,9 @@ class AsyncRawTrailersClient:
1622
1622
  raise UnauthorizedError(
1623
1623
  headers=dict(_response.headers),
1624
1624
  body=typing.cast(
1625
- typing.Optional[typing.Any],
1625
+ typing.Any,
1626
1626
  parse_obj_as(
1627
- type_=typing.Optional[typing.Any], # type: ignore
1627
+ type_=typing.Any, # type: ignore
1628
1628
  object_=_response.json(),
1629
1629
  ),
1630
1630
  ),
@@ -1633,9 +1633,9 @@ class AsyncRawTrailersClient:
1633
1633
  raise NotFoundError(
1634
1634
  headers=dict(_response.headers),
1635
1635
  body=typing.cast(
1636
- typing.Optional[typing.Any],
1636
+ typing.Any,
1637
1637
  parse_obj_as(
1638
- type_=typing.Optional[typing.Any], # type: ignore
1638
+ type_=typing.Any, # type: ignore
1639
1639
  object_=_response.json(),
1640
1640
  ),
1641
1641
  ),
@@ -1644,9 +1644,9 @@ class AsyncRawTrailersClient:
1644
1644
  raise MethodNotAllowedError(
1645
1645
  headers=dict(_response.headers),
1646
1646
  body=typing.cast(
1647
- typing.Optional[typing.Any],
1647
+ typing.Any,
1648
1648
  parse_obj_as(
1649
- type_=typing.Optional[typing.Any], # type: ignore
1649
+ type_=typing.Any, # type: ignore
1650
1650
  object_=_response.json(),
1651
1651
  ),
1652
1652
  ),
@@ -1655,9 +1655,9 @@ class AsyncRawTrailersClient:
1655
1655
  raise TooManyRequestsError(
1656
1656
  headers=dict(_response.headers),
1657
1657
  body=typing.cast(
1658
- typing.Optional[typing.Any],
1658
+ typing.Any,
1659
1659
  parse_obj_as(
1660
- type_=typing.Optional[typing.Any], # type: ignore
1660
+ type_=typing.Any, # type: ignore
1661
1661
  object_=_response.json(),
1662
1662
  ),
1663
1663
  ),
@@ -1666,9 +1666,9 @@ class AsyncRawTrailersClient:
1666
1666
  raise InternalServerError(
1667
1667
  headers=dict(_response.headers),
1668
1668
  body=typing.cast(
1669
- typing.Optional[typing.Any],
1669
+ typing.Any,
1670
1670
  parse_obj_as(
1671
- type_=typing.Optional[typing.Any], # type: ignore
1671
+ type_=typing.Any, # type: ignore
1672
1672
  object_=_response.json(),
1673
1673
  ),
1674
1674
  ),
@@ -1677,9 +1677,9 @@ class AsyncRawTrailersClient:
1677
1677
  raise NotImplementedError(
1678
1678
  headers=dict(_response.headers),
1679
1679
  body=typing.cast(
1680
- typing.Optional[typing.Any],
1680
+ typing.Any,
1681
1681
  parse_obj_as(
1682
- type_=typing.Optional[typing.Any], # type: ignore
1682
+ type_=typing.Any, # type: ignore
1683
1683
  object_=_response.json(),
1684
1684
  ),
1685
1685
  ),
@@ -1688,9 +1688,9 @@ class AsyncRawTrailersClient:
1688
1688
  raise BadGatewayError(
1689
1689
  headers=dict(_response.headers),
1690
1690
  body=typing.cast(
1691
- typing.Optional[typing.Any],
1691
+ typing.Any,
1692
1692
  parse_obj_as(
1693
- type_=typing.Optional[typing.Any], # type: ignore
1693
+ type_=typing.Any, # type: ignore
1694
1694
  object_=_response.json(),
1695
1695
  ),
1696
1696
  ),
@@ -1699,9 +1699,9 @@ class AsyncRawTrailersClient:
1699
1699
  raise ServiceUnavailableError(
1700
1700
  headers=dict(_response.headers),
1701
1701
  body=typing.cast(
1702
- typing.Optional[typing.Any],
1702
+ typing.Any,
1703
1703
  parse_obj_as(
1704
- type_=typing.Optional[typing.Any], # type: ignore
1704
+ type_=typing.Any, # type: ignore
1705
1705
  object_=_response.json(),
1706
1706
  ),
1707
1707
  ),
@@ -1710,9 +1710,9 @@ class AsyncRawTrailersClient:
1710
1710
  raise GatewayTimeoutError(
1711
1711
  headers=dict(_response.headers),
1712
1712
  body=typing.cast(
1713
- typing.Optional[typing.Any],
1713
+ typing.Any,
1714
1714
  parse_obj_as(
1715
- type_=typing.Optional[typing.Any], # type: ignore
1715
+ type_=typing.Any, # type: ignore
1716
1716
  object_=_response.json(),
1717
1717
  ),
1718
1718
  ),