Skip to content
Open
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
4 changes: 2 additions & 2 deletions src/anduril/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
21 changes: 11 additions & 10 deletions src/anduril/types/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down