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
@@ -189,9 +189,9 @@ class RawLegacyApIsClient:
189
189
  raise UnauthorizedError(
190
190
  headers=dict(_response.headers),
191
191
  body=typing.cast(
192
- typing.Optional[typing.Any],
192
+ typing.Any,
193
193
  parse_obj_as(
194
- type_=typing.Optional[typing.Any], # type: ignore
194
+ type_=typing.Any, # type: ignore
195
195
  object_=_response.json(),
196
196
  ),
197
197
  ),
@@ -200,9 +200,9 @@ class RawLegacyApIsClient:
200
200
  raise NotFoundError(
201
201
  headers=dict(_response.headers),
202
202
  body=typing.cast(
203
- typing.Optional[typing.Any],
203
+ typing.Any,
204
204
  parse_obj_as(
205
- type_=typing.Optional[typing.Any], # type: ignore
205
+ type_=typing.Any, # type: ignore
206
206
  object_=_response.json(),
207
207
  ),
208
208
  ),
@@ -211,9 +211,9 @@ class RawLegacyApIsClient:
211
211
  raise MethodNotAllowedError(
212
212
  headers=dict(_response.headers),
213
213
  body=typing.cast(
214
- typing.Optional[typing.Any],
214
+ typing.Any,
215
215
  parse_obj_as(
216
- type_=typing.Optional[typing.Any], # type: ignore
216
+ type_=typing.Any, # type: ignore
217
217
  object_=_response.json(),
218
218
  ),
219
219
  ),
@@ -222,9 +222,9 @@ class RawLegacyApIsClient:
222
222
  raise TooManyRequestsError(
223
223
  headers=dict(_response.headers),
224
224
  body=typing.cast(
225
- typing.Optional[typing.Any],
225
+ typing.Any,
226
226
  parse_obj_as(
227
- type_=typing.Optional[typing.Any], # type: ignore
227
+ type_=typing.Any, # type: ignore
228
228
  object_=_response.json(),
229
229
  ),
230
230
  ),
@@ -233,9 +233,9 @@ class RawLegacyApIsClient:
233
233
  raise InternalServerError(
234
234
  headers=dict(_response.headers),
235
235
  body=typing.cast(
236
- typing.Optional[typing.Any],
236
+ typing.Any,
237
237
  parse_obj_as(
238
- type_=typing.Optional[typing.Any], # type: ignore
238
+ type_=typing.Any, # type: ignore
239
239
  object_=_response.json(),
240
240
  ),
241
241
  ),
@@ -244,9 +244,9 @@ class RawLegacyApIsClient:
244
244
  raise NotImplementedError(
245
245
  headers=dict(_response.headers),
246
246
  body=typing.cast(
247
- typing.Optional[typing.Any],
247
+ typing.Any,
248
248
  parse_obj_as(
249
- type_=typing.Optional[typing.Any], # type: ignore
249
+ type_=typing.Any, # type: ignore
250
250
  object_=_response.json(),
251
251
  ),
252
252
  ),
@@ -255,9 +255,9 @@ class RawLegacyApIsClient:
255
255
  raise BadGatewayError(
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 RawLegacyApIsClient:
266
266
  raise ServiceUnavailableError(
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 RawLegacyApIsClient:
277
277
  raise GatewayTimeoutError(
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
  ),
@@ -456,9 +456,9 @@ class RawLegacyApIsClient:
456
456
  raise UnauthorizedError(
457
457
  headers=dict(_response.headers),
458
458
  body=typing.cast(
459
- typing.Optional[typing.Any],
459
+ typing.Any,
460
460
  parse_obj_as(
461
- type_=typing.Optional[typing.Any], # type: ignore
461
+ type_=typing.Any, # type: ignore
462
462
  object_=_response.json(),
463
463
  ),
464
464
  ),
@@ -467,9 +467,9 @@ class RawLegacyApIsClient:
467
467
  raise NotFoundError(
468
468
  headers=dict(_response.headers),
469
469
  body=typing.cast(
470
- typing.Optional[typing.Any],
470
+ typing.Any,
471
471
  parse_obj_as(
472
- type_=typing.Optional[typing.Any], # type: ignore
472
+ type_=typing.Any, # type: ignore
473
473
  object_=_response.json(),
474
474
  ),
475
475
  ),
@@ -478,9 +478,9 @@ class RawLegacyApIsClient:
478
478
  raise MethodNotAllowedError(
479
479
  headers=dict(_response.headers),
480
480
  body=typing.cast(
481
- typing.Optional[typing.Any],
481
+ typing.Any,
482
482
  parse_obj_as(
483
- type_=typing.Optional[typing.Any], # type: ignore
483
+ type_=typing.Any, # type: ignore
484
484
  object_=_response.json(),
485
485
  ),
486
486
  ),
@@ -489,9 +489,9 @@ class RawLegacyApIsClient:
489
489
  raise TooManyRequestsError(
490
490
  headers=dict(_response.headers),
491
491
  body=typing.cast(
492
- typing.Optional[typing.Any],
492
+ typing.Any,
493
493
  parse_obj_as(
494
- type_=typing.Optional[typing.Any], # type: ignore
494
+ type_=typing.Any, # type: ignore
495
495
  object_=_response.json(),
496
496
  ),
497
497
  ),
@@ -500,9 +500,9 @@ class RawLegacyApIsClient:
500
500
  raise InternalServerError(
501
501
  headers=dict(_response.headers),
502
502
  body=typing.cast(
503
- typing.Optional[typing.Any],
503
+ typing.Any,
504
504
  parse_obj_as(
505
- type_=typing.Optional[typing.Any], # type: ignore
505
+ type_=typing.Any, # type: ignore
506
506
  object_=_response.json(),
507
507
  ),
508
508
  ),
@@ -511,9 +511,9 @@ class RawLegacyApIsClient:
511
511
  raise NotImplementedError(
512
512
  headers=dict(_response.headers),
513
513
  body=typing.cast(
514
- typing.Optional[typing.Any],
514
+ typing.Any,
515
515
  parse_obj_as(
516
- type_=typing.Optional[typing.Any], # type: ignore
516
+ type_=typing.Any, # type: ignore
517
517
  object_=_response.json(),
518
518
  ),
519
519
  ),
@@ -522,9 +522,9 @@ class RawLegacyApIsClient:
522
522
  raise BadGatewayError(
523
523
  headers=dict(_response.headers),
524
524
  body=typing.cast(
525
- typing.Optional[typing.Any],
525
+ typing.Any,
526
526
  parse_obj_as(
527
- type_=typing.Optional[typing.Any], # type: ignore
527
+ type_=typing.Any, # type: ignore
528
528
  object_=_response.json(),
529
529
  ),
530
530
  ),
@@ -533,9 +533,9 @@ class RawLegacyApIsClient:
533
533
  raise ServiceUnavailableError(
534
534
  headers=dict(_response.headers),
535
535
  body=typing.cast(
536
- typing.Optional[typing.Any],
536
+ typing.Any,
537
537
  parse_obj_as(
538
- type_=typing.Optional[typing.Any], # type: ignore
538
+ type_=typing.Any, # type: ignore
539
539
  object_=_response.json(),
540
540
  ),
541
541
  ),
@@ -544,9 +544,9 @@ class RawLegacyApIsClient:
544
544
  raise GatewayTimeoutError(
545
545
  headers=dict(_response.headers),
546
546
  body=typing.cast(
547
- typing.Optional[typing.Any],
547
+ typing.Any,
548
548
  parse_obj_as(
549
- type_=typing.Optional[typing.Any], # type: ignore
549
+ type_=typing.Any, # type: ignore
550
550
  object_=_response.json(),
551
551
  ),
552
552
  ),
@@ -632,9 +632,9 @@ class RawLegacyApIsClient:
632
632
  raise UnauthorizedError(
633
633
  headers=dict(_response.headers),
634
634
  body=typing.cast(
635
- typing.Optional[typing.Any],
635
+ typing.Any,
636
636
  parse_obj_as(
637
- type_=typing.Optional[typing.Any], # type: ignore
637
+ type_=typing.Any, # type: ignore
638
638
  object_=_response.json(),
639
639
  ),
640
640
  ),
@@ -643,9 +643,9 @@ class RawLegacyApIsClient:
643
643
  raise NotFoundError(
644
644
  headers=dict(_response.headers),
645
645
  body=typing.cast(
646
- typing.Optional[typing.Any],
646
+ typing.Any,
647
647
  parse_obj_as(
648
- type_=typing.Optional[typing.Any], # type: ignore
648
+ type_=typing.Any, # type: ignore
649
649
  object_=_response.json(),
650
650
  ),
651
651
  ),
@@ -654,9 +654,9 @@ class RawLegacyApIsClient:
654
654
  raise MethodNotAllowedError(
655
655
  headers=dict(_response.headers),
656
656
  body=typing.cast(
657
- typing.Optional[typing.Any],
657
+ typing.Any,
658
658
  parse_obj_as(
659
- type_=typing.Optional[typing.Any], # type: ignore
659
+ type_=typing.Any, # type: ignore
660
660
  object_=_response.json(),
661
661
  ),
662
662
  ),
@@ -665,9 +665,9 @@ class RawLegacyApIsClient:
665
665
  raise TooManyRequestsError(
666
666
  headers=dict(_response.headers),
667
667
  body=typing.cast(
668
- typing.Optional[typing.Any],
668
+ typing.Any,
669
669
  parse_obj_as(
670
- type_=typing.Optional[typing.Any], # type: ignore
670
+ type_=typing.Any, # type: ignore
671
671
  object_=_response.json(),
672
672
  ),
673
673
  ),
@@ -676,9 +676,9 @@ class RawLegacyApIsClient:
676
676
  raise InternalServerError(
677
677
  headers=dict(_response.headers),
678
678
  body=typing.cast(
679
- typing.Optional[typing.Any],
679
+ typing.Any,
680
680
  parse_obj_as(
681
- type_=typing.Optional[typing.Any], # type: ignore
681
+ type_=typing.Any, # type: ignore
682
682
  object_=_response.json(),
683
683
  ),
684
684
  ),
@@ -687,9 +687,9 @@ class RawLegacyApIsClient:
687
687
  raise NotImplementedError(
688
688
  headers=dict(_response.headers),
689
689
  body=typing.cast(
690
- typing.Optional[typing.Any],
690
+ typing.Any,
691
691
  parse_obj_as(
692
- type_=typing.Optional[typing.Any], # type: ignore
692
+ type_=typing.Any, # type: ignore
693
693
  object_=_response.json(),
694
694
  ),
695
695
  ),
@@ -698,9 +698,9 @@ class RawLegacyApIsClient:
698
698
  raise BadGatewayError(
699
699
  headers=dict(_response.headers),
700
700
  body=typing.cast(
701
- typing.Optional[typing.Any],
701
+ typing.Any,
702
702
  parse_obj_as(
703
- type_=typing.Optional[typing.Any], # type: ignore
703
+ type_=typing.Any, # type: ignore
704
704
  object_=_response.json(),
705
705
  ),
706
706
  ),
@@ -709,9 +709,9 @@ class RawLegacyApIsClient:
709
709
  raise ServiceUnavailableError(
710
710
  headers=dict(_response.headers),
711
711
  body=typing.cast(
712
- typing.Optional[typing.Any],
712
+ typing.Any,
713
713
  parse_obj_as(
714
- type_=typing.Optional[typing.Any], # type: ignore
714
+ type_=typing.Any, # type: ignore
715
715
  object_=_response.json(),
716
716
  ),
717
717
  ),
@@ -720,9 +720,9 @@ class RawLegacyApIsClient:
720
720
  raise GatewayTimeoutError(
721
721
  headers=dict(_response.headers),
722
722
  body=typing.cast(
723
- typing.Optional[typing.Any],
723
+ typing.Any,
724
724
  parse_obj_as(
725
- type_=typing.Optional[typing.Any], # type: ignore
725
+ type_=typing.Any, # type: ignore
726
726
  object_=_response.json(),
727
727
  ),
728
728
  ),
@@ -889,9 +889,9 @@ class AsyncRawLegacyApIsClient:
889
889
  raise UnauthorizedError(
890
890
  headers=dict(_response.headers),
891
891
  body=typing.cast(
892
- typing.Optional[typing.Any],
892
+ typing.Any,
893
893
  parse_obj_as(
894
- type_=typing.Optional[typing.Any], # type: ignore
894
+ type_=typing.Any, # type: ignore
895
895
  object_=_response.json(),
896
896
  ),
897
897
  ),
@@ -900,9 +900,9 @@ class AsyncRawLegacyApIsClient:
900
900
  raise NotFoundError(
901
901
  headers=dict(_response.headers),
902
902
  body=typing.cast(
903
- typing.Optional[typing.Any],
903
+ typing.Any,
904
904
  parse_obj_as(
905
- type_=typing.Optional[typing.Any], # type: ignore
905
+ type_=typing.Any, # type: ignore
906
906
  object_=_response.json(),
907
907
  ),
908
908
  ),
@@ -911,9 +911,9 @@ class AsyncRawLegacyApIsClient:
911
911
  raise MethodNotAllowedError(
912
912
  headers=dict(_response.headers),
913
913
  body=typing.cast(
914
- typing.Optional[typing.Any],
914
+ typing.Any,
915
915
  parse_obj_as(
916
- type_=typing.Optional[typing.Any], # type: ignore
916
+ type_=typing.Any, # type: ignore
917
917
  object_=_response.json(),
918
918
  ),
919
919
  ),
@@ -922,9 +922,9 @@ class AsyncRawLegacyApIsClient:
922
922
  raise TooManyRequestsError(
923
923
  headers=dict(_response.headers),
924
924
  body=typing.cast(
925
- typing.Optional[typing.Any],
925
+ typing.Any,
926
926
  parse_obj_as(
927
- type_=typing.Optional[typing.Any], # type: ignore
927
+ type_=typing.Any, # type: ignore
928
928
  object_=_response.json(),
929
929
  ),
930
930
  ),
@@ -933,9 +933,9 @@ class AsyncRawLegacyApIsClient:
933
933
  raise InternalServerError(
934
934
  headers=dict(_response.headers),
935
935
  body=typing.cast(
936
- typing.Optional[typing.Any],
936
+ typing.Any,
937
937
  parse_obj_as(
938
- type_=typing.Optional[typing.Any], # type: ignore
938
+ type_=typing.Any, # type: ignore
939
939
  object_=_response.json(),
940
940
  ),
941
941
  ),
@@ -944,9 +944,9 @@ class AsyncRawLegacyApIsClient:
944
944
  raise NotImplementedError(
945
945
  headers=dict(_response.headers),
946
946
  body=typing.cast(
947
- typing.Optional[typing.Any],
947
+ typing.Any,
948
948
  parse_obj_as(
949
- type_=typing.Optional[typing.Any], # type: ignore
949
+ type_=typing.Any, # type: ignore
950
950
  object_=_response.json(),
951
951
  ),
952
952
  ),
@@ -955,9 +955,9 @@ class AsyncRawLegacyApIsClient:
955
955
  raise BadGatewayError(
956
956
  headers=dict(_response.headers),
957
957
  body=typing.cast(
958
- typing.Optional[typing.Any],
958
+ typing.Any,
959
959
  parse_obj_as(
960
- type_=typing.Optional[typing.Any], # type: ignore
960
+ type_=typing.Any, # type: ignore
961
961
  object_=_response.json(),
962
962
  ),
963
963
  ),
@@ -966,9 +966,9 @@ class AsyncRawLegacyApIsClient:
966
966
  raise ServiceUnavailableError(
967
967
  headers=dict(_response.headers),
968
968
  body=typing.cast(
969
- typing.Optional[typing.Any],
969
+ typing.Any,
970
970
  parse_obj_as(
971
- type_=typing.Optional[typing.Any], # type: ignore
971
+ type_=typing.Any, # type: ignore
972
972
  object_=_response.json(),
973
973
  ),
974
974
  ),
@@ -977,9 +977,9 @@ class AsyncRawLegacyApIsClient:
977
977
  raise GatewayTimeoutError(
978
978
  headers=dict(_response.headers),
979
979
  body=typing.cast(
980
- typing.Optional[typing.Any],
980
+ typing.Any,
981
981
  parse_obj_as(
982
- type_=typing.Optional[typing.Any], # type: ignore
982
+ type_=typing.Any, # type: ignore
983
983
  object_=_response.json(),
984
984
  ),
985
985
  ),
@@ -1156,9 +1156,9 @@ class AsyncRawLegacyApIsClient:
1156
1156
  raise UnauthorizedError(
1157
1157
  headers=dict(_response.headers),
1158
1158
  body=typing.cast(
1159
- typing.Optional[typing.Any],
1159
+ typing.Any,
1160
1160
  parse_obj_as(
1161
- type_=typing.Optional[typing.Any], # type: ignore
1161
+ type_=typing.Any, # type: ignore
1162
1162
  object_=_response.json(),
1163
1163
  ),
1164
1164
  ),
@@ -1167,9 +1167,9 @@ class AsyncRawLegacyApIsClient:
1167
1167
  raise NotFoundError(
1168
1168
  headers=dict(_response.headers),
1169
1169
  body=typing.cast(
1170
- typing.Optional[typing.Any],
1170
+ typing.Any,
1171
1171
  parse_obj_as(
1172
- type_=typing.Optional[typing.Any], # type: ignore
1172
+ type_=typing.Any, # type: ignore
1173
1173
  object_=_response.json(),
1174
1174
  ),
1175
1175
  ),
@@ -1178,9 +1178,9 @@ class AsyncRawLegacyApIsClient:
1178
1178
  raise MethodNotAllowedError(
1179
1179
  headers=dict(_response.headers),
1180
1180
  body=typing.cast(
1181
- typing.Optional[typing.Any],
1181
+ typing.Any,
1182
1182
  parse_obj_as(
1183
- type_=typing.Optional[typing.Any], # type: ignore
1183
+ type_=typing.Any, # type: ignore
1184
1184
  object_=_response.json(),
1185
1185
  ),
1186
1186
  ),
@@ -1189,9 +1189,9 @@ class AsyncRawLegacyApIsClient:
1189
1189
  raise TooManyRequestsError(
1190
1190
  headers=dict(_response.headers),
1191
1191
  body=typing.cast(
1192
- typing.Optional[typing.Any],
1192
+ typing.Any,
1193
1193
  parse_obj_as(
1194
- type_=typing.Optional[typing.Any], # type: ignore
1194
+ type_=typing.Any, # type: ignore
1195
1195
  object_=_response.json(),
1196
1196
  ),
1197
1197
  ),
@@ -1200,9 +1200,9 @@ class AsyncRawLegacyApIsClient:
1200
1200
  raise InternalServerError(
1201
1201
  headers=dict(_response.headers),
1202
1202
  body=typing.cast(
1203
- typing.Optional[typing.Any],
1203
+ typing.Any,
1204
1204
  parse_obj_as(
1205
- type_=typing.Optional[typing.Any], # type: ignore
1205
+ type_=typing.Any, # type: ignore
1206
1206
  object_=_response.json(),
1207
1207
  ),
1208
1208
  ),
@@ -1211,9 +1211,9 @@ class AsyncRawLegacyApIsClient:
1211
1211
  raise NotImplementedError(
1212
1212
  headers=dict(_response.headers),
1213
1213
  body=typing.cast(
1214
- typing.Optional[typing.Any],
1214
+ typing.Any,
1215
1215
  parse_obj_as(
1216
- type_=typing.Optional[typing.Any], # type: ignore
1216
+ type_=typing.Any, # type: ignore
1217
1217
  object_=_response.json(),
1218
1218
  ),
1219
1219
  ),
@@ -1222,9 +1222,9 @@ class AsyncRawLegacyApIsClient:
1222
1222
  raise BadGatewayError(
1223
1223
  headers=dict(_response.headers),
1224
1224
  body=typing.cast(
1225
- typing.Optional[typing.Any],
1225
+ typing.Any,
1226
1226
  parse_obj_as(
1227
- type_=typing.Optional[typing.Any], # type: ignore
1227
+ type_=typing.Any, # type: ignore
1228
1228
  object_=_response.json(),
1229
1229
  ),
1230
1230
  ),
@@ -1233,9 +1233,9 @@ class AsyncRawLegacyApIsClient:
1233
1233
  raise ServiceUnavailableError(
1234
1234
  headers=dict(_response.headers),
1235
1235
  body=typing.cast(
1236
- typing.Optional[typing.Any],
1236
+ typing.Any,
1237
1237
  parse_obj_as(
1238
- type_=typing.Optional[typing.Any], # type: ignore
1238
+ type_=typing.Any, # type: ignore
1239
1239
  object_=_response.json(),
1240
1240
  ),
1241
1241
  ),
@@ -1244,9 +1244,9 @@ class AsyncRawLegacyApIsClient:
1244
1244
  raise GatewayTimeoutError(
1245
1245
  headers=dict(_response.headers),
1246
1246
  body=typing.cast(
1247
- typing.Optional[typing.Any],
1247
+ typing.Any,
1248
1248
  parse_obj_as(
1249
- type_=typing.Optional[typing.Any], # type: ignore
1249
+ type_=typing.Any, # type: ignore
1250
1250
  object_=_response.json(),
1251
1251
  ),
1252
1252
  ),
@@ -1332,9 +1332,9 @@ class AsyncRawLegacyApIsClient:
1332
1332
  raise UnauthorizedError(
1333
1333
  headers=dict(_response.headers),
1334
1334
  body=typing.cast(
1335
- typing.Optional[typing.Any],
1335
+ typing.Any,
1336
1336
  parse_obj_as(
1337
- type_=typing.Optional[typing.Any], # type: ignore
1337
+ type_=typing.Any, # type: ignore
1338
1338
  object_=_response.json(),
1339
1339
  ),
1340
1340
  ),
@@ -1343,9 +1343,9 @@ class AsyncRawLegacyApIsClient:
1343
1343
  raise NotFoundError(
1344
1344
  headers=dict(_response.headers),
1345
1345
  body=typing.cast(
1346
- typing.Optional[typing.Any],
1346
+ typing.Any,
1347
1347
  parse_obj_as(
1348
- type_=typing.Optional[typing.Any], # type: ignore
1348
+ type_=typing.Any, # type: ignore
1349
1349
  object_=_response.json(),
1350
1350
  ),
1351
1351
  ),
@@ -1354,9 +1354,9 @@ class AsyncRawLegacyApIsClient:
1354
1354
  raise MethodNotAllowedError(
1355
1355
  headers=dict(_response.headers),
1356
1356
  body=typing.cast(
1357
- typing.Optional[typing.Any],
1357
+ typing.Any,
1358
1358
  parse_obj_as(
1359
- type_=typing.Optional[typing.Any], # type: ignore
1359
+ type_=typing.Any, # type: ignore
1360
1360
  object_=_response.json(),
1361
1361
  ),
1362
1362
  ),
@@ -1365,9 +1365,9 @@ class AsyncRawLegacyApIsClient:
1365
1365
  raise TooManyRequestsError(
1366
1366
  headers=dict(_response.headers),
1367
1367
  body=typing.cast(
1368
- typing.Optional[typing.Any],
1368
+ typing.Any,
1369
1369
  parse_obj_as(
1370
- type_=typing.Optional[typing.Any], # type: ignore
1370
+ type_=typing.Any, # type: ignore
1371
1371
  object_=_response.json(),
1372
1372
  ),
1373
1373
  ),
@@ -1376,9 +1376,9 @@ class AsyncRawLegacyApIsClient:
1376
1376
  raise InternalServerError(
1377
1377
  headers=dict(_response.headers),
1378
1378
  body=typing.cast(
1379
- typing.Optional[typing.Any],
1379
+ typing.Any,
1380
1380
  parse_obj_as(
1381
- type_=typing.Optional[typing.Any], # type: ignore
1381
+ type_=typing.Any, # type: ignore
1382
1382
  object_=_response.json(),
1383
1383
  ),
1384
1384
  ),
@@ -1387,9 +1387,9 @@ class AsyncRawLegacyApIsClient:
1387
1387
  raise NotImplementedError(
1388
1388
  headers=dict(_response.headers),
1389
1389
  body=typing.cast(
1390
- typing.Optional[typing.Any],
1390
+ typing.Any,
1391
1391
  parse_obj_as(
1392
- type_=typing.Optional[typing.Any], # type: ignore
1392
+ type_=typing.Any, # type: ignore
1393
1393
  object_=_response.json(),
1394
1394
  ),
1395
1395
  ),
@@ -1398,9 +1398,9 @@ class AsyncRawLegacyApIsClient:
1398
1398
  raise BadGatewayError(
1399
1399
  headers=dict(_response.headers),
1400
1400
  body=typing.cast(
1401
- typing.Optional[typing.Any],
1401
+ typing.Any,
1402
1402
  parse_obj_as(
1403
- type_=typing.Optional[typing.Any], # type: ignore
1403
+ type_=typing.Any, # type: ignore
1404
1404
  object_=_response.json(),
1405
1405
  ),
1406
1406
  ),
@@ -1409,9 +1409,9 @@ class AsyncRawLegacyApIsClient:
1409
1409
  raise ServiceUnavailableError(
1410
1410
  headers=dict(_response.headers),
1411
1411
  body=typing.cast(
1412
- typing.Optional[typing.Any],
1412
+ typing.Any,
1413
1413
  parse_obj_as(
1414
- type_=typing.Optional[typing.Any], # type: ignore
1414
+ type_=typing.Any, # type: ignore
1415
1415
  object_=_response.json(),
1416
1416
  ),
1417
1417
  ),
@@ -1420,9 +1420,9 @@ class AsyncRawLegacyApIsClient:
1420
1420
  raise GatewayTimeoutError(
1421
1421
  headers=dict(_response.headers),
1422
1422
  body=typing.cast(
1423
- typing.Optional[typing.Any],
1423
+ typing.Any,
1424
1424
  parse_obj_as(
1425
- type_=typing.Optional[typing.Any], # type: ignore
1425
+ type_=typing.Any, # type: ignore
1426
1426
  object_=_response.json(),
1427
1427
  ),
1428
1428
  ),
@@ -89,11 +89,7 @@ class LiveSharingLinksClient:
89
89
  client = Samsara(
90
90
  token="YOUR_TOKEN",
91
91
  )
92
- client.live_sharing_links.get_live_sharing_links(
93
- type="all",
94
- limit=1,
95
- after="after",
96
- )
92
+ client.live_sharing_links.get_live_sharing_links()
97
93
  """
98
94
  _response = self._raw_client.get_live_sharing_links(
99
95
  ids=ids, type=type, limit=limit, after=after, request_options=request_options
@@ -338,11 +334,7 @@ class AsyncLiveSharingLinksClient:
338
334
 
339
335
 
340
336
  async def main() -> None:
341
- await client.live_sharing_links.get_live_sharing_links(
342
- type="all",
343
- limit=1,
344
- after="after",
345
- )
337
+ await client.live_sharing_links.get_live_sharing_links()
346
338
 
347
339
 
348
340
  asyncio.run(main())