From 71df1f4b634446a9439f84d9209433feae4fc387 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 15:07:38 +0000 Subject: [PATCH] SDK regeneration --- pyproject.toml | 2 +- src/anduril/core/client_wrapper.py | 4 ++-- src/anduril/types/status.py | 21 +++++++++++---------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b35d398..2b9d513 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "anduril-lattice-sdk" [tool.poetry] name = "anduril-lattice-sdk" -version = "3.0.0" +version = "3.1.0" description = "HTTP clients for the Anduril Lattice SDK" readme = "README.md" authors = [ diff --git a/src/anduril/core/client_wrapper.py b/src/anduril/core/client_wrapper.py index 6a6ddd9..5292b2c 100644 --- a/src/anduril/core/client_wrapper.py +++ b/src/anduril/core/client_wrapper.py @@ -22,10 +22,10 @@ def __init__( def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { - "User-Agent": "anduril-lattice-sdk/3.0.0", + "User-Agent": "anduril-lattice-sdk/3.1.0", "X-Fern-Language": "Python", "X-Fern-SDK-Name": "anduril-lattice-sdk", - "X-Fern-SDK-Version": "3.0.0", + "X-Fern-SDK-Version": "3.1.0", **(self.get_custom_headers() or {}), } token = self._get_token() diff --git a/src/anduril/types/status.py b/src/anduril/types/status.py index 671df1e..0d92329 100644 --- a/src/anduril/types/status.py +++ b/src/anduril/types/status.py @@ -3,27 +3,28 @@ import typing import pydantic -import typing_extensions from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata +from .google_protobuf_any import GoogleProtobufAny class Status(UniversalBaseModel): """ - Contains status of entities. + The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). """ - platform_activity: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="platformActivity")] = ( - pydantic.Field(default=None) - ) + code: typing.Optional[int] = pydantic.Field(default=None) """ - A string that describes the activity that the entity is performing. - Examples include "RECONNAISSANCE", "INTERDICTION", "RETURN TO BASE (RTB)", "PREPARING FOR LAUNCH". + The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. """ - role: typing.Optional[str] = pydantic.Field(default=None) + message: typing.Optional[str] = pydantic.Field(default=None) """ - A human-readable string that describes the role the entity is currently performing. E.g. "Team Member", "Commander". + A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. + """ + + details: typing.Optional[typing.List[GoogleProtobufAny]] = pydantic.Field(default=None) + """ + A list of messages that carry the error details. There is a common set of message types for APIs to use. """ if IS_PYDANTIC_V2: