@anduril-industries/lattice-sdk 4.10.1 → 4.12.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 (48) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/entities/client/Client.d.ts +0 -2
  3. package/dist/cjs/api/resources/entities/client/Client.js +0 -2
  4. package/dist/cjs/api/resources/oauth/client/Client.d.ts +0 -2
  5. package/dist/cjs/api/resources/oauth/client/Client.js +0 -2
  6. package/dist/cjs/api/resources/objects/client/Client.d.ts +0 -30
  7. package/dist/cjs/api/resources/objects/client/Client.js +0 -92
  8. package/dist/cjs/api/resources/objects/client/requests/index.d.ts +0 -1
  9. package/dist/cjs/api/resources/tasks/client/Client.d.ts +0 -8
  10. package/dist/cjs/api/resources/tasks/client/Client.js +0 -8
  11. package/dist/cjs/api/resources/tasks/client/requests/AgentStreamRequest.d.ts +1 -1
  12. package/dist/cjs/api/types/index.d.ts +0 -2
  13. package/dist/cjs/api/types/index.js +0 -2
  14. package/dist/cjs/core/fetcher/getResponseBody.js +11 -0
  15. package/dist/cjs/core/fetcher/signals.js +9 -1
  16. package/dist/cjs/version.d.ts +1 -1
  17. package/dist/cjs/version.js +1 -1
  18. package/dist/esm/BaseClient.mjs +2 -2
  19. package/dist/esm/api/resources/entities/client/Client.d.mts +0 -2
  20. package/dist/esm/api/resources/entities/client/Client.mjs +0 -2
  21. package/dist/esm/api/resources/oauth/client/Client.d.mts +0 -2
  22. package/dist/esm/api/resources/oauth/client/Client.mjs +0 -2
  23. package/dist/esm/api/resources/objects/client/Client.d.mts +0 -30
  24. package/dist/esm/api/resources/objects/client/Client.mjs +0 -92
  25. package/dist/esm/api/resources/objects/client/requests/index.d.mts +0 -1
  26. package/dist/esm/api/resources/tasks/client/Client.d.mts +0 -8
  27. package/dist/esm/api/resources/tasks/client/Client.mjs +0 -8
  28. package/dist/esm/api/resources/tasks/client/requests/AgentStreamRequest.d.mts +1 -1
  29. package/dist/esm/api/types/index.d.mts +0 -2
  30. package/dist/esm/api/types/index.mjs +0 -2
  31. package/dist/esm/core/fetcher/getResponseBody.mjs +11 -0
  32. package/dist/esm/core/fetcher/signals.mjs +9 -1
  33. package/dist/esm/version.d.mts +1 -1
  34. package/dist/esm/version.mjs +1 -1
  35. package/package.json +1 -1
  36. package/reference.md +0 -79
  37. package/dist/cjs/api/resources/objects/client/requests/ListDeletedObjectsRequest.d.ts +0 -10
  38. package/dist/cjs/api/resources/objects/client/requests/ListDeletedObjectsRequest.js +0 -3
  39. package/dist/cjs/api/types/DeletedObjectEntry.d.ts +0 -15
  40. package/dist/cjs/api/types/DeletedObjectEntry.js +0 -3
  41. package/dist/cjs/api/types/ListDeletedObjectsResponse.d.ts +0 -6
  42. package/dist/cjs/api/types/ListDeletedObjectsResponse.js +0 -3
  43. package/dist/esm/api/resources/objects/client/requests/ListDeletedObjectsRequest.d.mts +0 -10
  44. package/dist/esm/api/resources/objects/client/requests/ListDeletedObjectsRequest.mjs +0 -2
  45. package/dist/esm/api/types/DeletedObjectEntry.d.mts +0 -15
  46. package/dist/esm/api/types/DeletedObjectEntry.mjs +0 -2
  47. package/dist/esm/api/types/ListDeletedObjectsResponse.d.mts +0 -6
  48. package/dist/esm/api/types/ListDeletedObjectsResponse.mjs +0 -2
