Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"skip_formatting": false,
"enable_wire_tests": true
},
"sdkVersion": "13.18.0"
"sdkVersion": "13.19.0"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "samsara-api"
version = "13.18.0"
version = "13.19.0"
description = ""
readme = "README.md"
authors = []
Expand Down
1 change: 0 additions & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -8468,7 +8468,6 @@ client.beta_ap_is.patch_safety_events_v_2_batch(
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
],
)

Expand Down
3 changes: 3 additions & 0 deletions src/samsara/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,7 @@
HosLogsResponse,
HosShift,
HosViolationDataResponseBody,
HosViolationDayObjectRequestBody,
HosViolationDayObjectResponseBody,
HosViolationObjectResponseBody,
HosViolationObjectResponseBodyType,
Expand Down Expand Up @@ -5746,6 +5747,7 @@
"HosLogsResponse": ".types",
"HosShift": ".types",
"HosViolationDataResponseBody": ".types",
"HosViolationDayObjectRequestBody": ".types",
"HosViolationDayObjectResponseBody": ".types",
"HosViolationObjectResponseBody": ".types",
"HosViolationObjectResponseBodyType": ".types",
Expand Down Expand Up @@ -9905,6 +9907,7 @@ def __dir__():
"HosLogsResponse",
"HosShift",
"HosViolationDataResponseBody",
"HosViolationDayObjectRequestBody",
"HosViolationDayObjectResponseBody",
"HosViolationObjectResponseBody",
"HosViolationObjectResponseBodyType",
Expand Down
2 changes: 0 additions & 2 deletions src/samsara/beta_ap_is/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4812,7 +4812,6 @@ def patch_safety_events_v_2_batch(
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
],
)
"""
Expand Down Expand Up @@ -10064,7 +10063,6 @@ async def main() -> None:
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
],
)

Expand Down
4 changes: 2 additions & 2 deletions src/samsara/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "samsara-api/13.18.0",
"User-Agent": "samsara-api/13.19.0",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "samsara-api",
"X-Fern-SDK-Version": "13.18.0",
"X-Fern-SDK-Version": "13.19.0",
**(self.get_custom_headers() or {}),
}
headers["Authorization"] = f"Bearer {self._get_token()}"
Expand Down
3 changes: 3 additions & 0 deletions src/samsara/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3162,6 +3162,7 @@
from .hos_logs_response import HosLogsResponse
from .hos_shift import HosShift
from .hos_violation_data_response_body import HosViolationDataResponseBody
from .hos_violation_day_object_request_body import HosViolationDayObjectRequestBody
from .hos_violation_day_object_response_body import HosViolationDayObjectResponseBody
from .hos_violation_object_response_body import HosViolationObjectResponseBody
from .hos_violation_object_response_body_type import HosViolationObjectResponseBodyType
Expand Down Expand Up @@ -9664,6 +9665,7 @@
"HosLogsResponse": ".hos_logs_response",
"HosShift": ".hos_shift",
"HosViolationDataResponseBody": ".hos_violation_data_response_body",
"HosViolationDayObjectRequestBody": ".hos_violation_day_object_request_body",
"HosViolationDayObjectResponseBody": ".hos_violation_day_object_response_body",
"HosViolationObjectResponseBody": ".hos_violation_object_response_body",
"HosViolationObjectResponseBodyType": ".hos_violation_object_response_body_type",
Expand Down Expand Up @@ -13640,6 +13642,7 @@ def __dir__():
"HosLogsResponse",
"HosShift",
"HosViolationDataResponseBody",
"HosViolationDayObjectRequestBody",
"HosViolationDayObjectResponseBody",
"HosViolationObjectResponseBody",
"HosViolationObjectResponseBodyType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata
from .hos_violation_day_object_request_body import HosViolationDayObjectRequestBody
from .routes_single_use_address_object_request_body import RoutesSingleUseAddressObjectRequestBody


Expand All @@ -19,6 +20,11 @@ class CreateRoutesStopRequestObjectRequestBody(UniversalBaseModel):
description="ID of the address. An address [externalId](https://developers.samsara.com/docs/external-ids#using-external-ids) can also be used interchangeably here.",
),
] = None
appointment_windows: typing_extensions.Annotated[
typing.Optional[typing.List[HosViolationDayObjectRequestBody]],
FieldMetadata(alias="appointmentWindows"),
pydantic.Field(alias="appointmentWindows", description="Appointment windows for the stop."),
] = None
external_ids: typing_extensions.Annotated[
typing.Optional[typing.Dict[str, str]],
FieldMetadata(alias="externalIds"),
Expand Down
36 changes: 36 additions & 0 deletions src/samsara/types/hos_violation_day_object_request_body.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata


class HosViolationDayObjectRequestBody(UniversalBaseModel):
end_time: typing_extensions.Annotated[
str,
FieldMetadata(alias="endTime"),
pydantic.Field(
alias="endTime",
description="The end time of the day on which the violation occurred in RFC 3339 format. This is determined by the driver's ELD start hour (00:00 or 12:00)",
),
]
start_time: typing_extensions.Annotated[
str,
FieldMetadata(alias="startTime"),
pydantic.Field(
alias="startTime",
description="The start time of the day on which the violation occurred in RFC 3339 format. This is determined by the driver's ELD start hour (00:00 or 12:00)",
),
]

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .goa_document_tiny_response_response_body import GoaDocumentTinyResponseResponseBody
from .goa_form_tiny_response_response_body import GoaFormTinyResponseResponseBody
from .goa_issue_tiny_response_response_body import GoaIssueTinyResponseResponseBody
from .hos_violation_day_object_response_body import HosViolationDayObjectResponseBody
from .live_sharing_link_response_object_response_body import LiveSharingLinkResponseObjectResponseBody
from .routes_single_use_address_object_response_body import RoutesSingleUseAddressObjectResponseBody
from .routes_stop_response_object_response_body_state import RoutesStopResponseObjectResponseBodyState
Expand Down Expand Up @@ -42,6 +43,11 @@ class RoutesStopResponseObjectResponseBody(UniversalBaseModel):
),
] = None
address: typing.Optional[GoaAddressTinyResponseResponseBody] = None
appointment_windows: typing_extensions.Annotated[
typing.Optional[typing.List[HosViolationDayObjectResponseBody]],
FieldMetadata(alias="appointmentWindows"),
pydantic.Field(alias="appointmentWindows", description="Appointment windows for the stop."),
] = None
documents: typing.Optional[typing.List[GoaDocumentTinyResponseResponseBody]] = pydantic.Field(default=None)
"""
List of documents associated with the stop.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata
from .hos_violation_day_object_request_body import HosViolationDayObjectRequestBody
from .routes_single_use_address_object_request_body import RoutesSingleUseAddressObjectRequestBody


