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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. samsara/__init__.py +69 -9
  2. samsara/addresses/client.py +7 -14
  3. samsara/addresses/raw_client.py +7 -11
  4. samsara/alerts/client.py +2 -10
  5. samsara/alerts/raw_client.py +180 -180
  6. samsara/assets/__init__.py +3 -3
  7. samsara/assets/client.py +14 -45
  8. samsara/assets/raw_client.py +156 -160
  9. samsara/assets/types/__init__.py +3 -3
  10. samsara/assets/types/{assets_list_request_type.py → list_assets_request_type.py} +1 -1
  11. samsara/attributes/client.py +0 -4
  12. samsara/beta_ap_is/client.py +137 -187
  13. samsara/beta_ap_is/raw_client.py +2035 -1702
  14. samsara/carrier_proposed_assignments/client.py +2 -10
  15. samsara/client.py +5 -0
  16. samsara/coaching/client.py +2 -22
  17. samsara/coaching/raw_client.py +108 -108
  18. samsara/contacts/client.py +2 -8
  19. samsara/core/__init__.py +5 -0
  20. samsara/core/client_wrapper.py +18 -10
  21. samsara/core/custom_pagination.py +152 -0
  22. samsara/core/http_client.py +176 -90
  23. samsara/core/http_sse/__init__.py +42 -0
  24. samsara/core/http_sse/_api.py +112 -0
  25. samsara/core/http_sse/_decoders.py +61 -0
  26. samsara/core/http_sse/_exceptions.py +7 -0
  27. samsara/core/http_sse/_models.py +17 -0
  28. samsara/core/pagination.py +14 -14
  29. samsara/core/pydantic_utilities.py +3 -1
  30. samsara/documents/client.py +2 -12
  31. samsara/documents/raw_client.py +180 -180
  32. samsara/driver_qr_codes/raw_client.py +108 -108
  33. samsara/driver_vehicle_assignments/client.py +0 -12
  34. samsara/driver_vehicle_assignments/raw_client.py +144 -144
  35. samsara/drivers/__init__.py +3 -3
  36. samsara/drivers/client.py +12 -23
  37. samsara/drivers/raw_client.py +48 -52
  38. samsara/drivers/types/__init__.py +3 -3
  39. samsara/drivers/types/{drivers_list_request_driver_activation_status.py → list_drivers_request_driver_activation_status.py} +1 -1
  40. samsara/equipment/client.py +6 -22
  41. samsara/errors/bad_gateway_error.py +1 -1
  42. samsara/errors/gateway_timeout_error.py +1 -1
  43. samsara/errors/internal_server_error.py +1 -1
  44. samsara/errors/method_not_allowed_error.py +1 -1
  45. samsara/errors/not_found_error.py +1 -1
  46. samsara/errors/not_implemented_error.py +1 -1
  47. samsara/errors/service_unavailable_error.py +1 -1
  48. samsara/errors/too_many_requests_error.py +1 -1
  49. samsara/errors/unauthorized_error.py +1 -1
  50. samsara/forms/__init__.py +9 -3
  51. samsara/forms/client.py +17 -10
  52. samsara/forms/raw_client.py +265 -254
  53. samsara/forms/types/__init__.py +6 -2
  54. samsara/forms/types/form_submissions_post_form_submission_request_body_status.py +5 -0
  55. samsara/fuel_and_energy/client.py +0 -30
  56. samsara/fuel_and_energy/raw_client.py +180 -180
  57. samsara/gateways/client.py +2 -6
  58. samsara/gateways/raw_client.py +108 -108
  59. samsara/hours_of_service/__init__.py +6 -3
  60. samsara/hours_of_service/client.py +13 -52
  61. samsara/hours_of_service/raw_client.py +77 -76
  62. samsara/hours_of_service/types/__init__.py +4 -2
  63. samsara/hours_of_service/types/get_hos_daily_logs_request_expand.py +5 -0
  64. samsara/hubs/client.py +2 -94
  65. samsara/hubs/raw_client.py +216 -216
  66. samsara/idling/client.py +0 -18
  67. samsara/idling/raw_client.py +36 -36
  68. samsara/ifta/client.py +4 -34
  69. samsara/ifta/raw_client.py +144 -144
  70. samsara/industrial/client.py +12 -56
  71. samsara/industrial/raw_client.py +40 -48
  72. samsara/issues/client.py +0 -4
  73. samsara/issues/raw_client.py +108 -108
  74. samsara/legacy_ap_is/client.py +4 -56
  75. samsara/legacy_ap_is/raw_client.py +108 -108
  76. samsara/live_sharing_links/client.py +2 -10
  77. samsara/live_sharing_links/raw_client.py +144 -144
  78. samsara/location_and_speed/client.py +2 -20
  79. samsara/location_and_speed/raw_client.py +36 -36
  80. samsara/maintenance/__init__.py +3 -3
  81. samsara/maintenance/client.py +15 -30
  82. samsara/maintenance/raw_client.py +191 -182
  83. samsara/maintenance/types/__init__.py +6 -2
  84. samsara/maintenance/types/create_dvir_request_type.py +5 -0
  85. samsara/media/client.py +0 -4
  86. samsara/media/raw_client.py +108 -108
  87. samsara/messages/client.py +2 -8
  88. samsara/plans/client.py +0 -21
  89. samsara/plans/raw_client.py +72 -72
  90. samsara/preview_ap_is/client.py +0 -140
  91. samsara/preview_ap_is/raw_client.py +72 -430
  92. samsara/route_events/client.py +2 -12
  93. samsara/route_events/raw_client.py +36 -36
  94. samsara/routes/__init__.py +30 -0
  95. samsara/routes/client.py +7 -35
  96. samsara/routes/raw_client.py +257 -256
  97. samsara/routes/types/__init__.py +34 -0
  98. samsara/routes/types/get_routes_feed_request_expand.py +5 -0
  99. samsara/safety/client.py +2 -10
  100. samsara/safety/raw_client.py +36 -36
  101. samsara/settings/raw_client.py +180 -180
  102. samsara/speeding_intervals/raw_client.py +36 -36
  103. samsara/tachograph_eu_only/client.py +0 -6
  104. samsara/tags/client.py +2 -8
  105. samsara/trailer_assignments/client.py +2 -18
  106. samsara/trailers/client.py +2 -12
  107. samsara/trailers/raw_client.py +180 -180
  108. samsara/types/__init__.py +54 -0
  109. samsara/types/create_routes_stop_request_object_request_body.py +7 -0
  110. samsara/types/driver_assignment_object_response_body.py +2 -1
  111. samsara/types/driver_assignment_object_response_body_assignment_type.py +5 -0
  112. samsara/types/driver_external_ids.py +1 -1
  113. samsara/types/forms_approval_config_object_response_body.py +2 -1
  114. samsara/types/forms_approval_config_object_response_body_type.py +5 -0
  115. samsara/types/fuel_level_trigger_details_object_request_body.py +2 -1
  116. samsara/types/fuel_level_trigger_details_object_request_body_operation.py +5 -0
  117. samsara/types/fuel_level_trigger_details_object_response_body.py +4 -1
  118. samsara/types/fuel_level_trigger_details_object_response_body_operation.py +5 -0
  119. samsara/types/idling_event_object_v_20251023_response_body.py +4 -3
  120. samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
  121. samsara/types/patch_issue_request_body_assigned_to_request_body.py +2 -1
  122. samsara/types/patch_issue_request_body_assigned_to_request_body_type.py +5 -0
  123. samsara/types/reading_datapoint_request_body.py +5 -4
  124. samsara/types/reading_datapoint_request_body_entity_type.py +5 -0
  125. samsara/types/reading_history_response_body.py +1 -1
  126. samsara/types/reading_snapshot_response_body.py +1 -1
  127. samsara/types/resolved_by.py +2 -1
  128. samsara/types/resolved_by_type.py +5 -0
  129. samsara/types/route_feed_object_response_body.py +2 -1
  130. samsara/types/route_feed_object_response_body_type.py +5 -0
  131. samsara/types/route_settings_request_body.py +8 -0
  132. samsara/types/route_settings_request_body_sequencing_method.py +7 -0
  133. samsara/types/route_settings_response_body.py +8 -0
  134. samsara/types/route_settings_response_body_sequencing_method.py +7 -0
  135. samsara/types/route_stop_details_object_response_body.py +2 -1
  136. samsara/types/route_stop_details_object_response_body_type.py +5 -0
  137. samsara/types/routes_stop_response_object_response_body.py +7 -0
  138. samsara/types/training_learner_object_response_body.py +2 -1
  139. samsara/types/training_learner_object_response_body_type.py +5 -0
  140. samsara/types/update_routes_stop_request_object_request_body.py +7 -0
  141. samsara/types/vehicle_assignment_object_response_body.py +4 -3
  142. samsara/types/vehicle_assignment_object_response_body_assignment_type.py +5 -0
  143. samsara/types/vehicle_external_ids.py +1 -1
  144. samsara/types/work_order_money_object_request_body.py +2 -1
  145. samsara/types/work_order_money_object_request_body_currency.py +5 -0
  146. samsara/types/work_order_money_object_response_body.py +2 -1
  147. samsara/types/work_order_money_object_response_body_currency.py +5 -0
  148. samsara/users/client.py +4 -16
  149. samsara/vehicle_locations/client.py +4 -16
  150. samsara/vehicles/client.py +7 -22
  151. samsara/vehicles/raw_client.py +43 -47
  152. samsara/webhooks/client.py +2 -10
  153. samsara/webhooks/raw_client.py +180 -180
  154. samsara/work_orders/client.py +4 -18
  155. samsara/work_orders/raw_client.py +216 -216
  156. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
  157. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/RECORD +159 -132
  158. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
  159. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