@@ -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.10.1",
47
- "User-Agent": "@anduril-industries/lattice-sdk/4.10.1",
46
+ "X-Fern-SDK-Version": "4.12.0",
47
+ "User-Agent": "@anduril-industries/lattice-sdk/4.12.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);
@@ -118,8 +118,6 @@ export declare class EntitiesClient {
118
118
  longPollEntityEvents(request: Lattice.EntityEventRequest, requestOptions?: EntitiesClient.RequestOptions): core.HttpResponsePromise<Lattice.EntityEventResponse>;
119
119
  private __longPollEntityEvents;
120
120
  /**
121
- * @beta This endpoint is in pre-release and may change.
122
- *
123
121
  * Establishes a server-sent events (SSE) connection that streams entity data in real-time.
124
122
  * This is a one-way connection from server to client that follows the SSE protocol with text/event-stream content type.
125
123
  *
@@ -383,8 +383,6 @@ class EntitiesClient {
383
383
  });
384
384
  }
385
385
  /**
386
- * @beta This endpoint is in pre-release and may change.
387
- *
388
386
  * Establishes a server-sent events (SSE) connection that streams entity data in real-time.
389
387
  * This is a one-way connection from server to client that follows the SSE protocol with text/event-stream content type.
390
388
  *
@@ -11,8 +11,6 @@ export declare class OauthClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<OauthClient.Options>;
12
12
  constructor(options: OauthClient.Options);
13
13
  /**
14
- * @beta This endpoint is in pre-release and may change.
15
- *
16
14
  * Gets a new short-lived token using the specified client credentials
17
15
  *
18
16
  * @param {Lattice.GetTokenRequest} request
@@ -56,8 +56,6 @@ class OauthClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * @beta This endpoint is in pre-release and may change.
60
- *
61
59
  * Gets a new short-lived token using the specified client credentials
62
60
  *
63
61
  * @param {Lattice.GetTokenRequest} request
@@ -14,8 +14,6 @@ export declare class ObjectsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<ObjectsClient.Options>;
15
15
  constructor(options: ObjectsClient.Options);
16
16
  /**
17
- * @beta This endpoint is in pre-release and may change.
18
- *
19
17
  * Lists objects in your environment. You can define a prefix to list a subset of your objects. If you do not set a prefix, Lattice returns all available objects. By default this endpoint will list local objects only.
20
18
  *
21
19
  * @param {Lattice.ListObjectsRequest} request
@@ -30,28 +28,6 @@ export declare class ObjectsClient {
30
28
  */
31
29
  listObjects(request?: Lattice.ListObjectsRequest, requestOptions?: ObjectsClient.RequestOptions): Promise<core.Page<Lattice.PathMetadata, Lattice.ListResponse>>;
32
30
  /**
33
- * @beta This endpoint is in pre-release and may change.
34
- *
35
- * Returns paginated records of force-distributed objects deleted on the
36
- * local node. Useful for operators diagnosing why an object visible on
37
- * one node is missing on another. Each record identifies the exact
38
- * `(path, checksum)` pair suppressed from re-sync by the distribution
39
- * manager. Node-scoped: each node returns only its own records.
40
- *
41
- * @param {Lattice.ListDeletedObjectsRequest} request
42
- * @param {ObjectsClient.RequestOptions} requestOptions - Request-specific configuration.
43
- *
44
- * @throws {@link Lattice.BadRequestError}
45
- * @throws {@link Lattice.UnauthorizedError}
46
- * @throws {@link Lattice.InternalServerError}
47
- *
48
- * @example
49
- * await client.objects.listDeletedObjects()
50
- */
51
- listDeletedObjects(request?: Lattice.ListDeletedObjectsRequest, requestOptions?: ObjectsClient.RequestOptions): Promise<core.Page<Lattice.DeletedObjectEntry, Lattice.ListDeletedObjectsResponse>>;
52
- /**
53
- * @beta This endpoint is in pre-release and may change.
54
- *
55
31
  * Fetches an object from your environment using the objectPath path parameter.
56
32
  *
57
33
  * @throws {@link Lattice.BadRequestError}
@@ -62,8 +38,6 @@ export declare class ObjectsClient {
62
38
  getObject(request: Lattice.GetObjectRequest, requestOptions?: ObjectsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
63
39
  private __getObject;
64
40
  /**
65
- * @beta This endpoint is in pre-release and may change.
66
- *
67
41
  * Uploads an object. The object must be 1 GiB or smaller.
68
42
  *
69
43
  * @param {core.file.Uploadable} uploadable
@@ -83,8 +57,6 @@ export declare class ObjectsClient {
83
57
  uploadObject(uploadable: core.file.Uploadable, objectPath: string, requestOptions?: ObjectsClient.RequestOptions): core.HttpResponsePromise<Lattice.PathMetadata>;
84
58
  private __uploadObject;
85
59
  /**
86
- * @beta This endpoint is in pre-release and may change.
87
- *
88
60
  * Deletes an object from your environment given the objectPath path parameter.
89
61
  *
90
62
  * @param {Lattice.DeleteObjectRequest} request
@@ -103,8 +75,6 @@ export declare class ObjectsClient {
103
75
  deleteObject(request: Lattice.DeleteObjectRequest, requestOptions?: ObjectsClient.RequestOptions): core.HttpResponsePromise<void>;
104
76
  private __deleteObject;
105
77
  /**
106
- * @beta This endpoint is in pre-release and may change.
107
- *
108
78
  * Returns metadata for a specified object path. Use this to fetch metadata such as object size (size_bytes), its expiry time (expiry_time), or its latest update timestamp (last_updated_at).
109
79
  *
110
80
  * @param {Lattice.GetObjectMetadataRequest} request
@@ -59,8 +59,6 @@ class ObjectsClient {
59
59
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
60
60
  }
61
61
  /**
62
- * @beta This endpoint is in pre-release and may change.
63
- *
64
62
  * Lists objects in your environment. You can define a prefix to list a subset of your objects. If you do not set a prefix, Lattice returns all available objects. By default this endpoint will list local objects only.
65
63
  *
66
64
  * @param {Lattice.ListObjectsRequest} request
@@ -137,90 +135,6 @@ class ObjectsClient {
137
135
  });
138
136
  }
139
137
  /**
140
- * @beta This endpoint is in pre-release and may change.
141
- *
142
- * Returns paginated records of force-distributed objects deleted on the
143
- * local node. Useful for operators diagnosing why an object visible on
144
- * one node is missing on another. Each record identifies the exact
145
- * `(path, checksum)` pair suppressed from re-sync by the distribution
146
- * manager. Node-scoped: each node returns only its own records.
147
- *
148
- * @param {Lattice.ListDeletedObjectsRequest} request
149
- * @param {ObjectsClient.RequestOptions} requestOptions - Request-specific configuration.
150
- *
151
- * @throws {@link Lattice.BadRequestError}
152
- * @throws {@link Lattice.UnauthorizedError}
153
- * @throws {@link Lattice.InternalServerError}
154
- *
155
- * @example
156
- * await client.objects.listDeletedObjects()
157
- */
158
- listDeletedObjects() {
159
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
160
- const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
161
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
162
- const { pageToken, maxPageSize } = request;
163
- const _queryParams = {
164
- pageToken,
165
- maxPageSize,
166
- };
167
- const _authRequest = yield this._options.authProvider.getAuthRequest();
168
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
169
- const _response = yield core.fetcher({
170
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, "api/v1/debug/deleted-objects"),
171
- method: "GET",
172
- headers: _headers,
173
- queryString: core.url
174
- .queryBuilder()
175
- .addMany(_queryParams)
176
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
177
- .build(),
178
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
179
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
180
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
181
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
182
- logging: this._options.logging,
183
- });
184
- if (_response.ok) {
185
- return {
186
- data: _response.body,
187
- rawResponse: _response.rawResponse,
188
- };
189
- }
190
- if (_response.error.reason === "status-code") {
191
- switch (_response.error.statusCode) {
192
- case 400:
193
- throw new Lattice.BadRequestError(_response.error.body, _response.rawResponse);
194
- case 401:
195
- throw new Lattice.UnauthorizedError(_response.error.body, _response.rawResponse);
196
- case 500:
197
- throw new Lattice.InternalServerError(_response.error.body, _response.rawResponse);
198
- default:
199
- throw new errors.LatticeError({
200
- statusCode: _response.error.statusCode,
201
- body: _response.error.body,
202
- rawResponse: _response.rawResponse,
203
- });
204
- }
205
- }
206
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/debug/deleted-objects");
207
- }));
208
- const dataWithRawResponse = yield list(request).withRawResponse();
209
- return new core.Page({
210
- response: dataWithRawResponse.data,
211
- rawResponse: dataWithRawResponse.rawResponse,
212
- hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.next_page_token) != null &&
213
- !(typeof (response === null || response === void 0 ? void 0 : response.next_page_token) === "string" && (response === null || response === void 0 ? void 0 : response.next_page_token) === ""),
214
- getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.deleted_objects) !== null && _a !== void 0 ? _a : []; },
215
- loadPage: (response) => {
216
- return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.next_page_token));
217
- },
218
- });
219
- });
220
- }
221
- /**
222
- * @beta This endpoint is in pre-release and may change.
223
- *
224
138
  * Fetches an object from your environment using the objectPath path parameter.
225
139
  *
226
140
  * @throws {@link Lattice.BadRequestError}
@@ -274,8 +188,6 @@ class ObjectsClient {
274
188
  });
275
189
  }
276
190
  /**
277
- * @beta This endpoint is in pre-release and may change.
278
- *
279
191
  * Uploads an object. The object must be 1 GiB or smaller.
280
192
  *
281
193
  * @param {core.file.Uploadable} uploadable
@@ -343,8 +255,6 @@ class ObjectsClient {
343
255
  });
344
256
  }
345
257
  /**
346
- * @beta This endpoint is in pre-release and may change.
347
- *
348
258
  * Deletes an object from your environment given the objectPath path parameter.
349
259
  *
350
260
  * @param {Lattice.DeleteObjectRequest} request
@@ -405,8 +315,6 @@ class ObjectsClient {
405
315
  });
406
316
  }
407
317
  /**
408
- * @beta This endpoint is in pre-release and may change.
409
- *
410
318
  * Returns metadata for a specified object path. Use this to fetch metadata such as object size (size_bytes), its expiry time (expiry_time), or its latest update timestamp (last_updated_at).
411
319
  *
412
320
  * @param {Lattice.GetObjectMetadataRequest} request
@@ -1,5 +1,4 @@
1
1
  export type { DeleteObjectRequest } from "./DeleteObjectRequest.js";
2
2
  export type { GetObjectMetadataRequest } from "./GetObjectMetadataRequest.js";
3
3
  export type { GetObjectRequest } from "./GetObjectRequest.js";
4
- export type { ListDeletedObjectsRequest } from "./ListDeletedObjectsRequest.js";
5
4
  export type { ListObjectsRequest } from "./ListObjectsRequest.js";
@@ -86,8 +86,6 @@ export declare class TasksClient {
86
86
  updateTaskStatus(request: Lattice.TaskStatusUpdate, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<Lattice.Task>;
87
87
  private __updateTaskStatus;
88
88
  /**
89
- * @beta This endpoint is in pre-release and may change.
90
- *
91
89
  * Cancels a task by marking it for cancellation in the system.
92
90
  *
93
91
  * This method initiates task cancellation based on the task's current state:
@@ -143,8 +141,6 @@ export declare class TasksClient {
143
141
  queryTasks(request?: Lattice.TaskQuery, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<Lattice.TaskQueryResults>;
144
142
  private __queryTasks;
145
143
  /**
146
- * @beta This endpoint is in pre-release and may change.
147
- *
148
144
  * Establishes a server streaming connection that delivers task updates in real-time using Server-Sent Events (SSE).
149
145
  *
150
146
  * The stream delivers all existing non-terminal tasks when first connected, followed by real-time
@@ -186,8 +182,6 @@ export declare class TasksClient {
186
182
  listenAsAgent(request?: Lattice.AgentListener, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<Lattice.AgentRequest>;
187
183
  private __listenAsAgent;
188
184
  /**
189
- * @beta This endpoint is in pre-release and may change.
190
- *
191
185
  * Establishes a server streaming connection that delivers tasks to taskable agents for execution
192
186
  * using Server-Sent Events (SSE).
193
187
  *
@@ -209,8 +203,6 @@ export declare class TasksClient {
209
203
  streamAsAgent(request?: Lattice.AgentStreamRequest, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<core.Stream<Lattice.StreamAsAgentResponse>>;
210
204
  private __streamAsAgent;
211
205
  /**
212
- * @beta This endpoint is in pre-release and may change.
213
- *
214
206
  * Establishes a server streaming connection that delivers manual control frames to agents
215
207
  * using server-sent events (SSE).
216
208
  *
@@ -265,8 +265,6 @@ class TasksClient {
265
265
  });
266
266
  }
267
267
  /**
268
- * @beta This endpoint is in pre-release and may change.
269
- *
270
268
  * Cancels a task by marking it for cancellation in the system.
271
269
  *
272
270
  * This method initiates task cancellation based on the task's current state:
@@ -407,8 +405,6 @@ class TasksClient {
407
405
  });
408
406
  }
409
407
  /**
410
- * @beta This endpoint is in pre-release and may change.
411
- *
412
408
  * Establishes a server streaming connection that delivers task updates in real-time using Server-Sent Events (SSE).
413
409
  *
414
410
  * The stream delivers all existing non-terminal tasks when first connected, followed by real-time
@@ -541,8 +537,6 @@ class TasksClient {
541
537
  });
542
538
  }
543
539
  /**
544
- * @beta This endpoint is in pre-release and may change.
545
- *
546
540
  * Establishes a server streaming connection that delivers tasks to taskable agents for execution
547
541
  * using Server-Sent Events (SSE).
548
542
  *
@@ -615,8 +609,6 @@ class TasksClient {
615
609
  });
616
610
  }
617
611
  /**
618
- * @beta This endpoint is in pre-release and may change.
619
- *
620
612
  * Establishes a server streaming connection that delivers manual control frames to agents
621
613
  * using server-sent events (SSE).
622
614
  *
@@ -6,6 +6,6 @@ import type * as Lattice from "../../../../index.js";
6
6
  export interface AgentStreamRequest {
7
7
  /** The selector criteria to determine which tasks the agent receives. */