Expand All @@ -19,6 +20,11 @@ class UpdateRoutesStopRequestObjectRequestBody(UniversalBaseModel):
description="ID of the address. An address [externalId](https://developers.samsara.com/docs/external-ids#using-external-ids) can also be used interchangeably here.",
),
] = None
appointment_windows: typing_extensions.Annotated[
typing.Optional[typing.List[HosViolationDayObjectRequestBody]],
FieldMetadata(alias="appointmentWindows"),
pydantic.Field(alias="appointmentWindows", description="Appointment windows for the stop."),
] = None
external_ids: typing_extensions.Annotated[
typing.Optional[typing.Dict[str, str]],
FieldMetadata(alias="externalIds"),
Expand Down
8 changes: 8 additions & 0 deletions src/samsara/types/work_order_object_response_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ class WorkOrderObjectResponseBody(UniversalBaseModel):
FieldMetadata(alias="vendorUuid"),
pydantic.Field(alias="vendorUuid", description="The vendor UUID for the work order."),
] = None
work_order_template_ids: typing_extensions.Annotated[
typing.Optional[typing.List[str]],
FieldMetadata(alias="workOrderTemplateIds"),
pydantic.Field(
alias="workOrderTemplateIds",
description="IDs of the work order template(s) this work order was created from. May include templates that have since been deleted.",
),
] = None

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ class WorkOrderWithTimeEntriesObjectResponseBody(UniversalBaseModel):
FieldMetadata(alias="vendorUuid"),
pydantic.Field(alias="vendorUuid", description="The vendor UUID for the work order."),
] = None
work_order_template_ids: typing_extensions.Annotated[
typing.Optional[typing.List[str]],
FieldMetadata(alias="workOrderTemplateIds"),
pydantic.Field(
alias="workOrderTemplateIds",
description="IDs of the work order template(s) this work order was created from. May include templates that have since been deleted.",
),
] = None

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
Expand Down
1 change: 0 additions & 1 deletion tests/wire/test_betaApIs.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,6 @@ def test_betaApIs_patch_safety_events_v_2_batch() -> None:
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
"bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590",
]
)
verify_request_count(test_id, "PATCH", "/safety-events/batch", None, 1)
2 changes: 1 addition & 1 deletion wiremock/wiremock-mappings.json

Large diffs are not rendered by default.

Loading