@@ -84,9 +84,9 @@ class RawDocumentsClient:
84
84
  raise UnauthorizedError(
85
85
  headers=dict(_response.headers),
86
86
  body=typing.cast(
87
- typing.Optional[typing.Any],
87
+ typing.Any,
88
88
  parse_obj_as(
89
- type_=typing.Optional[typing.Any], # type: ignore
89
+ type_=typing.Any, # type: ignore
90
90
  object_=_response.json(),
91
91
  ),
92
92
  ),
@@ -95,9 +95,9 @@ class RawDocumentsClient:
95
95
  raise NotFoundError(
96
96
  headers=dict(_response.headers),
97
97
  body=typing.cast(
98
- typing.Optional[typing.Any],
98
+ typing.Any,
99
99
  parse_obj_as(
100
- type_=typing.Optional[typing.Any], # type: ignore
100
+ type_=typing.Any, # type: ignore
101
101
  object_=_response.json(),
102
102
  ),
103
103
  ),
@@ -106,9 +106,9 @@ class RawDocumentsClient:
106
106
  raise MethodNotAllowedError(
107
107
  headers=dict(_response.headers),
108
108
  body=typing.cast(
109
- typing.Optional[typing.Any],
109
+ typing.Any,
110
110
  parse_obj_as(
111
- type_=typing.Optional[typing.Any], # type: ignore
111
+ type_=typing.Any, # type: ignore
112
112
  object_=_response.json(),
113
113
  ),
114
114
  ),
@@ -117,9 +117,9 @@ class RawDocumentsClient:
117
117
  raise TooManyRequestsError(
118
118
  headers=dict(_response.headers),
119
119
  body=typing.cast(
120
- typing.Optional[typing.Any],
120
+ typing.Any,
121
121
  parse_obj_as(
122
- type_=typing.Optional[typing.Any], # type: ignore
122
+ type_=typing.Any, # type: ignore
123
123
  object_=_response.json(),
124
124
  ),
125
125
  ),
@@ -128,9 +128,9 @@ class RawDocumentsClient:
128
128
  raise InternalServerError(
129
129
  headers=dict(_response.headers),
130
130
  body=typing.cast(
131
- typing.Optional[typing.Any],
131
+ typing.Any,
132
132
  parse_obj_as(
133
- type_=typing.Optional[typing.Any], # type: ignore
133
+ type_=typing.Any, # type: ignore
134
134
  object_=_response.json(),
135
135
  ),
136
136
  ),
@@ -139,9 +139,9 @@ class RawDocumentsClient:
139
139
  raise NotImplementedError(
140
140
  headers=dict(_response.headers),
141
141
  body=typing.cast(
142
- typing.Optional[typing.Any],
142
+ typing.Any,
143
143
  parse_obj_as(
144
- type_=typing.Optional[typing.Any], # type: ignore
144
+ type_=typing.Any, # type: ignore
145
145
  object_=_response.json(),
146
146
  ),
147
147
  ),
@@ -150,9 +150,9 @@ class RawDocumentsClient:
150
150
  raise BadGatewayError(
151
151
  headers=dict(_response.headers),
152
152
  body=typing.cast(
153
- typing.Optional[typing.Any],
153
+ typing.Any,
154
154
  parse_obj_as(
155
- type_=typing.Optional[typing.Any], # type: ignore
155
+ type_=typing.Any, # type: ignore
156
156
  object_=_response.json(),
157
157
  ),
158
158
  ),
@@ -161,9 +161,9 @@ class RawDocumentsClient:
161
161
  raise ServiceUnavailableError(
162
162
  headers=dict(_response.headers),
163
163
  body=typing.cast(
164
- typing.Optional[typing.Any],
164
+ typing.Any,
165
165
  parse_obj_as(
166
- type_=typing.Optional[typing.Any], # type: ignore
166
+ type_=typing.Any, # type: ignore
167
167
  object_=_response.json(),
168
168
  ),
169
169
  ),
@@ -172,9 +172,9 @@ class RawDocumentsClient:
172
172
  raise GatewayTimeoutError(
173
173
  headers=dict(_response.headers),
174
174
  body=typing.cast(
175
- typing.Optional[typing.Any],
175
+ typing.Any,
176
176
  parse_obj_as(
177
- type_=typing.Optional[typing.Any], # type: ignore
177
+ type_=typing.Any, # type: ignore
178
178
  object_=_response.json(),
179
179
  ),
180
180
  ),
@@ -255,9 +255,9 @@ class RawDocumentsClient:
255
255
  raise UnauthorizedError(
256
256
  headers=dict(_response.headers),
257
257
  body=typing.cast(
258
- typing.Optional[typing.Any],
258
+ typing.Any,
259
259
  parse_obj_as(
260
- type_=typing.Optional[typing.Any], # type: ignore
260
+ type_=typing.Any, # type: ignore
261
261
  object_=_response.json(),
262
262
  ),
263
263
  ),
@@ -266,9 +266,9 @@ class RawDocumentsClient:
266
266
  raise NotFoundError(
267
267
  headers=dict(_response.headers),
268
268
  body=typing.cast(
269
- typing.Optional[typing.Any],
269
+ typing.Any,
270
270
  parse_obj_as(
271
- type_=typing.Optional[typing.Any], # type: ignore
271
+ type_=typing.Any, # type: ignore
272
272
  object_=_response.json(),
273
273
  ),
274
274
  ),
@@ -277,9 +277,9 @@ class RawDocumentsClient:
277
277
  raise MethodNotAllowedError(
278
278
  headers=dict(_response.headers),
279
279
  body=typing.cast(
280
- typing.Optional[typing.Any],
280
+ typing.Any,
281
281
  parse_obj_as(
282
- type_=typing.Optional[typing.Any], # type: ignore
282
+ type_=typing.Any, # type: ignore
283
283
  object_=_response.json(),
284
284
  ),
285
285
  ),
@@ -288,9 +288,9 @@ class RawDocumentsClient:
288
288
  raise TooManyRequestsError(
289
289
  headers=dict(_response.headers),
290
290
  body=typing.cast(
291
- typing.Optional[typing.Any],
291
+ typing.Any,
292
292
  parse_obj_as(
293
- type_=typing.Optional[typing.Any], # type: ignore
293
+ type_=typing.Any, # type: ignore
294
294
  object_=_response.json(),
295
295
  ),
296
296
  ),
@@ -299,9 +299,9 @@ class RawDocumentsClient:
299
299
  raise InternalServerError(
300
300
  headers=dict(_response.headers),
301
301
  body=typing.cast(
302
- typing.Optional[typing.Any],
302
+ typing.Any,
303
303
  parse_obj_as(
304
- type_=typing.Optional[typing.Any], # type: ignore
304
+ type_=typing.Any, # type: ignore
305
305
  object_=_response.json(),
306
306
  ),
307
307
  ),
@@ -310,9 +310,9 @@ class RawDocumentsClient:
310
310
  raise NotImplementedError(
311
311
  headers=dict(_response.headers),
312
312
  body=typing.cast(
313
- typing.Optional[typing.Any],
313
+ typing.Any,
314
314
  parse_obj_as(
315
- type_=typing.Optional[typing.Any], # type: ignore
315
+ type_=typing.Any, # type: ignore
316
316
  object_=_response.json(),
317
317
  ),
318
318
  ),
@@ -321,9 +321,9 @@ class RawDocumentsClient:
321
321
  raise BadGatewayError(
322
322
  headers=dict(_response.headers),
323
323
  body=typing.cast(
324
- typing.Optional[typing.Any],
324
+ typing.Any,
325
325
  parse_obj_as(
326
- type_=typing.Optional[typing.Any], # type: ignore
326
+ type_=typing.Any, # type: ignore
327
327
  object_=_response.json(),
328
328
  ),
329
329
  ),
@@ -332,9 +332,9 @@ class RawDocumentsClient:
332
332
  raise ServiceUnavailableError(
333
333
  headers=dict(_response.headers),
334
334
  body=typing.cast(
335
- typing.Optional[typing.Any],
335
+ typing.Any,
336
336
  parse_obj_as(
337
- type_=typing.Optional[typing.Any], # type: ignore
337
+ type_=typing.Any, # type: ignore
338
338
  object_=_response.json(),
339
339
  ),
340
340
  ),
@@ -343,9 +343,9 @@ class RawDocumentsClient:
343
343
  raise GatewayTimeoutError(
344
344
  headers=dict(_response.headers),
345
345
  body=typing.cast(
346
- typing.Optional[typing.Any],
346
+ typing.Any,
347
347
  parse_obj_as(
348
- type_=typing.Optional[typing.Any], # type: ignore
348
+ type_=typing.Any, # type: ignore
349
349
  object_=_response.json(),
350
350
  ),
351
351
  ),
@@ -447,9 +447,9 @@ class RawDocumentsClient:
447
447
  raise UnauthorizedError(
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 RawDocumentsClient:
458
458
  raise NotFoundError(
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 RawDocumentsClient:
469
469
  raise MethodNotAllowedError(
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 RawDocumentsClient:
480
480
  raise TooManyRequestsError(
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 RawDocumentsClient:
491
491
  raise InternalServerError(
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 RawDocumentsClient:
502
502
  raise NotImplementedError(
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 RawDocumentsClient:
513
513
  raise BadGatewayError(
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 RawDocumentsClient:
524
524
  raise ServiceUnavailableError(
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
  ),
@@ -535,9 +535,9 @@ class RawDocumentsClient:
535
535
  raise GatewayTimeoutError(
536
536
  headers=dict(_response.headers),
537
537
  body=typing.cast(
538
- typing.Optional[typing.Any],
538
+ typing.Any,
539
539
  parse_obj_as(
540
- type_=typing.Optional[typing.Any], # type: ignore
540
+ type_=typing.Any, # type: ignore
541
541
  object_=_response.json(),
542
542
  ),
543
543
  ),
@@ -685,9 +685,9 @@ class RawDocumentsClient:
685
685
  raise UnauthorizedError(
686
686
  headers=dict(_response.headers),
687
687
  body=typing.cast(
688
- typing.Optional[typing.Any],
688
+ typing.Any,
689
689
  parse_obj_as(
690
- type_=typing.Optional[typing.Any], # type: ignore
690
+ type_=typing.Any, # type: ignore
691
691
  object_=_response.json(),
692
692
  ),
693
693
  ),
@@ -696,9 +696,9 @@ class RawDocumentsClient:
696
696
  raise NotFoundError(
697
697
  headers=dict(_response.headers),
698
698
  body=typing.cast(
699
- typing.Optional[typing.Any],
699
+ typing.Any,
700
700
  parse_obj_as(
701
- type_=typing.Optional[typing.Any], # type: ignore
701
+ type_=typing.Any, # type: ignore
702
702
  object_=_response.json(),
703
703
  ),
704
704
  ),
@@ -707,9 +707,9 @@ class RawDocumentsClient:
707
707
  raise MethodNotAllowedError(
708
708
  headers=dict(_response.headers),
709
709
  body=typing.cast(
710
- typing.Optional[typing.Any],
710
+ typing.Any,
711
711
  parse_obj_as(
712
- type_=typing.Optional[typing.Any], # type: ignore
712
+ type_=typing.Any, # type: ignore
713
713
  object_=_response.json(),
714
714
  ),
715
715
  ),
@@ -718,9 +718,9 @@ class RawDocumentsClient:
718
718
  raise TooManyRequestsError(
719
719
  headers=dict(_response.headers),
720
720
  body=typing.cast(
721
- typing.Optional[typing.Any],
721
+ typing.Any,
722
722
  parse_obj_as(
723
- type_=typing.Optional[typing.Any], # type: ignore
723
+ type_=typing.Any, # type: ignore
724
724
  object_=_response.json(),
725
725
  ),
726
726
  ),
@@ -729,9 +729,9 @@ class RawDocumentsClient:
729
729
  raise InternalServerError(
730
730
  headers=dict(_response.headers),
731
731
  body=typing.cast(
732
- typing.Optional[typing.Any],
732
+ typing.Any,
733
733
  parse_obj_as(
734
- type_=typing.Optional[typing.Any], # type: ignore
734
+ type_=typing.Any, # type: ignore
735
735
  object_=_response.json(),
736
736
  ),
737
737
  ),
@@ -740,9 +740,9 @@ class RawDocumentsClient:
740
740
  raise NotImplementedError(
741
741
  headers=dict(_response.headers),
742
742
  body=typing.cast(
743
- typing.Optional[typing.Any],
743
+ typing.Any,
744
744
  parse_obj_as(
745
- type_=typing.Optional[typing.Any], # type: ignore
745
+ type_=typing.Any, # type: ignore
746
746
  object_=_response.json(),
747
747
  ),
748
748
  ),
@@ -751,9 +751,9 @@ class RawDocumentsClient:
751
751
  raise BadGatewayError(
752
752
  headers=dict(_response.headers),
753
753
  body=typing.cast(
754
- typing.Optional[typing.Any],
754
+ typing.Any,
755
755
  parse_obj_as(
756
- type_=typing.Optional[typing.Any], # type: ignore
756
+ type_=typing.Any, # type: ignore
757
757
  object_=_response.json(),
758
758
  ),
759
759
  ),
@@ -762,9 +762,9 @@ class RawDocumentsClient:
762
762
  raise ServiceUnavailableError(
763
763
  headers=dict(_response.headers),
764
764
  body=typing.cast(
765
- typing.Optional[typing.Any],
765
+ typing.Any,
766
766
  parse_obj_as(
767
- type_=typing.Optional[typing.Any], # type: ignore
767
+ type_=typing.Any, # type: ignore
768
768
  object_=_response.json(),
769
769
  ),
770
770
  ),
@@ -773,9 +773,9 @@ class RawDocumentsClient:
773
773
  raise GatewayTimeoutError(
774
774
  headers=dict(_response.headers),
775
775
  body=typing.cast(
776
- typing.Optional[typing.Any],
776
+ typing.Any,
777
777
  parse_obj_as(
778
- type_=typing.Optional[typing.Any], # type: ignore
778
+ type_=typing.Any, # type: ignore
779
779
  object_=_response.json(),
780
780
  ),
781
781
  ),
@@ -822,9 +822,9 @@ class RawDocumentsClient:
822
822
  raise UnauthorizedError(
823
823
  headers=dict(_response.headers),
824
824
  body=typing.cast(
825
- typing.Optional[typing.Any],
825
+ typing.Any,
826
826
  parse_obj_as(
827
- type_=typing.Optional[typing.Any], # type: ignore
827
+ type_=typing.Any, # type: ignore
828
828
  object_=_response.json(),
829
829
  ),
830
830
  ),
@@ -833,9 +833,9 @@ class RawDocumentsClient:
833
833
  raise NotFoundError(
834
834
  headers=dict(_response.headers),
835
835
  body=typing.cast(
836
- typing.Optional[typing.Any],
836
+ typing.Any,
837
837
  parse_obj_as(
838
- type_=typing.Optional[typing.Any], # type: ignore
838
+ type_=typing.Any, # type: ignore
839
839
  object_=_response.json(),
840
840
  ),
841
841
  ),
@@ -844,9 +844,9 @@ class RawDocumentsClient:
844
844
  raise MethodNotAllowedError(
845
845
  headers=dict(_response.headers),
846
846
  body=typing.cast(
847
- typing.Optional[typing.Any],
847
+ typing.Any,
848
848
  parse_obj_as(
849
- type_=typing.Optional[typing.Any], # type: ignore
849
+ type_=typing.Any, # type: ignore
850
850
  object_=_response.json(),
851
851
  ),
852
852
  ),
@@ -855,9 +855,9 @@ class RawDocumentsClient:
855
855
  raise TooManyRequestsError(
856
856
  headers=dict(_response.headers),
857
857
  body=typing.cast(
858
- typing.Optional[typing.Any],
858
+ typing.Any,
859
859
  parse_obj_as(
860
- type_=typing.Optional[typing.Any], # type: ignore
860
+ type_=typing.Any, # type: ignore
861
861
  object_=_response.json(),
862
862
  ),
863
863
  ),
@@ -866,9 +866,9 @@ class RawDocumentsClient:
866
866
  raise InternalServerError(
867
867
  headers=dict(_response.headers),
868
868
  body=typing.cast(
869
- typing.Optional[typing.Any],
869
+ typing.Any,
870
870
  parse_obj_as(
871
- type_=typing.Optional[typing.Any], # type: ignore
871
+ type_=typing.Any, # type: ignore
872
872
  object_=_response.json(),
873
873
  ),
874
874
  ),
@@ -877,9 +877,9 @@ class RawDocumentsClient:
877
877
  raise NotImplementedError(
878
878
  headers=dict(_response.headers),
879
879
  body=typing.cast(
880
- typing.Optional[typing.Any],
880
+ typing.Any,
881
881
  parse_obj_as(
882
- type_=typing.Optional[typing.Any], # type: ignore
882
+ type_=typing.Any, # type: ignore
883
883
  object_=_response.json(),
884
884
  ),
885
885
  ),
@@ -888,9 +888,9 @@ class RawDocumentsClient:
888
888
  raise BadGatewayError(
889
889
  headers=dict(_response.headers),
890
890
  body=typing.cast(
891
- typing.Optional[typing.Any],
891
+ typing.Any,
892
892
  parse_obj_as(
893
- type_=typing.Optional[typing.Any], # type: ignore
893
+ type_=typing.Any, # type: ignore
894
894
  object_=_response.json(),
895
895
  ),
896
896
  ),
@@ -899,9 +899,9 @@ class RawDocumentsClient:
899
899
  raise ServiceUnavailableError(
900
900
  headers=dict(_response.headers),
901
901
  body=typing.cast(
902
- typing.Optional[typing.Any],
902
+ typing.Any,
903
903
  parse_obj_as(
904
- type_=typing.Optional[typing.Any], # type: ignore
904
+ type_=typing.Any, # type: ignore
905
905
  object_=_response.json(),
906
906
  ),
907
907
  ),
@@ -910,9 +910,9 @@ class RawDocumentsClient:
910
910
  raise GatewayTimeoutError(
911
911
  headers=dict(_response.headers),
912
912
  body=typing.cast(
913
- typing.Optional[typing.Any],
913
+ typing.Any,
914
914
  parse_obj_as(
915
- type_=typing.Optional[typing.Any], # type: ignore
915
+ type_=typing.Any, # type: ignore
916
916
  object_=_response.json(),
917
917
  ),
918
918
  ),
@@ -975,9 +975,9 @@ class AsyncRawDocumentsClient:
975
975
  raise UnauthorizedError(
976
976
  headers=dict(_response.headers),
977
977
  body=typing.cast(
978
- typing.Optional[typing.Any],
978
+ typing.Any,
979
979
  parse_obj_as(
980
- type_=typing.Optional[typing.Any], # type: ignore
980
+ type_=typing.Any, # type: ignore
981
981
  object_=_response.json(),
982
982
  ),
983
983
  ),
@@ -986,9 +986,9 @@ class AsyncRawDocumentsClient:
986
986
  raise NotFoundError(
987
987
  headers=dict(_response.headers),
988
988
  body=typing.cast(
989
- typing.Optional[typing.Any],
989
+ typing.Any,
990
990
  parse_obj_as(
991
- type_=typing.Optional[typing.Any], # type: ignore
991
+ type_=typing.Any, # type: ignore
992
992
  object_=_response.json(),
993
993
  ),
994
994
  ),
@@ -997,9 +997,9 @@ class AsyncRawDocumentsClient:
997
997
  raise MethodNotAllowedError(
998
998
  headers=dict(_response.headers),
999
999
  body=typing.cast(
1000
- typing.Optional[typing.Any],
1000
+ typing.Any,
1001
1001
  parse_obj_as(
1002
- type_=typing.Optional[typing.Any], # type: ignore
1002
+ type_=typing.Any, # type: ignore
1003
1003
  object_=_response.json(),
1004
1004
  ),
1005
1005
  ),
@@ -1008,9 +1008,9 @@ class AsyncRawDocumentsClient:
1008
1008
  raise TooManyRequestsError(
1009
1009
  headers=dict(_response.headers),
1010
1010
  body=typing.cast(
1011
- typing.Optional[typing.Any],
1011
+ typing.Any,
1012
1012
  parse_obj_as(
1013
- type_=typing.Optional[typing.Any], # type: ignore
1013
+ type_=typing.Any, # type: ignore
1014
1014
  object_=_response.json(),
1015
1015
  ),
1016
1016
  ),
@@ -1019,9 +1019,9 @@ class AsyncRawDocumentsClient:
1019
1019
  raise InternalServerError(
1020
1020
  headers=dict(_response.headers),
1021
1021
  body=typing.cast(
1022
- typing.Optional[typing.Any],
1022
+ typing.Any,
1023
1023
  parse_obj_as(
1024
- type_=typing.Optional[typing.Any], # type: ignore
1024
+ type_=typing.Any, # type: ignore
1025
1025
  object_=_response.json(),
1026
1026
  ),
1027
1027
  ),
@@ -1030,9 +1030,9 @@ class AsyncRawDocumentsClient:
1030
1030
  raise NotImplementedError(
1031
1031
  headers=dict(_response.headers),
1032
1032
  body=typing.cast(
1033
- typing.Optional[typing.Any],
1033
+ typing.Any,
1034
1034
  parse_obj_as(
1035
- type_=typing.Optional[typing.Any], # type: ignore
1035
+ type_=typing.Any, # type: ignore
1036
1036
  object_=_response.json(),
1037
1037
  ),
1038
1038
  ),
@@ -1041,9 +1041,9 @@ class AsyncRawDocumentsClient:
1041
1041
  raise BadGatewayError(
1042
1042
  headers=dict(_response.headers),
1043
1043
  body=typing.cast(
1044
- typing.Optional[typing.Any],
1044
+ typing.Any,
1045
1045
  parse_obj_as(
1046
- type_=typing.Optional[typing.Any], # type: ignore
1046
+ type_=typing.Any, # type: ignore
1047
1047
  object_=_response.json(),
1048
1048
  ),
1049
1049
  ),
@@ -1052,9 +1052,9 @@ class AsyncRawDocumentsClient:
1052
1052
  raise ServiceUnavailableError(
1053
1053
  headers=dict(_response.headers),
1054
1054
  body=typing.cast(
1055
- typing.Optional[typing.Any],
1055
+ typing.Any,
1056
1056
  parse_obj_as(
1057
- type_=typing.Optional[typing.Any], # type: ignore
1057
+ type_=typing.Any, # type: ignore
1058
1058
  object_=_response.json(),
1059
1059
  ),
1060
1060
  ),
@@ -1063,9 +1063,9 @@ class AsyncRawDocumentsClient:
1063
1063
  raise GatewayTimeoutError(
1064
1064
  headers=dict(_response.headers),
1065
1065
  body=typing.cast(
1066
- typing.Optional[typing.Any],
1066
+ typing.Any,
1067
1067
  parse_obj_as(
1068
- type_=typing.Optional[typing.Any], # type: ignore
1068
+ type_=typing.Any, # type: ignore
1069
1069
  object_=_response.json(),
1070
1070
  ),
1071
1071
  ),
@@ -1146,9 +1146,9 @@ class AsyncRawDocumentsClient:
1146
1146
  raise UnauthorizedError(
1147
1147
  headers=dict(_response.headers),
1148
1148
  body=typing.cast(
1149
- typing.Optional[typing.Any],
1149
+ typing.Any,
1150
1150
  parse_obj_as(
1151
- type_=typing.Optional[typing.Any], # type: ignore
1151
+ type_=typing.Any, # type: ignore
1152
1152
  object_=_response.json(),
1153
1153
  ),
1154
1154
  ),
@@ -1157,9 +1157,9 @@ class AsyncRawDocumentsClient:
1157
1157
  raise NotFoundError(
1158
1158
  headers=dict(_response.headers),
1159
1159
  body=typing.cast(
1160
- typing.Optional[typing.Any],
1160
+ typing.Any,
1161
1161
  parse_obj_as(
1162
- type_=typing.Optional[typing.Any], # type: ignore
1162
+ type_=typing.Any, # type: ignore
1163
1163
  object_=_response.json(),
1164
1164
  ),
1165
1165
  ),
@@ -1168,9 +1168,9 @@ class AsyncRawDocumentsClient:
1168
1168
  raise MethodNotAllowedError(
1169
1169
  headers=dict(_response.headers),
1170
1170
  body=typing.cast(
1171
- typing.Optional[typing.Any],
1171
+ typing.Any,
1172
1172
  parse_obj_as(
1173
- type_=typing.Optional[typing.Any], # type: ignore
1173
+ type_=typing.Any, # type: ignore
1174
1174
  object_=_response.json(),
1175
1175
  ),
1176
1176
  ),
@@ -1179,9 +1179,9 @@ class AsyncRawDocumentsClient:
1179
1179
  raise TooManyRequestsError(
1180
1180
  headers=dict(_response.headers),
1181
1181
  body=typing.cast(
1182
- typing.Optional[typing.Any],
1182
+ typing.Any,
1183
1183
  parse_obj_as(
1184
- type_=typing.Optional[typing.Any], # type: ignore
1184
+ type_=typing.Any, # type: ignore
1185
1185
  object_=_response.json(),
1186
1186
  ),
1187
1187
  ),
@@ -1190,9 +1190,9 @@ class AsyncRawDocumentsClient:
1190
1190
  raise InternalServerError(
1191
1191
  headers=dict(_response.headers),
1192
1192
  body=typing.cast(
1193
- typing.Optional[typing.Any],
1193
+ typing.Any,
1194
1194
  parse_obj_as(
1195
- type_=typing.Optional[typing.Any], # type: ignore
1195
+ type_=typing.Any, # type: ignore
1196
1196
  object_=_response.json(),
1197
1197
  ),
1198
1198
  ),
@@ -1201,9 +1201,9 @@ class AsyncRawDocumentsClient:
1201
1201
  raise NotImplementedError(
1202
1202
  headers=dict(_response.headers),
1203
1203
  body=typing.cast(
1204
- typing.Optional[typing.Any],
1204
+ typing.Any,
1205
1205
  parse_obj_as(
1206
- type_=typing.Optional[typing.Any], # type: ignore
1206
+ type_=typing.Any, # type: ignore
1207
1207
  object_=_response.json(),
1208
1208
  ),
1209
1209
  ),
@@ -1212,9 +1212,9 @@ class AsyncRawDocumentsClient:
1212
1212
  raise BadGatewayError(
1213
1213
  headers=dict(_response.headers),
1214
1214
  body=typing.cast(
1215
- typing.Optional[typing.Any],
1215
+ typing.Any,
1216
1216
  parse_obj_as(
1217
- type_=typing.Optional[typing.Any], # type: ignore
1217
+ type_=typing.Any, # type: ignore
1218
1218
  object_=_response.json(),
1219
1219
  ),
1220
1220
  ),
@@ -1223,9 +1223,9 @@ class AsyncRawDocumentsClient:
1223
1223
  raise ServiceUnavailableError(
1224
1224
  headers=dict(_response.headers),
1225
1225
  body=typing.cast(
1226
- typing.Optional[typing.Any],
1226
+ typing.Any,
1227
1227
  parse_obj_as(
1228
- type_=typing.Optional[typing.Any], # type: ignore
1228
+ type_=typing.Any, # type: ignore
1229
1229
  object_=_response.json(),
1230
1230
  ),
1231
1231
  ),
@@ -1234,9 +1234,9 @@ class AsyncRawDocumentsClient:
1234
1234
  raise GatewayTimeoutError(
1235
1235
  headers=dict(_response.headers),
1236
1236
  body=typing.cast(
1237
- typing.Optional[typing.Any],
1237
+ typing.Any,
1238
1238
  parse_obj_as(
1239
- type_=typing.Optional[typing.Any], # type: ignore
1239
+ type_=typing.Any, # type: ignore
1240
1240
  object_=_response.json(),
1241
1241
  ),
1242
1242
  ),
@@ -1338,9 +1338,9 @@ class AsyncRawDocumentsClient:
1338
1338
  raise UnauthorizedError(
1339
1339
  headers=dict(_response.headers),
1340
1340
  body=typing.cast(
1341
- typing.Optional[typing.Any],
1341
+ typing.Any,
1342
1342
  parse_obj_as(
1343
- type_=typing.Optional[typing.Any], # type: ignore
1343
+ type_=typing.Any, # type: ignore
1344
1344
  object_=_response.json(),
1345
1345
  ),
1346
1346
  ),
@@ -1349,9 +1349,9 @@ class AsyncRawDocumentsClient:
1349
1349
  raise NotFoundError(
1350
1350
  headers=dict(_response.headers),
1351
1351
  body=typing.cast(
1352
- typing.Optional[typing.Any],
1352
+ typing.Any,
1353
1353
  parse_obj_as(
1354
- type_=typing.Optional[typing.Any], # type: ignore
1354
+ type_=typing.Any, # type: ignore
1355
1355
  object_=_response.json(),
1356
1356
  ),
1357
1357
  ),
@@ -1360,9 +1360,9 @@ class AsyncRawDocumentsClient:
1360
1360
  raise MethodNotAllowedError(
1361
1361
  headers=dict(_response.headers),
1362
1362
  body=typing.cast(
1363
- typing.Optional[typing.Any],
1363
+ typing.Any,
1364
1364
  parse_obj_as(
1365
- type_=typing.Optional[typing.Any], # type: ignore
1365
+ type_=typing.Any, # type: ignore
1366
1366
  object_=_response.json(),
1367
1367
  ),
1368
1368
  ),
@@ -1371,9 +1371,9 @@ class AsyncRawDocumentsClient:
1371
1371
  raise TooManyRequestsError(
1372
1372
  headers=dict(_response.headers),
1373
1373
  body=typing.cast(
1374
- typing.Optional[typing.Any],
1374
+ typing.Any,
1375
1375
  parse_obj_as(
1376
- type_=typing.Optional[typing.Any], # type: ignore
1376
+ type_=typing.Any, # type: ignore
1377
1377
  object_=_response.json(),
1378
1378
  ),
1379
1379
  ),
@@ -1382,9 +1382,9 @@ class AsyncRawDocumentsClient:
1382
1382
  raise InternalServerError(
1383
1383
  headers=dict(_response.headers),
1384
1384
  body=typing.cast(
1385
- typing.Optional[typing.Any],
1385
+ typing.Any,
1386
1386
  parse_obj_as(
1387
- type_=typing.Optional[typing.Any], # type: ignore
1387
+ type_=typing.Any, # type: ignore
1388
1388
  object_=_response.json(),
1389
1389
  ),
1390
1390
  ),
@@ -1393,9 +1393,9 @@ class AsyncRawDocumentsClient:
1393
1393
  raise NotImplementedError(
1394
1394
  headers=dict(_response.headers),
1395
1395
  body=typing.cast(
1396
- typing.Optional[typing.Any],
1396
+ typing.Any,
1397
1397
  parse_obj_as(
1398
- type_=typing.Optional[typing.Any], # type: ignore
1398
+ type_=typing.Any, # type: ignore
1399
1399
  object_=_response.json(),
1400
1400
  ),
1401
1401
  ),
@@ -1404,9 +1404,9 @@ class AsyncRawDocumentsClient:
1404
1404
  raise BadGatewayError(
1405
1405
  headers=dict(_response.headers),
1406
1406
  body=typing.cast(
1407
- typing.Optional[typing.Any],
1407
+ typing.Any,
1408
1408
  parse_obj_as(
1409
- type_=typing.Optional[typing.Any], # type: ignore
1409
+ type_=typing.Any, # type: ignore
1410
1410
  object_=_response.json(),
1411
1411
  ),
1412
1412
  ),
@@ -1415,9 +1415,9 @@ class AsyncRawDocumentsClient:
1415
1415
  raise ServiceUnavailableError(
1416
1416
  headers=dict(_response.headers),
1417
1417
  body=typing.cast(
1418
- typing.Optional[typing.Any],
1418
+ typing.Any,
1419
1419
  parse_obj_as(
1420
- type_=typing.Optional[typing.Any], # type: ignore
1420
+ type_=typing.Any, # type: ignore
1421
1421
  object_=_response.json(),
1422
1422
  ),
1423
1423
  ),
@@ -1426,9 +1426,9 @@ class AsyncRawDocumentsClient:
1426
1426
  raise GatewayTimeoutError(
1427
1427
  headers=dict(_response.headers),
1428
1428
  body=typing.cast(
1429
- typing.Optional[typing.Any],
1429
+ typing.Any,
1430
1430
  parse_obj_as(
1431
- type_=typing.Optional[typing.Any], # type: ignore
1431
+ type_=typing.Any, # type: ignore
1432
1432
  object_=_response.json(),
1433
1433
  ),
1434
1434
  ),
@@ -1576,9 +1576,9 @@ class AsyncRawDocumentsClient:
1576
1576
  raise UnauthorizedError(
1577
1577
  headers=dict(_response.headers),
1578
1578
  body=typing.cast(
1579
- typing.Optional[typing.Any],
1579
+ typing.Any,
1580
1580
  parse_obj_as(
1581
- type_=typing.Optional[typing.Any], # type: ignore
1581
+ type_=typing.Any, # type: ignore
1582
1582
  object_=_response.json(),
1583
1583
  ),
1584
1584
  ),
@@ -1587,9 +1587,9 @@ class AsyncRawDocumentsClient:
1587
1587
  raise NotFoundError(
1588
1588
  headers=dict(_response.headers),
1589
1589
  body=typing.cast(
1590
- typing.Optional[typing.Any],
1590
+ typing.Any,
1591
1591
  parse_obj_as(
1592
- type_=typing.Optional[typing.Any], # type: ignore
1592
+ type_=typing.Any, # type: ignore
1593
1593
  object_=_response.json(),
1594
1594
  ),
1595
1595
  ),
@@ -1598,9 +1598,9 @@ class AsyncRawDocumentsClient:
1598
1598
  raise MethodNotAllowedError(
1599
1599
  headers=dict(_response.headers),
1600
1600
  body=typing.cast(
1601
- typing.Optional[typing.Any],
1601
+ typing.Any,
1602
1602
  parse_obj_as(
1603
- type_=typing.Optional[typing.Any], # type: ignore
1603
+ type_=typing.Any, # type: ignore
1604
1604
  object_=_response.json(),
1605
1605
  ),
1606
1606
  ),
@@ -1609,9 +1609,9 @@ class AsyncRawDocumentsClient:
1609
1609
  raise TooManyRequestsError(
1610
1610
  headers=dict(_response.headers),
1611
1611
  body=typing.cast(
1612
- typing.Optional[typing.Any],
1612
+ typing.Any,
1613
1613
  parse_obj_as(
1614
- type_=typing.Optional[typing.Any], # type: ignore
1614
+ type_=typing.Any, # type: ignore
1615
1615
  object_=_response.json(),
1616
1616
  ),
1617
1617
  ),
@@ -1620,9 +1620,9 @@ class AsyncRawDocumentsClient:
1620
1620
  raise InternalServerError(
1621
1621
  headers=dict(_response.headers),
1622
1622
  body=typing.cast(
1623
- typing.Optional[typing.Any],
1623
+ typing.Any,
1624
1624
  parse_obj_as(
1625
- type_=typing.Optional[typing.Any], # type: ignore
1625
+ type_=typing.Any, # type: ignore
1626
1626
  object_=_response.json(),
1627
1627
  ),
1628
1628
  ),
@@ -1631,9 +1631,9 @@ class AsyncRawDocumentsClient:
1631
1631
  raise NotImplementedError(
1632
1632
  headers=dict(_response.headers),
1633
1633
  body=typing.cast(
1634
- typing.Optional[typing.Any],
1634
+ typing.Any,
1635
1635
  parse_obj_as(
1636
- type_=typing.Optional[typing.Any], # type: ignore
1636
+ type_=typing.Any, # type: ignore
1637
1637
  object_=_response.json(),
1638
1638
  ),
1639
1639
  ),
@@ -1642,9 +1642,9 @@ class AsyncRawDocumentsClient:
1642
1642
  raise BadGatewayError(
1643
1643
  headers=dict(_response.headers),
1644
1644
  body=typing.cast(
1645
- typing.Optional[typing.Any],
1645
+ typing.Any,
1646
1646
  parse_obj_as(
1647
- type_=typing.Optional[typing.Any], # type: ignore
1647
+ type_=typing.Any, # type: ignore
1648
1648
  object_=_response.json(),
1649
1649
  ),
1650
1650
  ),
@@ -1653,9 +1653,9 @@ class AsyncRawDocumentsClient:
1653
1653
  raise ServiceUnavailableError(
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 AsyncRawDocumentsClient:
1664
1664
  raise GatewayTimeoutError(
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
  ),
@@ -1713,9 +1713,9 @@ class AsyncRawDocumentsClient:
1713
1713
  raise UnauthorizedError(
1714
1714
  headers=dict(_response.headers),
1715
1715
  body=typing.cast(
1716
- typing.Optional[typing.Any],
1716
+ typing.Any,
1717
1717
  parse_obj_as(
1718
- type_=typing.Optional[typing.Any], # type: ignore
1718
+ type_=typing.Any, # type: ignore
1719
1719
  object_=_response.json(),
1720
1720
  ),
1721
1721
  ),
@@ -1724,9 +1724,9 @@ class AsyncRawDocumentsClient:
1724
1724
  raise NotFoundError(
1725
1725
  headers=dict(_response.headers),
1726
1726
  body=typing.cast(
1727
- typing.Optional[typing.Any],
1727
+ typing.Any,
1728
1728
  parse_obj_as(
1729
- type_=typing.Optional[typing.Any], # type: ignore
1729
+ type_=typing.Any, # type: ignore
1730
1730
  object_=_response.json(),
1731
1731
  ),
1732
1732
  ),
@@ -1735,9 +1735,9 @@ class AsyncRawDocumentsClient:
1735
1735
  raise MethodNotAllowedError(
1736
1736
  headers=dict(_response.headers),
1737
1737
  body=typing.cast(
1738
- typing.Optional[typing.Any],
1738
+ typing.Any,
1739
1739
  parse_obj_as(
1740
- type_=typing.Optional[typing.Any], # type: ignore
1740
+ type_=typing.Any, # type: ignore
1741
1741
  object_=_response.json(),
1742
1742
  ),
1743
1743
  ),
@@ -1746,9 +1746,9 @@ class AsyncRawDocumentsClient:
1746
1746
  raise TooManyRequestsError(
1747
1747
  headers=dict(_response.headers),
1748
1748
  body=typing.cast(
1749
- typing.Optional[typing.Any],
1749
+ typing.Any,
1750
1750
  parse_obj_as(
1751
- type_=typing.Optional[typing.Any], # type: ignore
1751
+ type_=typing.Any, # type: ignore
1752
1752
  object_=_response.json(),
1753
1753
  ),
1754
1754
  ),
@@ -1757,9 +1757,9 @@ class AsyncRawDocumentsClient:
1757
1757
  raise InternalServerError(
1758
1758
  headers=dict(_response.headers),
1759
1759
  body=typing.cast(
1760
- typing.Optional[typing.Any],
1760
+ typing.Any,
1761
1761
  parse_obj_as(
1762
- type_=typing.Optional[typing.Any], # type: ignore
1762
+ type_=typing.Any, # type: ignore
1763
1763
  object_=_response.json(),
1764
1764
  ),
1765
1765
  ),
@@ -1768,9 +1768,9 @@ class AsyncRawDocumentsClient:
1768
1768
  raise NotImplementedError(
1769
1769
  headers=dict(_response.headers),
1770
1770
  body=typing.cast(
1771
- typing.Optional[typing.Any],
1771
+ typing.Any,
1772
1772
  parse_obj_as(
1773
- type_=typing.Optional[typing.Any], # type: ignore
1773
+ type_=typing.Any, # type: ignore
1774
1774
  object_=_response.json(),
1775
1775
  ),
1776
1776
  ),
@@ -1779,9 +1779,9 @@ class AsyncRawDocumentsClient:
1779
1779
  raise BadGatewayError(
1780
1780
  headers=dict(_response.headers),
1781
1781
  body=typing.cast(
1782
- typing.Optional[typing.Any],
1782
+ typing.Any,
1783
1783
  parse_obj_as(
1784
- type_=typing.Optional[typing.Any], # type: ignore
1784
+ type_=typing.Any, # type: ignore
1785
1785
  object_=_response.json(),
1786
1786
  ),
1787
1787
  ),
@@ -1790,9 +1790,9 @@ class AsyncRawDocumentsClient:
1790
1790
  raise ServiceUnavailableError(
1791
1791
  headers=dict(_response.headers),
1792
1792
  body=typing.cast(
1793
- typing.Optional[typing.Any],
1793
+ typing.Any,
1794
1794
  parse_obj_as(
1795
- type_=typing.Optional[typing.Any], # type: ignore
1795
+ type_=typing.Any, # type: ignore
1796
1796
  object_=_response.json(),
1797
1797
  ),
1798
1798
  ),
@@ -1801,9 +1801,9 @@ class AsyncRawDocumentsClient:
1801
1801
  raise GatewayTimeoutError(
1802
1802
  headers=dict(_response.headers),
1803
1803
  body=typing.cast(
1804
- typing.Optional[typing.Any],
1804
+ typing.Any,
1805
1805
  parse_obj_as(
1806
- type_=typing.Optional[typing.Any], # type: ignore
1806
+ type_=typing.Any, # type: ignore
1807
1807
  object_=_response.json(),
1808
1808
  ),
1809
1809
  ),