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.
- samsara/__init__.py +84 -15
- samsara/addresses/client.py +7 -14
- samsara/addresses/raw_client.py +7 -11
- samsara/alerts/client.py +2 -10
- samsara/alerts/raw_client.py +180 -180
- samsara/assets/__init__.py +3 -3
- samsara/assets/client.py +14 -45
- samsara/assets/raw_client.py +156 -160
- samsara/assets/types/__init__.py +3 -3
- samsara/assets/types/{assets_list_request_type.py → list_assets_request_type.py} +1 -1
- samsara/attributes/client.py +0 -4
- samsara/beta_ap_is/client.py +139 -189
- samsara/beta_ap_is/raw_client.py +2035 -1702
- samsara/carrier_proposed_assignments/client.py +2 -10
- samsara/client.py +5 -0
- samsara/coaching/client.py +2 -22
- samsara/coaching/raw_client.py +108 -108
- samsara/contacts/client.py +2 -8
- samsara/core/__init__.py +5 -0
- samsara/core/client_wrapper.py +18 -10
- samsara/core/custom_pagination.py +152 -0
- samsara/core/http_client.py +176 -90
- samsara/core/http_sse/__init__.py +42 -0
- samsara/core/http_sse/_api.py +112 -0
- samsara/core/http_sse/_decoders.py +61 -0
- samsara/core/http_sse/_exceptions.py +7 -0
- samsara/core/http_sse/_models.py +17 -0
- samsara/core/pagination.py +14 -14
- samsara/core/pydantic_utilities.py +3 -1
- samsara/documents/client.py +2 -12
- samsara/documents/raw_client.py +180 -180
- samsara/driver_qr_codes/raw_client.py +108 -108
- samsara/driver_vehicle_assignments/client.py +0 -12
- samsara/driver_vehicle_assignments/raw_client.py +144 -144
- samsara/drivers/__init__.py +3 -3
- samsara/drivers/client.py +12 -23
- samsara/drivers/raw_client.py +48 -52
- samsara/drivers/types/__init__.py +3 -3
- samsara/drivers/types/{drivers_list_request_driver_activation_status.py → list_drivers_request_driver_activation_status.py} +1 -1
- samsara/equipment/client.py +6 -22
- samsara/errors/bad_gateway_error.py +1 -1
- samsara/errors/gateway_timeout_error.py +1 -1
- samsara/errors/internal_server_error.py +1 -1
- samsara/errors/method_not_allowed_error.py +1 -1
- samsara/errors/not_found_error.py +1 -1
- samsara/errors/not_implemented_error.py +1 -1
- samsara/errors/service_unavailable_error.py +1 -1
- samsara/errors/too_many_requests_error.py +1 -1
- samsara/errors/unauthorized_error.py +1 -1
- samsara/forms/__init__.py +9 -3
- samsara/forms/client.py +17 -10
- samsara/forms/raw_client.py +265 -254
- samsara/forms/types/__init__.py +6 -2
- samsara/forms/types/form_submissions_post_form_submission_request_body_status.py +5 -0
- samsara/fuel_and_energy/client.py +0 -30
- samsara/fuel_and_energy/raw_client.py +180 -180
- samsara/gateways/client.py +2 -6
- samsara/gateways/raw_client.py +108 -108
- samsara/hours_of_service/__init__.py +6 -3
- samsara/hours_of_service/client.py +13 -52
- samsara/hours_of_service/raw_client.py +77 -76
- samsara/hours_of_service/types/__init__.py +4 -2
- samsara/hours_of_service/types/get_hos_daily_logs_request_expand.py +5 -0
- samsara/hubs/client.py +2 -94
- samsara/hubs/raw_client.py +216 -216
- samsara/idling/client.py +10 -16
- samsara/idling/raw_client.py +46 -36
- samsara/ifta/client.py +4 -34
- samsara/ifta/raw_client.py +144 -144
- samsara/industrial/client.py +12 -56
- samsara/industrial/raw_client.py +40 -48
- samsara/issues/client.py +0 -4
- samsara/issues/raw_client.py +108 -108
- samsara/legacy_ap_is/client.py +4 -56
- samsara/legacy_ap_is/raw_client.py +108 -108
- samsara/live_sharing_links/client.py +2 -10
- samsara/live_sharing_links/raw_client.py +144 -144
- samsara/location_and_speed/client.py +2 -20
- samsara/location_and_speed/raw_client.py +36 -36
- samsara/maintenance/__init__.py +3 -3
- samsara/maintenance/client.py +15 -30
- samsara/maintenance/raw_client.py +191 -182
- samsara/maintenance/types/__init__.py +6 -2
- samsara/maintenance/types/create_dvir_request_type.py +5 -0
- samsara/media/client.py +2 -16
- samsara/media/raw_client.py +108 -108
- samsara/messages/client.py +2 -8
- samsara/plans/client.py +0 -21
- samsara/plans/raw_client.py +72 -72
- samsara/preview_ap_is/client.py +0 -140
- samsara/preview_ap_is/raw_client.py +72 -430
- samsara/route_events/client.py +2 -12
- samsara/route_events/raw_client.py +36 -36
- samsara/routes/__init__.py +30 -0
- samsara/routes/client.py +7 -35
- samsara/routes/raw_client.py +257 -256
- samsara/routes/types/__init__.py +34 -0
- samsara/routes/types/get_routes_feed_request_expand.py +5 -0
- samsara/safety/client.py +2 -10
- samsara/safety/raw_client.py +36 -36
- samsara/settings/raw_client.py +180 -180
- samsara/speeding_intervals/raw_client.py +36 -36
- samsara/tachograph_eu_only/client.py +0 -6
- samsara/tags/client.py +2 -8
- samsara/trailer_assignments/client.py +2 -18
- samsara/trailers/client.py +2 -12
- samsara/trailers/raw_client.py +180 -180
- samsara/types/__init__.py +71 -6
- samsara/types/advanced_idling_get_idling_events_response_body.py +2 -2
- samsara/types/create_routes_stop_request_object_request_body.py +7 -0
- samsara/types/driver_assignment_object_response_body.py +2 -1
- samsara/types/driver_assignment_object_response_body_assignment_type.py +5 -0
- samsara/types/driver_external_ids.py +1 -1
- samsara/types/forms_approval_config_object_response_body.py +2 -1
- samsara/types/forms_approval_config_object_response_body_type.py +5 -0
- samsara/types/fuel_level_trigger_details_object_request_body.py +2 -1
- samsara/types/fuel_level_trigger_details_object_request_body_operation.py +5 -0
- samsara/types/fuel_level_trigger_details_object_response_body.py +4 -1
- samsara/types/fuel_level_trigger_details_object_response_body_operation.py +5 -0
- samsara/types/harsh_event_trigger_details_object_request_body_types_item.py +1 -0
- samsara/types/harsh_event_trigger_details_object_response_body_types_item.py +1 -0
- samsara/types/idling_event_address_object_response_body.py +46 -0
- samsara/types/{idling_event_object_response_body_address_type.py → idling_event_address_object_response_body_address_types_item.py} +1 -1
- samsara/types/idling_event_asset_object_response_body.py +35 -0
- samsara/types/{idling_event_object_response_body.py → idling_event_object_v_20251023_response_body.py} +18 -28
- samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
- samsara/types/idling_event_operator_object_response_body.py +35 -0
- samsara/types/patch_issue_request_body_assigned_to_request_body.py +2 -1
- samsara/types/patch_issue_request_body_assigned_to_request_body_type.py +5 -0
- samsara/types/reading_datapoint_request_body.py +5 -4
- samsara/types/reading_datapoint_request_body_entity_type.py +5 -0
- samsara/types/reading_history_response_body.py +1 -1
- samsara/types/reading_snapshot_response_body.py +1 -1
- samsara/types/resolved_by.py +2 -1
- samsara/types/resolved_by_type.py +5 -0
- samsara/types/route_feed_object_response_body.py +2 -1
- samsara/types/route_feed_object_response_body_type.py +5 -0
- samsara/types/route_settings_request_body.py +8 -0
- samsara/types/route_settings_request_body_sequencing_method.py +7 -0
- samsara/types/route_settings_response_body.py +8 -0
- samsara/types/route_settings_response_body_sequencing_method.py +7 -0
- samsara/types/route_stop_details_object_response_body.py +2 -1
- samsara/types/route_stop_details_object_response_body_type.py +5 -0
- samsara/types/routes_stop_response_object_response_body.py +7 -0
- samsara/types/training_learner_object_response_body.py +2 -1
- samsara/types/training_learner_object_response_body_type.py +5 -0
- samsara/types/update_routes_stop_request_object_request_body.py +7 -0
- samsara/types/vehicle_assignment_object_response_body.py +4 -3
- samsara/types/vehicle_assignment_object_response_body_assignment_type.py +5 -0
- samsara/types/vehicle_external_ids.py +1 -1
- samsara/types/work_order_money_object_request_body.py +2 -1
- samsara/types/work_order_money_object_request_body_currency.py +5 -0
- samsara/types/work_order_money_object_response_body.py +2 -1
- samsara/types/work_order_money_object_response_body_currency.py +5 -0
- samsara/users/client.py +4 -16
- samsara/vehicle_locations/client.py +4 -16
- samsara/vehicles/client.py +7 -22
- samsara/vehicles/raw_client.py +43 -47
- samsara/webhooks/client.py +2 -10
- samsara/webhooks/raw_client.py +180 -180
- samsara/work_orders/client.py +4 -18
- samsara/work_orders/raw_client.py +216 -216
- {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
- {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/RECORD +166 -136
- {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
- {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
samsara/coaching/raw_client.py
CHANGED
|
@@ -100,9 +100,9 @@ class RawCoachingClient:
|
|
|
100
100
|
raise UnauthorizedError(
|
|
101
101
|
headers=dict(_response.headers),
|
|
102
102
|
body=typing.cast(
|
|
103
|
-
typing.
|
|
103
|
+
typing.Any,
|
|
104
104
|
parse_obj_as(
|
|
105
|
-
type_=typing.
|
|
105
|
+
type_=typing.Any, # type: ignore
|
|
106
106
|
object_=_response.json(),
|
|
107
107
|
),
|
|
108
108
|
),
|
|
@@ -111,9 +111,9 @@ class RawCoachingClient:
|
|
|
111
111
|
raise NotFoundError(
|
|
112
112
|
headers=dict(_response.headers),
|
|
113
113
|
body=typing.cast(
|
|
114
|
-
typing.
|
|
114
|
+
typing.Any,
|
|
115
115
|
parse_obj_as(
|
|
116
|
-
type_=typing.
|
|
116
|
+
type_=typing.Any, # type: ignore
|
|
117
117
|
object_=_response.json(),
|
|
118
118
|
),
|
|
119
119
|
),
|
|
@@ -122,9 +122,9 @@ class RawCoachingClient:
|
|
|
122
122
|
raise MethodNotAllowedError(
|
|
123
123
|
headers=dict(_response.headers),
|
|
124
124
|
body=typing.cast(
|
|
125
|
-
typing.
|
|
125
|
+
typing.Any,
|
|
126
126
|
parse_obj_as(
|
|
127
|
-
type_=typing.
|
|
127
|
+
type_=typing.Any, # type: ignore
|
|
128
128
|
object_=_response.json(),
|
|
129
129
|
),
|
|
130
130
|
),
|
|
@@ -133,9 +133,9 @@ class RawCoachingClient:
|
|
|
133
133
|
raise TooManyRequestsError(
|
|
134
134
|
headers=dict(_response.headers),
|
|
135
135
|
body=typing.cast(
|
|
136
|
-
typing.
|
|
136
|
+
typing.Any,
|
|
137
137
|
parse_obj_as(
|
|
138
|
-
type_=typing.
|
|
138
|
+
type_=typing.Any, # type: ignore
|
|
139
139
|
object_=_response.json(),
|
|
140
140
|
),
|
|
141
141
|
),
|
|
@@ -144,9 +144,9 @@ class RawCoachingClient:
|
|
|
144
144
|
raise InternalServerError(
|
|
145
145
|
headers=dict(_response.headers),
|
|
146
146
|
body=typing.cast(
|
|
147
|
-
typing.
|
|
147
|
+
typing.Any,
|
|
148
148
|
parse_obj_as(
|
|
149
|
-
type_=typing.
|
|
149
|
+
type_=typing.Any, # type: ignore
|
|
150
150
|
object_=_response.json(),
|
|
151
151
|
),
|
|
152
152
|
),
|
|
@@ -155,9 +155,9 @@ class RawCoachingClient:
|
|
|
155
155
|
raise NotImplementedError(
|
|
156
156
|
headers=dict(_response.headers),
|
|
157
157
|
body=typing.cast(
|
|
158
|
-
typing.
|
|
158
|
+
typing.Any,
|
|
159
159
|
parse_obj_as(
|
|
160
|
-
type_=typing.
|
|
160
|
+
type_=typing.Any, # type: ignore
|
|
161
161
|
object_=_response.json(),
|
|
162
162
|
),
|
|
163
163
|
),
|
|
@@ -166,9 +166,9 @@ class RawCoachingClient:
|
|
|
166
166
|
raise BadGatewayError(
|
|
167
167
|
headers=dict(_response.headers),
|
|
168
168
|
body=typing.cast(
|
|
169
|
-
typing.
|
|
169
|
+
typing.Any,
|
|
170
170
|
parse_obj_as(
|
|
171
|
-
type_=typing.
|
|
171
|
+
type_=typing.Any, # type: ignore
|
|
172
172
|
object_=_response.json(),
|
|
173
173
|
),
|
|
174
174
|
),
|
|
@@ -177,9 +177,9 @@ class RawCoachingClient:
|
|
|
177
177
|
raise ServiceUnavailableError(
|
|
178
178
|
headers=dict(_response.headers),
|
|
179
179
|
body=typing.cast(
|
|
180
|
-
typing.
|
|
180
|
+
typing.Any,
|
|
181
181
|
parse_obj_as(
|
|
182
|
-
type_=typing.
|
|
182
|
+
type_=typing.Any, # type: ignore
|
|
183
183
|
object_=_response.json(),
|
|
184
184
|
),
|
|
185
185
|
),
|
|
@@ -188,9 +188,9 @@ class RawCoachingClient:
|
|
|
188
188
|
raise GatewayTimeoutError(
|
|
189
189
|
headers=dict(_response.headers),
|
|
190
190
|
body=typing.cast(
|
|
191
|
-
typing.
|
|
191
|
+
typing.Any,
|
|
192
192
|
parse_obj_as(
|
|
193
|
-
type_=typing.
|
|
193
|
+
type_=typing.Any, # type: ignore
|
|
194
194
|
object_=_response.json(),
|
|
195
195
|
),
|
|
196
196
|
),
|
|
@@ -256,9 +256,9 @@ class RawCoachingClient:
|
|
|
256
256
|
raise UnauthorizedError(
|
|
257
257
|
headers=dict(_response.headers),
|
|
258
258
|
body=typing.cast(
|
|
259
|
-
typing.
|
|
259
|
+
typing.Any,
|
|
260
260
|
parse_obj_as(
|
|
261
|
-
type_=typing.
|
|
261
|
+
type_=typing.Any, # type: ignore
|
|
262
262
|
object_=_response.json(),
|
|
263
263
|
),
|
|
264
264
|
),
|
|
@@ -267,9 +267,9 @@ class RawCoachingClient:
|
|
|
267
267
|
raise NotFoundError(
|
|
268
268
|
headers=dict(_response.headers),
|
|
269
269
|
body=typing.cast(
|
|
270
|
-
typing.
|
|
270
|
+
typing.Any,
|
|
271
271
|
parse_obj_as(
|
|
272
|
-
type_=typing.
|
|
272
|
+
type_=typing.Any, # type: ignore
|
|
273
273
|
object_=_response.json(),
|
|
274
274
|
),
|
|
275
275
|
),
|
|
@@ -278,9 +278,9 @@ class RawCoachingClient:
|
|
|
278
278
|
raise MethodNotAllowedError(
|
|
279
279
|
headers=dict(_response.headers),
|
|
280
280
|
body=typing.cast(
|
|
281
|
-
typing.
|
|
281
|
+
typing.Any,
|
|
282
282
|
parse_obj_as(
|
|
283
|
-
type_=typing.
|
|
283
|
+
type_=typing.Any, # type: ignore
|
|
284
284
|
object_=_response.json(),
|
|
285
285
|
),
|
|
286
286
|
),
|
|
@@ -289,9 +289,9 @@ class RawCoachingClient:
|
|
|
289
289
|
raise TooManyRequestsError(
|
|
290
290
|
headers=dict(_response.headers),
|
|
291
291
|
body=typing.cast(
|
|
292
|
-
typing.
|
|
292
|
+
typing.Any,
|
|
293
293
|
parse_obj_as(
|
|
294
|
-
type_=typing.
|
|
294
|
+
type_=typing.Any, # type: ignore
|
|
295
295
|
object_=_response.json(),
|
|
296
296
|
),
|
|
297
297
|
),
|
|
@@ -300,9 +300,9 @@ class RawCoachingClient:
|
|
|
300
300
|
raise InternalServerError(
|
|
301
301
|
headers=dict(_response.headers),
|
|
302
302
|
body=typing.cast(
|
|
303
|
-
typing.
|
|
303
|
+
typing.Any,
|
|
304
304
|
parse_obj_as(
|
|
305
|
-
type_=typing.
|
|
305
|
+
type_=typing.Any, # type: ignore
|
|
306
306
|
object_=_response.json(),
|
|
307
307
|
),
|
|
308
308
|
),
|
|
@@ -311,9 +311,9 @@ class RawCoachingClient:
|
|
|
311
311
|
raise NotImplementedError(
|
|
312
312
|
headers=dict(_response.headers),
|
|
313
313
|
body=typing.cast(
|
|
314
|
-
typing.
|
|
314
|
+
typing.Any,
|
|
315
315
|
parse_obj_as(
|
|
316
|
-
type_=typing.
|
|
316
|
+
type_=typing.Any, # type: ignore
|
|
317
317
|
object_=_response.json(),
|
|
318
318
|
),
|
|
319
319
|
),
|
|
@@ -322,9 +322,9 @@ class RawCoachingClient:
|
|
|
322
322
|
raise BadGatewayError(
|
|
323
323
|
headers=dict(_response.headers),
|
|
324
324
|
body=typing.cast(
|
|
325
|
-
typing.
|
|
325
|
+
typing.Any,
|
|
326
326
|
parse_obj_as(
|
|
327
|
-
type_=typing.
|
|
327
|
+
type_=typing.Any, # type: ignore
|
|
328
328
|
object_=_response.json(),
|
|
329
329
|
),
|
|
330
330
|
),
|
|
@@ -333,9 +333,9 @@ class RawCoachingClient:
|
|
|
333
333
|
raise ServiceUnavailableError(
|
|
334
334
|
headers=dict(_response.headers),
|
|
335
335
|
body=typing.cast(
|
|
336
|
-
typing.
|
|
336
|
+
typing.Any,
|
|
337
337
|
parse_obj_as(
|
|
338
|
-
type_=typing.
|
|
338
|
+
type_=typing.Any, # type: ignore
|
|
339
339
|
object_=_response.json(),
|
|
340
340
|
),
|
|
341
341
|
),
|
|
@@ -344,9 +344,9 @@ class RawCoachingClient:
|
|
|
344
344
|
raise GatewayTimeoutError(
|
|
345
345
|
headers=dict(_response.headers),
|
|
346
346
|
body=typing.cast(
|
|
347
|
-
typing.
|
|
347
|
+
typing.Any,
|
|
348
348
|
parse_obj_as(
|
|
349
|
-
type_=typing.
|
|
349
|
+
type_=typing.Any, # type: ignore
|
|
350
350
|
object_=_response.json(),
|
|
351
351
|
),
|
|
352
352
|
),
|
|
@@ -442,9 +442,9 @@ class RawCoachingClient:
|
|
|
442
442
|
raise UnauthorizedError(
|
|
443
443
|
headers=dict(_response.headers),
|
|
444
444
|
body=typing.cast(
|
|
445
|
-
typing.
|
|
445
|
+
typing.Any,
|
|
446
446
|
parse_obj_as(
|
|
447
|
-
type_=typing.
|
|
447
|
+
type_=typing.Any, # type: ignore
|
|
448
448
|
object_=_response.json(),
|
|
449
449
|
),
|
|
450
450
|
),
|
|
@@ -453,9 +453,9 @@ class RawCoachingClient:
|
|
|
453
453
|
raise NotFoundError(
|
|
454
454
|
headers=dict(_response.headers),
|
|
455
455
|
body=typing.cast(
|
|
456
|
-
typing.
|
|
456
|
+
typing.Any,
|
|
457
457
|
parse_obj_as(
|
|
458
|
-
type_=typing.
|
|
458
|
+
type_=typing.Any, # type: ignore
|
|
459
459
|
object_=_response.json(),
|
|
460
460
|
),
|
|
461
461
|
),
|
|
@@ -464,9 +464,9 @@ class RawCoachingClient:
|
|
|
464
464
|
raise MethodNotAllowedError(
|
|
465
465
|
headers=dict(_response.headers),
|
|
466
466
|
body=typing.cast(
|
|
467
|
-
typing.
|
|
467
|
+
typing.Any,
|
|
468
468
|
parse_obj_as(
|
|
469
|
-
type_=typing.
|
|
469
|
+
type_=typing.Any, # type: ignore
|
|
470
470
|
object_=_response.json(),
|
|
471
471
|
),
|
|
472
472
|
),
|
|
@@ -475,9 +475,9 @@ class RawCoachingClient:
|
|
|
475
475
|
raise TooManyRequestsError(
|
|
476
476
|
headers=dict(_response.headers),
|
|
477
477
|
body=typing.cast(
|
|
478
|
-
typing.
|
|
478
|
+
typing.Any,
|
|
479
479
|
parse_obj_as(
|
|
480
|
-
type_=typing.
|
|
480
|
+
type_=typing.Any, # type: ignore
|
|
481
481
|
object_=_response.json(),
|
|
482
482
|
),
|
|
483
483
|
),
|
|
@@ -486,9 +486,9 @@ class RawCoachingClient:
|
|
|
486
486
|
raise InternalServerError(
|
|
487
487
|
headers=dict(_response.headers),
|
|
488
488
|
body=typing.cast(
|
|
489
|
-
typing.
|
|
489
|
+
typing.Any,
|
|
490
490
|
parse_obj_as(
|
|
491
|
-
type_=typing.
|
|
491
|
+
type_=typing.Any, # type: ignore
|
|
492
492
|
object_=_response.json(),
|
|
493
493
|
),
|
|
494
494
|
),
|
|
@@ -497,9 +497,9 @@ class RawCoachingClient:
|
|
|
497
497
|
raise NotImplementedError(
|
|
498
498
|
headers=dict(_response.headers),
|
|
499
499
|
body=typing.cast(
|
|
500
|
-
typing.
|
|
500
|
+
typing.Any,
|
|
501
501
|
parse_obj_as(
|
|
502
|
-
type_=typing.
|
|
502
|
+
type_=typing.Any, # type: ignore
|
|
503
503
|
object_=_response.json(),
|
|
504
504
|
),
|
|
505
505
|
),
|
|
@@ -508,9 +508,9 @@ class RawCoachingClient:
|
|
|
508
508
|
raise BadGatewayError(
|
|
509
509
|
headers=dict(_response.headers),
|
|
510
510
|
body=typing.cast(
|
|
511
|
-
typing.
|
|
511
|
+
typing.Any,
|
|
512
512
|
parse_obj_as(
|
|
513
|
-
type_=typing.
|
|
513
|
+
type_=typing.Any, # type: ignore
|
|
514
514
|
object_=_response.json(),
|
|
515
515
|
),
|
|
516
516
|
),
|
|
@@ -519,9 +519,9 @@ class RawCoachingClient:
|
|
|
519
519
|
raise ServiceUnavailableError(
|
|
520
520
|
headers=dict(_response.headers),
|
|
521
521
|
body=typing.cast(
|
|
522
|
-
typing.
|
|
522
|
+
typing.Any,
|
|
523
523
|
parse_obj_as(
|
|
524
|
-
type_=typing.
|
|
524
|
+
type_=typing.Any, # type: ignore
|
|
525
525
|
object_=_response.json(),
|
|
526
526
|
),
|
|
527
527
|
),
|
|
@@ -530,9 +530,9 @@ class RawCoachingClient:
|
|
|
530
530
|
raise GatewayTimeoutError(
|
|
531
531
|
headers=dict(_response.headers),
|
|
532
532
|
body=typing.cast(
|
|
533
|
-
typing.
|
|
533
|
+
typing.Any,
|
|
534
534
|
parse_obj_as(
|
|
535
|
-
type_=typing.
|
|
535
|
+
type_=typing.Any, # type: ignore
|
|
536
536
|
object_=_response.json(),
|
|
537
537
|
),
|
|
538
538
|
),
|
|
@@ -613,9 +613,9 @@ class AsyncRawCoachingClient:
|
|
|
613
613
|
raise UnauthorizedError(
|
|
614
614
|
headers=dict(_response.headers),
|
|
615
615
|
body=typing.cast(
|
|
616
|
-
typing.
|
|
616
|
+
typing.Any,
|
|
617
617
|
parse_obj_as(
|
|
618
|
-
type_=typing.
|
|
618
|
+
type_=typing.Any, # type: ignore
|
|
619
619
|
object_=_response.json(),
|
|
620
620
|
),
|
|
621
621
|
),
|
|
@@ -624,9 +624,9 @@ class AsyncRawCoachingClient:
|
|
|
624
624
|
raise NotFoundError(
|
|
625
625
|
headers=dict(_response.headers),
|
|
626
626
|
body=typing.cast(
|
|
627
|
-
typing.
|
|
627
|
+
typing.Any,
|
|
628
628
|
parse_obj_as(
|
|
629
|
-
type_=typing.
|
|
629
|
+
type_=typing.Any, # type: ignore
|
|
630
630
|
object_=_response.json(),
|
|
631
631
|
),
|
|
632
632
|
),
|
|
@@ -635,9 +635,9 @@ class AsyncRawCoachingClient:
|
|
|
635
635
|
raise MethodNotAllowedError(
|
|
636
636
|
headers=dict(_response.headers),
|
|
637
637
|
body=typing.cast(
|
|
638
|
-
typing.
|
|
638
|
+
typing.Any,
|
|
639
639
|
parse_obj_as(
|
|
640
|
-
type_=typing.
|
|
640
|
+
type_=typing.Any, # type: ignore
|
|
641
641
|
object_=_response.json(),
|
|
642
642
|
),
|
|
643
643
|
),
|
|
@@ -646,9 +646,9 @@ class AsyncRawCoachingClient:
|
|
|
646
646
|
raise TooManyRequestsError(
|
|
647
647
|
headers=dict(_response.headers),
|
|
648
648
|
body=typing.cast(
|
|
649
|
-
typing.
|
|
649
|
+
typing.Any,
|
|
650
650
|
parse_obj_as(
|
|
651
|
-
type_=typing.
|
|
651
|
+
type_=typing.Any, # type: ignore
|
|
652
652
|
object_=_response.json(),
|
|
653
653
|
),
|
|
654
654
|
),
|
|
@@ -657,9 +657,9 @@ class AsyncRawCoachingClient:
|
|
|
657
657
|
raise InternalServerError(
|
|
658
658
|
headers=dict(_response.headers),
|
|
659
659
|
body=typing.cast(
|
|
660
|
-
typing.
|
|
660
|
+
typing.Any,
|
|
661
661
|
parse_obj_as(
|
|
662
|
-
type_=typing.
|
|
662
|
+
type_=typing.Any, # type: ignore
|
|
663
663
|
object_=_response.json(),
|
|
664
664
|
),
|
|
665
665
|
),
|
|
@@ -668,9 +668,9 @@ class AsyncRawCoachingClient:
|
|
|
668
668
|
raise NotImplementedError(
|
|
669
669
|
headers=dict(_response.headers),
|
|
670
670
|
body=typing.cast(
|
|
671
|
-
typing.
|
|
671
|
+
typing.Any,
|
|
672
672
|
parse_obj_as(
|
|
673
|
-
type_=typing.
|
|
673
|
+
type_=typing.Any, # type: ignore
|
|
674
674
|
object_=_response.json(),
|
|
675
675
|
),
|
|
676
676
|
),
|
|
@@ -679,9 +679,9 @@ class AsyncRawCoachingClient:
|
|
|
679
679
|
raise BadGatewayError(
|
|
680
680
|
headers=dict(_response.headers),
|
|
681
681
|
body=typing.cast(
|
|
682
|
-
typing.
|
|
682
|
+
typing.Any,
|
|
683
683
|
parse_obj_as(
|
|
684
|
-
type_=typing.
|
|
684
|
+
type_=typing.Any, # type: ignore
|
|
685
685
|
object_=_response.json(),
|
|
686
686
|
),
|
|
687
687
|
),
|
|
@@ -690,9 +690,9 @@ class AsyncRawCoachingClient:
|
|
|
690
690
|
raise ServiceUnavailableError(
|
|
691
691
|
headers=dict(_response.headers),
|
|
692
692
|
body=typing.cast(
|
|
693
|
-
typing.
|
|
693
|
+
typing.Any,
|
|
694
694
|
parse_obj_as(
|
|
695
|
-
type_=typing.
|
|
695
|
+
type_=typing.Any, # type: ignore
|
|
696
696
|
object_=_response.json(),
|
|
697
697
|
),
|
|
698
698
|
),
|
|
@@ -701,9 +701,9 @@ class AsyncRawCoachingClient:
|
|
|
701
701
|
raise GatewayTimeoutError(
|
|
702
702
|
headers=dict(_response.headers),
|
|
703
703
|
body=typing.cast(
|
|
704
|
-
typing.
|
|
704
|
+
typing.Any,
|
|
705
705
|
parse_obj_as(
|
|
706
|
-
type_=typing.
|
|
706
|
+
type_=typing.Any, # type: ignore
|
|
707
707
|
object_=_response.json(),
|
|
708
708
|
),
|
|
709
709
|
),
|
|
@@ -769,9 +769,9 @@ class AsyncRawCoachingClient:
|
|
|
769
769
|
raise UnauthorizedError(
|
|
770
770
|
headers=dict(_response.headers),
|
|
771
771
|
body=typing.cast(
|
|
772
|
-
typing.
|
|
772
|
+
typing.Any,
|
|
773
773
|
parse_obj_as(
|
|
774
|
-
type_=typing.
|
|
774
|
+
type_=typing.Any, # type: ignore
|
|
775
775
|
object_=_response.json(),
|
|
776
776
|
),
|
|
777
777
|
),
|
|
@@ -780,9 +780,9 @@ class AsyncRawCoachingClient:
|
|
|
780
780
|
raise NotFoundError(
|
|
781
781
|
headers=dict(_response.headers),
|
|
782
782
|
body=typing.cast(
|
|
783
|
-
typing.
|
|
783
|
+
typing.Any,
|
|
784
784
|
parse_obj_as(
|
|
785
|
-
type_=typing.
|
|
785
|
+
type_=typing.Any, # type: ignore
|
|
786
786
|
object_=_response.json(),
|
|
787
787
|
),
|
|
788
788
|
),
|
|
@@ -791,9 +791,9 @@ class AsyncRawCoachingClient:
|
|
|
791
791
|
raise MethodNotAllowedError(
|
|
792
792
|
headers=dict(_response.headers),
|
|
793
793
|
body=typing.cast(
|
|
794
|
-
typing.
|
|
794
|
+
typing.Any,
|
|
795
795
|
parse_obj_as(
|
|
796
|
-
type_=typing.
|
|
796
|
+
type_=typing.Any, # type: ignore
|
|
797
797
|
object_=_response.json(),
|
|
798
798
|
),
|
|
799
799
|
),
|
|
@@ -802,9 +802,9 @@ class AsyncRawCoachingClient:
|
|
|
802
802
|
raise TooManyRequestsError(
|
|
803
803
|
headers=dict(_response.headers),
|
|
804
804
|
body=typing.cast(
|
|
805
|
-
typing.
|
|
805
|
+
typing.Any,
|
|
806
806
|
parse_obj_as(
|
|
807
|
-
type_=typing.
|
|
807
|
+
type_=typing.Any, # type: ignore
|
|
808
808
|
object_=_response.json(),
|
|
809
809
|
),
|
|
810
810
|
),
|
|
@@ -813,9 +813,9 @@ class AsyncRawCoachingClient:
|
|
|
813
813
|
raise InternalServerError(
|
|
814
814
|
headers=dict(_response.headers),
|
|
815
815
|
body=typing.cast(
|
|
816
|
-
typing.
|
|
816
|
+
typing.Any,
|
|
817
817
|
parse_obj_as(
|
|
818
|
-
type_=typing.
|
|
818
|
+
type_=typing.Any, # type: ignore
|
|
819
819
|
object_=_response.json(),
|
|
820
820
|
),
|
|
821
821
|
),
|
|
@@ -824,9 +824,9 @@ class AsyncRawCoachingClient:
|
|
|
824
824
|
raise NotImplementedError(
|
|
825
825
|
headers=dict(_response.headers),
|
|
826
826
|
body=typing.cast(
|
|
827
|
-
typing.
|
|
827
|
+
typing.Any,
|
|
828
828
|
parse_obj_as(
|
|
829
|
-
type_=typing.
|
|
829
|
+
type_=typing.Any, # type: ignore
|
|
830
830
|
object_=_response.json(),
|
|
831
831
|
),
|
|
832
832
|
),
|
|
@@ -835,9 +835,9 @@ class AsyncRawCoachingClient:
|
|
|
835
835
|
raise BadGatewayError(
|
|
836
836
|
headers=dict(_response.headers),
|
|
837
837
|
body=typing.cast(
|
|
838
|
-
typing.
|
|
838
|
+
typing.Any,
|
|
839
839
|
parse_obj_as(
|
|
840
|
-
type_=typing.
|
|
840
|
+
type_=typing.Any, # type: ignore
|
|
841
841
|
object_=_response.json(),
|
|
842
842
|
),
|
|
843
843
|
),
|
|
@@ -846,9 +846,9 @@ class AsyncRawCoachingClient:
|
|
|
846
846
|
raise ServiceUnavailableError(
|
|
847
847
|
headers=dict(_response.headers),
|
|
848
848
|
body=typing.cast(
|
|
849
|
-
typing.
|
|
849
|
+
typing.Any,
|
|
850
850
|
parse_obj_as(
|
|
851
|
-
type_=typing.
|
|
851
|
+
type_=typing.Any, # type: ignore
|
|
852
852
|
object_=_response.json(),
|
|
853
853
|
),
|
|
854
854
|
),
|
|
@@ -857,9 +857,9 @@ class AsyncRawCoachingClient:
|
|
|
857
857
|
raise GatewayTimeoutError(
|
|
858
858
|
headers=dict(_response.headers),
|
|
859
859
|
body=typing.cast(
|
|
860
|
-
typing.
|
|
860
|
+
typing.Any,
|
|
861
861
|
parse_obj_as(
|
|
862
|
-
type_=typing.
|
|
862
|
+
type_=typing.Any, # type: ignore
|
|
863
863
|
object_=_response.json(),
|
|
864
864
|
),
|
|
865
865
|
),
|
|
@@ -955,9 +955,9 @@ class AsyncRawCoachingClient:
|
|
|
955
955
|
raise UnauthorizedError(
|
|
956
956
|
headers=dict(_response.headers),
|
|
957
957
|
body=typing.cast(
|
|
958
|
-
typing.
|
|
958
|
+
typing.Any,
|
|
959
959
|
parse_obj_as(
|
|
960
|
-
type_=typing.
|
|
960
|
+
type_=typing.Any, # type: ignore
|
|
961
961
|
object_=_response.json(),
|
|
962
962
|
),
|
|
963
963
|
),
|
|
@@ -966,9 +966,9 @@ class AsyncRawCoachingClient:
|
|
|
966
966
|
raise NotFoundError(
|
|
967
967
|
headers=dict(_response.headers),
|
|
968
968
|
body=typing.cast(
|
|
969
|
-
typing.
|
|
969
|
+
typing.Any,
|
|
970
970
|
parse_obj_as(
|
|
971
|
-
type_=typing.
|
|
971
|
+
type_=typing.Any, # type: ignore
|
|
972
972
|
object_=_response.json(),
|
|
973
973
|
),
|
|
974
974
|
),
|
|
@@ -977,9 +977,9 @@ class AsyncRawCoachingClient:
|
|
|
977
977
|
raise MethodNotAllowedError(
|
|
978
978
|
headers=dict(_response.headers),
|
|
979
979
|
body=typing.cast(
|
|
980
|
-
typing.
|
|
980
|
+
typing.Any,
|
|
981
981
|
parse_obj_as(
|
|
982
|
-
type_=typing.
|
|
982
|
+
type_=typing.Any, # type: ignore
|
|
983
983
|
object_=_response.json(),
|
|
984
984
|
),
|
|
985
985
|
),
|
|
@@ -988,9 +988,9 @@ class AsyncRawCoachingClient:
|
|
|
988
988
|
raise TooManyRequestsError(
|
|
989
989
|
headers=dict(_response.headers),
|
|
990
990
|
body=typing.cast(
|
|
991
|
-
typing.
|
|
991
|
+
typing.Any,
|
|
992
992
|
parse_obj_as(
|
|
993
|
-
type_=typing.
|
|
993
|
+
type_=typing.Any, # type: ignore
|
|
994
994
|
object_=_response.json(),
|
|
995
995
|
),
|
|
996
996
|
),
|
|
@@ -999,9 +999,9 @@ class AsyncRawCoachingClient:
|
|
|
999
999
|
raise InternalServerError(
|
|
1000
1000
|
headers=dict(_response.headers),
|
|
1001
1001
|
body=typing.cast(
|
|
1002
|
-
typing.
|
|
1002
|
+
typing.Any,
|
|
1003
1003
|
parse_obj_as(
|
|
1004
|
-
type_=typing.
|
|
1004
|
+
type_=typing.Any, # type: ignore
|
|
1005
1005
|
object_=_response.json(),
|
|
1006
1006
|
),
|
|
1007
1007
|
),
|
|
@@ -1010,9 +1010,9 @@ class AsyncRawCoachingClient:
|
|
|
1010
1010
|
raise NotImplementedError(
|
|
1011
1011
|
headers=dict(_response.headers),
|
|
1012
1012
|
body=typing.cast(
|
|
1013
|
-
typing.
|
|
1013
|
+
typing.Any,
|
|
1014
1014
|
parse_obj_as(
|
|
1015
|
-
type_=typing.
|
|
1015
|
+
type_=typing.Any, # type: ignore
|
|
1016
1016
|
object_=_response.json(),
|
|
1017
1017
|
),
|
|
1018
1018
|
),
|
|
@@ -1021,9 +1021,9 @@ class AsyncRawCoachingClient:
|
|
|
1021
1021
|
raise BadGatewayError(
|
|
1022
1022
|
headers=dict(_response.headers),
|
|
1023
1023
|
body=typing.cast(
|
|
1024
|
-
typing.
|
|
1024
|
+
typing.Any,
|
|
1025
1025
|
parse_obj_as(
|
|
1026
|
-
type_=typing.
|
|
1026
|
+
type_=typing.Any, # type: ignore
|
|
1027
1027
|
object_=_response.json(),
|
|
1028
1028
|
),
|
|
1029
1029
|
),
|
|
@@ -1032,9 +1032,9 @@ class AsyncRawCoachingClient:
|
|
|
1032
1032
|
raise ServiceUnavailableError(
|
|
1033
1033
|
headers=dict(_response.headers),
|
|
1034
1034
|
body=typing.cast(
|
|
1035
|
-
typing.
|
|
1035
|
+
typing.Any,
|
|
1036
1036
|
parse_obj_as(
|
|
1037
|
-
type_=typing.
|
|
1037
|
+
type_=typing.Any, # type: ignore
|
|
1038
1038
|
object_=_response.json(),
|
|
1039
1039
|
),
|
|
1040
1040
|
),
|
|
@@ -1043,9 +1043,9 @@ class AsyncRawCoachingClient:
|
|
|
1043
1043
|
raise GatewayTimeoutError(
|
|
1044
1044
|
headers=dict(_response.headers),
|
|
1045
1045
|
body=typing.cast(
|
|
1046
|
-
typing.
|
|
1046
|
+
typing.Any,
|
|
1047
1047
|
parse_obj_as(
|
|
1048
|
-
type_=typing.
|
|
1048
|
+
type_=typing.Any, # type: ignore
|
|
1049
1049
|
object_=_response.json(),
|
|
1050
1050
|
),
|
|
1051
1051
|
),
|
samsara/contacts/client.py
CHANGED
|
@@ -65,10 +65,7 @@ class ContactsClient:
|
|
|
65
65
|
client = Samsara(
|
|
66
66
|
token="YOUR_TOKEN",
|
|
67
67
|
)
|
|
68
|
-
client.contacts.list_contacts(
|
|
69
|
-
limit=1000000,
|
|
70
|
-
after="after",
|
|
71
|
-
)
|
|
68
|
+
client.contacts.list_contacts()
|
|
72
69
|
"""
|
|
73
70
|
_response = self._raw_client.list_contacts(limit=limit, after=after, request_options=request_options)
|
|
74
71
|
return _response.data
|
|
@@ -313,10 +310,7 @@ class AsyncContactsClient:
|
|
|
313
310
|
|
|
314
311
|
|
|
315
312
|
async def main() -> None:
|
|
316
|
-
await client.contacts.list_contacts(
|
|
317
|
-
limit=1000000,
|
|
318
|
-
after="after",
|
|
319
|
-
)
|
|
313
|
+
await client.contacts.list_contacts()
|
|
320
314
|
|
|
321
315
|
|
|
322
316
|
asyncio.run(main())
|