@anduril-industries/lattice-sdk 2.0.0 → 2.1.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.
- package/README.md +3 -3
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/entities/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/entities/client/Client.js +4 -4
- package/dist/cjs/api/resources/entities/types/{SseEntityEventsResponse.d.ts → StreamEntitiesResponse.d.ts} +3 -3
- package/dist/cjs/api/resources/entities/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/entities/types/index.js +1 -1
- package/dist/cjs/api/resources/objects/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/objects/client/Client.js +1 -1
- package/dist/cjs/api/types/EntityStreamEvent.d.ts +1 -2
- package/dist/cjs/api/types/EntityStreamHeartbeat.d.ts +2 -8
- package/dist/cjs/api/types/HeartbeatObject.d.ts +7 -0
- package/dist/cjs/api/types/HeartbeatObject.js +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -1
- package/dist/cjs/api/types/index.js +2 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/entities/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/entities/client/Client.mjs +4 -4
- package/dist/esm/api/resources/entities/types/{SseEntityEventsResponse.d.mts → StreamEntitiesResponse.d.mts} +3 -3
- package/dist/esm/api/resources/entities/types/index.d.mts +1 -1
- package/dist/esm/api/resources/entities/types/index.mjs +1 -1
- package/dist/esm/api/resources/objects/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/objects/client/Client.mjs +1 -1
- package/dist/esm/api/types/EntityStreamEvent.d.mts +1 -2
- package/dist/esm/api/types/EntityStreamHeartbeat.d.mts +2 -8
- package/dist/esm/api/types/HeartbeatObject.d.mts +7 -0
- package/dist/esm/api/types/HeartbeatObject.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +2 -1
- package/dist/esm/api/types/index.mjs +2 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3 -3
- /package/dist/cjs/api/resources/entities/types/{SseEntityEventsResponse.js → StreamEntitiesResponse.js} +0 -0
- /package/dist/esm/api/resources/entities/types/{SseEntityEventsResponse.mjs → StreamEntitiesResponse.mjs} +0 -0
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Anduril
|
|
1
|
+
# Anduril TypeScript Library
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@anduril-industries/lattice-sdk)
|
|
6
6
|
|
|
7
|
-
The
|
|
7
|
+
The Lattice SDK TypeScript library provides convenient access to the Lattice API from TypeScript.
|
|
8
8
|
|
|
9
9
|
## Documentation
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ npm i -s @anduril-industries/lattice-sdk
|
|
|
24
24
|
|
|
25
25
|
## Support
|
|
26
26
|
|
|
27
|
-
For support with this library please reach out to your Anduril representative.
|
|
27
|
+
For support with this library, please reach out to your Anduril representative.
|
|
28
28
|
|
|
29
29
|
## Reference
|
|
30
30
|
|
package/dist/cjs/Client.js
CHANGED
|
@@ -47,8 +47,8 @@ class LatticeClient {
|
|
|
47
47
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
|
|
50
|
-
"X-Fern-SDK-Version": "2.
|
|
51
|
-
"User-Agent": "@anduril-industries/lattice-sdk/2.
|
|
50
|
+
"X-Fern-SDK-Version": "2.1.0",
|
|
51
|
+
"User-Agent": "@anduril-industries/lattice-sdk/2.1.0",
|
|
52
52
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
53
53
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
54
54
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -130,9 +130,9 @@ export declare class Entities {
|
|
|
130
130
|
longPollEntityEvents(request: Lattice.EntityEventRequest, requestOptions?: Entities.RequestOptions): core.HttpResponsePromise<Lattice.EntityEventResponse>;
|
|
131
131
|
private __longPollEntityEvents;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* Establishes a persistent connection to stream entity events as they occur.
|
|
134
134
|
*/
|
|
135
|
-
|
|
136
|
-
private
|
|
135
|
+
streamEntities(request?: Lattice.EntityStreamRequest, requestOptions?: Entities.RequestOptions): core.HttpResponsePromise<core.Stream<Lattice.StreamEntitiesResponse>>;
|
|
136
|
+
private __streamEntities;
|
|
137
137
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
138
138
|
}
|
|
@@ -409,12 +409,12 @@ class Entities {
|
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
|
-
*
|
|
412
|
+
* Establishes a persistent connection to stream entity events as they occur.
|
|
413
413
|
*/
|
|
414
|
-
|
|
415
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
414
|
+
streamEntities(request = {}, requestOptions) {
|
|
415
|
+
return core.HttpResponsePromise.fromPromise(this.__streamEntities(request, requestOptions));
|
|
416
416
|
}
|
|
417
|
-
|
|
417
|
+
__streamEntities() {
|
|
418
418
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
419
419
|
var _a, _b, _c;
|
|
420
420
|
const _response = yield core.fetcher({
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Lattice from "../../../index.js";
|
|
5
5
|
/**
|
|
6
|
-
* stream event response.
|
|
6
|
+
* The stream event response.
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
export declare namespace
|
|
8
|
+
export type StreamEntitiesResponse = Lattice.StreamEntitiesResponse.Heartbeat | Lattice.StreamEntitiesResponse.Entity;
|
|
9
|
+
export declare namespace StreamEntitiesResponse {
|
|
10
10
|
interface Heartbeat extends Lattice.EntityStreamHeartbeat {
|
|
11
11
|
event: "heartbeat";
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./StreamEntitiesResponse.js";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./StreamEntitiesResponse.js"), exports);
|
|
@@ -54,7 +54,7 @@ export declare class Objects {
|
|
|
54
54
|
getObject(objectPath: string, request?: Lattice.GetObjectRequest, requestOptions?: Objects.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
55
55
|
private __getObject;
|
|
56
56
|
/**
|
|
57
|
-
* Uploads an object
|
|
57
|
+
* Uploads an object. The object must be 1 GiB or smaller.
|
|
58
58
|
*
|
|
59
59
|
* @param {core.file.Uploadable} uploadable
|
|
60
60
|
* @param {string} objectPath
|
|
@@ -211,7 +211,7 @@ class Objects {
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
* Uploads an object
|
|
214
|
+
* Uploads an object. The object must be 1 GiB or smaller.
|
|
215
215
|
*
|
|
216
216
|
* @param {core.file.Uploadable} uploadable
|
|
217
217
|
* @param {string} objectPath
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare namespace EntityStreamHeartbeat {
|
|
8
|
-
interface Data {
|
|
9
|
-
/** timestamp of the heartbeat */
|
|
10
|
-
timestamp?: string;
|
|
11
|
-
}
|
|
4
|
+
import * as Lattice from "../index.js";
|
|
5
|
+
export interface EntityStreamHeartbeat extends Lattice.HeartbeatObject {
|
|
12
6
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from "./Timestamp.js";
|
|
2
2
|
export * from "./EntityEventResponse.js";
|
|
3
3
|
export * from "./EntityStreamHeartbeat.js";
|
|
4
|
+
export * from "./HeartbeatObject.js";
|
|
4
5
|
export * from "./EntityStreamEvent.js";
|
|
6
|
+
export * from "./EntityEvent.js";
|
|
5
7
|
export * from "./GoogleProtobufAny.js";
|
|
6
8
|
export * from "./Status.js";
|
|
7
9
|
export * from "./Position.js";
|
|
@@ -114,7 +116,6 @@ export * from "./MeanKeplerianElements.js";
|
|
|
114
116
|
export * from "./TleParameters.js";
|
|
115
117
|
export * from "./OrbitMeanElements.js";
|
|
116
118
|
export * from "./Orbit.js";
|
|
117
|
-
export * from "./EntityEvent.js";
|
|
118
119
|
export * from "./TaskQueryResults.js";
|
|
119
120
|
export * from "./EntityIdsSelector.js";
|
|
120
121
|
export * from "./AgentRequest.js";
|
|
@@ -17,7 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./Timestamp.js"), exports);
|
|
18
18
|
__exportStar(require("./EntityEventResponse.js"), exports);
|
|
19
19
|
__exportStar(require("./EntityStreamHeartbeat.js"), exports);
|
|
20
|
+
__exportStar(require("./HeartbeatObject.js"), exports);
|
|
20
21
|
__exportStar(require("./EntityStreamEvent.js"), exports);
|
|
22
|
+
__exportStar(require("./EntityEvent.js"), exports);
|
|
21
23
|
__exportStar(require("./GoogleProtobufAny.js"), exports);
|
|
22
24
|
__exportStar(require("./Status.js"), exports);
|
|
23
25
|
__exportStar(require("./Position.js"), exports);
|
|
@@ -130,7 +132,6 @@ __exportStar(require("./MeanKeplerianElements.js"), exports);
|
|
|
130
132
|
__exportStar(require("./TleParameters.js"), exports);
|
|
131
133
|
__exportStar(require("./OrbitMeanElements.js"), exports);
|
|
132
134
|
__exportStar(require("./Orbit.js"), exports);
|
|
133
|
-
__exportStar(require("./EntityEvent.js"), exports);
|
|
134
135
|
__exportStar(require("./TaskQueryResults.js"), exports);
|
|
135
136
|
__exportStar(require("./EntityIdsSelector.js"), exports);
|
|
136
137
|
__exportStar(require("./AgentRequest.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.1.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -11,8 +11,8 @@ export class LatticeClient {
|
|
|
11
11
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
12
12
|
"X-Fern-Language": "JavaScript",
|
|
13
13
|
"X-Fern-SDK-Name": "@anduril-industries/lattice-sdk",
|
|
14
|
-
"X-Fern-SDK-Version": "2.
|
|
15
|
-
"User-Agent": "@anduril-industries/lattice-sdk/2.
|
|
14
|
+
"X-Fern-SDK-Version": "2.1.0",
|
|
15
|
+
"User-Agent": "@anduril-industries/lattice-sdk/2.1.0",
|
|
16
16
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
17
17
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
18
18
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -130,9 +130,9 @@ export declare class Entities {
|
|
|
130
130
|
longPollEntityEvents(request: Lattice.EntityEventRequest, requestOptions?: Entities.RequestOptions): core.HttpResponsePromise<Lattice.EntityEventResponse>;
|
|
131
131
|
private __longPollEntityEvents;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* Establishes a persistent connection to stream entity events as they occur.
|
|
134
134
|
*/
|
|
135
|
-
|
|
136
|
-
private
|
|
135
|
+
streamEntities(request?: Lattice.EntityStreamRequest, requestOptions?: Entities.RequestOptions): core.HttpResponsePromise<core.Stream<Lattice.StreamEntitiesResponse>>;
|
|
136
|
+
private __streamEntities;
|
|
137
137
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
138
138
|
}
|
|
@@ -373,12 +373,12 @@ export class Entities {
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
/**
|
|
376
|
-
*
|
|
376
|
+
* Establishes a persistent connection to stream entity events as they occur.
|
|
377
377
|
*/
|
|
378
|
-
|
|
379
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
378
|
+
streamEntities(request = {}, requestOptions) {
|
|
379
|
+
return core.HttpResponsePromise.fromPromise(this.__streamEntities(request, requestOptions));
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
__streamEntities() {
|
|
382
382
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
383
383
|
var _a, _b, _c;
|
|
384
384
|
const _response = yield core.fetcher({
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Lattice from "../../../index.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* stream event response.
|
|
6
|
+
* The stream event response.
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
export declare namespace
|
|
8
|
+
export type StreamEntitiesResponse = Lattice.StreamEntitiesResponse.Heartbeat | Lattice.StreamEntitiesResponse.Entity;
|
|
9
|
+
export declare namespace StreamEntitiesResponse {
|
|
10
10
|
interface Heartbeat extends Lattice.EntityStreamHeartbeat {
|
|
11
11
|
event: "heartbeat";
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./StreamEntitiesResponse.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./StreamEntitiesResponse.mjs";
|
|
@@ -54,7 +54,7 @@ export declare class Objects {
|
|
|
54
54
|
getObject(objectPath: string, request?: Lattice.GetObjectRequest, requestOptions?: Objects.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
55
55
|
private __getObject;
|
|
56
56
|
/**
|
|
57
|
-
* Uploads an object
|
|
57
|
+
* Uploads an object. The object must be 1 GiB or smaller.
|
|
58
58
|
*
|
|
59
59
|
* @param {core.file.Uploadable} uploadable
|
|
60
60
|
* @param {string} objectPath
|
|
@@ -175,7 +175,7 @@ export class Objects {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
|
-
* Uploads an object
|
|
178
|
+
* Uploads an object. The object must be 1 GiB or smaller.
|
|
179
179
|
*
|
|
180
180
|
* @param {core.file.Uploadable} uploadable
|
|
181
181
|
* @param {string} objectPath
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare namespace EntityStreamHeartbeat {
|
|
8
|
-
interface Data {
|
|
9
|
-
/** timestamp of the heartbeat */
|
|
10
|
-
timestamp?: string;
|
|
11
|
-
}
|
|
4
|
+
import * as Lattice from "../index.mjs";
|
|
5
|
+
export interface EntityStreamHeartbeat extends Lattice.HeartbeatObject {
|
|
12
6
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from "./Timestamp.mjs";
|
|
2
2
|
export * from "./EntityEventResponse.mjs";
|
|
3
3
|
export * from "./EntityStreamHeartbeat.mjs";
|
|
4
|
+
export * from "./HeartbeatObject.mjs";
|
|
4
5
|
export * from "./EntityStreamEvent.mjs";
|
|
6
|
+
export * from "./EntityEvent.mjs";
|
|
5
7
|
export * from "./GoogleProtobufAny.mjs";
|
|
6
8
|
export * from "./Status.mjs";
|
|
7
9
|
export * from "./Position.mjs";
|
|
@@ -114,7 +116,6 @@ export * from "./MeanKeplerianElements.mjs";
|
|
|
114
116
|
export * from "./TleParameters.mjs";
|
|
115
117
|
export * from "./OrbitMeanElements.mjs";
|
|
116
118
|
export * from "./Orbit.mjs";
|
|
117
|
-
export * from "./EntityEvent.mjs";
|
|
118
119
|
export * from "./TaskQueryResults.mjs";
|
|
119
120
|
export * from "./EntityIdsSelector.mjs";
|
|
120
121
|
export * from "./AgentRequest.mjs";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from "./Timestamp.mjs";
|
|
2
2
|
export * from "./EntityEventResponse.mjs";
|
|
3
3
|
export * from "./EntityStreamHeartbeat.mjs";
|
|
4
|
+
export * from "./HeartbeatObject.mjs";
|
|
4
5
|
export * from "./EntityStreamEvent.mjs";
|
|
6
|
+
export * from "./EntityEvent.mjs";
|
|
5
7
|
export * from "./GoogleProtobufAny.mjs";
|
|
6
8
|
export * from "./Status.mjs";
|
|
7
9
|
export * from "./Position.mjs";
|
|
@@ -114,7 +116,6 @@ export * from "./MeanKeplerianElements.mjs";
|
|
|
114
116
|
export * from "./TleParameters.mjs";
|
|
115
117
|
export * from "./OrbitMeanElements.mjs";
|
|
116
118
|
export * from "./Orbit.mjs";
|
|
117
|
-
export * from "./EntityEvent.mjs";
|
|
118
119
|
export * from "./TaskQueryResults.mjs";
|
|
119
120
|
export * from "./EntityIdsSelector.mjs";
|
|
120
121
|
export * from "./AgentRequest.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.1.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.
|
|
1
|
+
export const SDK_VERSION = "2.1.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -348,7 +348,7 @@ await client.entities.longPollEntityEvents({
|
|
|
348
348
|
</dl>
|
|
349
349
|
</details>
|
|
350
350
|
|
|
351
|
-
<details><summary><code>client.entities.<a href="/src/api/resources/entities/client/Client.ts">
|
|
351
|
+
<details><summary><code>client.entities.<a href="/src/api/resources/entities/client/Client.ts">streamEntities</a>({ ...params }) -> core.Stream<Lattice.StreamEntitiesResponse></code></summary>
|
|
352
352
|
<dl>
|
|
353
353
|
<dd>
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ await client.entities.longPollEntityEvents({
|
|
|
360
360
|
<dl>
|
|
361
361
|
<dd>
|
|
362
362
|
|
|
363
|
-
|
|
363
|
+
Establishes a persistent connection to stream entity events as they occur.
|
|
364
364
|
|
|
365
365
|
</dd>
|
|
366
366
|
</dl>
|
|
@@ -376,7 +376,7 @@ This SSE API establishes a persistent connection to stream entity events as they
|
|
|
376
376
|
<dd>
|
|
377
377
|
|
|
378
378
|
```typescript
|
|
379
|
-
const response = await client.entities.
|
|
379
|
+
const response = await client.entities.streamEntities();
|
|
380
380
|
for await (const item of response) {
|
|
381
381
|
console.log(item);
|
|
382
382
|
}
|
|
File without changes
|
|
File without changes
|