Skip to content

Commit ae645c1

Browse files
SDK regeneration
1 parent 2394016 commit ae645c1

File tree

5 files changed

+29
-24
lines changed

5 files changed

+29
-24
lines changed

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": "3.0.0",
3+
"version": "3.1.0",
44
"private": false,
55
"repository": "github:anduril/lattice-sdk-javascript",
66
"license": "See LICENSE",

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export class LatticeClient {
2626
{
2727
"X-Fern-Language": "JavaScript",
2828
"X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
29-
"X-Fern-SDK-Version": "3.0.0",
30-
"User-Agent": "@anduril-industries/lattice-sdk/3.0.0",
29+
"X-Fern-SDK-Version": "3.1.0",
30+
"User-Agent": "@anduril-industries/lattice-sdk/3.1.0",
3131
"X-Fern-Runtime": core.RUNTIME.type,
3232
"X-Fern-Runtime-Version": core.RUNTIME.version,
3333
},

src/api/types/Status.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3+
import type * as Lattice from "../index.js";
4+
35
/**
4-
* Contains status of entities.
6+
* 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).
57
*/
68
export interface Status {
7-
/**
8-
* A string that describes the activity that the entity is performing.
9-
* Examples include "RECONNAISSANCE", "INTERDICTION", "RETURN TO BASE (RTB)", "PREPARING FOR LAUNCH".
10-
*/
11-
platformActivity?: string;
12-
/** A human-readable string that describes the role the entity is currently performing. E.g. "Team Member", "Commander". */
13-
role?: string;
9+
/** The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. */
10+
code?: number;
11+
/** 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. */
12+
message?: string;
13+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
14+
details?: Lattice.GoogleProtobufAny[];
1415
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "2.5.0";
1+
export const SDK_VERSION = "3.1.0";

tests/wire/entities.test.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe("Entities", () => {
1616
createdTime: "2024-01-15T09:30:00Z",
1717
expiryTime: "2024-01-15T09:30:00Z",
1818
noExpiry: true,
19-
status: { platformActivity: "platformActivity", role: "role" },
19+
status: { code: 1, message: "message", details: [{}] },
2020
location: {
2121
position: {
2222
latitudeDegrees: 1.1,
@@ -143,8 +143,9 @@ describe("Entities", () => {
143143
expiryTime: "2024-01-15T09:30:00Z",
144144
noExpiry: true,
145145
status: {
146-
platformActivity: "platformActivity",
147-
role: "role",
146+
code: 1,
147+
message: "message",
148+
details: [{}],
148149
},
149150
location: {
150151
position: {
@@ -435,7 +436,7 @@ describe("Entities", () => {
435436
createdTime: "2024-01-15T09:30:00Z",
436437
expiryTime: "2024-01-15T09:30:00Z",
437438
noExpiry: true,
438-
status: { platformActivity: "platformActivity", role: "role" },
439+
status: { code: 1, message: "message", details: [{}] },
439440
location: {
440441
position: {
441442
latitudeDegrees: 1.1,
@@ -561,8 +562,9 @@ describe("Entities", () => {
561562
expiryTime: "2024-01-15T09:30:00Z",
562563
noExpiry: true,
563564
status: {
564-
platformActivity: "platformActivity",
565-
role: "role",
565+
code: 1,
566+
message: "message",
567+
details: [{}],
566568
},
567569
location: {
568570
position: {
@@ -869,7 +871,7 @@ describe("Entities", () => {
869871
createdTime: "2024-01-15T09:30:00Z",
870872
expiryTime: "2024-01-15T09:30:00Z",
871873
noExpiry: true,
872-
status: { platformActivity: "platformActivity", role: "role" },
874+
status: { code: 1, message: "message", details: [{}] },
873875
location: {
874876
position: {
875877
latitudeDegrees: 1.1,
@@ -996,8 +998,9 @@ describe("Entities", () => {
996998
expiryTime: "2024-01-15T09:30:00Z",
997999
noExpiry: true,
9981000
status: {
999-
platformActivity: "platformActivity",
1000-
role: "role",
1001+
code: 1,
1002+
message: "message",
1003+
details: [{}],
10011004
},
10021005
location: {
10031006
position: {
@@ -1307,7 +1310,7 @@ describe("Entities", () => {
13071310
createdTime: "2024-01-15T09:30:00Z",
13081311
expiryTime: "2024-01-15T09:30:00Z",
13091312
noExpiry: true,
1310-
status: { platformActivity: "platformActivity", role: "role" },
1313+
status: { code: 1, message: "message", details: [{}] },
13111314
location: {
13121315
position: {
13131316
latitudeDegrees: 1.1,
@@ -1433,8 +1436,9 @@ describe("Entities", () => {
14331436
expiryTime: "2024-01-15T09:30:00Z",
14341437
noExpiry: true,
14351438
status: {
1436-
platformActivity: "platformActivity",
1437-
role: "role",
1439+
code: 1,
1440+
message: "message",
1441+
details: [{}],
14381442
},
14391443
location: {
14401444
position: {

0 commit comments

Comments
 (0)