Skip to content

Commit d66bef5

Browse files
SDK regeneration
1 parent 5589611 commit d66bef5

File tree

126 files changed

+2042
-525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+2042
-525
lines changed

.fern/metadata.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"cliVersion": "3.5.0",
2+
"cliVersion": "3.40.0",
33
"generatorName": "fernapi/fern-python-sdk",
4-
"generatorVersion": "4.38.4",
4+
"generatorVersion": "4.46.14",
55
"generatorConfig": {
66
"client_class_name": "Lattice",
77
"package_name": "anduril"
8-
}
8+
},
9+
"sdkVersion": "5.0.0"
910
}

README.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The Lattice SDK Python library provides convenient access to the Lattice SDK API
1818
- [Exception Handling](#exception-handling)
1919
- [Streaming](#streaming)
2020
- [Pagination](#pagination)
21+
- [Oauth Token Override](#oauth-token-override)
2122
- [Advanced](#advanced)
2223
- [Access Raw Response Data](#access-raw-response-data)
2324
- [Retries](#retries)
@@ -56,7 +57,8 @@ Instantiate and use the client with the following:
5657
from anduril import Lattice
5758

5859
client = Lattice(
59-
token="YOUR_TOKEN",
60+
client_id="YOUR_CLIENT_ID",
61+
client_secret="YOUR_CLIENT_SECRET",
6062
)
6163
client.entities.long_poll_entity_events(
6264
session_token="sessionToken",
@@ -73,7 +75,8 @@ import asyncio
7375
from anduril import AsyncLattice
7476

7577
client = AsyncLattice(
76-
token="YOUR_TOKEN",
78+
client_id="YOUR_CLIENT_ID",
79+
client_secret="YOUR_CLIENT_SECRET",
7780
)
7881

7982

@@ -109,7 +112,8 @@ The SDK supports streaming responses, as well, the response will be a generator
109112
from anduril import Lattice
110113

111114
client = Lattice(
112-
token="YOUR_TOKEN",
115+
client_id="YOUR_CLIENT_ID",
116+
client_secret="YOUR_CLIENT_SECRET",
113117
)
114118
response = client.entities.stream_entities()
115119
for chunk in response.data:
@@ -124,7 +128,8 @@ Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used
124128
from anduril import Lattice
125129

126130
client = Lattice(
127-
token="YOUR_TOKEN",
131+
client_id="YOUR_CLIENT_ID",
132+
client_secret="YOUR_CLIENT_SECRET",
128133
)
129134
response = client.objects.list_objects()
130135
for item in response:
@@ -143,6 +148,24 @@ for page in pager.iter_pages():
143148
print(item)
144149
```
145150

151+
## Oauth Token Override
152+
153+
This SDK supports two authentication methods: OAuth client credentials flow (automatic token management) or direct bearer token authentication. You can choose between these options when initializing the client:
154+
155+
```python
156+
from anduril import Lattice
157+
158+
# Option 1: Direct bearer token (bypass OAuth flow)
159+
client = Lattice(..., token="my-pre-generated-bearer-token")
160+
161+
from anduril import Lattice
162+
163+
# Option 2: OAuth client credentials flow (automatic token management)
164+
client = Lattice(
165+
..., client_id="your-client-id", client_secret="your-client-secret"
166+
)
167+
```
168+
146169
## Advanced
147170

148171
### Access Raw Response Data

poetry.lock

Lines changed: 51 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[project]
22
name = "anduril-lattice-sdk"
3+
dynamic = ["version"]
34

45
[tool.poetry]
56
name = "anduril-lattice-sdk"
6-
version = "4.0.0"
7+
version = "5.0.0"
78
description = "HTTP clients for the Anduril Lattice SDK"
89
readme = "README.md"
910
authors = [

0 commit comments

Comments
 (0)