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
@@ -89,9 +89,9 @@ class RawIssuesClient:
89
89
  raise UnauthorizedError(
90
90
  headers=dict(_response.headers),
91
91
  body=typing.cast(
92
- typing.Optional[typing.Any],
92
+ typing.Any,
93
93
  parse_obj_as(
94
- type_=typing.Optional[typing.Any], # type: ignore
94
+ type_=typing.Any, # type: ignore
95
95
  object_=_response.json(),
96
96
  ),
97
97
  ),
@@ -100,9 +100,9 @@ class RawIssuesClient:
100
100
  raise NotFoundError(
101
101
  headers=dict(_response.headers),
102
102
  body=typing.cast(
103
- typing.Optional[typing.Any],
103
+ typing.Any,
104
104
  parse_obj_as(
105
- type_=typing.Optional[typing.Any], # type: ignore
105
+ type_=typing.Any, # type: ignore
106
106
  object_=_response.json(),
107
107
  ),
108
108
  ),
@@ -111,9 +111,9 @@ class RawIssuesClient:
111
111
  raise MethodNotAllowedError(
112
112
  headers=dict(_response.headers),
113
113
  body=typing.cast(
114
- typing.Optional[typing.Any],
114
+ typing.Any,
115
115
  parse_obj_as(
116
- type_=typing.Optional[typing.Any], # type: ignore
116
+ type_=typing.Any, # type: ignore
117
117
  object_=_response.json(),
118
118
  ),
119
119
  ),
@@ -122,9 +122,9 @@ class RawIssuesClient:
122
122
  raise TooManyRequestsError(
123
123
  headers=dict(_response.headers),
124
124
  body=typing.cast(
125
- typing.Optional[typing.Any],
125
+ typing.Any,
126
126
  parse_obj_as(
127
- type_=typing.Optional[typing.Any], # type: ignore
127
+ type_=typing.Any, # type: ignore
128
128
  object_=_response.json(),
129
129
  ),
130
130
  ),
@@ -133,9 +133,9 @@ class RawIssuesClient:
133
133
  raise InternalServerError(
134
134
  headers=dict(_response.headers),
135
135
  body=typing.cast(
136
- typing.Optional[typing.Any],
136
+ typing.Any,
137
137
  parse_obj_as(
138
- type_=typing.Optional[typing.Any], # type: ignore
138
+ type_=typing.Any, # type: ignore
139
139
  object_=_response.json(),
140
140
  ),
141
141
  ),
@@ -144,9 +144,9 @@ class RawIssuesClient:
144
144
  raise NotImplementedError(
145
145
  headers=dict(_response.headers),
146
146
  body=typing.cast(
147
- typing.Optional[typing.Any],
147
+ typing.Any,
148
148
  parse_obj_as(
149
- type_=typing.Optional[typing.Any], # type: ignore
149
+ type_=typing.Any, # type: ignore
150
150
  object_=_response.json(),
151
151
  ),
152
152
  ),
@@ -155,9 +155,9 @@ class RawIssuesClient:
155
155
  raise BadGatewayError(
156
156
  headers=dict(_response.headers),
157
157
  body=typing.cast(
158
- typing.Optional[typing.Any],
158
+ typing.Any,
159
159
  parse_obj_as(
160
- type_=typing.Optional[typing.Any], # type: ignore
160
+ type_=typing.Any, # type: ignore
161
161
  object_=_response.json(),
162
162
  ),
163
163
  ),
@@ -166,9 +166,9 @@ class RawIssuesClient:
166
166
  raise ServiceUnavailableError(
167
167
  headers=dict(_response.headers),
168
168
  body=typing.cast(
169
- typing.Optional[typing.Any],
169
+ typing.Any,
170
170
  parse_obj_as(
171
- type_=typing.Optional[typing.Any], # type: ignore
171
+ type_=typing.Any, # type: ignore
172
172
  object_=_response.json(),
173
173
  ),
174
174
  ),
@@ -177,9 +177,9 @@ class RawIssuesClient:
177
177
  raise GatewayTimeoutError(
178
178
  headers=dict(_response.headers),
179
179
  body=typing.cast(
180
- typing.Optional[typing.Any],
180
+ typing.Any,
181
181
  parse_obj_as(
182
- type_=typing.Optional[typing.Any], # type: ignore
182
+ type_=typing.Any, # type: ignore
183
183
  object_=_response.json(),
184
184
  ),
185
185
  ),
@@ -265,9 +265,9 @@ class RawIssuesClient:
265
265
  raise UnauthorizedError(
266
266
  headers=dict(_response.headers),
267
267
  body=typing.cast(
268
- typing.Optional[typing.Any],
268
+ typing.Any,
269
269
  parse_obj_as(
270
- type_=typing.Optional[typing.Any], # type: ignore
270
+ type_=typing.Any, # type: ignore
271
271
  object_=_response.json(),
272
272
  ),
273
273
  ),
@@ -276,9 +276,9 @@ class RawIssuesClient:
276
276
  raise NotFoundError(
277
277
  headers=dict(_response.headers),
278
278
  body=typing.cast(
279
- typing.Optional[typing.Any],
279
+ typing.Any,
280
280
  parse_obj_as(
281
- type_=typing.Optional[typing.Any], # type: ignore
281
+ type_=typing.Any, # type: ignore
282
282
  object_=_response.json(),
283
283
  ),
284
284
  ),
@@ -287,9 +287,9 @@ class RawIssuesClient:
287
287
  raise MethodNotAllowedError(
288
288
  headers=dict(_response.headers),
289
289
  body=typing.cast(
290
- typing.Optional[typing.Any],
290
+ typing.Any,
291
291
  parse_obj_as(
292
- type_=typing.Optional[typing.Any], # type: ignore
292
+ type_=typing.Any, # type: ignore
293
293
  object_=_response.json(),
294
294
  ),
295
295
  ),
@@ -298,9 +298,9 @@ class RawIssuesClient:
298
298
  raise TooManyRequestsError(
299
299
  headers=dict(_response.headers),
300
300
  body=typing.cast(
301
- typing.Optional[typing.Any],
301
+ typing.Any,
302
302
  parse_obj_as(
303
- type_=typing.Optional[typing.Any], # type: ignore
303
+ type_=typing.Any, # type: ignore
304
304
  object_=_response.json(),
305
305
  ),
306
306
  ),
@@ -309,9 +309,9 @@ class RawIssuesClient:
309
309
  raise InternalServerError(
310
310
  headers=dict(_response.headers),
311
311
  body=typing.cast(
312
- typing.Optional[typing.Any],
312
+ typing.Any,
313
313
  parse_obj_as(
314
- type_=typing.Optional[typing.Any], # type: ignore
314
+ type_=typing.Any, # type: ignore
315
315
  object_=_response.json(),
316
316
  ),
317
317
  ),
@@ -320,9 +320,9 @@ class RawIssuesClient:
320
320
  raise NotImplementedError(
321
321
  headers=dict(_response.headers),
322
322
  body=typing.cast(
323
- typing.Optional[typing.Any],
323
+ typing.Any,
324
324
  parse_obj_as(
325
- type_=typing.Optional[typing.Any], # type: ignore
325
+ type_=typing.Any, # type: ignore
326
326
  object_=_response.json(),
327
327
  ),
328
328
  ),
@@ -331,9 +331,9 @@ class RawIssuesClient:
331
331
  raise BadGatewayError(
332
332
  headers=dict(_response.headers),
333
333
  body=typing.cast(
334
- typing.Optional[typing.Any],
334
+ typing.Any,
335
335
  parse_obj_as(
336
- type_=typing.Optional[typing.Any], # type: ignore
336
+ type_=typing.Any, # type: ignore
337
337
  object_=_response.json(),
338
338
  ),
339
339
  ),
@@ -342,9 +342,9 @@ class RawIssuesClient:
342
342
  raise ServiceUnavailableError(
343
343
  headers=dict(_response.headers),
344
344
  body=typing.cast(
345
- typing.Optional[typing.Any],
345
+ typing.Any,
346
346
  parse_obj_as(
347
- type_=typing.Optional[typing.Any], # type: ignore
347
+ type_=typing.Any, # type: ignore
348
348
  object_=_response.json(),
349
349
  ),
350
350
  ),
@@ -353,9 +353,9 @@ class RawIssuesClient:
353
353
  raise GatewayTimeoutError(
354
354
  headers=dict(_response.headers),
355
355
  body=typing.cast(
356
- typing.Optional[typing.Any],
356
+ typing.Any,
357
357
  parse_obj_as(
358
- type_=typing.Optional[typing.Any], # type: ignore
358
+ type_=typing.Any, # type: ignore
359
359
  object_=_response.json(),
360
360
  ),
361
361
  ),
@@ -446,9 +446,9 @@ class RawIssuesClient:
446
446
  raise UnauthorizedError(
447
447
  headers=dict(_response.headers),
448
448
  body=typing.cast(
449
- typing.Optional[typing.Any],
449
+ typing.Any,
450
450
  parse_obj_as(
451
- type_=typing.Optional[typing.Any], # type: ignore
451
+ type_=typing.Any, # type: ignore
452
452
  object_=_response.json(),
453
453
  ),
454
454
  ),
@@ -457,9 +457,9 @@ class RawIssuesClient:
457
457
  raise NotFoundError(
458
458
  headers=dict(_response.headers),
459
459
  body=typing.cast(
460
- typing.Optional[typing.Any],
460
+ typing.Any,
461
461
  parse_obj_as(
462
- type_=typing.Optional[typing.Any], # type: ignore
462
+ type_=typing.Any, # type: ignore
463
463
  object_=_response.json(),
464
464
  ),
465
465
  ),
@@ -468,9 +468,9 @@ class RawIssuesClient:
468
468
  raise MethodNotAllowedError(
469
469
  headers=dict(_response.headers),
470
470
  body=typing.cast(
471
- typing.Optional[typing.Any],
471
+ typing.Any,
472
472
  parse_obj_as(
473
- type_=typing.Optional[typing.Any], # type: ignore
473
+ type_=typing.Any, # type: ignore
474
474
  object_=_response.json(),
475
475
  ),
476
476
  ),
@@ -479,9 +479,9 @@ class RawIssuesClient:
479
479
  raise TooManyRequestsError(
480
480
  headers=dict(_response.headers),
481
481
  body=typing.cast(
482
- typing.Optional[typing.Any],
482
+ typing.Any,
483
483
  parse_obj_as(
484
- type_=typing.Optional[typing.Any], # type: ignore
484
+ type_=typing.Any, # type: ignore
485
485
  object_=_response.json(),
486
486
  ),
487
487
  ),
@@ -490,9 +490,9 @@ class RawIssuesClient:
490
490
  raise InternalServerError(
491
491
  headers=dict(_response.headers),
492
492
  body=typing.cast(
493
- typing.Optional[typing.Any],
493
+ typing.Any,
494
494
  parse_obj_as(
495
- type_=typing.Optional[typing.Any], # type: ignore
495
+ type_=typing.Any, # type: ignore
496
496
  object_=_response.json(),
497
497
  ),
498
498
  ),
@@ -501,9 +501,9 @@ class RawIssuesClient:
501
501
  raise NotImplementedError(
502
502
  headers=dict(_response.headers),
503
503
  body=typing.cast(
504
- typing.Optional[typing.Any],
504
+ typing.Any,
505
505
  parse_obj_as(
506
- type_=typing.Optional[typing.Any], # type: ignore
506
+ type_=typing.Any, # type: ignore
507
507
  object_=_response.json(),
508
508
  ),
509
509
  ),
@@ -512,9 +512,9 @@ class RawIssuesClient:
512
512
  raise BadGatewayError(
513
513
  headers=dict(_response.headers),
514
514
  body=typing.cast(
515
- typing.Optional[typing.Any],
515
+ typing.Any,
516
516
  parse_obj_as(
517
- type_=typing.Optional[typing.Any], # type: ignore
517
+ type_=typing.Any, # type: ignore
518
518
  object_=_response.json(),
519
519
  ),
520
520
  ),
@@ -523,9 +523,9 @@ class RawIssuesClient:
523
523
  raise ServiceUnavailableError(
524
524
  headers=dict(_response.headers),
525
525
  body=typing.cast(
526
- typing.Optional[typing.Any],
526
+ typing.Any,
527
527
  parse_obj_as(
528
- type_=typing.Optional[typing.Any], # type: ignore
528
+ type_=typing.Any, # type: ignore
529
529
  object_=_response.json(),
530
530
  ),
531
531
  ),
@@ -534,9 +534,9 @@ class RawIssuesClient:
534
534
  raise GatewayTimeoutError(
535
535
  headers=dict(_response.headers),
536
536
  body=typing.cast(
537
- typing.Optional[typing.Any],
537
+ typing.Any,
538
538
  parse_obj_as(
539
- type_=typing.Optional[typing.Any], # type: ignore
539
+ type_=typing.Any, # type: ignore
540
540
  object_=_response.json(),
541
541
  ),
542
542
  ),
@@ -607,9 +607,9 @@ class AsyncRawIssuesClient:
607
607
  raise UnauthorizedError(
608
608
  headers=dict(_response.headers),
609
609
  body=typing.cast(
610
- typing.Optional[typing.Any],
610
+ typing.Any,
611
611
  parse_obj_as(
612
- type_=typing.Optional[typing.Any], # type: ignore
612
+ type_=typing.Any, # type: ignore
613
613
  object_=_response.json(),
614
614
  ),
615
615
  ),
@@ -618,9 +618,9 @@ class AsyncRawIssuesClient:
618
618
  raise NotFoundError(
619
619
  headers=dict(_response.headers),
620
620
  body=typing.cast(
621
- typing.Optional[typing.Any],
621
+ typing.Any,
622
622
  parse_obj_as(
623
- type_=typing.Optional[typing.Any], # type: ignore
623
+ type_=typing.Any, # type: ignore
624
624
  object_=_response.json(),
625
625
  ),
626
626
  ),
@@ -629,9 +629,9 @@ class AsyncRawIssuesClient:
629
629
  raise MethodNotAllowedError(
630
630
  headers=dict(_response.headers),
631
631
  body=typing.cast(
632
- typing.Optional[typing.Any],
632
+ typing.Any,
633
633
  parse_obj_as(
634
- type_=typing.Optional[typing.Any], # type: ignore
634
+ type_=typing.Any, # type: ignore
635
635
  object_=_response.json(),
636
636
  ),
637
637
  ),
@@ -640,9 +640,9 @@ class AsyncRawIssuesClient:
640
640
  raise TooManyRequestsError(
641
641
  headers=dict(_response.headers),
642
642
  body=typing.cast(
643
- typing.Optional[typing.Any],
643
+ typing.Any,
644
644
  parse_obj_as(
645
- type_=typing.Optional[typing.Any], # type: ignore
645
+ type_=typing.Any, # type: ignore
646
646
  object_=_response.json(),
647
647
  ),
648
648
  ),
@@ -651,9 +651,9 @@ class AsyncRawIssuesClient:
651
651
  raise InternalServerError(
652
652
  headers=dict(_response.headers),
653
653
  body=typing.cast(
654
- typing.Optional[typing.Any],
654
+ typing.Any,
655
655
  parse_obj_as(
656
- type_=typing.Optional[typing.Any], # type: ignore
656
+ type_=typing.Any, # type: ignore
657
657
  object_=_response.json(),
658
658
  ),
659
659
  ),
@@ -662,9 +662,9 @@ class AsyncRawIssuesClient:
662
662
  raise NotImplementedError(
663
663
  headers=dict(_response.headers),
664
664
  body=typing.cast(
665
- typing.Optional[typing.Any],
665
+ typing.Any,
666
666
  parse_obj_as(
667
- type_=typing.Optional[typing.Any], # type: ignore
667
+ type_=typing.Any, # type: ignore
668
668
  object_=_response.json(),
669
669
  ),
670
670
  ),
@@ -673,9 +673,9 @@ class AsyncRawIssuesClient:
673
673
  raise BadGatewayError(
674
674
  headers=dict(_response.headers),
675
675
  body=typing.cast(
676
- typing.Optional[typing.Any],
676
+ typing.Any,
677
677
  parse_obj_as(
678
- type_=typing.Optional[typing.Any], # type: ignore
678
+ type_=typing.Any, # type: ignore
679
679
  object_=_response.json(),
680
680
  ),
681
681
  ),
@@ -684,9 +684,9 @@ class AsyncRawIssuesClient:
684
684
  raise ServiceUnavailableError(
685
685
  headers=dict(_response.headers),
686
686
  body=typing.cast(
687
- typing.Optional[typing.Any],
687
+ typing.Any,
688
688
  parse_obj_as(
689
- type_=typing.Optional[typing.Any], # type: ignore
689
+ type_=typing.Any, # type: ignore
690
690
  object_=_response.json(),
691
691
  ),
692
692
  ),
@@ -695,9 +695,9 @@ class AsyncRawIssuesClient:
695
695
  raise GatewayTimeoutError(
696
696
  headers=dict(_response.headers),
697
697
  body=typing.cast(
698
- typing.Optional[typing.Any],
698
+ typing.Any,
699
699
  parse_obj_as(
700
- type_=typing.Optional[typing.Any], # type: ignore
700
+ type_=typing.Any, # type: ignore
701
701
  object_=_response.json(),
702
702
  ),
703
703
  ),
@@ -783,9 +783,9 @@ class AsyncRawIssuesClient:
783
783
  raise UnauthorizedError(
784
784
  headers=dict(_response.headers),
785
785
  body=typing.cast(
786
- typing.Optional[typing.Any],
786
+ typing.Any,
787
787
  parse_obj_as(
788
- type_=typing.Optional[typing.Any], # type: ignore
788
+ type_=typing.Any, # type: ignore
789
789
  object_=_response.json(),
790
790
  ),
791
791
  ),
@@ -794,9 +794,9 @@ class AsyncRawIssuesClient:
794
794
  raise NotFoundError(
795
795
  headers=dict(_response.headers),
796
796
  body=typing.cast(
797
- typing.Optional[typing.Any],
797
+ typing.Any,
798
798
  parse_obj_as(
799
- type_=typing.Optional[typing.Any], # type: ignore
799
+ type_=typing.Any, # type: ignore
800
800
  object_=_response.json(),
801
801
  ),
802
802
  ),
@@ -805,9 +805,9 @@ class AsyncRawIssuesClient:
805
805
  raise MethodNotAllowedError(
806
806
  headers=dict(_response.headers),
807
807
  body=typing.cast(
808
- typing.Optional[typing.Any],
808
+ typing.Any,
809
809
  parse_obj_as(
810
- type_=typing.Optional[typing.Any], # type: ignore
810
+ type_=typing.Any, # type: ignore
811
811
  object_=_response.json(),
812
812
  ),
813
813
  ),
@@ -816,9 +816,9 @@ class AsyncRawIssuesClient:
816
816
  raise TooManyRequestsError(
817
817
  headers=dict(_response.headers),
818
818
  body=typing.cast(
819
- typing.Optional[typing.Any],
819
+ typing.Any,
820
820
  parse_obj_as(
821
- type_=typing.Optional[typing.Any], # type: ignore
821
+ type_=typing.Any, # type: ignore
822
822
  object_=_response.json(),
823
823
  ),
824
824
  ),
@@ -827,9 +827,9 @@ class AsyncRawIssuesClient:
827
827
  raise InternalServerError(
828
828
  headers=dict(_response.headers),
829
829
  body=typing.cast(
830
- typing.Optional[typing.Any],
830
+ typing.Any,
831
831
  parse_obj_as(
832
- type_=typing.Optional[typing.Any], # type: ignore
832
+ type_=typing.Any, # type: ignore
833
833
  object_=_response.json(),
834
834
  ),
835
835
  ),
@@ -838,9 +838,9 @@ class AsyncRawIssuesClient:
838
838
  raise NotImplementedError(
839
839
  headers=dict(_response.headers),
840
840
  body=typing.cast(
841
- typing.Optional[typing.Any],
841
+ typing.Any,
842
842
  parse_obj_as(
843
- type_=typing.Optional[typing.Any], # type: ignore
843
+ type_=typing.Any, # type: ignore
844
844
  object_=_response.json(),
845
845
  ),
846
846
  ),
@@ -849,9 +849,9 @@ class AsyncRawIssuesClient:
849
849
  raise BadGatewayError(
850
850
  headers=dict(_response.headers),
851
851
  body=typing.cast(
852
- typing.Optional[typing.Any],
852
+ typing.Any,
853
853
  parse_obj_as(
854
- type_=typing.Optional[typing.Any], # type: ignore
854
+ type_=typing.Any, # type: ignore
855
855
  object_=_response.json(),
856
856
  ),
857
857
  ),
@@ -860,9 +860,9 @@ class AsyncRawIssuesClient:
860
860
  raise ServiceUnavailableError(
861
861
  headers=dict(_response.headers),
862
862
  body=typing.cast(
863
- typing.Optional[typing.Any],
863
+ typing.Any,
864
864
  parse_obj_as(
865
- type_=typing.Optional[typing.Any], # type: ignore
865
+ type_=typing.Any, # type: ignore
866
866
  object_=_response.json(),
867
867
  ),
868
868
  ),
@@ -871,9 +871,9 @@ class AsyncRawIssuesClient:
871
871
  raise GatewayTimeoutError(
872
872
  headers=dict(_response.headers),
873
873
  body=typing.cast(
874
- typing.Optional[typing.Any],
874
+ typing.Any,
875
875
  parse_obj_as(
876
- type_=typing.Optional[typing.Any], # type: ignore
876
+ type_=typing.Any, # type: ignore
877
877
  object_=_response.json(),
878
878
  ),
879
879
  ),
@@ -964,9 +964,9 @@ class AsyncRawIssuesClient:
964
964
  raise UnauthorizedError(
965
965
  headers=dict(_response.headers),
966
966
  body=typing.cast(
967
- typing.Optional[typing.Any],
967
+ typing.Any,
968
968
  parse_obj_as(
969
- type_=typing.Optional[typing.Any], # type: ignore
969
+ type_=typing.Any, # type: ignore
970
970
  object_=_response.json(),
971
971
  ),
972
972
  ),
@@ -975,9 +975,9 @@ class AsyncRawIssuesClient:
975
975
  raise NotFoundError(
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 AsyncRawIssuesClient:
986
986
  raise MethodNotAllowedError(
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 AsyncRawIssuesClient:
997
997
  raise TooManyRequestsError(
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 AsyncRawIssuesClient:
1008
1008
  raise InternalServerError(
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 AsyncRawIssuesClient:
1019
1019
  raise NotImplementedError(
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 AsyncRawIssuesClient:
1030
1030
  raise BadGatewayError(
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 AsyncRawIssuesClient:
1041
1041
  raise ServiceUnavailableError(
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 AsyncRawIssuesClient:
1052
1052
  raise GatewayTimeoutError(
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
  ),