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
@@ -125,9 +125,9 @@ class RawIftaClient:
125
125
  raise UnauthorizedError(
126
126
  headers=dict(_response.headers),
127
127
  body=typing.cast(
128
- typing.Optional[typing.Any],
128
+ typing.Any,
129
129
  parse_obj_as(
130
- type_=typing.Optional[typing.Any], # type: ignore
130
+ type_=typing.Any, # type: ignore
131
131
  object_=_response.json(),
132
132
  ),
133
133
  ),
@@ -136,9 +136,9 @@ class RawIftaClient:
136
136
  raise NotFoundError(
137
137
  headers=dict(_response.headers),
138
138
  body=typing.cast(
139
- typing.Optional[typing.Any],
139
+ typing.Any,
140
140
  parse_obj_as(
141
- type_=typing.Optional[typing.Any], # type: ignore
141
+ type_=typing.Any, # type: ignore
142
142
  object_=_response.json(),
143
143
  ),
144
144
  ),
@@ -147,9 +147,9 @@ class RawIftaClient:
147
147
  raise MethodNotAllowedError(
148
148
  headers=dict(_response.headers),
149
149
  body=typing.cast(
150
- typing.Optional[typing.Any],
150
+ typing.Any,
151
151
  parse_obj_as(
152
- type_=typing.Optional[typing.Any], # type: ignore
152
+ type_=typing.Any, # type: ignore
153
153
  object_=_response.json(),
154
154
  ),
155
155
  ),
@@ -158,9 +158,9 @@ class RawIftaClient:
158
158
  raise TooManyRequestsError(
159
159
  headers=dict(_response.headers),
160
160
  body=typing.cast(
161
- typing.Optional[typing.Any],
161
+ typing.Any,
162
162
  parse_obj_as(
163
- type_=typing.Optional[typing.Any], # type: ignore
163
+ type_=typing.Any, # type: ignore
164
164
  object_=_response.json(),
165
165
  ),
166
166
  ),
@@ -169,9 +169,9 @@ class RawIftaClient:
169
169
  raise InternalServerError(
170
170
  headers=dict(_response.headers),
171
171
  body=typing.cast(
172
- typing.Optional[typing.Any],
172
+ typing.Any,
173
173
  parse_obj_as(
174
- type_=typing.Optional[typing.Any], # type: ignore
174
+ type_=typing.Any, # type: ignore
175
175
  object_=_response.json(),
176
176
  ),
177
177
  ),
@@ -180,9 +180,9 @@ class RawIftaClient:
180
180
  raise NotImplementedError(
181
181
  headers=dict(_response.headers),
182
182
  body=typing.cast(
183
- typing.Optional[typing.Any],
183
+ typing.Any,
184
184
  parse_obj_as(
185
- type_=typing.Optional[typing.Any], # type: ignore
185
+ type_=typing.Any, # type: ignore
186
186
  object_=_response.json(),
187
187
  ),
188
188
  ),
@@ -191,9 +191,9 @@ class RawIftaClient:
191
191
  raise BadGatewayError(
192
192
  headers=dict(_response.headers),
193
193
  body=typing.cast(
194
- typing.Optional[typing.Any],
194
+ typing.Any,
195
195
  parse_obj_as(
196
- type_=typing.Optional[typing.Any], # type: ignore
196
+ type_=typing.Any, # type: ignore
197
197
  object_=_response.json(),
198
198
  ),
199
199
  ),
@@ -202,9 +202,9 @@ class RawIftaClient:
202
202
  raise ServiceUnavailableError(
203
203
  headers=dict(_response.headers),
204
204
  body=typing.cast(
205
- typing.Optional[typing.Any],
205
+ typing.Any,
206
206
  parse_obj_as(
207
- type_=typing.Optional[typing.Any], # type: ignore
207
+ type_=typing.Any, # type: ignore
208
208
  object_=_response.json(),
209
209
  ),
210
210
  ),
@@ -213,9 +213,9 @@ class RawIftaClient:
213
213
  raise GatewayTimeoutError(
214
214
  headers=dict(_response.headers),
215
215
  body=typing.cast(
216
- typing.Optional[typing.Any],
216
+ typing.Any,
217
217
  parse_obj_as(
218
- type_=typing.Optional[typing.Any], # type: ignore
218
+ type_=typing.Any, # type: ignore
219
219
  object_=_response.json(),
220
220
  ),
221
221
  ),
@@ -318,9 +318,9 @@ class RawIftaClient:
318
318
  raise UnauthorizedError(
319
319
  headers=dict(_response.headers),
320
320
  body=typing.cast(
321
- typing.Optional[typing.Any],
321
+ typing.Any,
322
322
  parse_obj_as(
323
- type_=typing.Optional[typing.Any], # type: ignore
323
+ type_=typing.Any, # type: ignore
324
324
  object_=_response.json(),
325
325
  ),
326
326
  ),
@@ -329,9 +329,9 @@ class RawIftaClient:
329
329
  raise NotFoundError(
330
330
  headers=dict(_response.headers),
331
331
  body=typing.cast(
332
- typing.Optional[typing.Any],
332
+ typing.Any,
333
333
  parse_obj_as(
334
- type_=typing.Optional[typing.Any], # type: ignore
334
+ type_=typing.Any, # type: ignore
335
335
  object_=_response.json(),
336
336
  ),
337
337
  ),
@@ -340,9 +340,9 @@ class RawIftaClient:
340
340
  raise MethodNotAllowedError(
341
341
  headers=dict(_response.headers),
342
342
  body=typing.cast(
343
- typing.Optional[typing.Any],
343
+ typing.Any,
344
344
  parse_obj_as(
345
- type_=typing.Optional[typing.Any], # type: ignore
345
+ type_=typing.Any, # type: ignore
346
346
  object_=_response.json(),
347
347
  ),
348
348
  ),
@@ -351,9 +351,9 @@ class RawIftaClient:
351
351
  raise TooManyRequestsError(
352
352
  headers=dict(_response.headers),
353
353
  body=typing.cast(
354
- typing.Optional[typing.Any],
354
+ typing.Any,
355
355
  parse_obj_as(
356
- type_=typing.Optional[typing.Any], # type: ignore
356
+ type_=typing.Any, # type: ignore
357
357
  object_=_response.json(),
358
358
  ),
359
359
  ),
@@ -362,9 +362,9 @@ class RawIftaClient:
362
362
  raise InternalServerError(
363
363
  headers=dict(_response.headers),
364
364
  body=typing.cast(
365
- typing.Optional[typing.Any],
365
+ typing.Any,
366
366
  parse_obj_as(
367
- type_=typing.Optional[typing.Any], # type: ignore
367
+ type_=typing.Any, # type: ignore
368
368
  object_=_response.json(),
369
369
  ),
370
370
  ),
@@ -373,9 +373,9 @@ class RawIftaClient:
373
373
  raise NotImplementedError(
374
374
  headers=dict(_response.headers),
375
375
  body=typing.cast(
376
- typing.Optional[typing.Any],
376
+ typing.Any,
377
377
  parse_obj_as(
378
- type_=typing.Optional[typing.Any], # type: ignore
378
+ type_=typing.Any, # type: ignore
379
379
  object_=_response.json(),
380
380
  ),
381
381
  ),
@@ -384,9 +384,9 @@ class RawIftaClient:
384
384
  raise BadGatewayError(
385
385
  headers=dict(_response.headers),
386
386
  body=typing.cast(
387
- typing.Optional[typing.Any],
387
+ typing.Any,
388
388
  parse_obj_as(
389
- type_=typing.Optional[typing.Any], # type: ignore
389
+ type_=typing.Any, # type: ignore
390
390
  object_=_response.json(),
391
391
  ),
392
392
  ),
@@ -395,9 +395,9 @@ class RawIftaClient:
395
395
  raise ServiceUnavailableError(
396
396
  headers=dict(_response.headers),
397
397
  body=typing.cast(
398
- typing.Optional[typing.Any],
398
+ typing.Any,
399
399
  parse_obj_as(
400
- type_=typing.Optional[typing.Any], # type: ignore
400
+ type_=typing.Any, # type: ignore
401
401
  object_=_response.json(),
402
402
  ),
403
403
  ),
@@ -406,9 +406,9 @@ class RawIftaClient:
406
406
  raise GatewayTimeoutError(
407
407
  headers=dict(_response.headers),
408
408
  body=typing.cast(
409
- typing.Optional[typing.Any],
409
+ typing.Any,
410
410
  parse_obj_as(
411
- type_=typing.Optional[typing.Any], # type: ignore
411
+ type_=typing.Any, # type: ignore
412
412
  object_=_response.json(),
413
413
  ),
414
414
  ),
@@ -493,9 +493,9 @@ class RawIftaClient:
493
493
  raise UnauthorizedError(
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 RawIftaClient:
504
504
  raise NotFoundError(
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 RawIftaClient:
515
515
  raise MethodNotAllowedError(
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 RawIftaClient:
526
526
  raise TooManyRequestsError(
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 RawIftaClient:
537
537
  raise InternalServerError(
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 RawIftaClient:
548
548
  raise NotImplementedError(
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
  ),
@@ -559,9 +559,9 @@ class RawIftaClient:
559
559
  raise BadGatewayError(
560
560
  headers=dict(_response.headers),
561
561
  body=typing.cast(
562
- typing.Optional[typing.Any],
562
+ typing.Any,
563
563
  parse_obj_as(
564
- type_=typing.Optional[typing.Any], # type: ignore
564
+ type_=typing.Any, # type: ignore
565
565
  object_=_response.json(),
566
566
  ),
567
567
  ),
@@ -570,9 +570,9 @@ class RawIftaClient:
570
570
  raise ServiceUnavailableError(
571
571
  headers=dict(_response.headers),
572
572
  body=typing.cast(
573
- typing.Optional[typing.Any],
573
+ typing.Any,
574
574
  parse_obj_as(
575
- type_=typing.Optional[typing.Any], # type: ignore
575
+ type_=typing.Any, # type: ignore
576
576
  object_=_response.json(),
577
577
  ),
578
578
  ),
@@ -581,9 +581,9 @@ class RawIftaClient:
581
581
  raise GatewayTimeoutError(
582
582
  headers=dict(_response.headers),
583
583
  body=typing.cast(
584
- typing.Optional[typing.Any],
584
+ typing.Any,
585
585
  parse_obj_as(
586
- type_=typing.Optional[typing.Any], # type: ignore
586
+ type_=typing.Any, # type: ignore
587
587
  object_=_response.json(),
588
588
  ),
589
589
  ),
@@ -638,9 +638,9 @@ class RawIftaClient:
638
638
  raise UnauthorizedError(
639
639
  headers=dict(_response.headers),
640
640
  body=typing.cast(
641
- typing.Optional[typing.Any],
641
+ typing.Any,
642
642
  parse_obj_as(
643
- type_=typing.Optional[typing.Any], # type: ignore
643
+ type_=typing.Any, # type: ignore
644
644
  object_=_response.json(),
645
645
  ),
646
646
  ),
@@ -649,9 +649,9 @@ class RawIftaClient:
649
649
  raise NotFoundError(
650
650
  headers=dict(_response.headers),
651
651
  body=typing.cast(
652
- typing.Optional[typing.Any],
652
+ typing.Any,
653
653
  parse_obj_as(
654
- type_=typing.Optional[typing.Any], # type: ignore
654
+ type_=typing.Any, # type: ignore
655
655
  object_=_response.json(),
656
656
  ),
657
657
  ),
@@ -660,9 +660,9 @@ class RawIftaClient:
660
660
  raise MethodNotAllowedError(
661
661
  headers=dict(_response.headers),
662
662
  body=typing.cast(
663
- typing.Optional[typing.Any],
663
+ typing.Any,
664
664
  parse_obj_as(
665
- type_=typing.Optional[typing.Any], # type: ignore
665
+ type_=typing.Any, # type: ignore
666
666
  object_=_response.json(),
667
667
  ),
668
668
  ),
@@ -671,9 +671,9 @@ class RawIftaClient:
671
671
  raise TooManyRequestsError(
672
672
  headers=dict(_response.headers),
673
673
  body=typing.cast(
674
- typing.Optional[typing.Any],
674
+ typing.Any,
675
675
  parse_obj_as(
676
- type_=typing.Optional[typing.Any], # type: ignore
676
+ type_=typing.Any, # type: ignore
677
677
  object_=_response.json(),
678
678
  ),
679
679
  ),
@@ -682,9 +682,9 @@ class RawIftaClient:
682
682
  raise InternalServerError(
683
683
  headers=dict(_response.headers),
684
684
  body=typing.cast(
685
- typing.Optional[typing.Any],
685
+ typing.Any,
686
686
  parse_obj_as(
687
- type_=typing.Optional[typing.Any], # type: ignore
687
+ type_=typing.Any, # type: ignore
688
688
  object_=_response.json(),
689
689
  ),
690
690
  ),
@@ -693,9 +693,9 @@ class RawIftaClient:
693
693
  raise NotImplementedError(
694
694
  headers=dict(_response.headers),
695
695
  body=typing.cast(
696
- typing.Optional[typing.Any],
696
+ typing.Any,
697
697
  parse_obj_as(
698
- type_=typing.Optional[typing.Any], # type: ignore
698
+ type_=typing.Any, # type: ignore
699
699
  object_=_response.json(),
700
700
  ),
701
701
  ),
@@ -704,9 +704,9 @@ class RawIftaClient:
704
704
  raise BadGatewayError(
705
705
  headers=dict(_response.headers),
706
706
  body=typing.cast(
707
- typing.Optional[typing.Any],
707
+ typing.Any,
708
708
  parse_obj_as(
709
- type_=typing.Optional[typing.Any], # type: ignore
709
+ type_=typing.Any, # type: ignore
710
710
  object_=_response.json(),
711
711
  ),
712
712
  ),
@@ -715,9 +715,9 @@ class RawIftaClient:
715
715
  raise ServiceUnavailableError(
716
716
  headers=dict(_response.headers),
717
717
  body=typing.cast(
718
- typing.Optional[typing.Any],
718
+ typing.Any,
719
719
  parse_obj_as(
720
- type_=typing.Optional[typing.Any], # type: ignore
720
+ type_=typing.Any, # type: ignore
721
721
  object_=_response.json(),
722
722
  ),
723
723
  ),
@@ -726,9 +726,9 @@ class RawIftaClient:
726
726
  raise GatewayTimeoutError(
727
727
  headers=dict(_response.headers),
728
728
  body=typing.cast(
729
- typing.Optional[typing.Any],
729
+ typing.Any,
730
730
  parse_obj_as(
731
- type_=typing.Optional[typing.Any], # type: ignore
731
+ type_=typing.Any, # type: ignore
732
732
  object_=_response.json(),
733
733
  ),
734
734
  ),
@@ -831,9 +831,9 @@ class AsyncRawIftaClient:
831
831
  raise UnauthorizedError(
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 AsyncRawIftaClient:
842
842
  raise NotFoundError(
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 AsyncRawIftaClient:
853
853
  raise MethodNotAllowedError(
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 AsyncRawIftaClient:
864
864
  raise TooManyRequestsError(
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 AsyncRawIftaClient:
875
875
  raise InternalServerError(
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 AsyncRawIftaClient:
886
886
  raise NotImplementedError(
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
  ),
@@ -897,9 +897,9 @@ class AsyncRawIftaClient:
897
897
  raise BadGatewayError(
898
898
  headers=dict(_response.headers),
899
899
  body=typing.cast(
900
- typing.Optional[typing.Any],
900
+ typing.Any,
901
901
  parse_obj_as(
902
- type_=typing.Optional[typing.Any], # type: ignore
902
+ type_=typing.Any, # type: ignore
903
903
  object_=_response.json(),
904
904
  ),
905
905
  ),
@@ -908,9 +908,9 @@ class AsyncRawIftaClient:
908
908
  raise ServiceUnavailableError(
909
909
  headers=dict(_response.headers),
910
910
  body=typing.cast(
911
- typing.Optional[typing.Any],
911
+ typing.Any,
912
912
  parse_obj_as(
913
- type_=typing.Optional[typing.Any], # type: ignore
913
+ type_=typing.Any, # type: ignore
914
914
  object_=_response.json(),
915
915
  ),
916
916
  ),
@@ -919,9 +919,9 @@ class AsyncRawIftaClient:
919
919
  raise GatewayTimeoutError(
920
920
  headers=dict(_response.headers),
921
921
  body=typing.cast(
922
- typing.Optional[typing.Any],
922
+ typing.Any,
923
923
  parse_obj_as(
924
- type_=typing.Optional[typing.Any], # type: ignore
924
+ type_=typing.Any, # type: ignore
925
925
  object_=_response.json(),
926
926
  ),
927
927
  ),
@@ -1024,9 +1024,9 @@ class AsyncRawIftaClient:
1024
1024
  raise UnauthorizedError(
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 AsyncRawIftaClient:
1035
1035
  raise NotFoundError(
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 AsyncRawIftaClient:
1046
1046
  raise MethodNotAllowedError(
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 AsyncRawIftaClient:
1057
1057
  raise TooManyRequestsError(
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
  ),
@@ -1068,9 +1068,9 @@ class AsyncRawIftaClient:
1068
1068
  raise InternalServerError(
1069
1069
  headers=dict(_response.headers),
1070
1070
  body=typing.cast(
1071
- typing.Optional[typing.Any],
1071
+ typing.Any,
1072
1072
  parse_obj_as(
1073
- type_=typing.Optional[typing.Any], # type: ignore
1073
+ type_=typing.Any, # type: ignore
1074
1074
  object_=_response.json(),
1075
1075
  ),
1076
1076
  ),
@@ -1079,9 +1079,9 @@ class AsyncRawIftaClient:
1079
1079
  raise NotImplementedError(
1080
1080
  headers=dict(_response.headers),
1081
1081
  body=typing.cast(
1082
- typing.Optional[typing.Any],
1082
+ typing.Any,
1083
1083
  parse_obj_as(
1084
- type_=typing.Optional[typing.Any], # type: ignore
1084
+ type_=typing.Any, # type: ignore
1085
1085
  object_=_response.json(),
1086
1086
  ),
1087
1087
  ),
@@ -1090,9 +1090,9 @@ class AsyncRawIftaClient:
1090
1090
  raise BadGatewayError(
1091
1091
  headers=dict(_response.headers),
1092
1092
  body=typing.cast(
1093
- typing.Optional[typing.Any],
1093
+ typing.Any,
1094
1094
  parse_obj_as(
1095
- type_=typing.Optional[typing.Any], # type: ignore
1095
+ type_=typing.Any, # type: ignore
1096
1096
  object_=_response.json(),
1097
1097
  ),
1098
1098
  ),
@@ -1101,9 +1101,9 @@ class AsyncRawIftaClient:
1101
1101
  raise ServiceUnavailableError(
1102
1102
  headers=dict(_response.headers),
1103
1103
  body=typing.cast(
1104
- typing.Optional[typing.Any],
1104
+ typing.Any,
1105
1105
  parse_obj_as(
1106
- type_=typing.Optional[typing.Any], # type: ignore
1106
+ type_=typing.Any, # type: ignore
1107
1107
  object_=_response.json(),
1108
1108
  ),
1109
1109
  ),
@@ -1112,9 +1112,9 @@ class AsyncRawIftaClient:
1112
1112
  raise GatewayTimeoutError(
1113
1113
  headers=dict(_response.headers),
1114
1114
  body=typing.cast(
1115
- typing.Optional[typing.Any],
1115
+ typing.Any,
1116
1116
  parse_obj_as(
1117
- type_=typing.Optional[typing.Any], # type: ignore
1117
+ type_=typing.Any, # type: ignore
1118
1118
  object_=_response.json(),
1119
1119
  ),
1120
1120
  ),
@@ -1199,9 +1199,9 @@ class AsyncRawIftaClient:
1199
1199
  raise UnauthorizedError(
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 AsyncRawIftaClient:
1210
1210
  raise NotFoundError(
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 AsyncRawIftaClient:
1221
1221
  raise MethodNotAllowedError(
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 AsyncRawIftaClient:
1232
1232
  raise TooManyRequestsError(
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 AsyncRawIftaClient:
1243
1243
  raise InternalServerError(
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
  ),
@@ -1254,9 +1254,9 @@ class AsyncRawIftaClient:
1254
1254
  raise NotImplementedError(
1255
1255
  headers=dict(_response.headers),
1256
1256
  body=typing.cast(
1257
- typing.Optional[typing.Any],
1257
+ typing.Any,
1258
1258
  parse_obj_as(
1259
- type_=typing.Optional[typing.Any], # type: ignore
1259
+ type_=typing.Any, # type: ignore
1260
1260
  object_=_response.json(),
1261
1261
  ),
1262
1262
  ),
@@ -1265,9 +1265,9 @@ class AsyncRawIftaClient:
1265
1265
  raise BadGatewayError(
1266
1266
  headers=dict(_response.headers),
1267
1267
  body=typing.cast(
1268
- typing.Optional[typing.Any],
1268
+ typing.Any,
1269
1269
  parse_obj_as(
1270
- type_=typing.Optional[typing.Any], # type: ignore
1270
+ type_=typing.Any, # type: ignore
1271
1271
  object_=_response.json(),
1272
1272
  ),
1273
1273
  ),
@@ -1276,9 +1276,9 @@ class AsyncRawIftaClient:
1276
1276
  raise ServiceUnavailableError(
1277
1277
  headers=dict(_response.headers),
1278
1278
  body=typing.cast(
1279
- typing.Optional[typing.Any],
1279
+ typing.Any,
1280
1280
  parse_obj_as(
1281
- type_=typing.Optional[typing.Any], # type: ignore
1281
+ type_=typing.Any, # type: ignore
1282
1282
  object_=_response.json(),
1283
1283
  ),
1284
1284
  ),
@@ -1287,9 +1287,9 @@ class AsyncRawIftaClient:
1287
1287
  raise GatewayTimeoutError(
1288
1288
  headers=dict(_response.headers),
1289
1289
  body=typing.cast(
1290
- typing.Optional[typing.Any],
1290
+ typing.Any,
1291
1291
  parse_obj_as(
1292
- type_=typing.Optional[typing.Any], # type: ignore
1292
+ type_=typing.Any, # type: ignore
1293
1293
  object_=_response.json(),
1294
1294
  ),
1295
1295
  ),
@@ -1344,9 +1344,9 @@ class AsyncRawIftaClient:
1344
1344
  raise UnauthorizedError(
1345
1345
  headers=dict(_response.headers),
1346
1346
  body=typing.cast(
1347
- typing.Optional[typing.Any],
1347
+ typing.Any,
1348
1348
  parse_obj_as(
1349
- type_=typing.Optional[typing.Any], # type: ignore
1349
+ type_=typing.Any, # type: ignore
1350
1350
  object_=_response.json(),
1351
1351
  ),
1352
1352
  ),
@@ -1355,9 +1355,9 @@ class AsyncRawIftaClient:
1355
1355
  raise NotFoundError(
1356
1356
  headers=dict(_response.headers),
1357
1357
  body=typing.cast(
1358
- typing.Optional[typing.Any],
1358
+ typing.Any,
1359
1359
  parse_obj_as(
1360
- type_=typing.Optional[typing.Any], # type: ignore
1360
+ type_=typing.Any, # type: ignore
1361
1361
  object_=_response.json(),
1362
1362
  ),
1363
1363
  ),
@@ -1366,9 +1366,9 @@ class AsyncRawIftaClient:
1366
1366
  raise MethodNotAllowedError(
1367
1367
  headers=dict(_response.headers),
1368
1368
  body=typing.cast(
1369
- typing.Optional[typing.Any],
1369
+ typing.Any,
1370
1370
  parse_obj_as(
1371
- type_=typing.Optional[typing.Any], # type: ignore
1371
+ type_=typing.Any, # type: ignore
1372
1372
  object_=_response.json(),
1373
1373
  ),
1374
1374
  ),
@@ -1377,9 +1377,9 @@ class AsyncRawIftaClient:
1377
1377
  raise TooManyRequestsError(
1378
1378
  headers=dict(_response.headers),
1379
1379
  body=typing.cast(
1380
- typing.Optional[typing.Any],
1380
+ typing.Any,
1381
1381
  parse_obj_as(
1382
- type_=typing.Optional[typing.Any], # type: ignore
1382
+ type_=typing.Any, # type: ignore
1383
1383
  object_=_response.json(),
1384
1384
  ),
1385
1385
  ),
@@ -1388,9 +1388,9 @@ class AsyncRawIftaClient:
1388
1388
  raise InternalServerError(
1389
1389
  headers=dict(_response.headers),
1390
1390
  body=typing.cast(
1391
- typing.Optional[typing.Any],
1391
+ typing.Any,
1392
1392
  parse_obj_as(
1393
- type_=typing.Optional[typing.Any], # type: ignore
1393
+ type_=typing.Any, # type: ignore
1394
1394
  object_=_response.json(),
1395
1395
  ),
1396
1396
  ),
@@ -1399,9 +1399,9 @@ class AsyncRawIftaClient:
1399
1399
  raise NotImplementedError(
1400
1400
  headers=dict(_response.headers),
1401
1401
  body=typing.cast(
1402
- typing.Optional[typing.Any],
1402
+ typing.Any,
1403
1403
  parse_obj_as(
1404
- type_=typing.Optional[typing.Any], # type: ignore
1404
+ type_=typing.Any, # type: ignore
1405
1405
  object_=_response.json(),
1406
1406
  ),
1407
1407
  ),
@@ -1410,9 +1410,9 @@ class AsyncRawIftaClient:
1410
1410
  raise BadGatewayError(
1411
1411
  headers=dict(_response.headers),
1412
1412
  body=typing.cast(
1413
- typing.Optional[typing.Any],
1413
+ typing.Any,
1414
1414
  parse_obj_as(
1415
- type_=typing.Optional[typing.Any], # type: ignore
1415
+ type_=typing.Any, # type: ignore
1416
1416
  object_=_response.json(),
1417
1417
  ),
1418
1418
  ),
@@ -1421,9 +1421,9 @@ class AsyncRawIftaClient:
1421
1421
  raise ServiceUnavailableError(
1422
1422
  headers=dict(_response.headers),
1423
1423
  body=typing.cast(
1424
- typing.Optional[typing.Any],
1424
+ typing.Any,
1425
1425
  parse_obj_as(
1426
- type_=typing.Optional[typing.Any], # type: ignore
1426
+ type_=typing.Any, # type: ignore
1427
1427
  object_=_response.json(),
1428
1428
  ),
1429
1429
  ),
@@ -1432,9 +1432,9 @@ class AsyncRawIftaClient:
1432
1432
  raise GatewayTimeoutError(
1433
1433
  headers=dict(_response.headers),
1434
1434
  body=typing.cast(
1435
- typing.Optional[typing.Any],
1435
+ typing.Any,
1436
1436
  parse_obj_as(
1437
- type_=typing.Optional[typing.Any], # type: ignore
1437
+ type_=typing.Any, # type: ignore
1438
1438
  object_=_response.json(),
1439
1439
  ),
1440
1440
  ),