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
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"cliVersion": "3.40.0",
"cliVersion": "3.49.5",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.46.14",
"generatorVersion": "4.49.0",
"generatorConfig": {
"client_class_name": "Lattice",
"package_name": "anduril"
},
"sdkVersion": "4.1.0"
"sdkVersion": "5.0.0"
}
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 = "anduril-lattice-sdk"
version = "4.1.0"
version = "5.0.0"
description = "HTTP clients for the Anduril Lattice SDK"
readme = "README.md"
authors = [
Expand Down
34 changes: 17 additions & 17 deletions reference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Reference
## Entities
<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">publish_entity</a>(...) -> AsyncHttpResponse[Entity]</code></summary>
<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">publish_entity</a>(...) -&gt; AsyncHttpResponse[Entity]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -405,7 +405,7 @@ Describes an entity's security classification levels at an overall classificatio
</dl>
</details>

<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">get_entity</a>(...) -> AsyncHttpResponse[Entity]</code></summary>
<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">get_entity</a>(...) -&gt; AsyncHttpResponse[Entity]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -462,7 +462,7 @@ client.entities.get_entity(
</dl>
</details>

<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">override_entity</a>(...) -> AsyncHttpResponse[Entity]</code></summary>
<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">override_entity</a>(...) -&gt; AsyncHttpResponse[Entity]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -567,7 +567,7 @@ the object and ignore all other fields.
</dl>
</details>

<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">remove_entity_override</a>(...) -> AsyncHttpResponse[Entity]</code></summary>
<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">remove_entity_override</a>(...) -&gt; AsyncHttpResponse[Entity]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -647,7 +647,7 @@ client.entities.remove_entity_override(
</dl>
</details>

<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">long_poll_entity_events</a>(...) -> AsyncHttpResponse[EntityEventResponse]</code></summary>
<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">long_poll_entity_events</a>(...) -&gt; AsyncHttpResponse[EntityEventResponse]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -734,7 +734,7 @@ client.entities.long_poll_entity_events(
</dl>
</details>

<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">stream_entities</a>(...) -> typing.AsyncIterator[
<details><summary><code>client.entities.<a href="src/anduril/entities/client.py">stream_entities</a>(...) -&gt; typing.AsyncIterator[
AsyncHttpResponse[typing.AsyncIterator[StreamEntitiesResponse]]
]</code></summary>
<dl>
Expand Down Expand Up @@ -842,7 +842,7 @@ for chunk in response.data:
</details>

## Tasks
<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">create_task</a>(...) -> AsyncHttpResponse[Task]</code></summary>
<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">create_task</a>(...) -&gt; AsyncHttpResponse[Task]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -987,7 +987,7 @@ task. For example, an entity Objective, an entity Keep In Zone, etc.
</dl>
</details>

<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">get_task</a>(...) -> AsyncHttpResponse[Task]</code></summary>
<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">get_task</a>(...) -&gt; AsyncHttpResponse[Task]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1065,7 +1065,7 @@ client.tasks.get_task(
</dl>
</details>

<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">update_task_status</a>(...) -> AsyncHttpResponse[Task]</code></summary>
<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">update_task_status</a>(...) -&gt; AsyncHttpResponse[Task]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1175,7 +1175,7 @@ is known are considered stale and ignored.
</dl>
</details>

<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">query_tasks</a>(...) -> AsyncHttpResponse[TaskQueryResults]</code></summary>
<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">query_tasks</a>(...) -&gt; AsyncHttpResponse[TaskQueryResults]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1286,7 +1286,7 @@ any of the remaining parameters, but not both.
</dl>
</details>

<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">listen_as_agent</a>(...) -> AsyncHttpResponse[AgentRequest]</code></summary>
<details><summary><code>client.tasks.<a href="src/anduril/tasks/client.py">listen_as_agent</a>(...) -&gt; AsyncHttpResponse[AgentRequest]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1375,7 +1375,7 @@ client.tasks.listen_as_agent()
</details>

## Objects
<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">list_objects</a>(...) -> AsyncPager[PathMetadata, ListResponse]</code></summary>
<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">list_objects</a>(...) -&gt; AsyncPager[PathMetadata, ListResponse]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1473,7 +1473,7 @@ for page in response.iter_pages():
</dl>
</details>

<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">get_object</a>(...) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]</code></summary>
<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">get_object</a>(...) -&gt; typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1560,7 +1560,7 @@ client.objects.get_object(
</dl>
</details>

<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">upload_object</a>(...) -> AsyncHttpResponse[PathMetadata]</code></summary>
<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">upload_object</a>(...) -&gt; AsyncHttpResponse[PathMetadata]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1637,7 +1637,7 @@ client.objects.upload_object()
</dl>
</details>

<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">delete_object</a>(...) -> AsyncHttpResponse[None]</code></summary>
<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">delete_object</a>(...) -&gt; AsyncHttpResponse[None]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1708,7 +1708,7 @@ client.objects.delete_object(
</dl>
</details>

<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">get_object_metadata</a>(...) -> AsyncHttpResponse[None]</code></summary>
<details><summary><code>client.objects.<a href="src/anduril/objects/client.py">get_object_metadata</a>(...) -&gt; AsyncHttpResponse[None]</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1780,7 +1780,7 @@ client.objects.get_object_metadata(
</details>

## oauth
<details><summary><code>client.oauth.<a href="src/anduril/oauth/client.py">get_token</a>(...) -> AsyncHttpResponse[GetTokenResponse]</code></summary>
<details><summary><code>client.oauth.<a href="src/anduril/oauth/client.py">get_token</a>(...) -&gt; AsyncHttpResponse[GetTokenResponse]</code></summary>
<dl>
<dd>

Expand Down
8 changes: 6 additions & 2 deletions src/anduril/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ def __init__(
self._timeout = timeout

def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "anduril-lattice-sdk/4.1.0",
"User-Agent": "anduril-lattice-sdk/5.0.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": "anduril-lattice-sdk",
"X-Fern-SDK-Version": "4.1.0",
"X-Fern-SDK-Version": "5.0.0",
**(self.get_custom_headers() or {}),
}
token = self._get_token()
Expand Down
2 changes: 1 addition & 1 deletion src/anduril/entities/types/stream_entities_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class StreamEntitiesResponse_Heartbeat(UniversalBaseModel):
"""

event: typing.Literal["heartbeat"] = "heartbeat"
timestamp: typing.Optional[dt.datetime] = None
timestamp: typing.Optional[str] = None

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
Expand Down
5 changes: 2 additions & 3 deletions src/anduril/types/heartbeat_object.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# This file was auto-generated by Fern from our API Definition.

import datetime as dt
import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel


class HeartbeatObject(UniversalBaseModel):
timestamp: typing.Optional[dt.datetime] = pydantic.Field(default=None)
timestamp: typing.Optional[str] = pydantic.Field(default=None)
"""
timestamp of the heartbeat
The timestamp at which the heartbeat message was sent.
"""

if IS_PYDANTIC_V2:
Expand Down