Skip to content

Commit add9abb

Browse files
🌿 Fern Regeneration -- August 6, 2025 (#69)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Armin Farshidfard <[email protected]>
1 parent 7ccaccf commit add9abb

File tree

14 files changed

+102
-144
lines changed

14 files changed

+102
-144
lines changed

README.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# Anduril Lattice SDK TypeScript
1+
# Lattice SDK TypeScript Library
22

33
![](https://www.anduril.com/lattice-sdk/)
44

5-
[![npm shield](https://img.shields.io/npm/v/@anduril-industries/lattice-sdk)](https://www.npmjs.com/package/@anduril-industries/lattice-sdk)
6-
7-
The Anduril TypeScript library provides convenient access to the Anduril API from TypeScript.
5+
The Lattice SDK TypeScript library provides convenient access to the Lattice API from TypeScript.
86

97
## Documentation
108

@@ -24,7 +22,7 @@ npm i -s @anduril-industries/lattice-sdk
2422

2523
## Support
2624

27-
For support with this library please reach out to your Anduril representative.
25+
For support with this library, please reach out to your Anduril representative.
2826

2927
## Reference
3028

@@ -536,18 +534,6 @@ while (page.hasNextPage()) {
536534

537535
## Advanced
538536

539-
### Additional Headers
540-
541-
If you would like to send additional headers as part of the request, use the `headers` request option.
542-
543-
```typescript
544-
const response = await client.entities.longPollEntityEvents(..., {
545-
headers: {
546-
'X-Custom-Header': 'custom value'
547-
}
548-
});
549-
```
550-
551537
### Retries
552538

553539
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
@@ -568,16 +554,6 @@ const response = await client.entities.longPollEntityEvents(..., {
568554
});
569555
```
570556

571-
### Timeouts
572-
573-
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
574-
575-
```typescript
576-
const response = await client.entities.longPollEntityEvents(..., {
577-
timeoutInSeconds: 30 // override timeout to 30s
578-
});
579-
```
580-
581557
### Aborting Requests
582558

583559
The SDK allows users to abort requests at any point by passing in an abort signal.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@anduril-industries/lattice-sdk",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"private": false,
55
"repository": "github:anduril/lattice-sdk-javascript",
66
"license": "See LICENSE",

reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ await client.entities.longPollEntityEvents({
348348
</dl>
349349
</details>
350350

351-
<details><summary><code>client.entities.<a href="/src/api/resources/entities/client/Client.ts">sseEntityEvents</a>({ ...params }) -> core.Stream<Lattice.SseEntityEventsResponse></code></summary>
351+
<details><summary><code>client.entities.<a href="/src/api/resources/entities/client/Client.ts">streamEntities</a>({ ...params }) -> core.Stream<Lattice.StreamEntitiesResponse></code></summary>
352352
<dl>
353353
<dd>
354354

@@ -360,7 +360,7 @@ await client.entities.longPollEntityEvents({
360360
<dl>
361361
<dd>
362362

363-
This SSE API establishes a persistent connection to stream entity events as they occur.
363+
Establishes a persistent connection to stream entity events as they occur.
364364

365365
</dd>
366366
</dl>
@@ -376,7 +376,7 @@ This SSE API establishes a persistent connection to stream entity events as they
376376
<dd>
377377

378378
```typescript
379-
const response = await client.entities.sseEntityEvents();
379+
const response = await client.entities.streamEntities();
380380
for await (const item of response) {
381381
console.log(item);
382382
}

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export class LatticeClient {
4444
{
4545
"X-Fern-Language": "JavaScript",
4646
"X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
47-
"X-Fern-SDK-Version": "2.0.0",
48-
"User-Agent": "@anduril-industries/lattice-sdk/2.0.0",
47+
"X-Fern-SDK-Version": "2.1.0",
48+
"User-Agent": "@anduril-industries/lattice-sdk/2.1.0",
4949
"X-Fern-Runtime": core.RUNTIME.type,
5050
"X-Fern-Runtime-Version": core.RUNTIME.version,
5151
},

src/api/resources/entities/client/Client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,19 +483,19 @@ export class Entities {
483483
}
484484

485485
/**
486-
* This SSE API establishes a persistent connection to stream entity events as they occur.
486+
* Establishes a persistent connection to stream entity events as they occur.
487487
*/
488-
public sseEntityEvents(
488+
public streamEntities(
489489
request: Lattice.EntityStreamRequest = {},
490490
requestOptions?: Entities.RequestOptions,
491-
): core.HttpResponsePromise<core.Stream<Lattice.SseEntityEventsResponse>> {
492-
return core.HttpResponsePromise.fromPromise(this.__sseEntityEvents(request, requestOptions));
491+
): core.HttpResponsePromise<core.Stream<Lattice.StreamEntitiesResponse>> {
492+
return core.HttpResponsePromise.fromPromise(this.__streamEntities(request, requestOptions));
493493
}
494494

495-
private async __sseEntityEvents(
495+
private async __streamEntities(
496496
request: Lattice.EntityStreamRequest = {},
497497
requestOptions?: Entities.RequestOptions,
498-
): Promise<core.WithRawResponse<core.Stream<Lattice.SseEntityEventsResponse>>> {
498+
): Promise<core.WithRawResponse<core.Stream<Lattice.StreamEntitiesResponse>>> {
499499
const _response = await core.fetcher<ReadableStream>({
500500
url: core.url.join(
501501
(await core.Supplier.get(this._options.baseUrl)) ??

src/api/resources/entities/types/SseEntityEventsResponse.ts renamed to src/api/resources/entities/types/StreamEntitiesResponse.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
import * as Lattice from "../../../index.js";
66

77
/**
8-
* stream event response.
8+
* The stream event response.
99
*/
10-
export type SseEntityEventsResponse =
11-
| Lattice.SseEntityEventsResponse.Heartbeat
12-
| Lattice.SseEntityEventsResponse.Entity;
10+
export type StreamEntitiesResponse = Lattice.StreamEntitiesResponse.Heartbeat | Lattice.StreamEntitiesResponse.Entity;
1311

14-
export namespace SseEntityEventsResponse {
12+
export namespace StreamEntitiesResponse {
1513
export interface Heartbeat extends Lattice.EntityStreamHeartbeat {
1614
event: "heartbeat";
1715
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "./SseEntityEventsResponse.js";
1+
export * from "./StreamEntitiesResponse.js";

src/api/resources/objects/client/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export class Objects {
228228
}
229229

230230
/**
231-
* Uploads an object using multiform data. The object must be 1 GiB or smaller.
231+
* Uploads an object. The object must be 1 GiB or smaller.
232232
*
233233
* @param {core.file.Uploadable} uploadable
234234
* @param {string} objectPath

src/api/types/EntityStreamEvent.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
import * as Lattice from "../index.js";
66

7-
export interface EntityStreamEvent {
8-
data: Lattice.EntityEvent;
9-
}
7+
export interface EntityStreamEvent extends Lattice.EntityEvent {}

src/api/types/EntityStreamHeartbeat.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
export interface EntityStreamHeartbeat {
6-
data: EntityStreamHeartbeat.Data;
7-
}
5+
import * as Lattice from "../index.js";
86

9-
export namespace EntityStreamHeartbeat {
10-
export interface Data {
11-
/** timestamp of the heartbeat */
12-
timestamp?: string;
13-
}
14-
}
7+
export interface EntityStreamHeartbeat extends Lattice.HeartbeatObject {}

0 commit comments

Comments
 (0)