8
8
  agentSelector?: Lattice.EntityIdsSelector;
9
- /** The time interval, defined in seconds, that determines the frequency at which to send heartbeat events. Defaults to 30s. */
9
+ /** The time interval, in milliseconds, that determines the frequency at which to send heartbeat events. Defaults to 30000 (30 seconds). */
10
10
  heartbeatIntervalMs?: number;
11
11
  }
@@ -29,7 +29,6 @@ export * from "./CronWindow.js";
29
29
  export * from "./DecorrelatedAll.js";
30
30
  export * from "./DecorrelatedSingle.js";
31
31
  export * from "./Decorrelation.js";
32
- export * from "./DeletedObjectEntry.js";
33
32
  export * from "./DeliveryConstraints.js";
34
33
  export * from "./DeliveryError.js";
35
34
  export * from "./DeliveryState.js";
@@ -73,7 +72,6 @@ export * from "./HighValueTargetMatch.js";
73
72
  export * from "./Indicators.js";
74
73
  export * from "./LinearRing.js";
75
74
  export * from "./LineOfBearing.js";
76
- export * from "./ListDeletedObjectsResponse.js";
77
75
  export * from "./ListResponse.js";
78
76
  export * from "./Lla.js";
79
77
  export * from "./Location.js";
@@ -45,7 +45,6 @@ __exportStar(require("./CronWindow.js"), exports);
45
45
  __exportStar(require("./DecorrelatedAll.js"), exports);
