@anduril-industries/lattice-sdk 4.12.0 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/errors/BadRequestError.js +1 -1
  3. package/dist/cjs/api/errors/ContentTooLargeError.js +1 -1
  4. package/dist/cjs/api/errors/InsufficientStorageError.js +1 -1
  5. package/dist/cjs/api/errors/InternalServerError.js +1 -1
  6. package/dist/cjs/api/errors/NotFoundError.js +1 -1
  7. package/dist/cjs/api/errors/RequestTimeoutError.js +1 -1
  8. package/dist/cjs/api/errors/TooManyRequestsError.js +1 -1
  9. package/dist/cjs/api/errors/UnauthorizedError.js +1 -1
  10. package/dist/cjs/api/types/Color.d.ts +3 -3
  11. package/dist/cjs/api/types/GeoDetails.d.ts +1 -0
  12. package/dist/cjs/api/types/GeoVisualDetails.d.ts +10 -0
  13. package/dist/cjs/api/types/GeoVisualDetails.js +3 -0
  14. package/dist/cjs/api/types/index.d.ts +1 -0
  15. package/dist/cjs/api/types/index.js +1 -0
  16. package/dist/cjs/errors/LatticeError.js +1 -1
  17. package/dist/cjs/errors/LatticeTimeoutError.js +1 -1
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/BaseClient.mjs +2 -2
  21. package/dist/esm/api/errors/BadRequestError.mjs +1 -1
  22. package/dist/esm/api/errors/ContentTooLargeError.mjs +1 -1
  23. package/dist/esm/api/errors/InsufficientStorageError.mjs +1 -1
  24. package/dist/esm/api/errors/InternalServerError.mjs +1 -1
  25. package/dist/esm/api/errors/NotFoundError.mjs +1 -1
  26. package/dist/esm/api/errors/RequestTimeoutError.mjs +1 -1
  27. package/dist/esm/api/errors/TooManyRequestsError.mjs +1 -1
  28. package/dist/esm/api/errors/UnauthorizedError.mjs +1 -1
  29. package/dist/esm/api/types/Color.d.mts +3 -3
  30. package/dist/esm/api/types/GeoDetails.d.mts +1 -0
  31. package/dist/esm/api/types/GeoVisualDetails.d.mts +10 -0
  32. package/dist/esm/api/types/GeoVisualDetails.mjs +2 -0
  33. package/dist/esm/api/types/index.d.mts +1 -0
  34. package/dist/esm/api/types/index.mjs +1 -0
  35. package/dist/esm/errors/LatticeError.mjs +1 -1
  36. package/dist/esm/errors/LatticeTimeoutError.mjs +1 -1
  37. package/dist/esm/version.d.mts +1 -1
  38. package/dist/esm/version.mjs +1 -1
  39. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
46
- "X-Fern-SDK-Version": "4.12.0",
47
- "User-Agent": "@anduril-industries/lattice-sdk/4.12.0",
46
+ "X-Fern-SDK-Version": "4.13.0",
47
+ "User-Agent": "@anduril-industries/lattice-sdk/4.13.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -48,7 +48,7 @@ class BadRequestError extends errors.LatticeError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadRequestError";
52
52
  }
53
53
  }
54
54
  exports.BadRequestError = BadRequestError;
@@ -48,7 +48,7 @@ class ContentTooLargeError extends errors.LatticeError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ContentTooLargeError";
52
52
  }
53
53
  }
54
54
  exports.ContentTooLargeError = ContentTooLargeError;
@@ -48,7 +48,7 @@ class InsufficientStorageError extends errors.LatticeError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "InsufficientStorageError";
52
52
  }
53
53
  }
54
54
  exports.InsufficientStorageError = InsufficientStorageError;
@@ -48,7 +48,7 @@ class InternalServerError extends errors.LatticeError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "InternalServerError";
52
52
  }
53
53
  }
54
54
  exports.InternalServerError = InternalServerError;
@@ -48,7 +48,7 @@ class NotFoundError extends errors.LatticeError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "NotFoundError";
52
52
  }
53
53
  }
54
54
  exports.NotFoundError = NotFoundError;
@@ -48,7 +48,7 @@ class RequestTimeoutError extends errors.LatticeError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "RequestTimeoutError";
52
52
  }
53
53
  }
54
54
  exports.RequestTimeoutError = RequestTimeoutError;
