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
@@ -119,9 +119,9 @@ class RawHubsClient:
119
119
  raise UnauthorizedError(
120
120
  headers=dict(_response.headers),
121
121
  body=typing.cast(
122
- typing.Optional[typing.Any],
122
+ typing.Any,
123
123
  parse_obj_as(
124
- type_=typing.Optional[typing.Any], # type: ignore
124
+ type_=typing.Any, # type: ignore
125
125
  object_=_response.json(),
126
126
  ),
127
127
  ),
@@ -130,9 +130,9 @@ class RawHubsClient:
130
130
  raise NotFoundError(
131
131
  headers=dict(_response.headers),
132
132
  body=typing.cast(
133
- typing.Optional[typing.Any],
133
+ typing.Any,
134
134
  parse_obj_as(
135
- type_=typing.Optional[typing.Any], # type: ignore
135
+ type_=typing.Any, # type: ignore
136
136
  object_=_response.json(),
137
137
  ),
138
138
  ),
@@ -141,9 +141,9 @@ class RawHubsClient:
141
141
  raise MethodNotAllowedError(
142
142
  headers=dict(_response.headers),
143
143
  body=typing.cast(
144
- typing.Optional[typing.Any],
144
+ typing.Any,
145
145
  parse_obj_as(
146
- type_=typing.Optional[typing.Any], # type: ignore
146
+ type_=typing.Any, # type: ignore
147
147
  object_=_response.json(),
148
148
  ),
149
149
  ),
@@ -152,9 +152,9 @@ class RawHubsClient:
152
152
  raise TooManyRequestsError(
153
153
  headers=dict(_response.headers),
154
154
  body=typing.cast(
155
- typing.Optional[typing.Any],
155
+ typing.Any,
156
156
  parse_obj_as(
157
- type_=typing.Optional[typing.Any], # type: ignore
157
+ type_=typing.Any, # type: ignore
158
158
  object_=_response.json(),
159
159
  ),
160
160
  ),
@@ -163,9 +163,9 @@ class RawHubsClient:
163
163
  raise InternalServerError(
164
164
  headers=dict(_response.headers),
165
165
  body=typing.cast(
166
- typing.Optional[typing.Any],
166
+ typing.Any,
167
167
  parse_obj_as(
168
- type_=typing.Optional[typing.Any], # type: ignore
168
+ type_=typing.Any, # type: ignore
169
169
  object_=_response.json(),
170
170
  ),
171
171
  ),
@@ -174,9 +174,9 @@ class RawHubsClient:
174
174
  raise NotImplementedError(
175
175
  headers=dict(_response.headers),
176
176
  body=typing.cast(
177
- typing.Optional[typing.Any],
177
+ typing.Any,
178
178
  parse_obj_as(
179
- type_=typing.Optional[typing.Any], # type: ignore
179
+ type_=typing.Any, # type: ignore
180
180
  object_=_response.json(),
181
181
  ),
182
182
  ),
@@ -185,9 +185,9 @@ class RawHubsClient:
185
185
  raise BadGatewayError(
186
186
  headers=dict(_response.headers),
187
187
  body=typing.cast(
188
- typing.Optional[typing.Any],
188
+ typing.Any,
189
189
  parse_obj_as(
190
- type_=typing.Optional[typing.Any], # type: ignore
190
+ type_=typing.Any, # type: ignore
191
191
  object_=_response.json(),
192
192
  ),
193
193
  ),
@@ -196,9 +196,9 @@ class RawHubsClient:
196
196
  raise ServiceUnavailableError(
197
197
  headers=dict(_response.headers),
198
198
  body=typing.cast(
199
- typing.Optional[typing.Any],
199
+ typing.Any,
200
200
  parse_obj_as(
201
- type_=typing.Optional[typing.Any], # type: ignore
201
+ type_=typing.Any, # type: ignore
202
202
  object_=_response.json(),
203
203
  ),
204
204
  ),
@@ -207,9 +207,9 @@ class RawHubsClient:
207
207
  raise GatewayTimeoutError(
208
208
  headers=dict(_response.headers),
209
209
  body=typing.cast(
210
- typing.Optional[typing.Any],
210
+ typing.Any,
211
211
  parse_obj_as(
212
- type_=typing.Optional[typing.Any], # type: ignore
212
+ type_=typing.Any, # type: ignore
213
213
  object_=_response.json(),
214
214
  ),
215
215
  ),
@@ -279,9 +279,9 @@ class RawHubsClient:
279
279
  raise UnauthorizedError(
280
280
  headers=dict(_response.headers),
281
281
  body=typing.cast(
282
- typing.Optional[typing.Any],
282
+ typing.Any,
283
283
  parse_obj_as(
284
- type_=typing.Optional[typing.Any], # type: ignore
284
+ type_=typing.Any, # type: ignore
285
285
  object_=_response.json(),
286
286
  ),
287
287
  ),
@@ -290,9 +290,9 @@ class RawHubsClient:
290
290
  raise NotFoundError(
291
291
  headers=dict(_response.headers),
292
292
  body=typing.cast(
293
- typing.Optional[typing.Any],
293
+ typing.Any,
294
294
  parse_obj_as(
295
- type_=typing.Optional[typing.Any], # type: ignore
295
+ type_=typing.Any, # type: ignore
296
296
  object_=_response.json(),
297
297
  ),
298
298
  ),
@@ -301,9 +301,9 @@ class RawHubsClient:
301
301
  raise MethodNotAllowedError(
302
302
  headers=dict(_response.headers),
303
303
  body=typing.cast(
304
- typing.Optional[typing.Any],
304
+ typing.Any,
305
305
  parse_obj_as(
306
- type_=typing.Optional[typing.Any], # type: ignore
306
+ type_=typing.Any, # type: ignore
307
307
  object_=_response.json(),
308
308
  ),
309
309
  ),
@@ -312,9 +312,9 @@ class RawHubsClient:
312
312
  raise TooManyRequestsError(
313
313
  headers=dict(_response.headers),
314
314
  body=typing.cast(
315
- typing.Optional[typing.Any],
315
+ typing.Any,
316
316
  parse_obj_as(
317
- type_=typing.Optional[typing.Any], # type: ignore
317
+ type_=typing.Any, # type: ignore
318
318
  object_=_response.json(),
319
319
  ),
320
320
  ),
@@ -323,9 +323,9 @@ class RawHubsClient:
323
323
  raise InternalServerError(
324
324
  headers=dict(_response.headers),
325
325
  body=typing.cast(
326
- typing.Optional[typing.Any],
326
+ typing.Any,
327
327
  parse_obj_as(
328
- type_=typing.Optional[typing.Any], # type: ignore
328
+ type_=typing.Any, # type: ignore
329
329
  object_=_response.json(),
330
330
  ),
331
331
  ),
@@ -334,9 +334,9 @@ class RawHubsClient:
334
334
  raise NotImplementedError(
335
335
  headers=dict(_response.headers),
336
336
  body=typing.cast(
337
- typing.Optional[typing.Any],
337
+ typing.Any,
338
338
  parse_obj_as(
339
- type_=typing.Optional[typing.Any], # type: ignore
339
+ type_=typing.Any, # type: ignore
340
340
  object_=_response.json(),
341
341
  ),
342
342
  ),
@@ -345,9 +345,9 @@ class RawHubsClient:
345
345
  raise BadGatewayError(
346
346
  headers=dict(_response.headers),
347
347
  body=typing.cast(
348
- typing.Optional[typing.Any],
348
+ typing.Any,
349
349
  parse_obj_as(
350
- type_=typing.Optional[typing.Any], # type: ignore
350
+ type_=typing.Any, # type: ignore
351
351
  object_=_response.json(),
352
352
  ),
353
353
  ),
@@ -356,9 +356,9 @@ class RawHubsClient:
356
356
  raise ServiceUnavailableError(
357
357
  headers=dict(_response.headers),
358
358
  body=typing.cast(
359
- typing.Optional[typing.Any],
359
+ typing.Any,
360
360
  parse_obj_as(
361
- type_=typing.Optional[typing.Any], # type: ignore
361
+ type_=typing.Any, # type: ignore
362
362
  object_=_response.json(),
363
363
  ),
364
364
  ),
@@ -367,9 +367,9 @@ class RawHubsClient:
367
367
  raise GatewayTimeoutError(
368
368
  headers=dict(_response.headers),
369
369
  body=typing.cast(
370
- typing.Optional[typing.Any],
370
+ typing.Any,
371
371
  parse_obj_as(
372
- type_=typing.Optional[typing.Any], # type: ignore
372
+ type_=typing.Any, # type: ignore
373
373
  object_=_response.json(),
374
374
  ),
375
375
  ),
@@ -460,9 +460,9 @@ class RawHubsClient:
460
460
  raise UnauthorizedError(
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
  ),
@@ -471,9 +471,9 @@ class RawHubsClient:
471
471
  raise NotFoundError(
472
472
  headers=dict(_response.headers),
473
473
  body=typing.cast(
474
- typing.Optional[typing.Any],
474
+ typing.Any,
475
475
  parse_obj_as(
476
- type_=typing.Optional[typing.Any], # type: ignore
476
+ type_=typing.Any, # type: ignore
477
477
  object_=_response.json(),
478
478
  ),
479
479
  ),
@@ -482,9 +482,9 @@ class RawHubsClient:
482
482
  raise MethodNotAllowedError(
483
483
  headers=dict(_response.headers),
484
484
  body=typing.cast(
485
- typing.Optional[typing.Any],
485
+ typing.Any,
486
486
  parse_obj_as(
487
- type_=typing.Optional[typing.Any], # type: ignore
487
+ type_=typing.Any, # type: ignore
488
488
  object_=_response.json(),
489
489
  ),
490
490
  ),
@@ -493,9 +493,9 @@ class RawHubsClient:
493
493
  raise TooManyRequestsError(
494
494
  headers=dict(_response.headers),
495
495
  body=typing.cast(
496
- typing.Optional[typing.Any],
496
+ typing.Any,
497
497
  parse_obj_as(
498
- type_=typing.Optional[typing.Any], # type: ignore
498
+ type_=typing.Any, # type: ignore
499
499
  object_=_response.json(),
500
500
  ),
501
501
  ),
@@ -504,9 +504,9 @@ class RawHubsClient:
504
504
  raise InternalServerError(
505
505
  headers=dict(_response.headers),
506
506
  body=typing.cast(
507
- typing.Optional[typing.Any],
507
+ typing.Any,
508
508
  parse_obj_as(
509
- type_=typing.Optional[typing.Any], # type: ignore
509
+ type_=typing.Any, # type: ignore
510
510
  object_=_response.json(),
511
511
  ),
512
512
  ),
@@ -515,9 +515,9 @@ class RawHubsClient:
515
515
  raise NotImplementedError(
516
516
  headers=dict(_response.headers),
517
517
  body=typing.cast(
518
- typing.Optional[typing.Any],
518
+ typing.Any,
519
519
  parse_obj_as(
520
- type_=typing.Optional[typing.Any], # type: ignore
520
+ type_=typing.Any, # type: ignore
521
521
  object_=_response.json(),
522
522
  ),
523
523
  ),
@@ -526,9 +526,9 @@ class RawHubsClient:
526
526
  raise BadGatewayError(
527
527
  headers=dict(_response.headers),
528
528
  body=typing.cast(
529
- typing.Optional[typing.Any],
529
+ typing.Any,
530
530
  parse_obj_as(
531
- type_=typing.Optional[typing.Any], # type: ignore
531
+ type_=typing.Any, # type: ignore
532
532
  object_=_response.json(),
533
533
  ),
534
534
  ),
@@ -537,9 +537,9 @@ class RawHubsClient:
537
537
  raise ServiceUnavailableError(
538
538
  headers=dict(_response.headers),
539
539
  body=typing.cast(
540
- typing.Optional[typing.Any],
540
+ typing.Any,
541
541
  parse_obj_as(
542
- type_=typing.Optional[typing.Any], # type: ignore
542
+ type_=typing.Any, # type: ignore
543
543
  object_=_response.json(),
544
544
  ),
545
545
  ),
@@ -548,9 +548,9 @@ class RawHubsClient:
548
548
  raise GatewayTimeoutError(
549
549
  headers=dict(_response.headers),
550
550
  body=typing.cast(
551
- typing.Optional[typing.Any],
551
+ typing.Any,
552
552
  parse_obj_as(
553
- type_=typing.Optional[typing.Any], # type: ignore
553
+ type_=typing.Any, # type: ignore
554
554
  object_=_response.json(),
555
555
  ),
556
556
  ),
@@ -617,9 +617,9 @@ class RawHubsClient:
617
617
  raise UnauthorizedError(
618
618
  headers=dict(_response.headers),
619
619
  body=typing.cast(
620
- typing.Optional[typing.Any],
620
+ typing.Any,
621
621
  parse_obj_as(
622
- type_=typing.Optional[typing.Any], # type: ignore
622
+ type_=typing.Any, # type: ignore
623
623
  object_=_response.json(),
624
624
  ),
625
625
  ),
@@ -628,9 +628,9 @@ class RawHubsClient:
628
628
  raise NotFoundError(
629
629
  headers=dict(_response.headers),
630
630
  body=typing.cast(
631
- typing.Optional[typing.Any],
631
+ typing.Any,
632
632
  parse_obj_as(
633
- type_=typing.Optional[typing.Any], # type: ignore
633
+ type_=typing.Any, # type: ignore
634
634
  object_=_response.json(),
635
635
  ),
636
636
  ),
@@ -639,9 +639,9 @@ class RawHubsClient:
639
639
  raise MethodNotAllowedError(
640
640
  headers=dict(_response.headers),
641
641
  body=typing.cast(
642
- typing.Optional[typing.Any],
642
+ typing.Any,
643
643
  parse_obj_as(
644
- type_=typing.Optional[typing.Any], # type: ignore
644
+ type_=typing.Any, # type: ignore
645
645
  object_=_response.json(),
646
646
  ),
647
647
  ),
@@ -650,9 +650,9 @@ class RawHubsClient:
650
650
  raise TooManyRequestsError(
651
651
  headers=dict(_response.headers),
652
652
  body=typing.cast(
653
- typing.Optional[typing.Any],
653
+ typing.Any,
654
654
  parse_obj_as(
655
- type_=typing.Optional[typing.Any], # type: ignore
655
+ type_=typing.Any, # type: ignore
656
656
  object_=_response.json(),
657
657
  ),
658
658
  ),
@@ -661,9 +661,9 @@ class RawHubsClient:
661
661
  raise InternalServerError(
662
662
  headers=dict(_response.headers),
663
663
  body=typing.cast(
664
- typing.Optional[typing.Any],
664
+ typing.Any,
665
665
  parse_obj_as(
666
- type_=typing.Optional[typing.Any], # type: ignore
666
+ type_=typing.Any, # type: ignore
667
667
  object_=_response.json(),
668
668
  ),
669
669
  ),
@@ -672,9 +672,9 @@ class RawHubsClient:
672
672
  raise NotImplementedError(
673
673
  headers=dict(_response.headers),
674
674
  body=typing.cast(
675
- typing.Optional[typing.Any],
675
+ typing.Any,
676
676
  parse_obj_as(
677
- type_=typing.Optional[typing.Any], # type: ignore
677
+ type_=typing.Any, # type: ignore
678
678
  object_=_response.json(),
679
679
  ),
680
680
  ),
@@ -683,9 +683,9 @@ class RawHubsClient:
683
683
  raise BadGatewayError(
684
684
  headers=dict(_response.headers),
685
685
  body=typing.cast(
686
- typing.Optional[typing.Any],
686
+ typing.Any,
687
687
  parse_obj_as(
688
- type_=typing.Optional[typing.Any], # type: ignore
688
+ type_=typing.Any, # type: ignore
689
689
  object_=_response.json(),
690
690
  ),
691
691
  ),
@@ -694,9 +694,9 @@ class RawHubsClient:
694
694
  raise ServiceUnavailableError(
695
695
  headers=dict(_response.headers),
696
696
  body=typing.cast(
697
- typing.Optional[typing.Any],
697
+ typing.Any,
698
698
  parse_obj_as(
699
- type_=typing.Optional[typing.Any], # type: ignore
699
+ type_=typing.Any, # type: ignore
700
700
  object_=_response.json(),
701
701
  ),
702
702
  ),
@@ -705,9 +705,9 @@ class RawHubsClient:
705
705
  raise GatewayTimeoutError(
706
706
  headers=dict(_response.headers),
707
707
  body=typing.cast(
708
- typing.Optional[typing.Any],
708
+ typing.Any,
709
709
  parse_obj_as(
710
- type_=typing.Optional[typing.Any], # type: ignore
710
+ type_=typing.Any, # type: ignore
711
711
  object_=_response.json(),
712
712
  ),
713
713
  ),
@@ -798,9 +798,9 @@ class RawHubsClient:
798
798
  raise UnauthorizedError(
799
799
  headers=dict(_response.headers),
800
800
  body=typing.cast(
801
- typing.Optional[typing.Any],
801
+ typing.Any,
802
802
  parse_obj_as(
803
- type_=typing.Optional[typing.Any], # type: ignore
803
+ type_=typing.Any, # type: ignore
804
804
  object_=_response.json(),
805
805
  ),
806
806
  ),
@@ -809,9 +809,9 @@ class RawHubsClient:
809
809
  raise NotFoundError(
810
810
  headers=dict(_response.headers),
811
811
  body=typing.cast(
812
- typing.Optional[typing.Any],
812
+ typing.Any,
813
813
  parse_obj_as(
814
- type_=typing.Optional[typing.Any], # type: ignore
814
+ type_=typing.Any, # type: ignore
815
815
  object_=_response.json(),
816
816
  ),
817
817
  ),
@@ -820,9 +820,9 @@ class RawHubsClient:
820
820
  raise MethodNotAllowedError(
821
821
  headers=dict(_response.headers),
822
822
  body=typing.cast(
823
- typing.Optional[typing.Any],
823
+ typing.Any,
824
824
  parse_obj_as(
825
- type_=typing.Optional[typing.Any], # type: ignore
825
+ type_=typing.Any, # type: ignore
826
826
  object_=_response.json(),
827
827
  ),
828
828
  ),
@@ -831,9 +831,9 @@ class RawHubsClient:
831
831
  raise TooManyRequestsError(
832
832
  headers=dict(_response.headers),
833
833
  body=typing.cast(
834
- typing.Optional[typing.Any],
834
+ typing.Any,
835
835
  parse_obj_as(
836
- type_=typing.Optional[typing.Any], # type: ignore
836
+ type_=typing.Any, # type: ignore
837
837
  object_=_response.json(),
838
838
  ),
839
839
  ),
@@ -842,9 +842,9 @@ class RawHubsClient:
842
842
  raise InternalServerError(
843
843
  headers=dict(_response.headers),
844
844
  body=typing.cast(
845
- typing.Optional[typing.Any],
845
+ typing.Any,
846
846
  parse_obj_as(
847
- type_=typing.Optional[typing.Any], # type: ignore
847
+ type_=typing.Any, # type: ignore
848
848
  object_=_response.json(),
849
849
  ),
850
850
  ),
@@ -853,9 +853,9 @@ class RawHubsClient:
853
853
  raise NotImplementedError(
854
854
  headers=dict(_response.headers),
855
855
  body=typing.cast(
856
- typing.Optional[typing.Any],
856
+ typing.Any,
857
857
  parse_obj_as(
858
- type_=typing.Optional[typing.Any], # type: ignore
858
+ type_=typing.Any, # type: ignore
859
859
  object_=_response.json(),
860
860
  ),
861
861
  ),
@@ -864,9 +864,9 @@ class RawHubsClient:
864
864
  raise BadGatewayError(
865
865
  headers=dict(_response.headers),
866
866
  body=typing.cast(
867
- typing.Optional[typing.Any],
867
+ typing.Any,
868
868
  parse_obj_as(
869
- type_=typing.Optional[typing.Any], # type: ignore
869
+ type_=typing.Any, # type: ignore
870
870
  object_=_response.json(),
871
871
  ),
872
872
  ),
@@ -875,9 +875,9 @@ class RawHubsClient:
875
875
  raise ServiceUnavailableError(
876
876
  headers=dict(_response.headers),
877
877
  body=typing.cast(
878
- typing.Optional[typing.Any],
878
+ typing.Any,
879
879
  parse_obj_as(
880
- type_=typing.Optional[typing.Any], # type: ignore
880
+ type_=typing.Any, # type: ignore
881
881
  object_=_response.json(),
882
882
  ),
883
883
  ),
@@ -886,9 +886,9 @@ class RawHubsClient:
886
886
  raise GatewayTimeoutError(
887
887
  headers=dict(_response.headers),
888
888
  body=typing.cast(
889
- typing.Optional[typing.Any],
889
+ typing.Any,
890
890
  parse_obj_as(
891
- type_=typing.Optional[typing.Any], # type: ignore
891
+ type_=typing.Any, # type: ignore
892
892
  object_=_response.json(),
893
893
  ),
894
894
  ),
@@ -969,9 +969,9 @@ class RawHubsClient:
969
969
  raise UnauthorizedError(
970
970
  headers=dict(_response.headers),
971
971
  body=typing.cast(
972
- typing.Optional[typing.Any],
972
+ typing.Any,
973
973
  parse_obj_as(
974
- type_=typing.Optional[typing.Any], # type: ignore
974
+ type_=typing.Any, # type: ignore
975
975
  object_=_response.json(),
976
976
  ),
977
977
  ),
@@ -980,9 +980,9 @@ class RawHubsClient:
980
980
  raise NotFoundError(
981
981
  headers=dict(_response.headers),
982
982
  body=typing.cast(
983
- typing.Optional[typing.Any],
983
+ typing.Any,
984
984
  parse_obj_as(
985
- type_=typing.Optional[typing.Any], # type: ignore
985
+ type_=typing.Any, # type: ignore
986
986
  object_=_response.json(),
987
987
  ),
988
988
  ),
@@ -991,9 +991,9 @@ class RawHubsClient:
991
991
  raise MethodNotAllowedError(
992
992
  headers=dict(_response.headers),
993
993
  body=typing.cast(
994
- typing.Optional[typing.Any],
994
+ typing.Any,
995
995
  parse_obj_as(
996
- type_=typing.Optional[typing.Any], # type: ignore
996
+ type_=typing.Any, # type: ignore
997
997
  object_=_response.json(),
998
998
  ),
999
999
  ),
@@ -1002,9 +1002,9 @@ class RawHubsClient:
1002
1002
  raise TooManyRequestsError(
1003
1003
  headers=dict(_response.headers),
1004
1004
  body=typing.cast(
1005
- typing.Optional[typing.Any],
1005
+ typing.Any,
1006
1006
  parse_obj_as(
1007
- type_=typing.Optional[typing.Any], # type: ignore
1007
+ type_=typing.Any, # type: ignore
1008
1008
  object_=_response.json(),
1009
1009
  ),
1010
1010
  ),
@@ -1013,9 +1013,9 @@ class RawHubsClient:
1013
1013
  raise InternalServerError(
1014
1014
  headers=dict(_response.headers),
1015
1015
  body=typing.cast(
1016
- typing.Optional[typing.Any],
1016
+ typing.Any,
1017
1017
  parse_obj_as(
1018
- type_=typing.Optional[typing.Any], # type: ignore
1018
+ type_=typing.Any, # type: ignore
1019
1019
  object_=_response.json(),
1020
1020
  ),
1021
1021
  ),
@@ -1024,9 +1024,9 @@ class RawHubsClient:
1024
1024
  raise NotImplementedError(
1025
1025
  headers=dict(_response.headers),
1026
1026
  body=typing.cast(
1027
- typing.Optional[typing.Any],
1027
+ typing.Any,
1028
1028
  parse_obj_as(
1029
- type_=typing.Optional[typing.Any], # type: ignore
1029
+ type_=typing.Any, # type: ignore
1030
1030
  object_=_response.json(),
1031
1031
  ),
1032
1032
  ),
@@ -1035,9 +1035,9 @@ class RawHubsClient:
1035
1035
  raise BadGatewayError(
1036
1036
  headers=dict(_response.headers),
1037
1037
  body=typing.cast(
1038
- typing.Optional[typing.Any],
1038
+ typing.Any,
1039
1039
  parse_obj_as(
1040
- type_=typing.Optional[typing.Any], # type: ignore
1040
+ type_=typing.Any, # type: ignore
1041
1041
  object_=_response.json(),
1042
1042
  ),
1043
1043
  ),
@@ -1046,9 +1046,9 @@ class RawHubsClient:
1046
1046
  raise ServiceUnavailableError(
1047
1047
  headers=dict(_response.headers),
1048
1048
  body=typing.cast(
1049
- typing.Optional[typing.Any],
1049
+ typing.Any,
1050
1050
  parse_obj_as(
1051
- type_=typing.Optional[typing.Any], # type: ignore
1051
+ type_=typing.Any, # type: ignore
1052
1052
  object_=_response.json(),
1053
1053
  ),
1054
1054
  ),
@@ -1057,9 +1057,9 @@ class RawHubsClient:
1057
1057
  raise GatewayTimeoutError(
1058
1058
  headers=dict(_response.headers),
1059
1059
  body=typing.cast(
1060
- typing.Optional[typing.Any],
1060
+ typing.Any,
1061
1061
  parse_obj_as(
1062
- type_=typing.Optional[typing.Any], # type: ignore
1062
+ type_=typing.Any, # type: ignore
1063
1063
  object_=_response.json(),
1064
1064
  ),
1065
1065
  ),
@@ -1155,9 +1155,9 @@ class AsyncRawHubsClient:
1155
1155
  raise UnauthorizedError(
1156
1156
  headers=dict(_response.headers),
1157
1157
  body=typing.cast(
1158
- typing.Optional[typing.Any],
1158
+ typing.Any,
1159
1159
  parse_obj_as(
1160
- type_=typing.Optional[typing.Any], # type: ignore
1160
+ type_=typing.Any, # type: ignore
1161
1161
  object_=_response.json(),
1162
1162
  ),
1163
1163
  ),
@@ -1166,9 +1166,9 @@ class AsyncRawHubsClient:
1166
1166
  raise NotFoundError(
1167
1167
  headers=dict(_response.headers),
1168
1168
  body=typing.cast(
1169
- typing.Optional[typing.Any],
1169
+ typing.Any,
1170
1170
  parse_obj_as(
1171
- type_=typing.Optional[typing.Any], # type: ignore
1171
+ type_=typing.Any, # type: ignore
1172
1172
  object_=_response.json(),
1173
1173
  ),
1174
1174
  ),
@@ -1177,9 +1177,9 @@ class AsyncRawHubsClient:
1177
1177
  raise MethodNotAllowedError(
1178
1178
  headers=dict(_response.headers),
1179
1179
  body=typing.cast(
1180
- typing.Optional[typing.Any],
1180
+ typing.Any,
1181
1181
  parse_obj_as(
1182
- type_=typing.Optional[typing.Any], # type: ignore
1182
+ type_=typing.Any, # type: ignore
1183
1183
  object_=_response.json(),
1184
1184
  ),
1185
1185
  ),
@@ -1188,9 +1188,9 @@ class AsyncRawHubsClient:
1188
1188
  raise TooManyRequestsError(
1189
1189
  headers=dict(_response.headers),
1190
1190
  body=typing.cast(
1191
- typing.Optional[typing.Any],
1191
+ typing.Any,
1192
1192
  parse_obj_as(
1193
- type_=typing.Optional[typing.Any], # type: ignore
1193
+ type_=typing.Any, # type: ignore
1194
1194
  object_=_response.json(),
1195
1195
  ),
1196
1196
  ),
@@ -1199,9 +1199,9 @@ class AsyncRawHubsClient:
1199
1199
  raise InternalServerError(
1200
1200
  headers=dict(_response.headers),
1201
1201
  body=typing.cast(
1202
- typing.Optional[typing.Any],
1202
+ typing.Any,
1203
1203
  parse_obj_as(
1204
- type_=typing.Optional[typing.Any], # type: ignore
1204
+ type_=typing.Any, # type: ignore
1205
1205
  object_=_response.json(),
1206
1206
  ),
1207
1207
  ),
@@ -1210,9 +1210,9 @@ class AsyncRawHubsClient:
1210
1210
  raise NotImplementedError(
1211
1211
  headers=dict(_response.headers),
1212
1212
  body=typing.cast(
1213
- typing.Optional[typing.Any],
1213
+ typing.Any,
1214
1214
  parse_obj_as(
1215
- type_=typing.Optional[typing.Any], # type: ignore
1215
+ type_=typing.Any, # type: ignore
1216
1216
  object_=_response.json(),
1217
1217
  ),
1218
1218
  ),
@@ -1221,9 +1221,9 @@ class AsyncRawHubsClient:
1221
1221
  raise BadGatewayError(
1222
1222
  headers=dict(_response.headers),
1223
1223
  body=typing.cast(
1224
- typing.Optional[typing.Any],
1224
+ typing.Any,
1225
1225
  parse_obj_as(
1226
- type_=typing.Optional[typing.Any], # type: ignore
1226
+ type_=typing.Any, # type: ignore
1227
1227
  object_=_response.json(),
1228
1228
  ),
1229
1229
  ),
@@ -1232,9 +1232,9 @@ class AsyncRawHubsClient:
1232
1232
  raise ServiceUnavailableError(
1233
1233
  headers=dict(_response.headers),
1234
1234
  body=typing.cast(
1235
- typing.Optional[typing.Any],
1235
+ typing.Any,
1236
1236
  parse_obj_as(
1237
- type_=typing.Optional[typing.Any], # type: ignore
1237
+ type_=typing.Any, # type: ignore
1238
1238
  object_=_response.json(),
1239
1239
  ),
1240
1240
  ),
@@ -1243,9 +1243,9 @@ class AsyncRawHubsClient:
1243
1243
  raise GatewayTimeoutError(
1244
1244
  headers=dict(_response.headers),
1245
1245
  body=typing.cast(
1246
- typing.Optional[typing.Any],
1246
+ typing.Any,
1247
1247
  parse_obj_as(
1248
- type_=typing.Optional[typing.Any], # type: ignore
1248
+ type_=typing.Any, # type: ignore
1249
1249
  object_=_response.json(),
1250
1250
  ),
1251
1251
  ),
@@ -1315,9 +1315,9 @@ class AsyncRawHubsClient:
1315
1315
  raise UnauthorizedError(
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 AsyncRawHubsClient:
1326
1326
  raise NotFoundError(
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 AsyncRawHubsClient:
1337
1337
  raise MethodNotAllowedError(
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 AsyncRawHubsClient:
1348
1348
  raise TooManyRequestsError(
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 AsyncRawHubsClient:
1359
1359
  raise InternalServerError(
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 AsyncRawHubsClient:
1370
1370
  raise NotImplementedError(
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
  ),
@@ -1381,9 +1381,9 @@ class AsyncRawHubsClient:
1381
1381
  raise BadGatewayError(
1382
1382
  headers=dict(_response.headers),
1383
1383
  body=typing.cast(
1384
- typing.Optional[typing.Any],
1384
+ typing.Any,
1385
1385
  parse_obj_as(
1386
- type_=typing.Optional[typing.Any], # type: ignore
1386
+ type_=typing.Any, # type: ignore
1387
1387
  object_=_response.json(),
1388
1388
  ),
1389
1389
  ),
@@ -1392,9 +1392,9 @@ class AsyncRawHubsClient:
1392
1392
  raise ServiceUnavailableError(
1393
1393
  headers=dict(_response.headers),
1394
1394
  body=typing.cast(
1395
- typing.Optional[typing.Any],
1395
+ typing.Any,
1396
1396
  parse_obj_as(
1397
- type_=typing.Optional[typing.Any], # type: ignore
1397
+ type_=typing.Any, # type: ignore
1398
1398
  object_=_response.json(),
1399
1399
  ),
1400
1400
  ),
@@ -1403,9 +1403,9 @@ class AsyncRawHubsClient:
1403
1403
  raise GatewayTimeoutError(
1404
1404
  headers=dict(_response.headers),
1405
1405
  body=typing.cast(
1406
- typing.Optional[typing.Any],
1406
+ typing.Any,
1407
1407
  parse_obj_as(
1408
- type_=typing.Optional[typing.Any], # type: ignore
1408
+ type_=typing.Any, # type: ignore
1409
1409
  object_=_response.json(),
1410
1410
  ),
1411
1411
  ),
@@ -1496,9 +1496,9 @@ class AsyncRawHubsClient:
1496
1496
  raise UnauthorizedError(
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 AsyncRawHubsClient:
1507
1507
  raise NotFoundError(
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
  ),
@@ -1518,9 +1518,9 @@ class AsyncRawHubsClient:
1518
1518
  raise MethodNotAllowedError(
1519
1519
  headers=dict(_response.headers),
1520
1520
  body=typing.cast(
1521
- typing.Optional[typing.Any],
1521
+ typing.Any,
1522
1522
  parse_obj_as(
1523
- type_=typing.Optional[typing.Any], # type: ignore
1523
+ type_=typing.Any, # type: ignore
1524
1524
  object_=_response.json(),
1525
1525
  ),
1526
1526
  ),
@@ -1529,9 +1529,9 @@ class AsyncRawHubsClient:
1529
1529
  raise TooManyRequestsError(
1530
1530
  headers=dict(_response.headers),
1531
1531
  body=typing.cast(
1532
- typing.Optional[typing.Any],
1532
+ typing.Any,
1533
1533
  parse_obj_as(
1534
- type_=typing.Optional[typing.Any], # type: ignore
1534
+ type_=typing.Any, # type: ignore
1535
1535
  object_=_response.json(),
1536
1536
  ),
1537
1537
  ),
@@ -1540,9 +1540,9 @@ class AsyncRawHubsClient:
1540
1540
  raise InternalServerError(
1541
1541
  headers=dict(_response.headers),
1542
1542
  body=typing.cast(
1543
- typing.Optional[typing.Any],
1543
+ typing.Any,
1544
1544
  parse_obj_as(
1545
- type_=typing.Optional[typing.Any], # type: ignore
1545
+ type_=typing.Any, # type: ignore
1546
1546
  object_=_response.json(),
1547
1547
  ),
1548
1548
  ),
@@ -1551,9 +1551,9 @@ class AsyncRawHubsClient:
1551
1551
  raise NotImplementedError(
1552
1552
  headers=dict(_response.headers),
1553
1553
  body=typing.cast(
1554
- typing.Optional[typing.Any],
1554
+ typing.Any,
1555
1555
  parse_obj_as(
1556
- type_=typing.Optional[typing.Any], # type: ignore
1556
+ type_=typing.Any, # type: ignore
1557
1557
  object_=_response.json(),
1558
1558
  ),
1559
1559
  ),
@@ -1562,9 +1562,9 @@ class AsyncRawHubsClient:
1562
1562
  raise BadGatewayError(
1563
1563
  headers=dict(_response.headers),
1564
1564
  body=typing.cast(
1565
- typing.Optional[typing.Any],
1565
+ typing.Any,
1566
1566
  parse_obj_as(
1567
- type_=typing.Optional[typing.Any], # type: ignore
1567
+ type_=typing.Any, # type: ignore
1568
1568
  object_=_response.json(),
1569
1569
  ),
1570
1570
  ),
@@ -1573,9 +1573,9 @@ class AsyncRawHubsClient:
1573
1573
  raise ServiceUnavailableError(
1574
1574
  headers=dict(_response.headers),
1575
1575
  body=typing.cast(
1576
- typing.Optional[typing.Any],
1576
+ typing.Any,
1577
1577
  parse_obj_as(
1578
- type_=typing.Optional[typing.Any], # type: ignore
1578
+ type_=typing.Any, # type: ignore
1579
1579
  object_=_response.json(),
1580
1580
  ),
1581
1581
  ),
@@ -1584,9 +1584,9 @@ class AsyncRawHubsClient:
1584
1584
  raise GatewayTimeoutError(
1585
1585
  headers=dict(_response.headers),
1586
1586
  body=typing.cast(
1587
- typing.Optional[typing.Any],
1587
+ typing.Any,
1588
1588
  parse_obj_as(
1589
- type_=typing.Optional[typing.Any], # type: ignore
1589
+ type_=typing.Any, # type: ignore
1590
1590
  object_=_response.json(),
1591
1591
  ),
1592
1592
  ),
@@ -1653,9 +1653,9 @@ class AsyncRawHubsClient:
1653
1653
  raise UnauthorizedError(
1654
1654
  headers=dict(_response.headers),
1655
1655
  body=typing.cast(
1656
- typing.Optional[typing.Any],
1656
+ typing.Any,
1657
1657
  parse_obj_as(
1658
- type_=typing.Optional[typing.Any], # type: ignore
1658
+ type_=typing.Any, # type: ignore
1659
1659
  object_=_response.json(),
1660
1660
  ),
1661
1661
  ),
@@ -1664,9 +1664,9 @@ class AsyncRawHubsClient:
1664
1664
  raise NotFoundError(
1665
1665
  headers=dict(_response.headers),
1666
1666
  body=typing.cast(
1667
- typing.Optional[typing.Any],
1667
+ typing.Any,
1668
1668
  parse_obj_as(
1669
- type_=typing.Optional[typing.Any], # type: ignore
1669
+ type_=typing.Any, # type: ignore
1670
1670
  object_=_response.json(),
1671
1671
  ),
1672
1672
  ),
@@ -1675,9 +1675,9 @@ class AsyncRawHubsClient:
1675
1675
  raise MethodNotAllowedError(
1676
1676
  headers=dict(_response.headers),
1677
1677
  body=typing.cast(
1678
- typing.Optional[typing.Any],
1678
+ typing.Any,
1679
1679
  parse_obj_as(
1680
- type_=typing.Optional[typing.Any], # type: ignore
1680
+ type_=typing.Any, # type: ignore
1681
1681
  object_=_response.json(),
1682
1682
  ),
1683
1683
  ),
@@ -1686,9 +1686,9 @@ class AsyncRawHubsClient:
1686
1686
  raise TooManyRequestsError(
1687
1687
  headers=dict(_response.headers),
1688
1688
  body=typing.cast(
1689
- typing.Optional[typing.Any],
1689
+ typing.Any,
1690
1690
  parse_obj_as(
1691
- type_=typing.Optional[typing.Any], # type: ignore
1691
+ type_=typing.Any, # type: ignore
1692
1692
  object_=_response.json(),
1693
1693
  ),
1694
1694
  ),
@@ -1697,9 +1697,9 @@ class AsyncRawHubsClient:
1697
1697
  raise InternalServerError(
1698
1698
  headers=dict(_response.headers),
1699
1699
  body=typing.cast(
1700
- typing.Optional[typing.Any],
1700
+ typing.Any,
1701
1701
  parse_obj_as(
1702
- type_=typing.Optional[typing.Any], # type: ignore
1702
+ type_=typing.Any, # type: ignore
1703
1703
  object_=_response.json(),
1704
1704
  ),
1705
1705
  ),
@@ -1708,9 +1708,9 @@ class AsyncRawHubsClient:
1708
1708
  raise NotImplementedError(
1709
1709
  headers=dict(_response.headers),
1710
1710
  body=typing.cast(
1711
- typing.Optional[typing.Any],
1711
+ typing.Any,
1712
1712
  parse_obj_as(
1713
- type_=typing.Optional[typing.Any], # type: ignore
1713
+ type_=typing.Any, # type: ignore
1714
1714
  object_=_response.json(),
1715
1715
  ),
1716
1716
  ),
@@ -1719,9 +1719,9 @@ class AsyncRawHubsClient:
1719
1719
  raise BadGatewayError(
1720
1720
  headers=dict(_response.headers),
1721
1721
  body=typing.cast(
1722
- typing.Optional[typing.Any],
1722
+ typing.Any,
1723
1723
  parse_obj_as(
1724
- type_=typing.Optional[typing.Any], # type: ignore
1724
+ type_=typing.Any, # type: ignore
1725
1725
  object_=_response.json(),
1726
1726
  ),
1727
1727
  ),
@@ -1730,9 +1730,9 @@ class AsyncRawHubsClient:
1730
1730
  raise ServiceUnavailableError(
1731
1731
  headers=dict(_response.headers),
1732
1732
  body=typing.cast(
1733
- typing.Optional[typing.Any],
1733
+ typing.Any,
1734
1734
  parse_obj_as(
1735
- type_=typing.Optional[typing.Any], # type: ignore
1735
+ type_=typing.Any, # type: ignore
1736
1736
  object_=_response.json(),
1737
1737
  ),
1738
1738
  ),
@@ -1741,9 +1741,9 @@ class AsyncRawHubsClient:
1741
1741
  raise GatewayTimeoutError(
1742
1742
  headers=dict(_response.headers),
1743
1743
  body=typing.cast(
1744
- typing.Optional[typing.Any],
1744
+ typing.Any,
1745
1745
  parse_obj_as(
1746
- type_=typing.Optional[typing.Any], # type: ignore
1746
+ type_=typing.Any, # type: ignore
1747
1747
  object_=_response.json(),
1748
1748
  ),
1749
1749
  ),
@@ -1834,9 +1834,9 @@ class AsyncRawHubsClient:
1834
1834
  raise UnauthorizedError(
1835
1835
  headers=dict(_response.headers),
1836
1836
  body=typing.cast(
1837
- typing.Optional[typing.Any],
1837
+ typing.Any,
1838
1838
  parse_obj_as(
1839
- type_=typing.Optional[typing.Any], # type: ignore
1839
+ type_=typing.Any, # type: ignore
1840
1840
  object_=_response.json(),
1841
1841
  ),
1842
1842
  ),
@@ -1845,9 +1845,9 @@ class AsyncRawHubsClient:
1845
1845
  raise NotFoundError(
1846
1846
  headers=dict(_response.headers),
1847
1847
  body=typing.cast(
1848
- typing.Optional[typing.Any],
1848
+ typing.Any,
1849
1849
  parse_obj_as(
1850
- type_=typing.Optional[typing.Any], # type: ignore
1850
+ type_=typing.Any, # type: ignore
1851
1851
  object_=_response.json(),
1852
1852
  ),
1853
1853
  ),
@@ -1856,9 +1856,9 @@ class AsyncRawHubsClient:
1856
1856
  raise MethodNotAllowedError(
1857
1857
  headers=dict(_response.headers),
1858
1858
  body=typing.cast(
1859
- typing.Optional[typing.Any],
1859
+ typing.Any,
1860
1860
  parse_obj_as(
1861
- type_=typing.Optional[typing.Any], # type: ignore
1861
+ type_=typing.Any, # type: ignore
1862
1862
  object_=_response.json(),
1863
1863
  ),
1864
1864
  ),
@@ -1867,9 +1867,9 @@ class AsyncRawHubsClient:
1867
1867
  raise TooManyRequestsError(
1868
1868
  headers=dict(_response.headers),
1869
1869
  body=typing.cast(
1870
- typing.Optional[typing.Any],
1870
+ typing.Any,
1871
1871
  parse_obj_as(
1872
- type_=typing.Optional[typing.Any], # type: ignore
1872
+ type_=typing.Any, # type: ignore
1873
1873
  object_=_response.json(),
1874
1874
  ),
1875
1875
  ),
@@ -1878,9 +1878,9 @@ class AsyncRawHubsClient:
1878
1878
  raise InternalServerError(
1879
1879
  headers=dict(_response.headers),
1880
1880
  body=typing.cast(
1881
- typing.Optional[typing.Any],
1881
+ typing.Any,
1882
1882
  parse_obj_as(
1883
- type_=typing.Optional[typing.Any], # type: ignore
1883
+ type_=typing.Any, # type: ignore
1884
1884
  object_=_response.json(),
1885
1885
  ),
1886
1886
  ),
@@ -1889,9 +1889,9 @@ class AsyncRawHubsClient:
1889
1889
  raise NotImplementedError(
1890
1890
  headers=dict(_response.headers),
1891
1891
  body=typing.cast(
1892
- typing.Optional[typing.Any],
1892
+ typing.Any,
1893
1893
  parse_obj_as(
1894
- type_=typing.Optional[typing.Any], # type: ignore
1894
+ type_=typing.Any, # type: ignore
1895
1895
  object_=_response.json(),
1896
1896
  ),
1897
1897
  ),
@@ -1900,9 +1900,9 @@ class AsyncRawHubsClient:
1900
1900
  raise BadGatewayError(
1901
1901
  headers=dict(_response.headers),
1902
1902
  body=typing.cast(
1903
- typing.Optional[typing.Any],
1903
+ typing.Any,
1904
1904
  parse_obj_as(
1905
- type_=typing.Optional[typing.Any], # type: ignore
1905
+ type_=typing.Any, # type: ignore
1906
1906
  object_=_response.json(),
1907
1907
  ),
1908
1908
  ),
@@ -1911,9 +1911,9 @@ class AsyncRawHubsClient:
1911
1911
  raise ServiceUnavailableError(
1912
1912
  headers=dict(_response.headers),
1913
1913
  body=typing.cast(
1914
- typing.Optional[typing.Any],
1914
+ typing.Any,
1915
1915
  parse_obj_as(
1916
- type_=typing.Optional[typing.Any], # type: ignore
1916
+ type_=typing.Any, # type: ignore
1917
1917
  object_=_response.json(),
1918
1918
  ),
1919
1919
  ),
@@ -1922,9 +1922,9 @@ class AsyncRawHubsClient:
1922
1922
  raise GatewayTimeoutError(
1923
1923
  headers=dict(_response.headers),
1924
1924
  body=typing.cast(
1925
- typing.Optional[typing.Any],
1925
+ typing.Any,
1926
1926
  parse_obj_as(
1927
- type_=typing.Optional[typing.Any], # type: ignore
1927
+ type_=typing.Any, # type: ignore
1928
1928
  object_=_response.json(),
1929
1929
  ),
1930
1930
  ),
@@ -2005,9 +2005,9 @@ class AsyncRawHubsClient:
2005
2005
  raise UnauthorizedError(
2006
2006
  headers=dict(_response.headers),
2007
2007
  body=typing.cast(
2008
- typing.Optional[typing.Any],
2008
+ typing.Any,
2009
2009
  parse_obj_as(
2010
- type_=typing.Optional[typing.Any], # type: ignore
2010
+ type_=typing.Any, # type: ignore
2011
2011
  object_=_response.json(),
2012
2012
  ),
2013
2013
  ),
@@ -2016,9 +2016,9 @@ class AsyncRawHubsClient:
2016
2016
  raise NotFoundError(
2017
2017
  headers=dict(_response.headers),
2018
2018
  body=typing.cast(
2019
- typing.Optional[typing.Any],
2019
+ typing.Any,
2020
2020
  parse_obj_as(
2021
- type_=typing.Optional[typing.Any], # type: ignore
2021
+ type_=typing.Any, # type: ignore
2022
2022
  object_=_response.json(),
2023
2023
  ),
2024
2024
  ),
@@ -2027,9 +2027,9 @@ class AsyncRawHubsClient:
2027
2027
  raise MethodNotAllowedError(
2028
2028
  headers=dict(_response.headers),
2029
2029
  body=typing.cast(
2030
- typing.Optional[typing.Any],
2030
+ typing.Any,
2031
2031
  parse_obj_as(
2032
- type_=typing.Optional[typing.Any], # type: ignore
2032
+ type_=typing.Any, # type: ignore
2033
2033
  object_=_response.json(),
2034
2034
  ),
2035
2035
  ),
@@ -2038,9 +2038,9 @@ class AsyncRawHubsClient:
2038
2038
  raise TooManyRequestsError(
2039
2039
  headers=dict(_response.headers),
2040
2040
  body=typing.cast(
2041
- typing.Optional[typing.Any],
2041
+ typing.Any,
2042
2042
  parse_obj_as(
2043
- type_=typing.Optional[typing.Any], # type: ignore
2043
+ type_=typing.Any, # type: ignore
2044
2044
  object_=_response.json(),
2045
2045
  ),
2046
2046
  ),
@@ -2049,9 +2049,9 @@ class AsyncRawHubsClient:
2049
2049
  raise InternalServerError(
2050
2050
  headers=dict(_response.headers),
2051
2051
  body=typing.cast(
2052
- typing.Optional[typing.Any],
2052
+ typing.Any,
2053
2053
  parse_obj_as(
2054
- type_=typing.Optional[typing.Any], # type: ignore
2054
+ type_=typing.Any, # type: ignore
2055
2055
  object_=_response.json(),
2056
2056
  ),
2057
2057
  ),
@@ -2060,9 +2060,9 @@ class AsyncRawHubsClient:
2060
2060
  raise NotImplementedError(
2061
2061
  headers=dict(_response.headers),
2062
2062
  body=typing.cast(
2063
- typing.Optional[typing.Any],
2063
+ typing.Any,
2064
2064
  parse_obj_as(
2065
- type_=typing.Optional[typing.Any], # type: ignore
2065
+ type_=typing.Any, # type: ignore
2066
2066
  object_=_response.json(),
2067
2067
  ),
2068
2068
  ),
@@ -2071,9 +2071,9 @@ class AsyncRawHubsClient:
2071
2071
  raise BadGatewayError(
2072
2072
  headers=dict(_response.headers),
2073
2073
  body=typing.cast(
2074
- typing.Optional[typing.Any],
2074
+ typing.Any,
2075
2075
  parse_obj_as(
2076
- type_=typing.Optional[typing.Any], # type: ignore
2076
+ type_=typing.Any, # type: ignore
2077
2077
  object_=_response.json(),
2078
2078
  ),
2079
2079
  ),
@@ -2082,9 +2082,9 @@ class AsyncRawHubsClient:
2082
2082
  raise ServiceUnavailableError(
2083
2083
  headers=dict(_response.headers),
2084
2084
  body=typing.cast(
2085
- typing.Optional[typing.Any],
2085
+ typing.Any,
2086
2086
  parse_obj_as(
2087
- type_=typing.Optional[typing.Any], # type: ignore
2087
+ type_=typing.Any, # type: ignore
2088
2088
  object_=_response.json(),
2089
2089
  ),
2090
2090
  ),
@@ -2093,9 +2093,9 @@ class AsyncRawHubsClient:
2093
2093
  raise GatewayTimeoutError(
2094
2094
  headers=dict(_response.headers),
2095
2095
  body=typing.cast(
2096
- typing.Optional[typing.Any],
2096
+ typing.Any,
2097
2097
  parse_obj_as(
2098
- type_=typing.Optional[typing.Any], # type: ignore
2098
+ type_=typing.Any, # type: ignore
2099
2099
  object_=_response.json(),
2100
2100
  ),
2101
2101
  ),