@athenaintel/sdk 4.3.2162 → 4.3.2164

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 (46) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/assets/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/assets/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/computer/client/Client.d.ts +19 -0
  5. package/dist/cjs/api/resources/computer/client/Client.js +85 -0
  6. package/dist/cjs/api/resources/computer/client/requests/GetInitializationComputerRequest.d.ts +9 -0
  7. package/dist/cjs/api/resources/computer/client/requests/GetInitializationComputerRequest.js +3 -0
  8. package/dist/cjs/api/resources/computer/client/requests/index.d.ts +1 -0
  9. package/dist/cjs/api/types/ComputerInitializationResponse.d.ts +37 -0
  10. package/dist/cjs/api/types/ComputerInitializationResponse.js +18 -0
  11. package/dist/cjs/api/types/InitializationPhase.d.ts +17 -0
  12. package/dist/cjs/api/types/InitializationPhase.js +20 -0
  13. package/dist/cjs/api/types/InitializationRecipeStage.d.ts +8 -0
  14. package/dist/cjs/api/types/InitializationRecipeStage.js +11 -0
  15. package/dist/cjs/api/types/InitializationState.d.ts +9 -0
  16. package/dist/cjs/api/types/InitializationState.js +12 -0
  17. package/dist/cjs/api/types/SnapshotImportProgress.d.ts +10 -0
  18. package/dist/cjs/api/types/SnapshotImportProgress.js +3 -0
  19. package/dist/cjs/api/types/index.d.ts +5 -0
  20. package/dist/cjs/api/types/index.js +5 -0
  21. package/dist/cjs/version.d.ts +1 -1
  22. package/dist/cjs/version.js +1 -1
  23. package/dist/esm/BaseClient.mjs +2 -2
  24. package/dist/esm/api/resources/assets/client/Client.d.mts +1 -1
  25. package/dist/esm/api/resources/assets/client/Client.mjs +1 -1
  26. package/dist/esm/api/resources/computer/client/Client.d.mts +19 -0
  27. package/dist/esm/api/resources/computer/client/Client.mjs +85 -0
  28. package/dist/esm/api/resources/computer/client/requests/GetInitializationComputerRequest.d.mts +9 -0
  29. package/dist/esm/api/resources/computer/client/requests/GetInitializationComputerRequest.mjs +2 -0
  30. package/dist/esm/api/resources/computer/client/requests/index.d.mts +1 -0
  31. package/dist/esm/api/types/ComputerInitializationResponse.d.mts +37 -0
  32. package/dist/esm/api/types/ComputerInitializationResponse.mjs +15 -0
  33. package/dist/esm/api/types/InitializationPhase.d.mts +17 -0
  34. package/dist/esm/api/types/InitializationPhase.mjs +17 -0
  35. package/dist/esm/api/types/InitializationRecipeStage.d.mts +8 -0
  36. package/dist/esm/api/types/InitializationRecipeStage.mjs +8 -0
  37. package/dist/esm/api/types/InitializationState.d.mts +9 -0
  38. package/dist/esm/api/types/InitializationState.mjs +9 -0
  39. package/dist/esm/api/types/SnapshotImportProgress.d.mts +10 -0
  40. package/dist/esm/api/types/SnapshotImportProgress.mjs +2 -0
  41. package/dist/esm/api/types/index.d.mts +5 -0
  42. package/dist/esm/api/types/index.mjs +5 -0
  43. package/dist/esm/version.d.mts +1 -1
  44. package/dist/esm/version.mjs +1 -1
  45. package/package.json +1 -1
  46. package/reference.md +66 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@athenaintel/sdk",
