Skip to content
Closed
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
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

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

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fanduril%2Flattice-sdk-javascript)
[![npm shield](https://img.shields.io/npm/v/@anduril-industries/lattice-sdk)](https://www.npmjs.com/package/@anduril-industries/lattice-sdk)

The Lattice SDK TypeScript library provides convenient access to the Lattice API from TypeScript.
The Anduril TypeScript library provides convenient access to the Anduril API from TypeScript.

## Documentation

Expand Down Expand Up @@ -626,3 +627,13 @@ const client = new LatticeClient({
fetcher: // provide your implementation here
});
```

## Contributing

While we value open-source contributions to this SDK, this library is generated programmatically.
Additions made directly to this library would have to be moved over to our generation code,
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anduril-industries/lattice-sdk",
"version": "2.1.0",
"version": "2.2.0",
"private": false,
"repository": "github:anduril/lattice-sdk-javascript",
"license": "See LICENSE",
Expand Down
4 changes: 2 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class LatticeClient {
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
"X-Fern-SDK-Version": "2.1.0",
"User-Agent": "@anduril-industries/lattice-sdk/2.1.0",
"X-Fern-SDK-Version": "2.2.0",
"User-Agent": "@anduril-industries/lattice-sdk/2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
7 changes: 7 additions & 0 deletions src/api/types/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export interface Entity {
* The expiry time must be in the future, but less than 30 days from the current time.
*/
expiryTime?: string;
/**
* Use noExpiry only when the entity contains information that should be available to other
* tasks or integrations beyond its immediate operational context. For example, use noExpiry
* for long-living geographical entities that maintain persistent relevance across multiple
* operations or tasks.
*/
noExpiry?: boolean;
/** Human-readable descriptions of what the entity is currently doing. */
status?: Lattice.Status;
/** Geospatial data related to the entity, including its position, kinematics, and orientation. */
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "2.1.0";
export const SDK_VERSION = "2.2.0";
8 changes: 8 additions & 0 deletions tests/wire/entities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe("Entities", () => {
isLive: true,
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: { code: 1, message: "message", details: [{}] },
location: {
position: {
Expand Down Expand Up @@ -141,6 +142,7 @@ describe("Entities", () => {
isLive: true,
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: {
code: 1,
message: "message",
Expand Down Expand Up @@ -391,6 +393,7 @@ describe("Entities", () => {
isLive: true,
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: { code: 1, message: "message", details: [{}] },
location: {
position: {
Expand Down Expand Up @@ -514,6 +517,7 @@ describe("Entities", () => {
isLive: true,
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: {
code: 1,
message: "message",
Expand Down Expand Up @@ -764,6 +768,7 @@ describe("Entities", () => {
isLive: true,
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: { code: 1, message: "message", details: [{}] },
location: {
position: {
Expand Down Expand Up @@ -888,6 +893,7 @@ describe("Entities", () => {
isLive: true,
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: {
code: 1,
message: "message",
Expand Down Expand Up @@ -1138,6 +1144,7 @@ describe("Entities", () => {
isLive: true,
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: { code: 1, message: "message", details: [{}] },
location: {
position: {
Expand Down Expand Up @@ -1261,6 +1268,7 @@ describe("Entities", () => {
isLive: true,
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: {
code: 1,
message: "message",
Expand Down
Loading