@@ -48,7 +48,7 @@ class TooManyRequestsError extends errors.LatticeError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "TooManyRequestsError";
52
52
  }
53
53
  }
54
54
  exports.TooManyRequestsError = TooManyRequestsError;
@@ -48,7 +48,7 @@ class UnauthorizedError extends errors.LatticeError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "UnauthorizedError";
52
52
  }
53
53
  }
54
54
  exports.UnauthorizedError = UnauthorizedError;
@@ -1,9 +1,9 @@
1
1
  export interface Color {
2
- /** The amount of red in the color as a value in the interval [0, 1]. */
2
+ /** The amount of red in the color as a value in the interval [0, 255]. */
3
3
  red?: number | undefined;
4
- /** The amount of green in the color as a value in the interval [0, 1]. */
4
+ /** The amount of green in the color as a value in the interval [0, 255]. */
5
5
  green?: number | undefined;
6
- /** The amount of blue in the color as a value in the interval [0, 1]. */
6
+ /** The amount of blue in the color as a value in the interval [0, 255]. */
7
7
  blue?: number | undefined;
8
8
  /**
9
9
  * The fraction of this color that should be applied to the pixel. That is,
@@ -6,6 +6,7 @@ export interface GeoDetails {
6
6
  type?: GeoDetails.Type | undefined;
7
7
  controlArea?: Lattice.ControlAreaDetails | undefined;
8
8
  acm?: Lattice.AcmDetails | undefined;
9
+ visualDetails?: Lattice.GeoVisualDetails | undefined;
9
10
  }
10
11
  export declare namespace GeoDetails {
11
12
  const Type: {
@@ -0,0 +1,10 @@
1
+ import type * as Lattice from "../index.js";
2
+ /**
3
+ * Details specific to displaying a geo-entity
4
+ */
5
+ export interface GeoVisualDetails {
6
+ /** Describes the fill color of a geo-entity. */
7
+ fillColor?: Lattice.Color | undefined;
8
+ /** Describes the line color of a geo-entity. */
9
+ lineColor?: Lattice.Color | undefined;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -61,6 +61,7 @@ export * from "./GeoPoint.js";
61
61
  export * from "./GeoPolygon.js";
62
62
  export * from "./GeoPolygonPosition.js";
63
63
  export * from "./GeoShape.js";
64
+ export * from "./GeoVisualDetails.js";
64
65
  export * from "./GoogleProtobufAny.js";
65
66
  export * from "./GroupChild.js";
66
67
  export * from "./GroupDetails.js";
@@ -77,6 +77,7 @@ __exportStar(require("./GeoPoint.js"), exports);
77
77
  __exportStar(require("./GeoPolygon.js"), exports);
78
78
  __exportStar(require("./GeoPolygonPosition.js"), exports);
79
79
  __exportStar(require("./GeoShape.js"), exports);
80
+ __exportStar(require("./GeoVisualDetails.js"), exports);
80
81
  __exportStar(require("./GoogleProtobufAny.js"), exports);
81
82
  __exportStar(require("./GroupChild.js"), exports);
82
83
  __exportStar(require("./GroupDetails.js"), exports);
@@ -10,7 +10,7 @@ class LatticeError extends Error {
10
10
  if (Error.captureStackTrace) {
11
11
  Error.captureStackTrace(this, this.constructor);
12
12
  }
13
- this.name = this.constructor.name;
13
+ this.name = "LatticeError";
14
14
  this.statusCode = statusCode;
15
15
  this.body = body;
16
16
  this.rawResponse = rawResponse;
@@ -9,7 +9,7 @@ class LatticeTimeoutError extends Error {
9
9
  if (Error.captureStackTrace) {
10
10
  Error.captureStackTrace(this, this.constructor);
11
11
  }
12
- this.name = this.constructor.name;
12
+ this.name = "LatticeTimeoutError";
13
13
  if ((opts === null || opts === void 0 ? void 0 : opts.cause) != null) {
14
14
  this.cause = opts.cause;
15
15
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.12.0";
1
+ export declare const SDK_VERSION = "4.13.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "4.12.0";
4
+ exports.SDK_VERSION = "4.13.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
9
- "X-Fern-SDK-Version": "4.12.0",
10
- "User-Agent": "@anduril-industries/lattice-sdk/4.12.0",
9
+ "X-Fern-SDK-Version": "4.13.0",
10
+ "User-Agent": "@anduril-industries/lattice-sdk/4.13.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -12,6 +12,6 @@ export class BadRequestError extends errors.LatticeError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "BadRequestError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class ContentTooLargeError extends errors.LatticeError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "ContentTooLargeError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class InsufficientStorageError extends errors.LatticeError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "InsufficientStorageError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class InternalServerError extends errors.LatticeError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "InternalServerError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class NotFoundError extends errors.LatticeError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "NotFoundError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class RequestTimeoutError extends errors.LatticeError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "RequestTimeoutError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class TooManyRequestsError extends errors.LatticeError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "TooManyRequestsError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class UnauthorizedError extends errors.LatticeError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "UnauthorizedError";
16
16
  }
17
17
  }
@@ -1,9 +1,9 @@
1
1
  export interface Color {
2
- /** The amount of red in the color as a value in the interval [0, 1]. */
2
+ /** The amount of red in the color as a value in the interval [0, 255]. */
3
3
  red?: number | undefined;
4
- /** The amount of green in the color as a value in the interval [0, 1]. */
4
+ /** The amount of green in the color as a value in the interval [0, 255]. */
5
5
  green?: number | undefined;
6
- /** The amount of blue in the color as a value in the interval [0, 1]. */
6
+ /** The amount of blue in the color as a value in the interval [0, 255]. */
7
7
  blue?: number | undefined;
8
8
  /**
9
9
  * The fraction of this color that should be applied to the pixel. That is,
@@ -6,6 +6,7 @@ export interface GeoDetails {
6
6
  type?: GeoDetails.Type | undefined;
7
7
  controlArea?: Lattice.ControlAreaDetails | undefined;
8
8
  acm?: Lattice.AcmDetails | undefined;
9
+ visualDetails?: Lattice.GeoVisualDetails | undefined;
9
10
  }
10
11
  export declare namespace GeoDetails {
11
12
  const Type: {
@@ -0,0 +1,10 @@
1
+ import type * as Lattice from "../index.mjs";
2
+ /**
3
+ * Details specific to displaying a geo-entity
4
+ */
5
+ export interface GeoVisualDetails {
6
+ /** Describes the fill color of a geo-entity. */
7
+ fillColor?: Lattice.Color | undefined;
8
+ /** Describes the line color of a geo-entity. */
9
+ lineColor?: Lattice.Color | undefined;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated from our API Definition.
2
+ export {};
@@ -61,6 +61,7 @@ export * from "./GeoPoint.mjs";
61
61
  export * from "./GeoPolygon.mjs";
62
62
  export * from "./GeoPolygonPosition.mjs";
63
63
  export * from "./GeoShape.mjs";
64
+ export * from "./GeoVisualDetails.mjs";
64
65
  export * from "./GoogleProtobufAny.mjs";
65
66
  export * from "./GroupChild.mjs";
66
67
  export * from "./GroupDetails.mjs";
@@ -61,6 +61,7 @@ export * from "./GeoPoint.mjs";
61
61
  export * from "./GeoPolygon.mjs";
62
62
  export * from "./GeoPolygonPosition.mjs";
63
63
  export * from "./GeoShape.mjs";
64
+ export * from "./GeoVisualDetails.mjs";
64
65
  export * from "./GoogleProtobufAny.mjs";
65
66
  export * from "./GroupChild.mjs";
66
67
  export * from "./GroupDetails.mjs";
@@ -7,7 +7,7 @@ export class LatticeError extends Error {
7
7
  if (Error.captureStackTrace) {
8
8
  Error.captureStackTrace(this, this.constructor);
9
9
  }
10
- this.name = this.constructor.name;
10
+ this.name = "LatticeError";
11
11
  this.statusCode = statusCode;
12
12
  this.body = body;
13
13
  this.rawResponse = rawResponse;
@@ -6,7 +6,7 @@ export class LatticeTimeoutError extends Error {
6
6
  if (Error.captureStackTrace) {
7
7
  Error.captureStackTrace(this, this.constructor);
8
8
  }
9
- this.name = this.constructor.name;
9
+ this.name = "LatticeTimeoutError";
10
10
  if ((opts === null || opts === void 0 ? void 0 : opts.cause) != null) {
11
11
  this.cause = opts.cause;
12
12
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.12.0";
1
+ export declare const SDK_VERSION = "4.13.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.12.0";
1
+ export const SDK_VERSION = "4.13.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anduril-industries/lattice-sdk",
3
- "version": "4.12.0",
3
+ "version": "4.13.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",