46
- "X-Fern-SDK-Version": "4.3.2162",
47
- "User-Agent": "@athenaintel/sdk/4.3.2162",
46
+ "X-Fern-SDK-Version": "4.3.2164",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2164",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -48,7 +48,7 @@ export declare class AssetsClient {
48
48
  convertExcelToSheet(request: AthenaIntelligence.ConvertExcelToSheetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ConvertExcelToSheetResponseOut>;
49
49
  private __convertExcelToSheet;
50
50
  /**
51
- * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
51
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
52
52
  *
53
53
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
54
54
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -244,7 +244,7 @@ class AssetsClient {
244
244
  });
245
245
  }
246
246
  /**
247
- * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
247
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
248
248
  *
249
249
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
250
250
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,6 +31,25 @@ export declare class ComputerClient {
31
31
  */
32
32
  deployComputer(request: AthenaIntelligence.DeployComputerRequestIn, requestOptions?: ComputerClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DeployComputerResponseOut>;
33
33
  private __deployComputer;
34
+ /**
35
+ * Read the existing computer's durable initialization progress after creation. Requires current workspace membership and asset VIEW access. This read never starts, wakes, retries, or extends an initialization. A null response means no durable attempt exists for this legacy computer; it does not mean setup succeeded. The attempt ID and deadline remain stable across reconnects.
36
+ *
37
+ * @param {AthenaIntelligence.GetInitializationComputerRequest} request
38
+ * @param {ComputerClient.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
41
+ * @throws {@link AthenaIntelligence.ForbiddenError}
42
+ * @throws {@link AthenaIntelligence.NotFoundError}
43
+ * @throws {@link AthenaIntelligence.ConflictError}
44
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
45
+ *
46
+ * @example
47
+ * await client.computer.getInitialization({
48
+ * asset_id: "asset_id"
49
+ * })
50
+ */
51
+ getInitialization(request: AthenaIntelligence.GetInitializationComputerRequest, requestOptions?: ComputerClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ComputerInitializationResponse | null>;
52
+ private __getInitialization;
34
53
  /**
35
54
  * Return the SSH gateway host, port, username, and ready-made command for connecting to a computer with a registered SSH public key (see `add_ssh_key`). The username is the computer's asset id; the gateway authorizes the connection against your current edit permission on the computer and starts it if it is stopped. Unlike `create_ssh_access`, this mints nothing and never wakes the computer. Returns 409 when the computer's provider does not support SSH.
36
55
  *
@@ -154,6 +154,91 @@ class ComputerClient {
154
154
  }
155
155
  });
156
156
  }
157
+ /**
158
+ * Read the existing computer's durable initialization progress after creation. Requires current workspace membership and asset VIEW access. This read never starts, wakes, retries, or extends an initialization. A null response means no durable attempt exists for this legacy computer; it does not mean setup succeeded. The attempt ID and deadline remain stable across reconnects.
159
+ *
160
+ * @param {AthenaIntelligence.GetInitializationComputerRequest} request
161
+ * @param {ComputerClient.RequestOptions} requestOptions - Request-specific configuration.
162
+ *
163
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
164
+ * @throws {@link AthenaIntelligence.ForbiddenError}
165
+ * @throws {@link AthenaIntelligence.NotFoundError}
166
+ * @throws {@link AthenaIntelligence.ConflictError}
167
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
168
+ *
169
+ * @example
170
+ * await client.computer.getInitialization({
171
+ * asset_id: "asset_id"
172
+ * })
173
+ */
174
+ getInitialization(request, requestOptions) {
175
+ return core.HttpResponsePromise.fromPromise(this.__getInitialization(request, requestOptions));
176
+ }
177
+ __getInitialization(request, requestOptions) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
180
+ const { asset_id: assetId } = request;
181
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
182
+ 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);
183
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
184
+ 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/computer/${core.url.encodePathParam(assetId)}/initialization`),
185
+ method: "GET",
186
+ headers: _headers,
187
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
188
+ 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,
189
+ 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,
190
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
191
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
192
+ logging: this._options.logging,
193
+ });
194
+ if (_response.ok) {
195
+ return {
196
+ data: _response.body,
197
+ rawResponse: _response.rawResponse,
198
+ };
199
+ }
200
+ if (_response.error.reason === "status-code") {
201
+ switch (_response.error.statusCode) {
202
+ case 401:
203
+ throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
204
+ case 403:
205
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
206
+ case 404:
207
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
208
+ case 409:
209
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
210
+ case 422:
211
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
212
+ default:
213
+ throw new errors.AthenaIntelligenceError({
214
+ statusCode: _response.error.statusCode,
215
+ body: _response.error.body,
216
+ rawResponse: _response.rawResponse,
217
+ });
218
+ }
219
+ }
220
+ switch (_response.error.reason) {
221
+ case "non-json":
222
+ throw new errors.AthenaIntelligenceError({
223
+ statusCode: _response.error.statusCode,
224
+ body: _response.error.rawBody,
225
+ rawResponse: _response.rawResponse,
226
+ });
227
+ case "body-is-null":
228
+ throw new errors.AthenaIntelligenceError({
229
+ statusCode: _response.error.statusCode,
230
+ rawResponse: _response.rawResponse,
231
+ });
232
+ case "timeout":
233
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/computer/{asset_id}/initialization.");
234
+ case "unknown":
235
+ throw new errors.AthenaIntelligenceError({
236
+ message: _response.error.errorMessage,
237
+ rawResponse: _response.rawResponse,
238
+ });
239
+ }
240
+ });
241
+ }
157
242
  /**
158
243
  * Return the SSH gateway host, port, username, and ready-made command for connecting to a computer with a registered SSH public key (see `add_ssh_key`). The username is the computer's asset id; the gateway authorizes the connection against your current edit permission on the computer and starts it if it is stopped. Unlike `create_ssh_access`, this mints nothing and never wakes the computer. Returns 409 when the computer's provider does not support SSH.
159
244
  *
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * asset_id: "asset_id"
5
+ * }
6
+ */
7
+ export interface GetInitializationComputerRequest {
8
+ asset_id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  export type { CreateSshAccessRequestIn } from "./CreateSshAccessRequestIn.js";
2
2
  export type { DeployComputerRequestIn } from "./DeployComputerRequestIn.js";
3
+ export type { GetInitializationComputerRequest } from "./GetInitializationComputerRequest.js";
3
4
  export type { GetSshAccessComputerRequest } from "./GetSshAccessComputerRequest.js";
4
5
  export type { RevokeSshAccessRequestIn } from "./RevokeSshAccessRequestIn.js";
5
6
  export type { StartComputerComputerRequest } from "./StartComputerComputerRequest.js";
@@ -0,0 +1,37 @@
1
+ import type * as AthenaIntelligence from "../index.js";
2
+ /**
3
+ * An authorized read of one attempt; absence is a legacy operation.
4
+ */
5
+ export interface ComputerInitializationResponse {
6
+ attempt_id: string;
7
+ deadline_at: string;
8
+ finished_at?: string | null;
9
+ last_progress_at: string;
10
+ phase: AthenaIntelligence.InitializationPhase;
11
+ phase_started_at: string;
12
+ poll_after_ms?: number;
13
+ reason?: ComputerInitializationResponse.Reason | null;
14
+ recipe_stage?: AthenaIntelligence.InitializationRecipeStage | null;
15
+ revision: number;
16
+ snapshot_import?: AthenaIntelligence.SnapshotImportProgress | null;
17
+ started_at: string;
18
+ state: AthenaIntelligence.InitializationState;
19
+ step_count?: number | null;
20
+ step_index?: number | null;
21
+ updated_at: string;
22
+ version?: number;
23
+ }
24
+ export declare namespace ComputerInitializationResponse {
25
+ const Reason: {
26
+ readonly DeadlineExceeded: "deadline_exceeded";
27
+ readonly AuthorizationChanged: "authorization_changed";
28
+ readonly InputsChanged: "inputs_changed";
29
+ readonly RuntimeChanged: "runtime_changed";
30
+ readonly DispatchUnconfirmed: "dispatch_unconfirmed";
31
+ readonly ExecutionUnconfirmed: "execution_unconfirmed";
32
+ readonly ExecutionFailed: "execution_failed";
33
+ readonly WorkerUnavailable: "worker_unavailable";
34
+ readonly Cancelled: "cancelled";
35
+ };
36
+ type Reason = (typeof Reason)[keyof typeof Reason];
37
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ComputerInitializationResponse = void 0;
5
+ var ComputerInitializationResponse;
6
+ (function (ComputerInitializationResponse) {
7
+ ComputerInitializationResponse.Reason = {
8
+ DeadlineExceeded: "deadline_exceeded",
9
+ AuthorizationChanged: "authorization_changed",
10
+ InputsChanged: "inputs_changed",
11
+ RuntimeChanged: "runtime_changed",
12
+ DispatchUnconfirmed: "dispatch_unconfirmed",
13
+ ExecutionUnconfirmed: "execution_unconfirmed",
14
+ ExecutionFailed: "execution_failed",
15
+ WorkerUnavailable: "worker_unavailable",
16
+ Cancelled: "cancelled",
17
+ };
18
+ })(ComputerInitializationResponse || (exports.ComputerInitializationResponse = ComputerInitializationResponse = {}));
@@ -0,0 +1,17 @@
1
+ export declare const InitializationPhase: {
2
+ readonly Queued: "queued";
3
+ readonly Preparing: "preparing";
4
+ readonly Allocating: "allocating";
5
+ readonly WaitingForRuntime: "waiting_for_runtime";
6
+ readonly ImportingSnapshot: "importing_snapshot";
7
+ readonly VerifyingSnapshot: "verifying_snapshot";
8
+ readonly BootingVm: "booting_vm";
9
+ readonly InitializingEnvironment: "initializing_environment";
10
+ readonly AttachingStorage: "attaching_storage";
11
+ readonly ConfiguringResources: "configuring_resources";
12
+ readonly RunningSetup: "running_setup";
13
+ readonly StartingAgent: "starting_agent";
14
+ readonly CheckingReadiness: "checking_readiness";
15
+ readonly Complete: "complete";
16
+ };
17
+ export type InitializationPhase = (typeof InitializationPhase)[keyof typeof InitializationPhase];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InitializationPhase = void 0;
5
+ exports.InitializationPhase = {
6
+ Queued: "queued",
7
+ Preparing: "preparing",
8
+ Allocating: "allocating",
9
+ WaitingForRuntime: "waiting_for_runtime",
10
+ ImportingSnapshot: "importing_snapshot",
11
+ VerifyingSnapshot: "verifying_snapshot",
12
+ BootingVm: "booting_vm",
13
+ InitializingEnvironment: "initializing_environment",
14
+ AttachingStorage: "attaching_storage",
15
+ ConfiguringResources: "configuring_resources",
16
+ RunningSetup: "running_setup",
17
+ StartingAgent: "starting_agent",
18
+ CheckingReadiness: "checking_readiness",
19
+ Complete: "complete",
20
+ };
@@ -0,0 +1,8 @@
1
+ export declare const InitializationRecipeStage: {
2
+ readonly BaseTemplate: "base_template";
3
+ readonly EnvironmentSeed: "environment_seed";
4
+ readonly EnvironmentInitialize: "environment_initialize";
5
+ readonly EnvironmentMaintenance: "environment_maintenance";
6
+ readonly ServiceConfiguration: "service_configuration";
7
+ };
8
+ export type InitializationRecipeStage = (typeof InitializationRecipeStage)[keyof typeof InitializationRecipeStage];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InitializationRecipeStage = void 0;
5
+ exports.InitializationRecipeStage = {
6
+ BaseTemplate: "base_template",
7
+ EnvironmentSeed: "environment_seed",
8
+ EnvironmentInitialize: "environment_initialize",
9
+ EnvironmentMaintenance: "environment_maintenance",
10
+ ServiceConfiguration: "service_configuration",
11
+ };
@@ -0,0 +1,9 @@
1
+ export declare const InitializationState: {
2
+ readonly Queued: "queued";
3
+ readonly Running: "running";
4
+ readonly RecoveryRequired: "recovery_required";
5
+ readonly Failed: "failed";
6
+ readonly Cancelled: "cancelled";
7
+ readonly Succeeded: "succeeded";
8
+ };
9
+ export type InitializationState = (typeof InitializationState)[keyof typeof InitializationState];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InitializationState = void 0;
5
+ exports.InitializationState = {
6
+ Queued: "queued",
7
+ Running: "running",
8
+ RecoveryRequired: "recovery_required",
9
+ Failed: "failed",
10
+ Cancelled: "cancelled",
11
+ Succeeded: "succeeded",
12
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Compressed input and expanded output are different byte populations.
3
+ */
4
+ export interface SnapshotImportProgress {
5
+ bytes_received: number;
6
+ started_at: string;
7
+ total_bytes?: number | null;
8
+ unpacked_bytes: number;
9
+ updated_at: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -32,6 +32,7 @@ export * from "./ChunkContentItem.js";
32
32
  export * from "./ChunkResult.js";
33
33
  export * from "./CollabAgentSendMessageResponseOut.js";
34
34
  export * from "./CollabTokenResponse.js";
35
+ export * from "./ComputerInitializationResponse.js";
35
36
  export * from "./ComputerLifecycleResponseOut.js";
36
37
  export * from "./ConversationAssetInfo.js";
37
38
  export * from "./ConversationMessage.js";
@@ -69,6 +70,9 @@ export * from "./GeneralAgentResponseMessageKwargs.js";
69
70
  export * from "./GetTableResponse.js";
70
71
  export * from "./GridRange.js";
71
72
  export * from "./ImageUrlContent.js";
73
+ export * from "./InitializationPhase.js";
74
+ export * from "./InitializationRecipeStage.js";
75
+ export * from "./InitializationState.js";
72
76
  export * from "./InputMessage.js";
73
77
  export * from "./InputMessageContentOneItem.js";
74
78
  export * from "./MeetingArtifactsOut.js";
@@ -101,6 +105,7 @@ export * from "./ShareRecipient.js";
101
105
  export * from "./ShareRecipientResultOut.js";
102
106
  export * from "./Sheet.js";
103
107
  export * from "./SheetOperationResponse.js";
108
+ export * from "./SnapshotImportProgress.js";
104
109
  export * from "./SshAccessInfoOut.js";
105
110
  export * from "./SshAccessResponseOut.js";
106
111
  export * from "./SshKeyListResponseOut.js";
@@ -48,6 +48,7 @@ __exportStar(require("./ChunkContentItem.js"), exports);
48
48
  __exportStar(require("./ChunkResult.js"), exports);
49
49
  __exportStar(require("./CollabAgentSendMessageResponseOut.js"), exports);
50
50
  __exportStar(require("./CollabTokenResponse.js"), exports);
51
+ __exportStar(require("./ComputerInitializationResponse.js"), exports);
51
52
  __exportStar(require("./ComputerLifecycleResponseOut.js"), exports);
52
53
  __exportStar(require("./ConversationAssetInfo.js"), exports);
53
54
  __exportStar(require("./ConversationMessage.js"), exports);
@@ -85,6 +86,9 @@ __exportStar(require("./GeneralAgentResponseMessageKwargs.js"), exports);
85
86
  __exportStar(require("./GetTableResponse.js"), exports);
86
87
  __exportStar(require("./GridRange.js"), exports);
87
88
  __exportStar(require("./ImageUrlContent.js"), exports);
89
+ __exportStar(require("./InitializationPhase.js"), exports);
90
+ __exportStar(require("./InitializationRecipeStage.js"), exports);
91
+ __exportStar(require("./InitializationState.js"), exports);
88
92
  __exportStar(require("./InputMessage.js"), exports);
89
93
  __exportStar(require("./InputMessageContentOneItem.js"), exports);
90
94
  __exportStar(require("./MeetingArtifactsOut.js"), exports);
@@ -117,6 +121,7 @@ __exportStar(require("./ShareRecipient.js"), exports);
117
121
  __exportStar(require("./ShareRecipientResultOut.js"), exports);
118
122
  __exportStar(require("./Sheet.js"), exports);
119
123
  __exportStar(require("./SheetOperationResponse.js"), exports);
124
+ __exportStar(require("./SnapshotImportProgress.js"), exports);
120
125
  __exportStar(require("./SshAccessInfoOut.js"), exports);
121
126
  __exportStar(require("./SshAccessResponseOut.js"), exports);
122
127
  __exportStar(require("./SshKeyListResponseOut.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2162";
1
+ export declare const SDK_VERSION = "4.3.2164";
@@ -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.3.2162";
4
+ exports.SDK_VERSION = "4.3.2164";
@@ -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": "@athenaintel/sdk",
9
- "X-Fern-SDK-Version": "4.3.2162",
10
- "User-Agent": "@athenaintel/sdk/4.3.2162",
9
+ "X-Fern-SDK-Version": "4.3.2164",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2164",
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);
@@ -48,7 +48,7 @@ export declare class AssetsClient {
48
48
  convertExcelToSheet(request: AthenaIntelligence.ConvertExcelToSheetRequestIn, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ConvertExcelToSheetResponseOut>;
49
49
  private __convertExcelToSheet;
50
50
  /**
51
- * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
51
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
52
52
  *
53
53
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
54
54
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -208,7 +208,7 @@ export class AssetsClient {
208
208
  });
209
209
  }
210
210
  /**
211
- * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
211
+ * Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
212
212
  *
213
213
  * @param {AthenaIntelligence.CreateAssetRequestIn} request
214
214
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,6 +31,25 @@ export declare class ComputerClient {
31
31
  */
32
32
  deployComputer(request: AthenaIntelligence.DeployComputerRequestIn, requestOptions?: ComputerClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DeployComputerResponseOut>;
33
33
  private __deployComputer;
34
+ /**
35
+ * Read the existing computer's durable initialization progress after creation. Requires current workspace membership and asset VIEW access. This read never starts, wakes, retries, or extends an initialization. A null response means no durable attempt exists for this legacy computer; it does not mean setup succeeded. The attempt ID and deadline remain stable across reconnects.
36
+ *
37
+ * @param {AthenaIntelligence.GetInitializationComputerRequest} request
38
+ * @param {ComputerClient.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
41
+ * @throws {@link AthenaIntelligence.ForbiddenError}
42
+ * @throws {@link AthenaIntelligence.NotFoundError}
43
+ * @throws {@link AthenaIntelligence.ConflictError}
44
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
45
+ *
46
+ * @example
47
+ * await client.computer.getInitialization({
48
+ * asset_id: "asset_id"
49
+ * })
50
+ */
51
+ getInitialization(request: AthenaIntelligence.GetInitializationComputerRequest, requestOptions?: ComputerClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ComputerInitializationResponse | null>;
52
+ private __getInitialization;
34
53
  /**
35
54
  * Return the SSH gateway host, port, username, and ready-made command for connecting to a computer with a registered SSH public key (see `add_ssh_key`). The username is the computer's asset id; the gateway authorizes the connection against your current edit permission on the computer and starts it if it is stopped. Unlike `create_ssh_access`, this mints nothing and never wakes the computer. Returns 409 when the computer's provider does not support SSH.
36
55
  *
@@ -118,6 +118,91 @@ export class ComputerClient {
118
118
  }
119
119
  });
120
120
  }
121
+ /**
122
+ * Read the existing computer's durable initialization progress after creation. Requires current workspace membership and asset VIEW access. This read never starts, wakes, retries, or extends an initialization. A null response means no durable attempt exists for this legacy computer; it does not mean setup succeeded. The attempt ID and deadline remain stable across reconnects.
123
+ *
124
+ * @param {AthenaIntelligence.GetInitializationComputerRequest} request
125
+ * @param {ComputerClient.RequestOptions} requestOptions - Request-specific configuration.
126
+ *
127
+ * @throws {@link AthenaIntelligence.UnauthorizedError}
128
+ * @throws {@link AthenaIntelligence.ForbiddenError}
129
+ * @throws {@link AthenaIntelligence.NotFoundError}
130
+ * @throws {@link AthenaIntelligence.ConflictError}
131
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
132
+ *
133
+ * @example
134
+ * await client.computer.getInitialization({
135
+ * asset_id: "asset_id"
136
+ * })
137
+ */
138
+ getInitialization(request, requestOptions) {
139
+ return core.HttpResponsePromise.fromPromise(this.__getInitialization(request, requestOptions));
140
+ }
141
+ __getInitialization(request, requestOptions) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
144
+ const { asset_id: assetId } = request;
145
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
146
+ 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);
147
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
148
+ 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/computer/${core.url.encodePathParam(assetId)}/initialization`),
149
+ method: "GET",
150
+ headers: _headers,
151
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
152
+ 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,
153
+ 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,
154
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
155
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
156
+ logging: this._options.logging,
157
+ });
158
+ if (_response.ok) {
159
+ return {
160
+ data: _response.body,
161
+ rawResponse: _response.rawResponse,
162
+ };
163
+ }
164
+ if (_response.error.reason === "status-code") {
165
+ switch (_response.error.statusCode) {
166
+ case 401:
167
+ throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
168
+ case 403:
169
+ throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
170
+ case 404:
171
+ throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
172
+ case 409:
173
+ throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
174
+ case 422:
175
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
176
+ default:
177
+ throw new errors.AthenaIntelligenceError({
178
+ statusCode: _response.error.statusCode,
179
+ body: _response.error.body,
180
+ rawResponse: _response.rawResponse,
181
+ });
182
+ }
183
+ }
184
+ switch (_response.error.reason) {
185
+ case "non-json":
186
+ throw new errors.AthenaIntelligenceError({
187
+ statusCode: _response.error.statusCode,
188
+ body: _response.error.rawBody,
189
+ rawResponse: _response.rawResponse,
190
+ });
191
+ case "body-is-null":
192
+ throw new errors.AthenaIntelligenceError({
193
+ statusCode: _response.error.statusCode,
194
+ rawResponse: _response.rawResponse,
195
+ });
196
+ case "timeout":
197
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/computer/{asset_id}/initialization.");
198
+ case "unknown":
199
+ throw new errors.AthenaIntelligenceError({
200
+ message: _response.error.errorMessage,
201
+ rawResponse: _response.rawResponse,
202
+ });
203
+ }
204
+ });
205
+ }
121
206
  /**
122
207
  * Return the SSH gateway host, port, username, and ready-made command for connecting to a computer with a registered SSH public key (see `add_ssh_key`). The username is the computer's asset id; the gateway authorizes the connection against your current edit permission on the computer and starts it if it is stopped. Unlike `create_ssh_access`, this mints nothing and never wakes the computer. Returns 409 when the computer's provider does not support SSH.
123
208
  *
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * asset_id: "asset_id"
5
+ * }
6
+ */
7
+ export interface GetInitializationComputerRequest {
8
+ asset_id: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,5 +1,6 @@
1
1
  export type { CreateSshAccessRequestIn } from "./CreateSshAccessRequestIn.mjs";
2
2
  export type { DeployComputerRequestIn } from "./DeployComputerRequestIn.mjs";
3
+ export type { GetInitializationComputerRequest } from "./GetInitializationComputerRequest.mjs";
3
4
  export type { GetSshAccessComputerRequest } from "./GetSshAccessComputerRequest.mjs";
4
5
  export type { RevokeSshAccessRequestIn } from "./RevokeSshAccessRequestIn.mjs";
5
6
  export type { StartComputerComputerRequest } from "./StartComputerComputerRequest.mjs";
@@ -0,0 +1,37 @@
1
+ import type * as AthenaIntelligence from "../index.mjs";
2
+ /**
3
+ * An authorized read of one attempt; absence is a legacy operation.
4
+ */
5
+ export interface ComputerInitializationResponse {
6
+ attempt_id: string;
7
+ deadline_at: string;
8
+ finished_at?: string | null;
9
+ last_progress_at: string;
10
+ phase: AthenaIntelligence.InitializationPhase;
11
+ phase_started_at: string;
12
+ poll_after_ms?: number;
13
+ reason?: ComputerInitializationResponse.Reason | null;
14
+ recipe_stage?: AthenaIntelligence.InitializationRecipeStage | null;
15
+ revision: number;
16
+ snapshot_import?: AthenaIntelligence.SnapshotImportProgress | null;
17
+ started_at: string;
18
+ state: AthenaIntelligence.InitializationState;
19
+ step_count?: number | null;
20
+ step_index?: number | null;
21
+ updated_at: string;
22
+ version?: number;
23
+ }
24
+ export declare namespace ComputerInitializationResponse {
25
+ const Reason: {
26
+ readonly DeadlineExceeded: "deadline_exceeded";
27
+ readonly AuthorizationChanged: "authorization_changed";
28
+ readonly InputsChanged: "inputs_changed";
29
+ readonly RuntimeChanged: "runtime_changed";
30
+ readonly DispatchUnconfirmed: "dispatch_unconfirmed";
31
+ readonly ExecutionUnconfirmed: "execution_unconfirmed";
32
+ readonly ExecutionFailed: "execution_failed";
33
+ readonly WorkerUnavailable: "worker_unavailable";
34
+ readonly Cancelled: "cancelled";
35
+ };
36
+ type Reason = (typeof Reason)[keyof typeof Reason];
37
+ }
@@ -0,0 +1,15 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var ComputerInitializationResponse;
3
+ (function (ComputerInitializationResponse) {
4
+ ComputerInitializationResponse.Reason = {
5
+ DeadlineExceeded: "deadline_exceeded",
6
+ AuthorizationChanged: "authorization_changed",
7
+ InputsChanged: "inputs_changed",
8
+ RuntimeChanged: "runtime_changed",
9
+ DispatchUnconfirmed: "dispatch_unconfirmed",
10
+ ExecutionUnconfirmed: "execution_unconfirmed",
11
+ ExecutionFailed: "execution_failed",
12
+ WorkerUnavailable: "worker_unavailable",
13
+ Cancelled: "cancelled",
14
+ };
15
+ })(ComputerInitializationResponse || (ComputerInitializationResponse = {}));
@@ -0,0 +1,17 @@
1
+ export declare const InitializationPhase: {
2
+ readonly Queued: "queued";
3
+ readonly Preparing: "preparing";
4
+ readonly Allocating: "allocating";
5
+ readonly WaitingForRuntime: "waiting_for_runtime";
6
+ readonly ImportingSnapshot: "importing_snapshot";
7
+ readonly VerifyingSnapshot: "verifying_snapshot";
8
+ readonly BootingVm: "booting_vm";
9
+ readonly InitializingEnvironment: "initializing_environment";
10
+ readonly AttachingStorage: "attaching_storage";
11
+ readonly ConfiguringResources: "configuring_resources";
12
+ readonly RunningSetup: "running_setup";
13
+ readonly StartingAgent: "starting_agent";
14
+ readonly CheckingReadiness: "checking_readiness";
15
+ readonly Complete: "complete";
16
+ };
17
+ export type InitializationPhase = (typeof InitializationPhase)[keyof typeof InitializationPhase];
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const InitializationPhase = {
3
+ Queued: "queued",
4
+ Preparing: "preparing",
5
+ Allocating: "allocating",
6
+ WaitingForRuntime: "waiting_for_runtime",
7
+ ImportingSnapshot: "importing_snapshot",
8
+ VerifyingSnapshot: "verifying_snapshot",
9
+ BootingVm: "booting_vm",
10
+ InitializingEnvironment: "initializing_environment",
11
+ AttachingStorage: "attaching_storage",
12
+ ConfiguringResources: "configuring_resources",
13
+ RunningSetup: "running_setup",
14
+ StartingAgent: "starting_agent",
15
+ CheckingReadiness: "checking_readiness",
16
+ Complete: "complete",
17
+ };
@@ -0,0 +1,8 @@
1
+ export declare const InitializationRecipeStage: {
2
+ readonly BaseTemplate: "base_template";
3
+ readonly EnvironmentSeed: "environment_seed";
4
+ readonly EnvironmentInitialize: "environment_initialize";
5
+ readonly EnvironmentMaintenance: "environment_maintenance";
6
+ readonly ServiceConfiguration: "service_configuration";
7
+ };
8
+ export type InitializationRecipeStage = (typeof InitializationRecipeStage)[keyof typeof InitializationRecipeStage];
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const InitializationRecipeStage = {
3
+ BaseTemplate: "base_template",
4
+ EnvironmentSeed: "environment_seed",
5
+ EnvironmentInitialize: "environment_initialize",
6
+ EnvironmentMaintenance: "environment_maintenance",
7
+ ServiceConfiguration: "service_configuration",
8
+ };
@@ -0,0 +1,9 @@
1
+ export declare const InitializationState: {
2
+ readonly Queued: "queued";
3
+ readonly Running: "running";
4
+ readonly RecoveryRequired: "recovery_required";
5
+ readonly Failed: "failed";
6
+ readonly Cancelled: "cancelled";
7
+ readonly Succeeded: "succeeded";
8
+ };
9
+ export type InitializationState = (typeof InitializationState)[keyof typeof InitializationState];
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const InitializationState = {
3
+ Queued: "queued",
4
+ Running: "running",
5
+ RecoveryRequired: "recovery_required",
6
+ Failed: "failed",
7
+ Cancelled: "cancelled",
8
+ Succeeded: "succeeded",
9
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Compressed input and expanded output are different byte populations.
3
+ */
4
+ export interface SnapshotImportProgress {
5
+ bytes_received: number;
6
+ started_at: string;
7
+ total_bytes?: number | null;
8
+ unpacked_bytes: number;
9
+ updated_at: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -32,6 +32,7 @@ export * from "./ChunkContentItem.mjs";
32
32
  export * from "./ChunkResult.mjs";
33
33
  export * from "./CollabAgentSendMessageResponseOut.mjs";
34
34
  export * from "./CollabTokenResponse.mjs";
35
+ export * from "./ComputerInitializationResponse.mjs";
35
36
  export * from "./ComputerLifecycleResponseOut.mjs";
36
37
  export * from "./ConversationAssetInfo.mjs";
37
38
  export * from "./ConversationMessage.mjs";
@@ -69,6 +70,9 @@ export * from "./GeneralAgentResponseMessageKwargs.mjs";
69
70
  export * from "./GetTableResponse.mjs";
70
71
  export * from "./GridRange.mjs";
71
72
  export * from "./ImageUrlContent.mjs";
73
+ export * from "./InitializationPhase.mjs";
74
+ export * from "./InitializationRecipeStage.mjs";
75
+ export * from "./InitializationState.mjs";
72
76
  export * from "./InputMessage.mjs";
73
77
  export * from "./InputMessageContentOneItem.mjs";
74
78
  export * from "./MeetingArtifactsOut.mjs";
@@ -101,6 +105,7 @@ export * from "./ShareRecipient.mjs";
101
105
  export * from "./ShareRecipientResultOut.mjs";
102
106
  export * from "./Sheet.mjs";
103
107
  export * from "./SheetOperationResponse.mjs";
108
+ export * from "./SnapshotImportProgress.mjs";
104
109
  export * from "./SshAccessInfoOut.mjs";
105
110
  export * from "./SshAccessResponseOut.mjs";
106
111
  export * from "./SshKeyListResponseOut.mjs";
@@ -32,6 +32,7 @@ export * from "./ChunkContentItem.mjs";
32
32
  export * from "./ChunkResult.mjs";
33
33
  export * from "./CollabAgentSendMessageResponseOut.mjs";
34
34
  export * from "./CollabTokenResponse.mjs";
35
+ export * from "./ComputerInitializationResponse.mjs";
35
36
  export * from "./ComputerLifecycleResponseOut.mjs";
36
37
  export * from "./ConversationAssetInfo.mjs";
37
38
  export * from "./ConversationMessage.mjs";
@@ -69,6 +70,9 @@ export * from "./GeneralAgentResponseMessageKwargs.mjs";
69
70
  export * from "./GetTableResponse.mjs";
70
71
  export * from "./GridRange.mjs";
71
72
  export * from "./ImageUrlContent.mjs";
73
+ export * from "./InitializationPhase.mjs";
74
+ export * from "./InitializationRecipeStage.mjs";
75
+ export * from "./InitializationState.mjs";
72
76
  export * from "./InputMessage.mjs";
73
77
  export * from "./InputMessageContentOneItem.mjs";
74
78
  export * from "./MeetingArtifactsOut.mjs";
@@ -101,6 +105,7 @@ export * from "./ShareRecipient.mjs";
101
105
  export * from "./ShareRecipientResultOut.mjs";
102
106
  export * from "./Sheet.mjs";
103
107
  export * from "./SheetOperationResponse.mjs";
108
+ export * from "./SnapshotImportProgress.mjs";
104
109
  export * from "./SshAccessInfoOut.mjs";
105
110
  export * from "./SshAccessResponseOut.mjs";
106
111
  export * from "./SshKeyListResponseOut.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2162";
1
+ export declare const SDK_VERSION = "4.3.2164";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2162";
1
+ export const SDK_VERSION = "4.3.2164";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2162",
3
+ "version": "4.3.2164",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -498,7 +498,7 @@ await client.assets.convertExcelToSheet({
498
498
  <dl>
499
499
  <dd>
500
500
 
501
- Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
501
+ Create a new asset such as a spreadsheet, document, folder, database, computer, or generic doc (admin-only) in your workspace with your current permissions. Computer assets return 202 after durable submission, which commits the asset and initialization delivery intent together. Runtime provisioning continues asynchronously. Inspect the returned asset ID for progress instead of repeating creation. In capability enforce mode, computer creation requires computer.create and returns 403 when denied.
502
502
  </dd>
503
503
  </dl>
504
504
  </dd>
@@ -1564,6 +1564,71 @@ await client.computer.deployComputer({
1564
1564
  </dl>
1565
1565
 
1566
1566
 
1567
+ </dd>
1568
+ </dl>
1569
+ </details>
1570
+
1571
+ <details><summary><code>client.computer.<a href="/src/api/resources/computer/client/Client.ts">getInitialization</a>({ ...params }) -> AthenaIntelligence.ComputerInitializationResponse | null</code></summary>
1572
+ <dl>
1573
+ <dd>
1574
+
1575
+ #### 📝 Description
1576
+
1577
+ <dl>
1578
+ <dd>
1579
+
1580
+ <dl>
1581
+ <dd>
1582
+
1583
+ Read the existing computer's durable initialization progress after creation. Requires current workspace membership and asset VIEW access. This read never starts, wakes, retries, or extends an initialization. A null response means no durable attempt exists for this legacy computer; it does not mean setup succeeded. The attempt ID and deadline remain stable across reconnects.
1584
+ </dd>
1585
+ </dl>
1586
+ </dd>
1587
+ </dl>
1588
+
1589
+ #### 🔌 Usage
1590
+
1591
+ <dl>
1592
+ <dd>
1593
+
1594
+ <dl>
1595
+ <dd>
1596
+
1597
+ ```typescript
1598
+ await client.computer.getInitialization({
1599
+ asset_id: "asset_id"
1600
+ });
1601
+
1602
+ ```
1603
+ </dd>
1604
+ </dl>
1605
+ </dd>
1606
+ </dl>
1607
+
1608
+ #### ⚙️ Parameters
1609
+
1610
+ <dl>
1611
+ <dd>
1612
+
1613
+ <dl>
1614
+ <dd>
1615
+
1616
+ **request:** `AthenaIntelligence.GetInitializationComputerRequest`
1617
+
1618
+ </dd>
1619
+ </dl>
1620
+
1621
+ <dl>
1622
+ <dd>
1623
+
1624
+ **requestOptions:** `ComputerClient.RequestOptions`
1625
+
1626
+ </dd>
1627
+ </dl>
1628
+ </dd>
1629
+ </dl>
1630
+
1631
+
1567
1632
  </dd>
1568
1633
  </dl>
1569
1634
  </details>