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
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": "3.0.0",
"version": "4.0.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 @@ -26,8 +26,8 @@ export class LatticeClient {
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
"X-Fern-SDK-Version": "3.0.0",
"User-Agent": "@anduril-industries/lattice-sdk/3.0.0",
"X-Fern-SDK-Version": "4.0.0",
"User-Agent": "@anduril-industries/lattice-sdk/4.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
17 changes: 9 additions & 8 deletions src/api/types/Status.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Lattice from "../index.js";

/**
* 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).
*/
export interface Status {
/**
* A string that describes the activity that the entity is performing.
* Examples include "RECONNAISSANCE", "INTERDICTION", "RETURN TO BASE (RTB)", "PREPARING FOR LAUNCH".
*/
platformActivity?: string;
/** A human-readable string that describes the role the entity is currently performing. E.g. "Team Member", "Commander". */
role?: string;
/** The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. */
code?: number;
/** 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. */
message?: string;
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
details?: Lattice.GoogleProtobufAny[];
}
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.5.0";
export const SDK_VERSION = "4.0.0";
28 changes: 16 additions & 12 deletions tests/wire/entities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("Entities", () => {
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: { platformActivity: "platformActivity", role: "role" },
status: { code: 1, message: "message", details: [{}] },
location: {
position: {
latitudeDegrees: 1.1,
Expand Down Expand Up @@ -143,8 +143,9 @@ describe("Entities", () => {
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: {
platformActivity: "platformActivity",
role: "role",
code: 1,
message: "message",
details: [{}],
},
location: {
position: {
Expand Down Expand Up @@ -435,7 +436,7 @@ describe("Entities", () => {
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: { platformActivity: "platformActivity", role: "role" },
status: { code: 1, message: "message", details: [{}] },
location: {
position: {
latitudeDegrees: 1.1,
Expand Down Expand Up @@ -561,8 +562,9 @@ describe("Entities", () => {
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: {
platformActivity: "platformActivity",
role: "role",
code: 1,
message: "message",
details: [{}],
},
location: {
position: {
Expand Down Expand Up @@ -869,7 +871,7 @@ describe("Entities", () => {
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: { platformActivity: "platformActivity", role: "role" },
status: { code: 1, message: "message", details: [{}] },
location: {
position: {
latitudeDegrees: 1.1,
Expand Down Expand Up @@ -996,8 +998,9 @@ describe("Entities", () => {
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: {
platformActivity: "platformActivity",
role: "role",
code: 1,
message: "message",
details: [{}],
},
location: {
position: {
Expand Down Expand Up @@ -1307,7 +1310,7 @@ describe("Entities", () => {
createdTime: "2024-01-15T09:30:00Z",
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: { platformActivity: "platformActivity", role: "role" },
status: { code: 1, message: "message", details: [{}] },
location: {
position: {
latitudeDegrees: 1.1,
Expand Down Expand Up @@ -1433,8 +1436,9 @@ describe("Entities", () => {
expiryTime: "2024-01-15T09:30:00Z",
noExpiry: true,
status: {
platformActivity: "platformActivity",
role: "role",
code: 1,
message: "message",
details: [{}],
},
location: {
position: {
Expand Down