@athenaintel/sdk 4.3.2145 → 4.3.2147
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/computer/client/Client.d.ts +56 -0
- package/dist/cjs/api/resources/computer/client/Client.js +249 -0
- package/dist/cjs/api/resources/computer/client/requests/GetSshAccessComputerRequest.d.ts +9 -0
- package/dist/cjs/api/resources/computer/client/requests/GetSshAccessComputerRequest.js +3 -0
- package/dist/cjs/api/resources/computer/client/requests/StartComputerComputerRequest.d.ts +9 -0
- package/dist/cjs/api/resources/computer/client/requests/StartComputerComputerRequest.js +3 -0
- package/dist/cjs/api/resources/computer/client/requests/StopComputerComputerRequest.d.ts +9 -0
- package/dist/cjs/api/resources/computer/client/requests/StopComputerComputerRequest.js +3 -0
- package/dist/cjs/api/resources/computer/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +1 -0
- package/dist/cjs/api/resources/semanticModel/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/semanticModel/client/Client.js +4 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +45 -1
- package/dist/cjs/api/resources/users/client/Client.js +218 -0
- package/dist/cjs/api/resources/users/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/index.js +15 -0
- package/dist/cjs/api/resources/users/client/requests/AddSshKeyRequestIn.d.ts +13 -0
- package/dist/cjs/api/resources/users/client/requests/AddSshKeyRequestIn.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/DeleteSshKeyUsersRequest.d.ts +9 -0
- package/dist/cjs/api/resources/users/client/requests/DeleteSshKeyUsersRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/users/client/requests/index.js +2 -0
- package/dist/cjs/api/types/ComputerLifecycleResponseOut.d.ts +11 -0
- package/dist/cjs/api/types/ComputerLifecycleResponseOut.js +3 -0
- package/dist/cjs/api/types/DeleteSshKeyResponseOut.d.ts +7 -0
- package/dist/cjs/api/types/DeleteSshKeyResponseOut.js +3 -0
- package/dist/cjs/api/types/SshAccessInfoOut.d.ts +13 -0
- package/dist/cjs/api/types/SshAccessInfoOut.js +3 -0
- package/dist/cjs/api/types/SshKeyListResponseOut.d.ts +8 -0
- package/dist/cjs/api/types/SshKeyListResponseOut.js +3 -0
- package/dist/cjs/api/types/SshKeyOut.d.ts +19 -0
- package/dist/cjs/api/types/SshKeyOut.js +3 -0
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/index.js +5 -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/computer/client/Client.d.mts +56 -0
- package/dist/esm/api/resources/computer/client/Client.mjs +249 -0
- package/dist/esm/api/resources/computer/client/requests/GetSshAccessComputerRequest.d.mts +9 -0
- package/dist/esm/api/resources/computer/client/requests/GetSshAccessComputerRequest.mjs +2 -0
- package/dist/esm/api/resources/computer/client/requests/StartComputerComputerRequest.d.mts +9 -0
- package/dist/esm/api/resources/computer/client/requests/StartComputerComputerRequest.mjs +2 -0
- package/dist/esm/api/resources/computer/client/requests/StopComputerComputerRequest.d.mts +9 -0
- package/dist/esm/api/resources/computer/client/requests/StopComputerComputerRequest.mjs +2 -0
- package/dist/esm/api/resources/computer/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/semanticModel/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/semanticModel/client/Client.mjs +4 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +45 -1
- package/dist/esm/api/resources/users/client/Client.mjs +218 -0
- package/dist/esm/api/resources/users/client/index.d.mts +1 -1
- package/dist/esm/api/resources/users/client/index.mjs +1 -1
- package/dist/esm/api/resources/users/client/requests/AddSshKeyRequestIn.d.mts +13 -0
- package/dist/esm/api/resources/users/client/requests/AddSshKeyRequestIn.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/DeleteSshKeyUsersRequest.d.mts +9 -0
- package/dist/esm/api/resources/users/client/requests/DeleteSshKeyUsersRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/users/client/requests/index.mjs +1 -0
- package/dist/esm/api/types/ComputerLifecycleResponseOut.d.mts +11 -0
- package/dist/esm/api/types/ComputerLifecycleResponseOut.mjs +2 -0
- package/dist/esm/api/types/DeleteSshKeyResponseOut.d.mts +7 -0
- package/dist/esm/api/types/DeleteSshKeyResponseOut.mjs +2 -0
- package/dist/esm/api/types/SshAccessInfoOut.d.mts +13 -0
- package/dist/esm/api/types/SshAccessInfoOut.mjs +2 -0
- package/dist/esm/api/types/SshKeyListResponseOut.d.mts +8 -0
- package/dist/esm/api/types/SshKeyListResponseOut.mjs +2 -0
- package/dist/esm/api/types/SshKeyOut.d.mts +19 -0
- package/dist/esm/api/types/SshKeyOut.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +5 -0
- package/dist/esm/api/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +382 -1
|
@@ -13,6 +13,7 @@ import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
14
|
import * as environments from "../../../../environments.mjs";
|
|
15
15
|
import * as errors from "../../../../errors/index.mjs";
|
|
16
|
+
import * as AthenaIntelligence from "../../../index.mjs";
|
|
16
17
|
export class UsersClient {
|
|
17
18
|
constructor(options = {}) {
|
|
18
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
@@ -138,4 +139,221 @@ export class UsersClient {
|
|
|
138
139
|
}
|
|
139
140
|
});
|
|
140
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* List the SSH public keys registered on the caller's Athena account. A registered key authenticates `ssh <computer_asset_id>@<gateway>` to every computer the caller can edit; keys are not tied to a workspace.
|
|
144
|
+
*
|
|
145
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* await client.users.listSshKeys()
|
|
149
|
+
*/
|
|
150
|
+
listSshKeys(requestOptions) {
|
|
151
|
+
return core.HttpResponsePromise.fromPromise(this.__listSshKeys(requestOptions));
|
|
152
|
+
}
|
|
153
|
+
__listSshKeys(requestOptions) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
156
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
157
|
+
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);
|
|
158
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
159
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/me/ssh-keys"),
|
|
160
|
+
method: "GET",
|
|
161
|
+
headers: _headers,
|
|
162
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
163
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
164
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
165
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
166
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
167
|
+
logging: this._options.logging,
|
|
168
|
+
});
|
|
169
|
+
if (_response.ok) {
|
|
170
|
+
return {
|
|
171
|
+
data: _response.body,
|
|
172
|
+
rawResponse: _response.rawResponse,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
if (_response.error.reason === "status-code") {
|
|
176
|
+
throw new errors.AthenaIntelligenceError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.body,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
switch (_response.error.reason) {
|
|
183
|
+
case "non-json":
|
|
184
|
+
throw new errors.AthenaIntelligenceError({
|
|
185
|
+
statusCode: _response.error.statusCode,
|
|
186
|
+
body: _response.error.rawBody,
|
|
187
|
+
rawResponse: _response.rawResponse,
|
|
188
|
+
});
|
|
189
|
+
case "body-is-null":
|
|
190
|
+
throw new errors.AthenaIntelligenceError({
|
|
191
|
+
statusCode: _response.error.statusCode,
|
|
192
|
+
rawResponse: _response.rawResponse,
|
|
193
|
+
});
|
|
194
|
+
case "timeout":
|
|
195
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/me/ssh-keys.");
|
|
196
|
+
case "unknown":
|
|
197
|
+
throw new errors.AthenaIntelligenceError({
|
|
198
|
+
message: _response.error.errorMessage,
|
|
199
|
+
rawResponse: _response.rawResponse,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Register an SSH public key (the contents of an OpenSSH `.pub` file) on the caller's account. Returns 400 for a malformed or unsupported key, 409 when the key is already registered or the caller has reached the per-account limit.
|
|
206
|
+
*
|
|
207
|
+
* @param {AthenaIntelligence.AddSshKeyRequestIn} request
|
|
208
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
|
+
*
|
|
210
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
211
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
212
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* await client.users.addSshKey({
|
|
216
|
+
* label: "laptop",
|
|
217
|
+
* public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZzuCu6wC9oVY2lVbVKdwpMElfCYiWTOIVQQBtq7HW9 me@laptop"
|
|
218
|
+
* })
|
|
219
|
+
*/
|
|
220
|
+
addSshKey(request, requestOptions) {
|
|
221
|
+
return core.HttpResponsePromise.fromPromise(this.__addSshKey(request, requestOptions));
|
|
222
|
+
}
|
|
223
|
+
__addSshKey(request, requestOptions) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
226
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
227
|
+
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);
|
|
228
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
229
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/me/ssh-keys"),
|
|
230
|
+
method: "POST",
|
|
231
|
+
headers: _headers,
|
|
232
|
+
contentType: "application/json",
|
|
233
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
234
|
+
requestType: "json",
|
|
235
|
+
body: request,
|
|
236
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
237
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
238
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
239
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
240
|
+
logging: this._options.logging,
|
|
241
|
+
});
|
|
242
|
+
if (_response.ok) {
|
|
243
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
244
|
+
}
|
|
245
|
+
if (_response.error.reason === "status-code") {
|
|
246
|
+
switch (_response.error.statusCode) {
|
|
247
|
+
case 400:
|
|
248
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
249
|
+
case 409:
|
|
250
|
+
throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
|
|
251
|
+
case 422:
|
|
252
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
253
|
+
default:
|
|
254
|
+
throw new errors.AthenaIntelligenceError({
|
|
255
|
+
statusCode: _response.error.statusCode,
|
|
256
|
+
body: _response.error.body,
|
|
257
|
+
rawResponse: _response.rawResponse,
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
switch (_response.error.reason) {
|
|
262
|
+
case "non-json":
|
|
263
|
+
throw new errors.AthenaIntelligenceError({
|
|
264
|
+
statusCode: _response.error.statusCode,
|
|
265
|
+
body: _response.error.rawBody,
|
|
266
|
+
rawResponse: _response.rawResponse,
|
|
267
|
+
});
|
|
268
|
+
case "body-is-null":
|
|
269
|
+
throw new errors.AthenaIntelligenceError({
|
|
270
|
+
statusCode: _response.error.statusCode,
|
|
271
|
+
rawResponse: _response.rawResponse,
|
|
272
|
+
});
|
|
273
|
+
case "timeout":
|
|
274
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/me/ssh-keys.");
|
|
275
|
+
case "unknown":
|
|
276
|
+
throw new errors.AthenaIntelligenceError({
|
|
277
|
+
message: _response.error.errorMessage,
|
|
278
|
+
rawResponse: _response.rawResponse,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Delete an SSH public key from the caller's account. SSH sessions authenticated with the key are closed by the gateway within a minute. Returns 404 for a key the caller does not own.
|
|
285
|
+
*
|
|
286
|
+
* @param {AthenaIntelligence.DeleteSshKeyUsersRequest} request
|
|
287
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
288
|
+
*
|
|
289
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
290
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* await client.users.deleteSshKey({
|
|
294
|
+
* key_id: "key_id"
|
|
295
|
+
* })
|
|
296
|
+
*/
|
|
297
|
+
deleteSshKey(request, requestOptions) {
|
|
298
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteSshKey(request, requestOptions));
|
|
299
|
+
}
|
|
300
|
+
__deleteSshKey(request, requestOptions) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
303
|
+
const { key_id: keyId } = request;
|
|
304
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
305
|
+
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);
|
|
306
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
307
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, `api/v0/me/ssh-keys/${core.url.encodePathParam(keyId)}`),
|
|
308
|
+
method: "DELETE",
|
|
309
|
+
headers: _headers,
|
|
310
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
311
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
312
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
313
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
314
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
315
|
+
logging: this._options.logging,
|
|
316
|
+
});
|
|
317
|
+
if (_response.ok) {
|
|
318
|
+
return {
|
|
319
|
+
data: _response.body,
|
|
320
|
+
rawResponse: _response.rawResponse,
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
if (_response.error.reason === "status-code") {
|
|
324
|
+
switch (_response.error.statusCode) {
|
|
325
|
+
case 404:
|
|
326
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
327
|
+
case 422:
|
|
328
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
329
|
+
default:
|
|
330
|
+
throw new errors.AthenaIntelligenceError({
|
|
331
|
+
statusCode: _response.error.statusCode,
|
|
332
|
+
body: _response.error.body,
|
|
333
|
+
rawResponse: _response.rawResponse,
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
switch (_response.error.reason) {
|
|
338
|
+
case "non-json":
|
|
339
|
+
throw new errors.AthenaIntelligenceError({
|
|
340
|
+
statusCode: _response.error.statusCode,
|
|
341
|
+
body: _response.error.rawBody,
|
|
342
|
+
rawResponse: _response.rawResponse,
|
|
343
|
+
});
|
|
344
|
+
case "body-is-null":
|
|
345
|
+
throw new errors.AthenaIntelligenceError({
|
|
346
|
+
statusCode: _response.error.statusCode,
|
|
347
|
+
rawResponse: _response.rawResponse,
|
|
348
|
+
});
|
|
349
|
+
case "timeout":
|
|
350
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling DELETE /api/v0/me/ssh-keys/{key_id}.");
|
|
351
|
+
case "unknown":
|
|
352
|
+
throw new errors.AthenaIntelligenceError({
|
|
353
|
+
message: _response.error.errorMessage,
|
|
354
|
+
rawResponse: _response.rawResponse,
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
}
|
|
141
359
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* label: "laptop",
|
|
5
|
+
* public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZzuCu6wC9oVY2lVbVKdwpMElfCYiWTOIVQQBtq7HW9 me@laptop"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface AddSshKeyRequestIn {
|
|
9
|
+
/** Optional display label; defaults to the key's comment, then its type. */
|
|
10
|
+
label?: string | null;
|
|
11
|
+
/** The contents of an OpenSSH ``.pub`` file: ``<type> <base64> [comment]``. Accepted types: ssh-ed25519, ecdsa-sha2-nistp256/384/521, ssh-rsa (2048 bits or more), and the FIDO ``sk-`` variants. */
|
|
12
|
+
public_key: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result of starting or stopping a computer asset's runtime.
|
|
3
|
+
*/
|
|
4
|
+
export interface ComputerLifecycleResponseOut {
|
|
5
|
+
/** The computer asset id. */
|
|
6
|
+
asset_id: string;
|
|
7
|
+
/** The computer's runtime provider (e.g. `talos_v2`). */
|
|
8
|
+
provider?: string | null;
|
|
9
|
+
/** Runtime state after the operation: `started`, `stopped`, a transitional state such as `restoring`, or `pending` when the transition was durably queued. */
|
|
10
|
+
state: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a registered SSH key connects for this computer (identity mode).
|
|
3
|
+
*/
|
|
4
|
+
export interface SshAccessInfoOut {
|
|
5
|
+
/** Ready-to-run `ssh [-p <port>] <asset_id>@<host>`. */
|
|
6
|
+
command: string;
|
|
7
|
+
/** SSH gateway hostname for this environment. */
|
|
8
|
+
host: string;
|
|
9
|
+
/** SSH gateway port. */
|
|
10
|
+
port: number;
|
|
11
|
+
/** The SSH username — the computer's asset id, which selects identity (registered-key) authentication at the gateway. */
|
|
12
|
+
username: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One registered SSH public key.
|
|
3
|
+
*/
|
|
4
|
+
export interface SshKeyOut {
|
|
5
|
+
/** When the key was registered. */
|
|
6
|
+
created_at: string;
|
|
7
|
+
/** ``SHA256:…`` fingerprint, as printed by ``ssh-keygen -lf``. */
|
|
8
|
+
fingerprint: string;
|
|
9
|
+
/** Key id (``ussk_…``); use it to delete the key. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Key algorithm, e.g. ``ssh-ed25519``. */
|
|
12
|
+
key_type: string;
|
|
13
|
+
/** Display label (defaults to the key comment). */
|
|
14
|
+
label: string;
|
|
15
|
+
/** When the key last authorized an SSH connection, if ever. */
|
|
16
|
+
last_used_at?: string | null;
|
|
17
|
+
/** The key in ``<type> <base64>`` form (no comment). */
|
|
18
|
+
public_key: string;
|
|
19
|
+
}
|
|
@@ -29,6 +29,7 @@ export * from "./ChunkContentItem.mjs";
|
|
|
29
29
|
export * from "./ChunkResult.mjs";
|
|
30
30
|
export * from "./CollabAgentSendMessageResponseOut.mjs";
|
|
31
31
|
export * from "./CollabTokenResponse.mjs";
|
|
32
|
+
export * from "./ComputerLifecycleResponseOut.mjs";
|
|
32
33
|
export * from "./ConversationAssetInfo.mjs";
|
|
33
34
|
export * from "./ConversationMessage.mjs";
|
|
34
35
|
export * from "./ConversationResult.mjs";
|
|
@@ -50,6 +51,7 @@ export * from "./DataFrameRequestOut.mjs";
|
|
|
50
51
|
export * from "./DataFrameUnknownFormatError.mjs";
|
|
51
52
|
export * from "./DefaultVisibility.mjs";
|
|
52
53
|
export * from "./DeleteDataRequest.mjs";
|
|
54
|
+
export * from "./DeleteSshKeyResponseOut.mjs";
|
|
53
55
|
export * from "./DeployComputerResponseOut.mjs";
|
|
54
56
|
export * from "./DimensionProperties.mjs";
|
|
55
57
|
export * from "./DriveAgentResponse.mjs";
|
|
@@ -97,7 +99,10 @@ export * from "./ShareRecipientResultOut.mjs";
|
|
|
97
99
|
export * from "./Sheet.mjs";
|
|
98
100
|
export * from "./SheetOperationResponse.mjs";
|
|
99
101
|
export * from "./SqlAgentResponse.mjs";
|
|
102
|
+
export * from "./SshAccessInfoOut.mjs";
|
|
100
103
|
export * from "./SshAccessResponseOut.mjs";
|
|
104
|
+
export * from "./SshKeyListResponseOut.mjs";
|
|
105
|
+
export * from "./SshKeyOut.mjs";
|
|
101
106
|
export * from "./StructuredDataExtractorResponse.mjs";
|
|
102
107
|
export * from "./TableRowData.mjs";
|
|
103
108
|
export * from "./TextContent.mjs";
|
|
@@ -29,6 +29,7 @@ export * from "./ChunkContentItem.mjs";
|
|
|
29
29
|
export * from "./ChunkResult.mjs";
|
|
30
30
|
export * from "./CollabAgentSendMessageResponseOut.mjs";
|
|
31
31
|
export * from "./CollabTokenResponse.mjs";
|
|
32
|
+
export * from "./ComputerLifecycleResponseOut.mjs";
|
|
32
33
|
export * from "./ConversationAssetInfo.mjs";
|
|
33
34
|
export * from "./ConversationMessage.mjs";
|
|
34
35
|
export * from "./ConversationResult.mjs";
|
|
@@ -50,6 +51,7 @@ export * from "./DataFrameRequestOut.mjs";
|
|
|
50
51
|
export * from "./DataFrameUnknownFormatError.mjs";
|
|
51
52
|
export * from "./DefaultVisibility.mjs";
|
|
52
53
|
export * from "./DeleteDataRequest.mjs";
|
|
54
|
+
export * from "./DeleteSshKeyResponseOut.mjs";
|
|
53
55
|
export * from "./DeployComputerResponseOut.mjs";
|
|
54
56
|
export * from "./DimensionProperties.mjs";
|
|
55
57
|
export * from "./DriveAgentResponse.mjs";
|
|
@@ -97,7 +99,10 @@ export * from "./ShareRecipientResultOut.mjs";
|
|
|
97
99
|
export * from "./Sheet.mjs";
|
|
98
100
|
export * from "./SheetOperationResponse.mjs";
|
|
99
101
|
export * from "./SqlAgentResponse.mjs";
|
|
102
|
+
export * from "./SshAccessInfoOut.mjs";
|
|
100
103
|
export * from "./SshAccessResponseOut.mjs";
|
|
104
|
+
export * from "./SshKeyListResponseOut.mjs";
|
|
105
|
+
export * from "./SshKeyOut.mjs";
|
|
101
106
|
export * from "./StructuredDataExtractorResponse.mjs";
|
|
102
107
|
export * from "./TableRowData.mjs";
|
|
103
108
|
export * from "./TextContent.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2147";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2147";
|