46
46
  __exportStar(require("./DecorrelatedSingle.js"), exports);
47
47
  __exportStar(require("./Decorrelation.js"), exports);
48
- __exportStar(require("./DeletedObjectEntry.js"), exports);
49
48
  __exportStar(require("./DeliveryConstraints.js"), exports);
50
49
  __exportStar(require("./DeliveryError.js"), exports);
51
50
  __exportStar(require("./DeliveryState.js"), exports);
@@ -89,7 +88,6 @@ __exportStar(require("./HighValueTargetMatch.js"), exports);
89
88
  __exportStar(require("./Indicators.js"), exports);
90
89
  __exportStar(require("./LinearRing.js"), exports);
91
90
  __exportStar(require("./LineOfBearing.js"), exports);
92
- __exportStar(require("./ListDeletedObjectsResponse.js"), exports);
93
91
  __exportStar(require("./ListResponse.js"), exports);
94
92
  __exportStar(require("./Lla.js"), exports);
95
93
  __exportStar(require("./Location.js"), exports);
@@ -12,6 +12,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getResponseBody = getResponseBody;
13
13
  const json_js_1 = require("../json.js");
14
14
  const BinaryResponse_js_1 = require("./BinaryResponse.js");
15
+ // Pins the upstream Response so undici's FinalizationRegistry can't GC it and cancel the body stream.
16
+ function retainResponse(target, response) {
17
+ Object.defineProperty(target, "__fern_response_ref", {
18
+ value: response,
19
+ enumerable: false,
20
+ configurable: true,
21
+ writable: false,
22
+ });
23
+ }
15
24
  function getResponseBody(response, responseType) {
16
25
  return __awaiter(this, void 0, void 0, function* () {
17
26
  switch (responseType) {
@@ -31,6 +40,7 @@ function getResponseBody(response, responseType) {
31
40
  },
32
41
  };
33
42
  }
43
+ retainResponse(response.body, response);
34
44
  return response.body;
35
45
  case "streaming":
36
46
  if (response.body == null) {
@@ -42,6 +52,7 @@ function getResponseBody(response, responseType) {
42
52
  },
43
53
  };
44
54
  }
55
+ retainResponse(response.body, response);
45
56
  return response.body;
46
57
  case "text":
47
58
  return yield response.text();
@@ -14,11 +14,19 @@ function anySignal(...args) {
14
14
  for (const signal of signals) {
15
15
  if (signal.aborted) {
16
16
  controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
17
- break;
17
+ return controller.signal;
18
18
  }
19
19
  signal.addEventListener("abort", () => controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason), {
20
20
  signal: controller.signal,
21
21
  });
22
+ // Re-check after adding listener: the signal may have aborted
23
+ // between the initial `signal.aborted` check and the `addEventListener`
24
+ // call above. If it did, the abort event was already dispatched and
25
+ // the listener will never fire — we must manually abort.
26
+ if (signal.aborted) {
27
+ controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
28
+ return controller.signal;
29
+ }
22
30
  }
23
31
  return controller.signal;
24
32
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.10.1";
1
+ export declare const SDK_VERSION = "4.12.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.10.1";
4
+ exports.SDK_VERSION = "4.12.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.10.1",
10
- "User-Agent": "@anduril-industries/lattice-sdk/4.10.1",
9
+ "X-Fern-SDK-Version": "4.12.0",
10
+ "User-Agent": "@anduril-industries/lattice-sdk/4.12.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);
@@ -118,8 +118,6 @@ export declare class EntitiesClient {
118
118
  longPollEntityEvents(request: Lattice.EntityEventRequest, requestOptions?: EntitiesClient.RequestOptions): core.HttpResponsePromise<Lattice.EntityEventResponse>;
119
119
  private __longPollEntityEvents;
120
120
  /**
121
- * @beta This endpoint is in pre-release and may change.
122
- *
123
121
  * Establishes a server-sent events (SSE) connection that streams entity data in real-time.
124
122
  * This is a one-way connection from server to client that follows the SSE protocol with text/event-stream content type.
125
123
  *
@@ -347,8 +347,6 @@ export class EntitiesClient {
347
347
  });
348
348
  }
349
349
  /**
350
- * @beta This endpoint is in pre-release and may change.
351
- *
352
350
  * Establishes a server-sent events (SSE) connection that streams entity data in real-time.
353
351
  * This is a one-way connection from server to client that follows the SSE protocol with text/event-stream content type.
354
352
  *
@@ -11,8 +11,6 @@ export declare class OauthClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<OauthClient.Options>;
12
12
  constructor(options: OauthClient.Options);
13
13
  /**
14
- * @beta This endpoint is in pre-release and may change.
15
- *
16
14
  * Gets a new short-lived token using the specified client credentials
17
15
  *
18
16
  * @param {Lattice.GetTokenRequest} request
@@ -20,8 +20,6 @@ export class OauthClient {
20
20
  this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
- * @beta This endpoint is in pre-release and may change.
24
- *
25
23
  * Gets a new short-lived token using the specified client credentials
26
24
  *
27
25
  * @param {Lattice.GetTokenRequest} request
@@ -14,8 +14,6 @@ export declare class ObjectsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<ObjectsClient.Options>;
15
15
  constructor(options: ObjectsClient.Options);
16
16
  /**
17
- * @beta This endpoint is in pre-release and may change.
18
- *
19
17
  * Lists objects in your environment. You can define a prefix to list a subset of your objects. If you do not set a prefix, Lattice returns all available objects. By default this endpoint will list local objects only.
20
18
  *
21
19
  * @param {Lattice.ListObjectsRequest} request
@@ -30,28 +28,6 @@ export declare class ObjectsClient {
30
28
  */
31
29
  listObjects(request?: Lattice.ListObjectsRequest, requestOptions?: ObjectsClient.RequestOptions): Promise<core.Page<Lattice.PathMetadata, Lattice.ListResponse>>;
32
30
  /**
33
- * @beta This endpoint is in pre-release and may change.
34
- *
35
- * Returns paginated records of force-distributed objects deleted on the
36
- * local node. Useful for operators diagnosing why an object visible on
37
- * one node is missing on another. Each record identifies the exact
38
- * `(path, checksum)` pair suppressed from re-sync by the distribution
39
- * manager. Node-scoped: each node returns only its own records.
40
- *
41
- * @param {Lattice.ListDeletedObjectsRequest} request
42
- * @param {ObjectsClient.RequestOptions} requestOptions - Request-specific configuration.
43
- *
44
- * @throws {@link Lattice.BadRequestError}
45
- * @throws {@link Lattice.UnauthorizedError}
46
- * @throws {@link Lattice.InternalServerError}
47
- *
48
- * @example
49
- * await client.objects.listDeletedObjects()
50
- */
51
- listDeletedObjects(request?: Lattice.ListDeletedObjectsRequest, requestOptions?: ObjectsClient.RequestOptions): Promise<core.Page<Lattice.DeletedObjectEntry, Lattice.ListDeletedObjectsResponse>>;
52
- /**
53
- * @beta This endpoint is in pre-release and may change.
54
- *
55
31
  * Fetches an object from your environment using the objectPath path parameter.
56
32
  *
57
33
  * @throws {@link Lattice.BadRequestError}
@@ -62,8 +38,6 @@ export declare class ObjectsClient {
62
38
  getObject(request: Lattice.GetObjectRequest, requestOptions?: ObjectsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
63
39
  private __getObject;
64
40
  /**
65
- * @beta This endpoint is in pre-release and may change.
66
- *
67
41
  * Uploads an object. The object must be 1 GiB or smaller.
68
42
  *
69
43
  * @param {core.file.Uploadable} uploadable
@@ -83,8 +57,6 @@ export declare class ObjectsClient {
83
57
  uploadObject(uploadable: core.file.Uploadable, objectPath: string, requestOptions?: ObjectsClient.RequestOptions): core.HttpResponsePromise<Lattice.PathMetadata>;
84
58
  private __uploadObject;
85
59
  /**
86
- * @beta This endpoint is in pre-release and may change.
87
- *
88
60
  * Deletes an object from your environment given the objectPath path parameter.
89
61
  *
90
62
  * @param {Lattice.DeleteObjectRequest} request
@@ -103,8 +75,6 @@ export declare class ObjectsClient {
103
75
  deleteObject(request: Lattice.DeleteObjectRequest, requestOptions?: ObjectsClient.RequestOptions): core.HttpResponsePromise<void>;
104
76
  private __deleteObject;
105
77
  /**
106
- * @beta This endpoint is in pre-release and may change.
107
- *
108
78
  * Returns metadata for a specified object path. Use this to fetch metadata such as object size (size_bytes), its expiry time (expiry_time), or its latest update timestamp (last_updated_at).
109
79
  *
110
80
  * @param {Lattice.GetObjectMetadataRequest} request
@@ -23,8 +23,6 @@ export class ObjectsClient {
23
23
  this._options = normalizeClientOptionsWithAuth(options);
24
24
  }
25
25
  /**
26
- * @beta This endpoint is in pre-release and may change.
27
- *
28
26
  * Lists objects in your environment. You can define a prefix to list a subset of your objects. If you do not set a prefix, Lattice returns all available objects. By default this endpoint will list local objects only.
29
27
  *
30
28
  * @param {Lattice.ListObjectsRequest} request
@@ -101,90 +99,6 @@ export class ObjectsClient {
101
99
  });
102
100
  }
103
101
  /**
104
- * @beta This endpoint is in pre-release and may change.
105
- *
106
- * Returns paginated records of force-distributed objects deleted on the
107
- * local node. Useful for operators diagnosing why an object visible on
108
- * one node is missing on another. Each record identifies the exact
109
- * `(path, checksum)` pair suppressed from re-sync by the distribution
110
- * manager. Node-scoped: each node returns only its own records.
111
- *
112
- * @param {Lattice.ListDeletedObjectsRequest} request
113
- * @param {ObjectsClient.RequestOptions} requestOptions - Request-specific configuration.
114
- *
115
- * @throws {@link Lattice.BadRequestError}
116
- * @throws {@link Lattice.UnauthorizedError}
117
- * @throws {@link Lattice.InternalServerError}
118
- *
119
- * @example
120
- * await client.objects.listDeletedObjects()
121
- */
122
- listDeletedObjects() {
123
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
124
- const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
125
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
126
- const { pageToken, maxPageSize } = request;
127
- const _queryParams = {
128
- pageToken,
129
- maxPageSize,
130
- };
131
- const _authRequest = yield this._options.authProvider.getAuthRequest();
132
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
133
- const _response = yield core.fetcher({
134
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LatticeEnvironment.Default, "api/v1/debug/deleted-objects"),
135
- method: "GET",
136
- headers: _headers,
137
- queryString: core.url
138
- .queryBuilder()
139
- .addMany(_queryParams)
140
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
141
- .build(),
142
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
143
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
144
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
145
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
146
- logging: this._options.logging,
147
- });
148
- if (_response.ok) {
149
- return {
150
- data: _response.body,
151
- rawResponse: _response.rawResponse,
152
- };
153
- }
154
- if (_response.error.reason === "status-code") {
155
- switch (_response.error.statusCode) {
156
- case 400:
157
- throw new Lattice.BadRequestError(_response.error.body, _response.rawResponse);
158
- case 401:
159
- throw new Lattice.UnauthorizedError(_response.error.body, _response.rawResponse);
160
- case 500:
161
- throw new Lattice.InternalServerError(_response.error.body, _response.rawResponse);
162
- default:
163
- throw new errors.LatticeError({
164
- statusCode: _response.error.statusCode,
165
- body: _response.error.body,
166
- rawResponse: _response.rawResponse,
167
- });
168
- }
169
- }
170
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/debug/deleted-objects");
171
- }));
172
- const dataWithRawResponse = yield list(request).withRawResponse();
173
- return new core.Page({
174
- response: dataWithRawResponse.data,
175
- rawResponse: dataWithRawResponse.rawResponse,
176
- hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.next_page_token) != null &&
177
- !(typeof (response === null || response === void 0 ? void 0 : response.next_page_token) === "string" && (response === null || response === void 0 ? void 0 : response.next_page_token) === ""),
178
- getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.deleted_objects) !== null && _a !== void 0 ? _a : []; },
179
- loadPage: (response) => {
180
- return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.next_page_token));
181
- },
182
- });
183
- });
184
- }
185
- /**
186
- * @beta This endpoint is in pre-release and may change.
187
- *
188
102
  * Fetches an object from your environment using the objectPath path parameter.
189
103
  *
190
104
  * @throws {@link Lattice.BadRequestError}
@@ -238,8 +152,6 @@ export class ObjectsClient {
238
152
  });
239
153
  }
240
154
  /**
241
- * @beta This endpoint is in pre-release and may change.
242
- *
243
155
  * Uploads an object. The object must be 1 GiB or smaller.
244
156
  *
245
157
  * @param {core.file.Uploadable} uploadable
@@ -307,8 +219,6 @@ export class ObjectsClient {
307
219
  });
308
220
  }
309
221
  /**
310
- * @beta This endpoint is in pre-release and may change.
311
- *
312
222
  * Deletes an object from your environment given the objectPath path parameter.
313
223
  *
314
224
  * @param {Lattice.DeleteObjectRequest} request
@@ -369,8 +279,6 @@ export class ObjectsClient {
369
279
  });
370
280
  }
371
281
  /**
372
- * @beta This endpoint is in pre-release and may change.
373
- *
374
282
  * Returns metadata for a specified object path. Use this to fetch metadata such as object size (size_bytes), its expiry time (expiry_time), or its latest update timestamp (last_updated_at).
375
283
  *
376
284
  * @param {Lattice.GetObjectMetadataRequest} request
@@ -1,5 +1,4 @@
1
1
  export type { DeleteObjectRequest } from "./DeleteObjectRequest.mjs";
2
2
  export type { GetObjectMetadataRequest } from "./GetObjectMetadataRequest.mjs";
3
3
  export type { GetObjectRequest } from "./GetObjectRequest.mjs";
4
- export type { ListDeletedObjectsRequest } from "./ListDeletedObjectsRequest.mjs";
5
4
  export type { ListObjectsRequest } from "./ListObjectsRequest.mjs";
@@ -86,8 +86,6 @@ export declare class TasksClient {
86
86
  updateTaskStatus(request: Lattice.TaskStatusUpdate, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<Lattice.Task>;
87
87
  private __updateTaskStatus;
88
88
  /**
89
- * @beta This endpoint is in pre-release and may change.
90
- *
91
89
  * Cancels a task by marking it for cancellation in the system.
92
90
  *
93
91
  * This method initiates task cancellation based on the task's current state:
@@ -143,8 +141,6 @@ export declare class TasksClient {
143
141
  queryTasks(request?: Lattice.TaskQuery, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<Lattice.TaskQueryResults>;
144
142
  private __queryTasks;
145
143
  /**
146
- * @beta This endpoint is in pre-release and may change.
147
- *
148
144
  * Establishes a server streaming connection that delivers task updates in real-time using Server-Sent Events (SSE).
149
145
  *
150
146
  * The stream delivers all existing non-terminal tasks when first connected, followed by real-time
@@ -186,8 +182,6 @@ export declare class TasksClient {
186
182
  listenAsAgent(request?: Lattice.AgentListener, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<Lattice.AgentRequest>;
187
183
  private __listenAsAgent;
188
184
  /**
189
- * @beta This endpoint is in pre-release and may change.
190
- *
191
185
  * Establishes a server streaming connection that delivers tasks to taskable agents for execution
192
186
  * using Server-Sent Events (SSE).
193
187
  *
@@ -209,8 +203,6 @@ export declare class TasksClient {
209
203
  streamAsAgent(request?: Lattice.AgentStreamRequest, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<core.Stream<Lattice.StreamAsAgentResponse>>;
210
204
  private __streamAsAgent;
211
205
  /**
212
- * @beta This endpoint is in pre-release and may change.
213
- *
214
206
  * Establishes a server streaming connection that delivers manual control frames to agents
215
207
  * using server-sent events (SSE).
216
208
  *
@@ -229,8 +229,6 @@ export class TasksClient {
229
229
  });
230
230
  }
231
231
  /**
232
- * @beta This endpoint is in pre-release and may change.
233
- *
234
232
  * Cancels a task by marking it for cancellation in the system.
235
233
  *
236
234
  * This method initiates task cancellation based on the task's current state:
@@ -371,8 +369,6 @@ export class TasksClient {
371
369
  });
372
370
  }
373
371
  /**
374
- * @beta This endpoint is in pre-release and may change.
375
- *
376
372
  * Establishes a server streaming connection that delivers task updates in real-time using Server-Sent Events (SSE).
377
373
  *
378
374
  * The stream delivers all existing non-terminal tasks when first connected, followed by real-time
@@ -505,8 +501,6 @@ export class TasksClient {
505
501
  });
506
502
  }
507
503
  /**
508
- * @beta This endpoint is in pre-release and may change.
509
- *
510
504
  * Establishes a server streaming connection that delivers tasks to taskable agents for execution
511
505
  * using Server-Sent Events (SSE).
512
506
  *
@@ -579,8 +573,6 @@ export class TasksClient {
579
573
  });
580
574
  }
581
575
  /**
582
- * @beta This endpoint is in pre-release and may change.
583
- *
584
576
  * Establishes a server streaming connection that delivers manual control frames to agents
585
577
  * using server-sent events (SSE).
586
578
  *
@@ -6,6 +6,6 @@ import type * as Lattice from "../../../../index.mjs";
6
6
  export interface AgentStreamRequest {
7
7
  /** The selector criteria to determine which tasks the agent receives. */
