From 09a33744fb4fec825999623dcd1fb50bf942e3b5 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 18:29:55 +0000 Subject: [PATCH] SDK regeneration --- package.json | 2 +- src/Client.ts | 4 ++-- src/api/types/Status.ts | 17 +++++++++-------- src/version.ts | 2 +- tests/wire/entities.test.ts | 28 ++++++++++++++++------------ 5 files changed, 29 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 8584c1c..9c85ae8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/Client.ts b/src/Client.ts index 483efe7..78607c3 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -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, }, diff --git a/src/api/types/Status.ts b/src/api/types/Status.ts index 131a35a..0aaf02b 100644 --- a/src/api/types/Status.ts +++ b/src/api/types/Status.ts @@ -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[]; } diff --git a/src/version.ts b/src/version.ts index b54c0db..c8a6ab3 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.5.0"; +export const SDK_VERSION = "4.0.0"; diff --git a/tests/wire/entities.test.ts b/tests/wire/entities.test.ts index 069e151..cd7c0fd 100644 --- a/tests/wire/entities.test.ts +++ b/tests/wire/entities.test.ts @@ -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, @@ -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: { @@ -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, @@ -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: { @@ -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, @@ -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: { @@ -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, @@ -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: {