@anduril-industries/lattice-sdk 4.8.1 → 4.10.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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/objects/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/objects/client/Client.js +82 -0
- package/dist/cjs/api/resources/objects/client/requests/ListDeletedObjectsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/objects/client/requests/ListDeletedObjectsRequest.js +3 -0
- package/dist/cjs/api/resources/objects/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/DeletedObjectEntry.d.ts +15 -0
- package/dist/cjs/api/types/DeletedObjectEntry.js +3 -0
- package/dist/cjs/api/types/ListDeletedObjectsResponse.d.ts +6 -0
- package/dist/cjs/api/types/ListDeletedObjectsResponse.js +3 -0
- package/dist/cjs/api/types/MediaItem.d.ts +4 -0
- package/dist/cjs/api/types/MediaItem.js +1 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/objects/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/objects/client/Client.mjs +82 -0
- package/dist/esm/api/resources/objects/client/requests/ListDeletedObjectsRequest.d.mts +10 -0
- package/dist/esm/api/resources/objects/client/requests/ListDeletedObjectsRequest.mjs +2 -0
- package/dist/esm/api/resources/objects/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/DeletedObjectEntry.d.mts +15 -0
- package/dist/esm/api/types/DeletedObjectEntry.mjs +2 -0
- package/dist/esm/api/types/ListDeletedObjectsResponse.d.mts +6 -0
- package/dist/esm/api/types/ListDeletedObjectsResponse.mjs +2 -0
- package/dist/esm/api/types/MediaItem.d.mts +4 -0
- package/dist/esm/api/types/MediaItem.mjs +1 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +79 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@anduril-industries/lattice-sdk/4.
|
|
46
|
+
"X-Fern-SDK-Version": "4.10.0",
|
|
47
|
+
"User-Agent": "@anduril-industries/lattice-sdk/4.10.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);
|
|
@@ -29,6 +29,26 @@ export declare class ObjectsClient {
|
|
|
29
29
|
* await client.objects.listObjects()
|
|
30
30
|
*/
|
|
31
31
|
listObjects(request?: Lattice.ListObjectsRequest, requestOptions?: ObjectsClient.RequestOptions): Promise<core.Page<Lattice.PathMetadata, Lattice.ListResponse>>;
|
|
32
|
+
/**
|
|
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>>;
|
|
32
52
|
/**
|
|
33
53
|
* @beta This endpoint is in pre-release and may change.
|
|
34
54
|
*
|
|
@@ -136,6 +136,88 @@ class ObjectsClient {
|
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
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
|
+
}
|
|
139
221
|
/**
|
|
140
222
|
* @beta This endpoint is in pre-release and may change.
|
|
141
223
|
*
|
|
@@ -0,0 +1,10 @@
|
|
|
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,4 +1,5 @@
|
|
|
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";
|
|
4
5
|
export type { ListObjectsRequest } from "./ListObjectsRequest.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
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,9 +1,13 @@
|
|
|
1
1
|
export interface MediaItem {
|
|
2
|
+
/** A unique identifier for this mediaItem. */
|
|
3
|
+
itemIdentifier?: string | undefined;
|
|
4
|
+
/** The type of media for this item. */
|
|
2
5
|
type?: MediaItem.Type | undefined;
|
|
3
6
|
/** The path, relative to the environment base URL, where media related to an entity can be accessed */
|
|
4
7
|
relativePath?: string | undefined;
|
|
5
8
|
}
|
|
6
9
|
export declare namespace MediaItem {
|
|
10
|
+
/** The type of media for this item. */
|
|
7
11
|
const Type: {
|
|
8
12
|
readonly MediaTypeInvalid: "MEDIA_TYPE_INVALID";
|
|
9
13
|
readonly MediaTypeImage: "MEDIA_TYPE_IMAGE";
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.MediaItem = void 0;
|
|
5
5
|
var MediaItem;
|
|
6
6
|
(function (MediaItem) {
|
|
7
|
+
/** The type of media for this item. */
|
|
7
8
|
MediaItem.Type = {
|
|
8
9
|
MediaTypeInvalid: "MEDIA_TYPE_INVALID",
|
|
9
10
|
MediaTypeImage: "MEDIA_TYPE_IMAGE",
|
|
@@ -29,6 +29,7 @@ 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";
|
|
32
33
|
export * from "./DeliveryConstraints.js";
|
|
33
34
|
export * from "./DeliveryError.js";
|
|
34
35
|
export * from "./DeliveryState.js";
|
|
@@ -72,6 +73,7 @@ export * from "./HighValueTargetMatch.js";
|
|
|
72
73
|
export * from "./Indicators.js";
|
|
73
74
|
export * from "./LinearRing.js";
|
|
74
75
|
export * from "./LineOfBearing.js";
|
|
76
|
+
export * from "./ListDeletedObjectsResponse.js";
|
|
75
77
|
export * from "./ListResponse.js";
|
|
76
78
|
export * from "./Lla.js";
|
|
77
79
|
export * from "./Location.js";
|
|
@@ -45,6 +45,7 @@ __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);
|
|
48
49
|
__exportStar(require("./DeliveryConstraints.js"), exports);
|
|
49
50
|
__exportStar(require("./DeliveryError.js"), exports);
|
|
50
51
|
__exportStar(require("./DeliveryState.js"), exports);
|
|
@@ -88,6 +89,7 @@ __exportStar(require("./HighValueTargetMatch.js"), exports);
|
|
|
88
89
|
__exportStar(require("./Indicators.js"), exports);
|
|
89
90
|
__exportStar(require("./LinearRing.js"), exports);
|
|
90
91
|
__exportStar(require("./LineOfBearing.js"), exports);
|
|
92
|
+
__exportStar(require("./ListDeletedObjectsResponse.js"), exports);
|
|
91
93
|
__exportStar(require("./ListResponse.js"), exports);
|
|
92
94
|
__exportStar(require("./Lla.js"), exports);
|
|
93
95
|
__exportStar(require("./Location.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.
|
|
1
|
+
export declare const SDK_VERSION = "4.10.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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
|
-
"User-Agent": "@anduril-industries/lattice-sdk/4.
|
|
9
|
+
"X-Fern-SDK-Version": "4.10.0",
|
|
10
|
+
"User-Agent": "@anduril-industries/lattice-sdk/4.10.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);
|
|
@@ -29,6 +29,26 @@ export declare class ObjectsClient {
|
|
|
29
29
|
* await client.objects.listObjects()
|
|
30
30
|
*/
|
|
31
31
|
listObjects(request?: Lattice.ListObjectsRequest, requestOptions?: ObjectsClient.RequestOptions): Promise<core.Page<Lattice.PathMetadata, Lattice.ListResponse>>;
|
|
32
|
+
/**
|
|
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>>;
|
|
32
52
|
/**
|
|
33
53
|
* @beta This endpoint is in pre-release and may change.
|
|
34
54
|
*
|
|
@@ -100,6 +100,88 @@ export class ObjectsClient {
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
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
|
+
}
|
|
103
185
|
/**
|
|
104
186
|
* @beta This endpoint is in pre-release and may change.
|
|
105
187
|
*
|
|
@@ -0,0 +1,10 @@
|
|
|
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,4 +1,5 @@
|
|
|
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";
|
|
4
5
|
export type { ListObjectsRequest } from "./ListObjectsRequest.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
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,9 +1,13 @@
|
|
|
1
1
|
export interface MediaItem {
|
|
2
|
+
/** A unique identifier for this mediaItem. */
|
|
3
|
+
itemIdentifier?: string | undefined;
|
|
4
|
+
/** The type of media for this item. */
|
|
2
5
|
type?: MediaItem.Type | undefined;
|
|
3
6
|
/** The path, relative to the environment base URL, where media related to an entity can be accessed */
|
|
4
7
|
relativePath?: string | undefined;
|
|
5
8
|
}
|
|
6
9
|
export declare namespace MediaItem {
|
|
10
|
+
/** The type of media for this item. */
|
|
7
11
|
const Type: {
|
|
8
12
|
readonly MediaTypeInvalid: "MEDIA_TYPE_INVALID";
|
|
9
13
|
readonly MediaTypeImage: "MEDIA_TYPE_IMAGE";
|
|
@@ -29,6 +29,7 @@ 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";
|
|
32
33
|
export * from "./DeliveryConstraints.mjs";
|
|
33
34
|
export * from "./DeliveryError.mjs";
|
|
34
35
|
export * from "./DeliveryState.mjs";
|
|
@@ -72,6 +73,7 @@ export * from "./HighValueTargetMatch.mjs";
|
|
|
72
73
|
export * from "./Indicators.mjs";
|
|
73
74
|
export * from "./LinearRing.mjs";
|
|
74
75
|
export * from "./LineOfBearing.mjs";
|
|
76
|
+
export * from "./ListDeletedObjectsResponse.mjs";
|
|
75
77
|
export * from "./ListResponse.mjs";
|
|
76
78
|
export * from "./Lla.mjs";
|
|
77
79
|
export * from "./Location.mjs";
|
|
@@ -29,6 +29,7 @@ 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";
|
|
32
33
|
export * from "./DeliveryConstraints.mjs";
|
|
33
34
|
export * from "./DeliveryError.mjs";
|
|
34
35
|
export * from "./DeliveryState.mjs";
|
|
@@ -72,6 +73,7 @@ export * from "./HighValueTargetMatch.mjs";
|
|
|
72
73
|
export * from "./Indicators.mjs";
|
|
73
74
|
export * from "./LinearRing.mjs";
|
|
74
75
|
export * from "./LineOfBearing.mjs";
|
|
76
|
+
export * from "./ListDeletedObjectsResponse.mjs";
|
|
75
77
|
export * from "./ListResponse.mjs";
|
|
76
78
|
export * from "./Lla.mjs";
|
|
77
79
|
export * from "./Location.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.
|
|
1
|
+
export declare const SDK_VERSION = "4.10.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.
|
|
1
|
+
export const SDK_VERSION = "4.10.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anduril-industries/lattice-sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"ts-loader": "^9.5.4",
|
|
96
96
|
"vitest": "^4.1.1",
|
|
97
97
|
"msw": "2.11.2",
|
|
98
|
-
"@types/node": "^
|
|
98
|
+
"@types/node": "^20.0.0",
|
|
99
99
|
"typescript": "~5.9.3",
|
|
100
100
|
"@biomejs/biome": "2.4.10"
|
|
101
101
|
},
|
package/reference.md
CHANGED
|
@@ -1169,6 +1169,85 @@ 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<Lattice.DeletedObjectEntry, Lattice.ListDeletedObjectsResponse></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
|
+
|
|
1172
1251
|
</dd>
|
|
1173
1252
|
</dl>
|
|
1174
1253
|
</details>
|