8
8
  agentSelector?: Lattice.EntityIdsSelector;
9
- /** The time interval, defined in seconds, that determines the frequency at which to send heartbeat events. Defaults to 30s. */
9
+ /** The time interval, in milliseconds, that determines the frequency at which to send heartbeat events. Defaults to 30000 (30 seconds). */
10
10
  heartbeatIntervalMs?: number;
11
11
  }
@@ -29,7 +29,6 @@ export * from "./CronWindow.mjs";
29
29
  export * from "./DecorrelatedAll.mjs";
30
30
  export * from "./DecorrelatedSingle.mjs";
31
31
  export * from "./Decorrelation.mjs";
32
- export * from "./DeletedObjectEntry.mjs";
33
32
  export * from "./DeliveryConstraints.mjs";
34
33
  export * from "./DeliveryError.mjs";
35
34
  export * from "./DeliveryState.mjs";
@@ -73,7 +72,6 @@ export * from "./HighValueTargetMatch.mjs";
73
72
  export * from "./Indicators.mjs";
74
73
  export * from "./LinearRing.mjs";
75
74
  export * from "./LineOfBearing.mjs";
76
- export * from "./ListDeletedObjectsResponse.mjs";
77
75
  export * from "./ListResponse.mjs";
78
76
  export * from "./Lla.mjs";
79
77
  export * from "./Location.mjs";
@@ -29,7 +29,6 @@ export * from "./CronWindow.mjs";
29
29
  export * from "./DecorrelatedAll.mjs";
30
30
  export * from "./DecorrelatedSingle.mjs";
31
31
  export * from "./Decorrelation.mjs";
32
- export * from "./DeletedObjectEntry.mjs";
33
32
  export * from "./DeliveryConstraints.mjs";
34
33
  export * from "./DeliveryError.mjs";
35
34
  export * from "./DeliveryState.mjs";
@@ -73,7 +72,6 @@ export * from "./HighValueTargetMatch.mjs";
73
72
  export * from "./Indicators.mjs";
74
73
  export * from "./LinearRing.mjs";
75
74
  export * from "./LineOfBearing.mjs";
76
- export * from "./ListDeletedObjectsResponse.mjs";
77
75
  export * from "./ListResponse.mjs";
78
76
  export * from "./Lla.mjs";
79
77
  export * from "./Location.mjs";
@@ -9,6 +9,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { fromJson } from "../json.mjs";
11
11
  import { getBinaryResponse } from "./BinaryResponse.mjs";
12
+ // Pins the upstream Response so undici's FinalizationRegistry can't GC it and cancel the body stream.
13
+ function retainResponse(target, response) {
14
+ Object.defineProperty(target, "__fern_response_ref", {
15
+ value: response,
16
+ enumerable: false,
17
+ configurable: true,
18
+ writable: false,
19
+ });
20
+ }
12
21
  export function getResponseBody(response, responseType) {
13
22
  return __awaiter(this, void 0, void 0, function* () {
14
23
  switch (responseType) {
@@ -28,6 +37,7 @@ export function getResponseBody(response, responseType) {
28
37
  },
29
38
  };
30
39
  }
40
+ retainResponse(response.body, response);
31
41
  return response.body;
32
42
  case "streaming":
33
43
  if (response.body == null) {
@@ -39,6 +49,7 @@ export function getResponseBody(response, responseType) {
39
49
  },
40
50
  };
41
51
  }
52
+ retainResponse(response.body, response);
42
53
  return response.body;
43
54
  case "text":
44
55
  return yield response.text();
@@ -10,11 +10,19 @@ export function anySignal(...args) {
10
10
  for (const signal of signals) {
11
11
  if (signal.aborted) {
12
12
  controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
13
- break;
13
+ return controller.signal;
14
14
  }
15
15
  signal.addEventListener("abort", () => controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason), {
16
16
  signal: controller.signal,
17
17
  });
18
+ // Re-check after adding listener: the signal may have aborted
19
+ // between the initial `signal.aborted` check and the `addEventListener`
20
+ // call above. If it did, the abort event was already dispatched and
21
+ // the listener will never fire — we must manually abort.
22
+ if (signal.aborted) {
23
+ controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
24
+ return controller.signal;
25
+ }
18
26
  }
19
27
  return controller.signal;
20
28
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.10.1";
1
+ export declare const SDK_VERSION = "4.12.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.10.1";
1
+ export const SDK_VERSION = "4.12.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anduril-industries/lattice-sdk",
3
- "version": "4.10.1",
3
+ "version": "4.12.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -1169,85 +1169,6 @@ const response = page.response;
1169
1169
  </dl>
1170
1170
 
1171
1171
 
1172
- </dd>
1173
- </dl>
1174
- </details>
1175
-
1176
- <details><summary><code>client.objects.<a href="/src/api/resources/objects/client/Client.ts">listDeletedObjects</a>({ ...params }) -> core.Page&lt;Lattice.DeletedObjectEntry, Lattice.ListDeletedObjectsResponse&gt;</code></summary>
1177
- <dl>
1178
- <dd>
1179
-
1180
- #### 📝 Description
1181
-
1182
- <dl>
1183
- <dd>
1184
-
1185
- <dl>
1186
- <dd>
1187
-
1188
- Returns paginated records of force-distributed objects deleted on the
1189
- local node. Useful for operators diagnosing why an object visible on
1190
- one node is missing on another. Each record identifies the exact
1191
- `(path, checksum)` pair suppressed from re-sync by the distribution
1192
- manager. Node-scoped: each node returns only its own records.
1193
- </dd>
1194
- </dl>
1195
- </dd>
1196
- </dl>
1197
-
1198
- #### 🔌 Usage
1199
-
1200
- <dl>
1201
- <dd>
1202
-
1203
- <dl>
1204
- <dd>
1205
-
1206
- ```typescript
1207
- const pageableResponse = await client.objects.listDeletedObjects();
1208
- for await (const item of pageableResponse) {
1209
- console.log(item);
1210
- }
1211
-
1212
- // Or you can manually iterate page-by-page
1213
- let page = await client.objects.listDeletedObjects();
1214
- while (page.hasNextPage()) {
1215
- page = page.getNextPage();
1216
- }
1217
-
1218
- // You can also access the underlying response
1219
- const response = page.response;
1220
-
1221
- ```
1222
- </dd>
1223
- </dl>
1224
- </dd>
1225
- </dl>
1226
-
1227
- #### ⚙️ Parameters
1228
-
1229
- <dl>
1230
- <dd>
1231
-
1232
- <dl>
1233
- <dd>
1234
-
1235
- **request:** `Lattice.ListDeletedObjectsRequest`
1236
-
1237
- </dd>
1238
- </dl>
1239
-
1240
- <dl>
1241
- <dd>
1242
-
1243
- **requestOptions:** `ObjectsClient.RequestOptions`
1244
-
1245
- </dd>
1246
- </dl>
1247
- </dd>
1248
- </dl>
1249
-
1250
-
1251
1172
  </dd>
1252
1173
  </dl>
1253
1174
  </details>
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {}
4
- */
5
- export interface ListDeletedObjectsRequest {
6
- /** Opaque cursor returned by a prior response to continue paging. */
7
- pageToken?: string;
8
- /** Maximum number of records to return in a single response. Server enforces an upper bound. */
9
- maxPageSize?: number;
10
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- export interface DeletedObjectEntry {
2
- /**
3
- * Object path that was deleted on this node.
4
- * A valid path must not contain the following:
5
- * - Spaces or Tabs
6
- * - Special characters other than underscore (_), dash (-), period (.) and slash (/)
7
- * - Non-ASCII characters such as accents or symbols
8
- * Paths must not start with a leading space.
9
- */
10
- path: string;
11
- /** The SHA-256 checksum of this object. */
12
- checksum: string;
13
- /** Wall-clock time at which the deletion was initiated on this node. */
14
- deleted_at: string;
15
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import type * as Lattice from "../index.js";
2
- export interface ListDeletedObjectsResponse {
3
- deleted_objects: Lattice.DeletedObjectEntry[];
4
- /** Present when more pages are available. Pass back as `pageToken`. */
5
- next_page_token?: string | undefined;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {}
4
- */
5
- export interface ListDeletedObjectsRequest {
6
- /** Opaque cursor returned by a prior response to continue paging. */
7
- pageToken?: string;
8
- /** Maximum number of records to return in a single response. Server enforces an upper bound. */
9
- maxPageSize?: number;
10
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated from our API Definition.
2
- export {};
@@ -1,15 +0,0 @@
1
- export interface DeletedObjectEntry {
2
- /**
3
- * Object path that was deleted on this node.
4
- * A valid path must not contain the following:
5
- * - Spaces or Tabs
6
- * - Special characters other than underscore (_), dash (-), period (.) and slash (/)
7
- * - Non-ASCII characters such as accents or symbols
8
- * Paths must not start with a leading space.
9
- */
10
- path: string;
11
- /** The SHA-256 checksum of this object. */
12
- checksum: string;
13
- /** Wall-clock time at which the deletion was initiated on this node. */
14
- deleted_at: string;
15
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated from our API Definition.
2
- export {};
@@ -1,6 +0,0 @@
1
- import type * as Lattice from "../index.mjs";
2
- export interface ListDeletedObjectsResponse {
3
- deleted_objects: Lattice.DeletedObjectEntry[];
4
- /** Present when more pages are available. Pass back as `pageToken`. */
5
- next_page_token?: string | undefined;
6
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated from our API Definition.
2
- export {};