@miosa/sdk 3.2.1 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/dist/index.d.ts +71 -24
- package/dist/index.js +235 -95
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
package/README.md
CHANGED
|
@@ -171,6 +171,10 @@ const preview = await sbx.previews.create(3000);
|
|
|
171
171
|
console.log(preview.url);
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
+
With `waitUntilReady: true` the returned sandbox has been refreshed and verified
|
|
175
|
+
executable. A readiness timeout throws `SANDBOX_READY_TIMEOUT` instead of
|
|
176
|
+
returning a sandbox that is not yet ready.
|
|
177
|
+
|
|
174
178
|
For platform agents that plan work outside the sandbox and then hand execution
|
|
175
179
|
to a runtime inside the sandbox/computer, use the unified device API:
|
|
176
180
|
|
|
@@ -264,6 +268,23 @@ await sbx.pause();
|
|
|
264
268
|
await sbx.resume();
|
|
265
269
|
```
|
|
266
270
|
|
|
271
|
+
### Cancelling sandbox commands
|
|
272
|
+
|
|
273
|
+
Pass an `AbortSignal` to `sandbox.exec.run(command, { signal, timeoutSec })` or `sandbox.exec.stream(command, { signal, timeoutSec })`.
|
|
274
|
+
Aborting rejects with the signal's abort reason (an `AbortError` by default); it does not return a successful exit code or replay the command.
|
|
275
|
+
Signal-bearing `exec.run` uses the request-owned stream and aggregates its exact stdout, stderr, and terminal exit code.
|
|
276
|
+
If that stream ends without an exit event, `exec.run` rejects with `EXEC_STREAM_INCOMPLETE` (502, not retryable).
|
|
277
|
+
Ordinary execution without a signal keeps the standard exec endpoint.
|
|
278
|
+
An explicit `timeoutSec` sets the guest deadline and allows five additional seconds for its response.
|
|
279
|
+
A guest that overruns that deadline rejects with `TimeoutError`, never with `AbortError`.
|
|
280
|
+
Cancellation requires the server's request-owned streaming implementation and the guest's process-group cancellation support.
|
|
281
|
+
|
|
282
|
+
### Confirming sandbox deletion
|
|
283
|
+
|
|
284
|
+
`sandbox.destroy()` acknowledges deletion and updates the handle to the server's state.
|
|
285
|
+
If deletion is still in progress, the handle reports `destroying` and exposes `sandbox.data.operation_id` when supplied by the server.
|
|
286
|
+
Use `sandbox.refresh()` to verify completion; an acknowledgement alone does not prove resource cleanup.
|
|
287
|
+
|
|
267
288
|
## Publish from sandbox
|
|
268
289
|
|
|
269
290
|
Preview is mutable; publish creates a durable deployment version. Static output
|
|
@@ -404,11 +425,14 @@ try {
|
|
|
404
425
|
} catch (e) {
|
|
405
426
|
if (e instanceof MiosaError) {
|
|
406
427
|
console.error(`${e.status} ${e.code}: ${e.message}`);
|
|
428
|
+
if (e.retryable) scheduleRetry(e.requestId);
|
|
407
429
|
}
|
|
408
430
|
}
|
|
409
431
|
```
|
|
410
432
|
|
|
411
433
|
The SDK retries `429` and `5xx` automatically (3 retries, exponential backoff + jitter). Set `maxRetries: 0` to disable.
|
|
434
|
+
Sandbox `exec` requests are never retried, because a replayed command would run twice; see [Cancelling sandbox commands](#cancelling-sandbox-commands).
|
|
435
|
+
Every `MiosaError` carries `retryable` (server-supplied when present, otherwise `true` for 408/429/5xx and transport failures) and `requestId` for support correlation.
|
|
412
436
|
|
|
413
437
|
## Configuration
|
|
414
438
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ interface RequestOptions {
|
|
|
6
6
|
headers?: Record<string, string>;
|
|
7
7
|
body?: unknown;
|
|
8
8
|
timeout?: number;
|
|
9
|
+
/** Cancel this request and its response stream without retrying. */
|
|
10
|
+
signal?: AbortSignal | undefined;
|
|
11
|
+
/** Override retries for operations which cannot safely be replayed. */
|
|
12
|
+
maxRetries?: number;
|
|
9
13
|
/** Return raw Response instead of parsing JSON */
|
|
10
14
|
rawResponse?: boolean;
|
|
11
15
|
/** Send body as multipart/form-data */
|
|
@@ -5214,6 +5218,7 @@ interface MiosaErrorBody {
|
|
|
5214
5218
|
code?: string;
|
|
5215
5219
|
message?: string;
|
|
5216
5220
|
details?: unknown;
|
|
5221
|
+
retryable?: boolean;
|
|
5217
5222
|
};
|
|
5218
5223
|
message?: string;
|
|
5219
5224
|
code?: string;
|
|
@@ -5221,30 +5226,32 @@ interface MiosaErrorBody {
|
|
|
5221
5226
|
details?: unknown;
|
|
5222
5227
|
reason?: string;
|
|
5223
5228
|
request_id?: string;
|
|
5229
|
+
retryable?: boolean;
|
|
5224
5230
|
}
|
|
5225
5231
|
declare class MiosaError extends Error {
|
|
5226
5232
|
readonly status: number;
|
|
5227
5233
|
readonly code: string;
|
|
5228
5234
|
readonly details: unknown;
|
|
5229
5235
|
readonly requestId: string | undefined;
|
|
5230
|
-
|
|
5236
|
+
readonly retryable: boolean;
|
|
5237
|
+
constructor(message: string, status: number, code: string, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5231
5238
|
static fromResponse(status: number, body: MiosaErrorBody, requestId?: string): MiosaError;
|
|
5232
5239
|
}
|
|
5233
5240
|
declare class AuthError extends MiosaError {
|
|
5234
|
-
constructor(message: string, status?: number, code?: string, details?: unknown, requestId?: string);
|
|
5241
|
+
constructor(message: string, status?: number, code?: string, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5235
5242
|
}
|
|
5236
5243
|
declare class NotFoundError extends MiosaError {
|
|
5237
|
-
constructor(message: string, code?: string, details?: unknown, requestId?: string);
|
|
5244
|
+
constructor(message: string, code?: string, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5238
5245
|
}
|
|
5239
5246
|
declare class RateLimitError extends MiosaError {
|
|
5240
5247
|
readonly retryAfter: number | undefined;
|
|
5241
|
-
constructor(message: string, details?: unknown, requestId?: string, retryAfter?: number);
|
|
5248
|
+
constructor(message: string, details?: unknown, requestId?: string, retryAfter?: number, retryable?: boolean);
|
|
5242
5249
|
}
|
|
5243
5250
|
declare class InsufficientCreditsError extends MiosaError {
|
|
5244
|
-
constructor(message: string, details?: unknown, requestId?: string);
|
|
5251
|
+
constructor(message: string, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5245
5252
|
}
|
|
5246
5253
|
declare class ValidationError extends MiosaError {
|
|
5247
|
-
constructor(message: string, status: number, code?: string, details?: unknown, requestId?: string);
|
|
5254
|
+
constructor(message: string, status: number, code?: string, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5248
5255
|
}
|
|
5249
5256
|
declare class TimeoutError extends MiosaError {
|
|
5250
5257
|
constructor(message?: string);
|
|
@@ -5254,28 +5261,28 @@ declare class NetworkError extends MiosaError {
|
|
|
5254
5261
|
constructor(message: string, cause: Error);
|
|
5255
5262
|
}
|
|
5256
5263
|
declare class ProjectNotLinkedError extends MiosaError {
|
|
5257
|
-
constructor(message: string, status?: number, details?: unknown, requestId?: string);
|
|
5264
|
+
constructor(message: string, status?: number, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5258
5265
|
}
|
|
5259
5266
|
declare class SubjectNotAllowedError extends MiosaError {
|
|
5260
|
-
constructor(message: string, status?: number, details?: unknown, requestId?: string);
|
|
5267
|
+
constructor(message: string, status?: number, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5261
5268
|
}
|
|
5262
5269
|
declare class ScopeNotAllowedError extends MiosaError {
|
|
5263
|
-
constructor(message: string, status?: number, details?: unknown, requestId?: string);
|
|
5270
|
+
constructor(message: string, status?: number, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5264
5271
|
}
|
|
5265
5272
|
declare class ManagedProviderBindingOnlyError extends MiosaError {
|
|
5266
|
-
constructor(message: string, status?: number, details?: unknown, requestId?: string);
|
|
5273
|
+
constructor(message: string, status?: number, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5267
5274
|
}
|
|
5268
5275
|
declare class InstallationRequiredError extends MiosaError {
|
|
5269
|
-
constructor(message: string, status?: number, details?: unknown, requestId?: string);
|
|
5276
|
+
constructor(message: string, status?: number, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5270
5277
|
}
|
|
5271
5278
|
declare class UserAuthorizationRequiredError extends MiosaError {
|
|
5272
|
-
constructor(message: string, status?: number, details?: unknown, requestId?: string);
|
|
5279
|
+
constructor(message: string, status?: number, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5273
5280
|
}
|
|
5274
5281
|
declare class EgressHostNotAllowedError extends MiosaError {
|
|
5275
|
-
constructor(message: string, status?: number, details?: unknown, requestId?: string);
|
|
5282
|
+
constructor(message: string, status?: number, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5276
5283
|
}
|
|
5277
5284
|
declare class TokenRefreshFailedError extends MiosaError {
|
|
5278
|
-
constructor(message: string, status?: number, details?: unknown, requestId?: string);
|
|
5285
|
+
constructor(message: string, status?: number, details?: unknown, requestId?: string, retryable?: boolean);
|
|
5279
5286
|
}
|
|
5280
5287
|
|
|
5281
5288
|
type ForgeRepositoryId = string & {
|
|
@@ -6725,7 +6732,7 @@ type SandboxSize = "xs" | "small" | "medium" | "large" | "xl";
|
|
|
6725
6732
|
type SandboxId = string & {
|
|
6726
6733
|
readonly __brand: "SandboxId";
|
|
6727
6734
|
};
|
|
6728
|
-
type SandboxState = "provisioning" | "running" | "paused" | "destroyed" | "error";
|
|
6735
|
+
type SandboxState = "provisioning" | "running" | "paused" | "destroying" | "destroyed" | "error";
|
|
6729
6736
|
interface SandboxCreateParams {
|
|
6730
6737
|
templateId?: string;
|
|
6731
6738
|
template_id?: string;
|
|
@@ -6822,7 +6829,14 @@ interface SandboxGetOrCreateParams extends SandboxCreateParams {
|
|
|
6822
6829
|
name: string;
|
|
6823
6830
|
/** Resume an existing paused sandbox before returning it. Defaults to true. */
|
|
6824
6831
|
resume?: boolean;
|
|
6825
|
-
/**
|
|
6832
|
+
/**
|
|
6833
|
+
* Wait for readiness before returning a created/resumed sandbox. Defaults to false.
|
|
6834
|
+
*
|
|
6835
|
+
* When true the returned sandbox has been refreshed and verified executable
|
|
6836
|
+
* (`running` and command-ready). Throws `SANDBOX_READY_TIMEOUT` (504,
|
|
6837
|
+
* retryable) if readiness is not reached within `waitTimeoutSec`, and
|
|
6838
|
+
* `SANDBOX_NOT_READY` (409) if the refreshed record is not executable.
|
|
6839
|
+
*/
|
|
6826
6840
|
waitUntilReady?: boolean;
|
|
6827
6841
|
/** Readiness wait timeout in seconds. Defaults to 60 when waitUntilReady is true. */
|
|
6828
6842
|
waitTimeoutSec?: number;
|
|
@@ -6838,6 +6852,8 @@ interface SandboxListParams {
|
|
|
6838
6852
|
external_project_id?: string;
|
|
6839
6853
|
}
|
|
6840
6854
|
interface SandboxExecOptions {
|
|
6855
|
+
/** Abort the request-scoped execution, including its response stream. */
|
|
6856
|
+
signal?: AbortSignal;
|
|
6841
6857
|
cwd?: string;
|
|
6842
6858
|
workingDir?: string;
|
|
6843
6859
|
working_dir?: string;
|
|
@@ -6907,6 +6923,8 @@ interface SandboxExecRunner {
|
|
|
6907
6923
|
stream(command: string, options?: SandboxExecOptions): AsyncIterableIterator<SandboxExecEvent>;
|
|
6908
6924
|
}
|
|
6909
6925
|
interface SandboxData {
|
|
6926
|
+
operation_id?: string | null;
|
|
6927
|
+
request_id?: string | null;
|
|
6910
6928
|
id: SandboxId;
|
|
6911
6929
|
state: SandboxState;
|
|
6912
6930
|
slug?: string;
|
|
@@ -7224,16 +7242,44 @@ declare class SandboxSnapshots {
|
|
|
7224
7242
|
restore(snapshotId: string): Promise<Sandbox>;
|
|
7225
7243
|
delete(snapshotId: string): Promise<void>;
|
|
7226
7244
|
}
|
|
7245
|
+
/** Options for a `miosa-terminal-v1` PTY session. */
|
|
7246
|
+
interface SandboxTerminalCreateParams {
|
|
7247
|
+
cols?: number;
|
|
7248
|
+
rows?: number;
|
|
7249
|
+
shell?: string;
|
|
7250
|
+
cwd?: string;
|
|
7251
|
+
env?: Record<string, string>;
|
|
7252
|
+
}
|
|
7253
|
+
/**
|
|
7254
|
+
* A short-lived ticket for a `miosa-terminal-v1` WebSocket session.
|
|
7255
|
+
*
|
|
7256
|
+
* Connect to `wsUrl` with the `miosa-terminal-v1` subprotocol and provide
|
|
7257
|
+
* `streamAuth` as the Bearer credential. See docs/api/sandbox-terminal-v1.md
|
|
7258
|
+
* in the MIOSA runtime repository for the frame protocol.
|
|
7259
|
+
*
|
|
7260
|
+
* Every field is carried both as its wire (snake_case) key and its camelCase
|
|
7261
|
+
* alias, so callers that consumed the raw record keep working.
|
|
7262
|
+
*
|
|
7263
|
+
* Declared as a type alias rather than an interface so it stays assignable to
|
|
7264
|
+
* the `Record<string, unknown>` return type that `terminal.create()` exposed
|
|
7265
|
+
* before 3.2.1 (interfaces carry no implicit index signature).
|
|
7266
|
+
*/
|
|
7267
|
+
type SandboxTerminalSession = {
|
|
7268
|
+
sessionId: string;
|
|
7269
|
+
wsUrl: string;
|
|
7270
|
+
streamAuth: string;
|
|
7271
|
+
streamAuthExpiresAt: number;
|
|
7272
|
+
expiresAt: number;
|
|
7273
|
+
session_id: string;
|
|
7274
|
+
ws_url: string;
|
|
7275
|
+
stream_auth: string;
|
|
7276
|
+
stream_auth_expires_at: number;
|
|
7277
|
+
expires_at: number;
|
|
7278
|
+
};
|
|
7227
7279
|
declare class SandboxTerminal {
|
|
7228
7280
|
private readonly sandbox;
|
|
7229
7281
|
constructor(sandbox: Sandbox);
|
|
7230
|
-
create(params?:
|
|
7231
|
-
cols?: number;
|
|
7232
|
-
rows?: number;
|
|
7233
|
-
shell?: string;
|
|
7234
|
-
cwd?: string;
|
|
7235
|
-
env?: Record<string, string>;
|
|
7236
|
-
}): Promise<Record<string, unknown>>;
|
|
7282
|
+
create(params?: SandboxTerminalCreateParams): Promise<SandboxTerminalSession>;
|
|
7237
7283
|
delete(sessionId: string): Promise<void>;
|
|
7238
7284
|
}
|
|
7239
7285
|
declare class SandboxEvents {
|
|
@@ -7334,6 +7380,7 @@ declare class Sandbox {
|
|
|
7334
7380
|
*/
|
|
7335
7381
|
prompt(prompt: string, options?: SandboxPromptOptions): Promise<AgentRun>;
|
|
7336
7382
|
private runExec;
|
|
7383
|
+
private runCancellableExec;
|
|
7337
7384
|
private execStream;
|
|
7338
7385
|
writeFile(path: string, content: string | Uint8Array): Promise<void>;
|
|
7339
7386
|
download(path: string): Promise<Uint8Array>;
|
|
@@ -8846,4 +8893,4 @@ declare class AppAuth {
|
|
|
8846
8893
|
private _post;
|
|
8847
8894
|
}
|
|
8848
8895
|
|
|
8849
|
-
export { AGENT_BUILD_KIND_SPECS, type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentBuildExecutionPacket, type AgentBuildFileSpec, type AgentBuildKind, type AgentBuildKindSpec, type AgentBuildPlannerDocument, type AgentDefinitionCreateParams, type AgentDefinitionData, type AgentDefinitionListParams, type AgentDefinitionUpdateParams, AgentDefinitions, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, AgentRuntimeProfiles, type AgentSessionCreateParams, type AgentSessionData, type AgentSessionListResponse$1 as AgentSessionListResponse, type AgentSessionStatus$1 as AgentSessionStatus, type AgentVersionData, type AllowParams, Analytics, type AnalyticsFilters, type ApiKeyCreateParams, type ApiKeyCreateResult, type ApiKeyData, type ApiKeyId, type ApiKeyListParams, ApiKeys, type AppActionDecision, AppAuth, type AppAuthConfig, type AppAuthResourceType, type AppAuthSession, type AppAuthTokenPayload, type AppAutomationRun, type AppCatalogEntry, type AppCollectionRecord, type AppDocument, type AppDocumentCreateParams, type AppDocumentDiagnostics, type AppDocumentRecord, type AppDocumentUpdateParams, AppDocuments, type AppInstallData, type AppInstallEvent, type AppJson, type AppReleaseApproval, type AppReleaseCandidate, type AttachAwsRoleParams, type AuditListParams, AuditLog, type AuditLogEvent, type AuditLogListParams, type AuditTailParams, AuthError, type AuthToken, type BenchmarkCompareParams, type BenchmarkCreateParams, Benchmarks, type BindingCreateParams, type BindingListParams, type BrandingData, type BrandingUpdateParams, type BucketCreateParams, type BucketData, type BucketId, type BuilderSessionListParams, BuilderSessions, type BulkUserActionParams, type ChannelCreateParams, type ChannelData, type ChannelListParams, type ChannelUpdateParams, Channels, type ChatCompletionCreateParams, type ChatCompletionCreateStreamParams, Checkpoints, type ClickParams, Cloud, type CloudAccount, type CloudAccountCreateParams, type CloudAccountMode, type CloudAccountStatus, type CloudCredentialType, type CloudListParams, type CloudPlacementScope, type CloudPool, type CloudPoolCreateParams, type CloudPoolKind, type CloudPreflightRecordParams, type CloudPreflightRun, type CloudPreflightStatus, type CloudProvider, type CloudRegion, type CloudRegionCreateParams, type ClusterCreateParams, type ClusterData, type ClusterEvent, type ClusterId, type ClusterListResponse, type ClusterStatus, CommandCenter, Community, type CompletionCreateParams, type CompletionCreateStreamParams, Completions, type ComputeProduct, Computer, ComputerAudit, ComputerAutoStop, ComputerConnectors, type ComputerCreateParams, type ComputerData, ComputerEnv, type ComputerId, ComputerInbox, type ComputerListParams, type ComputerListResponse, ComputerLogs, type ComputerLogsGetParams, ComputerNetwork, ComputerOsa, ComputerPorts, ComputerSecrets, type ComputerSize, type ComputerStatus, type ComputerTemplateType, ComputerTerminal, type ComputerUpdateParams, type ComputerVisibility, ComputerVolumes, Computers, type ConnectorApplicableDefaultParams, type ConnectorCreateParams, type ConnectorData, type ConnectorDefault, type ConnectorDefaultListParams, type ConnectorDefaultParams, type ConnectorListParams, type ConnectorSubject, type ConnectorTokenParams, type ConnectorTokenResponse, Connectors, type CopyParams, type CreateAdminApiKeyParams, type CreateAgentBuildPacketParams, type CreateBuildRunParams, type CreateOrgInviteParams, type CreateWorkspaceInviteParams, type CreateWorkspaceInviteResponse, type CreditBalance, type CreditTransaction, type CreditTransactionListResponse, type CreditUsage, Credits, type CronJobCreateParams, type CronJobData, type CronJobExecutionData, type CronJobExecutionId, type CronJobId, type CronJobListParams, type CronJobUpdateParams, CronJobs, type CursorInfo, type CustomDomainCreateParams, type CustomDomainData, type CustomDomainId, type CustomDomainListParams, DEFAULT_AGENT_BUILD_OUTPUT_ROOT, DEFAULT_AGENT_BUILD_PACKET_VERSION, Dashboard, type DashboardSummary, type DatabaseCreateParams, type DatabaseCredentials, type DatabaseData, type DatabaseId, type DatabaseListParams, type DatabaseLogsParams, type DatabaseLogsResult, Databases, type DeploymentBuildData, DeploymentConnectors, type DeploymentCreateParams, type DeploymentData, DeploymentDomains, type DeploymentId, type DeploymentListParams, type DeploymentProduct, type DeploymentProofCheck, type DeploymentProofParams, type DeploymentProofProbe, type DeploymentProofResult, type DeploymentReleaseData, type DeploymentReleaseId, DeploymentReleases, DeploymentRuntimeInstances, type DeploymentServiceData, type DeploymentServiceId, type DeploymentServiceType, type DeploymentSourceType, type DeploymentState, type DeploymentUpdateParams, type DeploymentVersionData, type DeploymentVersionId, type DeploymentVersionKind, type DeploymentVersionState, DeploymentVersions, Deployments, Desktop$1 as Desktop, type DesktopActionResult, type DeviceBootstrapParams, type DeviceBootstrapResult, type DeviceBrowserResult, type DeviceCapabilities, type DeviceData, type DeviceExecParams, type DeviceExecResult, type DeviceExposeParams, type DeviceExposeResult, type DeviceExtendParams, type DeviceFileEntry, type DeviceFileListParams, type DeviceKind, type DeviceLifecycleResult, type DeviceListParams, type DeviceReadFileParams, type DeviceReadFileResult, type DeviceWriteFileParams, type DeviceWriteFileResult, Devices, type DirEntry, type DirListResult, type DiscordSendTestParams, DockerDeploy, type DockerDeployApplianceStatus, type DockerDeployCreateParams, type DockerDeployDoctorCheck, type DockerDeployDoctorParams, type DockerDeployDoctorProbe, type DockerDeployDoctorResult, type DockerDeployHostData, type DockerDeployHostEnsureParams, type DockerDeployHostId, type DockerDeployHostListParams, type DockerDeployHostListResponse, type DockerDeployHostResponse, type DockerDeployHostStatus, type DoubleClickParams, type DragParams, type EgressAllowlistRule, EgressAudit, type EgressAuditEvent, type EgressBindingData, EgressHostNotAllowedError, EgressNetwork, type EgressPolicyData, type EgressPolicyMode, type EgressRuleEffect, type EgressSecretData, type EgressSecretScope, type EgressSecretType, EgressSecrets, type EgressSuggestion, Email, EmailCampaigns, EmailInbox, EmailTemplates, type EmbeddingCreateParams, Embeddings, Exec, type ExecParams, type ExecPythonParams, type ExecResult, type ExternalAttribution, type ExternalKeyCreateParams, type ExternalKeyData, ExternalKeys, type FileDeleteParams, type FileDownloadParams, type FileEntry, type FileExportParams, type FileExportResult, type FileListParams, type FileListResult, type FileStat, Files, FlatCustomDomains, Forge, ForgeContractError, type ForgeDeleteReceipt, type ForgeOrganizationId, ForgePolicyViolationError, ForgeRepositories, type ForgeRepository, type ForgeRepositoryCreateParams, type ForgeRepositoryDeleteOptions, type ForgeRepositoryId, type ForgeRepositoryState, type ForgeRepositoryUpdateParams, type ForgeRepositoryVisibility, ForgeStorageError, ForgeUnavailableError, type FsEntry, type FsListResponse, type FsStat, type FunctionCreateParams, type FunctionData, type FunctionId, type FunctionInvokeParams, type FunctionListParams, type FunctionUpdateParams, Functions, type GithubRepo, type GithubSshKey, type HealthCheckCreateParams, type HealthCheckData, type HealthCheckId, type HealthCheckListParams, type HealthCheckUpdateParams, HealthChecks, type HostCreateParams, type HostData, type HostEvent, type HostId, type HostListResponse, type HostStatus, type HostUpdateParams, InstallationRequiredError, InsufficientCreditsError, type IntegrationCatalogEntry, type IntegrationData, Integrations, type JobData, type JobEvent, type JobEventType, type JobId, type JobListResponse, type JobRunParams, type JobStatus, type KeyParams, type LaunchParams, type LinearCreateIssueParams, type ListAdminApiKeysParams, type ListAdminComputersParams, type ListAdminTenantsParams, type ListAdminUsersParams, ManagedProviderBindingOnlyError, Mcp, type McpDispatchParams, Miosa, type MiosaClientConfig, MiosaError, type MiosaErrorBody, type MkdirParams, type ModeParams, Models, type MouseButton, NetworkError, NetworkPolicy, type NetworkPolicyData, type NetworkPolicyEffect, type NetworkPolicyProtocol, type NetworkPolicyRule, type NetworkPolicySetParams, NotFoundError, type NotificationPrefsUpdateParams, OAuthFlow, type OauthConnectParams, type OauthProvider, type OauthStartResult, type OauthStatusResult, type ObjectListParams, type AgentEvent as OcAgentEvent, type OcAgentSessionData, type AgentSessionListResponse as OcAgentSessionListResponse, type OcWorkspaceCreateParams, type OcWorkspaceData, type OcWorkspaceEvent, type OcWorkspaceListResponse, type OcWorkspaceStatus, type OcWorkspaceUpdateParams, OpenComputers, type OrgInvite, type OrgInviteCreated, type OrgInviteCreatedResponse, type OrgInviteListResponse, type OrgInvitePreview, type OrgInviteRevokeResponse, OrgInvites, type OrgRole, type OrganizationMember, type OrganizationMemberList, type OrganizationMemberRemoved, OrganizationMembers, type OrganizationRole, type OrganizationSummary, type OrganizationSwitchResult, Organizations, type OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, type PreviewDomainData, type ProductCatalogEntry, type ProductTemplate, type ProductTemplateCatalog, ProjectAuth, type ProjectAuthEnableParams, type ProjectAuthStatus, type ProjectAuthUpdateParams, type ProjectIntegrationCatalogEntry, type ProjectIntegrationCreateParams, type ProjectIntegrationData, type ProjectIntegrationListParams, type ProjectIntegrationUpdateParams, ProjectIntegrations, ProjectNotLinkedError, ProviderDefaults, type ProviderKeyUpsertParams, type PublishFromSandboxParams, type PublishParams, type PublishResult, RateLimitError, type RegionData, Regions, type RollbackParams, type RulesListParams, type Run, type RunActivity, type RunCommandOutput, type RunCreateParams, type RunDiagnostic, type RunDownload, type RunFile, type RunGroup, type RunGroupActivity, type RunGroupCounts, type RunGroupCreateParams, type RunGroupDispatchEntry, type RunGroupDispatchResult, type RunGroupFile, type RunGroupListParams, type RunGroupStatus, type RunGroupWaitOptions, RunGroups, type RunListParams, type RunMessage, type RunOutputs, type RunPreview, type RunStatus, type RunTargetKind, type RunWaitOptions, Runs, type RuntimeCapabilities, RuntimeCapabilitiesResource, RuntimeEnv, type RuntimeEnvListParams, type RuntimeEnvScope, type RuntimeEnvSetParams, type RuntimeEnvTarget, type RuntimeEnvVar, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxConnectorAttachParams, type SandboxConnectorBinding, type SandboxConnectorPreflightParams, type SandboxConnectorPreflightResult, SandboxConnectors, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecEvent, type SandboxExecOptions, type SandboxExecResult, type SandboxExecRunner, SandboxFiles, type SandboxGetOrCreateParams, type SandboxId, type SandboxListParams, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, type SandboxState, SandboxTags, type SandboxTemplate, type SandboxTemplateBuild, type SandboxTemplateBuildCreateParams, type SandboxTemplateBuildResourceData, type SandboxTemplateBuildResourceId, type SandboxTemplateCreateParams, type SandboxTemplateList, type SandboxTemplateListParams, type SandboxTemplateResourceData, type SandboxTemplateResourceId, SandboxTemplates, SandboxTerminal, Sandboxes, ScopeNotAllowedError, ScopedFs, type ScrollDirection, type ScrollParams, type SecretCreateParams, type SecretData, type SecretId, type SecretListParams, type SecretRotateParams, type SecretSetParams, type SecretUpdateParams, type SessionId, Settings, type SettingsUpdateParams, type SizeData, type SlackSendTestParams, type SnapshotCreateParams, type SnapshotData, type SnapshotListResponse, type SnapshotProgressEvent, type SnapshotRestoreResult, type SnapshotStatus, SnapshotsStandalone, Storage, type StorageObjectData, SubjectNotAllowedError, type SuggestionsParams, type TemplateBenchmarkLane, type TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, type TemplateReadinessContract, type TemplateReadinessState, type TemplateSizeReadiness, Templates, type TemplatesListParams, Tenant, type TenantBrandingUpdateParams, type TenantId, type TenantPlan, type TenantSummary, type TerminalCreateParams, TimeoutError, type TimeseriesParams, TokenRefreshFailedError, type TunnelAuthMode, type TunnelCreateParams, type TunnelData, type TunnelId, type TunnelListResponse, type TunnelUpdateParams, type TypeParams, type UpdateWorkspaceMemberRoleParams, Usage, type UsageReportParams, type UsageSession, type UsageSessionsParams, type UsageSummary, UserAuthorizationRequiredError, type UserId, ValidationError, type VersionListParams, type VolumeAttachParams, type VolumeAttachmentData, type VolumeCreateParams, type VolumeData, type VolumeId, type VolumeListParams, Volumes, type WaitParams, type WebhookCreateParams, type WebhookData, type WebhookDeliveryData, type WebhookDeliveryId, type WebhookId, type WebhookListParams, type WebhookUpdateParams, Webhooks, type WindowFocusParams, type WindowInfo, type WorkspaceId, type WorkspaceInvite, type WorkspaceInviteCreatedResponse, type WorkspaceInviteListResponse, type WorkspaceInvitePreview, type WorkspaceInviteRevokeResponse, WorkspaceInvites, type WorkspaceMember, type WorkspaceMemberAddedResponse, type WorkspaceMemberDeleteResponse, type WorkspaceMemberListResponse, type WorkspaceMemberRecord, type WorkspaceMemberRecordResponse, WorkspaceMembers, type WorkspaceRole, type WsTicket, createAgentBuildExecutionPacket, createAgentBuildExpectedOutputs, createAgentBuildPrompt, createBuildRunParams, getAgentBuildKindSpec, resolveAgentBuildKind, verifySignature };
|
|
8896
|
+
export { AGENT_BUILD_KIND_SPECS, type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentBuildExecutionPacket, type AgentBuildFileSpec, type AgentBuildKind, type AgentBuildKindSpec, type AgentBuildPlannerDocument, type AgentDefinitionCreateParams, type AgentDefinitionData, type AgentDefinitionListParams, type AgentDefinitionUpdateParams, AgentDefinitions, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, AgentRuntimeProfiles, type AgentSessionCreateParams, type AgentSessionData, type AgentSessionListResponse$1 as AgentSessionListResponse, type AgentSessionStatus$1 as AgentSessionStatus, type AgentVersionData, type AllowParams, Analytics, type AnalyticsFilters, type ApiKeyCreateParams, type ApiKeyCreateResult, type ApiKeyData, type ApiKeyId, type ApiKeyListParams, ApiKeys, type AppActionDecision, AppAuth, type AppAuthConfig, type AppAuthResourceType, type AppAuthSession, type AppAuthTokenPayload, type AppAutomationRun, type AppCatalogEntry, type AppCollectionRecord, type AppDocument, type AppDocumentCreateParams, type AppDocumentDiagnostics, type AppDocumentRecord, type AppDocumentUpdateParams, AppDocuments, type AppInstallData, type AppInstallEvent, type AppJson, type AppReleaseApproval, type AppReleaseCandidate, type AttachAwsRoleParams, type AuditListParams, AuditLog, type AuditLogEvent, type AuditLogListParams, type AuditTailParams, AuthError, type AuthToken, type BenchmarkCompareParams, type BenchmarkCreateParams, Benchmarks, type BindingCreateParams, type BindingListParams, type BrandingData, type BrandingUpdateParams, type BucketCreateParams, type BucketData, type BucketId, type BuilderSessionListParams, BuilderSessions, type BulkUserActionParams, type ChannelCreateParams, type ChannelData, type ChannelListParams, type ChannelUpdateParams, Channels, type ChatCompletionCreateParams, type ChatCompletionCreateStreamParams, Checkpoints, type ClickParams, Cloud, type CloudAccount, type CloudAccountCreateParams, type CloudAccountMode, type CloudAccountStatus, type CloudCredentialType, type CloudListParams, type CloudPlacementScope, type CloudPool, type CloudPoolCreateParams, type CloudPoolKind, type CloudPreflightRecordParams, type CloudPreflightRun, type CloudPreflightStatus, type CloudProvider, type CloudRegion, type CloudRegionCreateParams, type ClusterCreateParams, type ClusterData, type ClusterEvent, type ClusterId, type ClusterListResponse, type ClusterStatus, CommandCenter, Community, type CompletionCreateParams, type CompletionCreateStreamParams, Completions, type ComputeProduct, Computer, ComputerAudit, ComputerAutoStop, ComputerConnectors, type ComputerCreateParams, type ComputerData, ComputerEnv, type ComputerId, ComputerInbox, type ComputerListParams, type ComputerListResponse, ComputerLogs, type ComputerLogsGetParams, ComputerNetwork, ComputerOsa, ComputerPorts, ComputerSecrets, type ComputerSize, type ComputerStatus, type ComputerTemplateType, ComputerTerminal, type ComputerUpdateParams, type ComputerVisibility, ComputerVolumes, Computers, type ConnectorApplicableDefaultParams, type ConnectorCreateParams, type ConnectorData, type ConnectorDefault, type ConnectorDefaultListParams, type ConnectorDefaultParams, type ConnectorListParams, type ConnectorSubject, type ConnectorTokenParams, type ConnectorTokenResponse, Connectors, type CopyParams, type CreateAdminApiKeyParams, type CreateAgentBuildPacketParams, type CreateBuildRunParams, type CreateOrgInviteParams, type CreateWorkspaceInviteParams, type CreateWorkspaceInviteResponse, type CreditBalance, type CreditTransaction, type CreditTransactionListResponse, type CreditUsage, Credits, type CronJobCreateParams, type CronJobData, type CronJobExecutionData, type CronJobExecutionId, type CronJobId, type CronJobListParams, type CronJobUpdateParams, CronJobs, type CursorInfo, type CustomDomainCreateParams, type CustomDomainData, type CustomDomainId, type CustomDomainListParams, DEFAULT_AGENT_BUILD_OUTPUT_ROOT, DEFAULT_AGENT_BUILD_PACKET_VERSION, Dashboard, type DashboardSummary, type DatabaseCreateParams, type DatabaseCredentials, type DatabaseData, type DatabaseId, type DatabaseListParams, type DatabaseLogsParams, type DatabaseLogsResult, Databases, type DeploymentBuildData, DeploymentConnectors, type DeploymentCreateParams, type DeploymentData, DeploymentDomains, type DeploymentId, type DeploymentListParams, type DeploymentProduct, type DeploymentProofCheck, type DeploymentProofParams, type DeploymentProofProbe, type DeploymentProofResult, type DeploymentReleaseData, type DeploymentReleaseId, DeploymentReleases, DeploymentRuntimeInstances, type DeploymentServiceData, type DeploymentServiceId, type DeploymentServiceType, type DeploymentSourceType, type DeploymentState, type DeploymentUpdateParams, type DeploymentVersionData, type DeploymentVersionId, type DeploymentVersionKind, type DeploymentVersionState, DeploymentVersions, Deployments, Desktop$1 as Desktop, type DesktopActionResult, type DeviceBootstrapParams, type DeviceBootstrapResult, type DeviceBrowserResult, type DeviceCapabilities, type DeviceData, type DeviceExecParams, type DeviceExecResult, type DeviceExposeParams, type DeviceExposeResult, type DeviceExtendParams, type DeviceFileEntry, type DeviceFileListParams, type DeviceKind, type DeviceLifecycleResult, type DeviceListParams, type DeviceReadFileParams, type DeviceReadFileResult, type DeviceWriteFileParams, type DeviceWriteFileResult, Devices, type DirEntry, type DirListResult, type DiscordSendTestParams, DockerDeploy, type DockerDeployApplianceStatus, type DockerDeployCreateParams, type DockerDeployDoctorCheck, type DockerDeployDoctorParams, type DockerDeployDoctorProbe, type DockerDeployDoctorResult, type DockerDeployHostData, type DockerDeployHostEnsureParams, type DockerDeployHostId, type DockerDeployHostListParams, type DockerDeployHostListResponse, type DockerDeployHostResponse, type DockerDeployHostStatus, type DoubleClickParams, type DragParams, type EgressAllowlistRule, EgressAudit, type EgressAuditEvent, type EgressBindingData, EgressHostNotAllowedError, EgressNetwork, type EgressPolicyData, type EgressPolicyMode, type EgressRuleEffect, type EgressSecretData, type EgressSecretScope, type EgressSecretType, EgressSecrets, type EgressSuggestion, Email, EmailCampaigns, EmailInbox, EmailTemplates, type EmbeddingCreateParams, Embeddings, Exec, type ExecParams, type ExecPythonParams, type ExecResult, type ExternalAttribution, type ExternalKeyCreateParams, type ExternalKeyData, ExternalKeys, type FileDeleteParams, type FileDownloadParams, type FileEntry, type FileExportParams, type FileExportResult, type FileListParams, type FileListResult, type FileStat, Files, FlatCustomDomains, Forge, ForgeContractError, type ForgeDeleteReceipt, type ForgeOrganizationId, ForgePolicyViolationError, ForgeRepositories, type ForgeRepository, type ForgeRepositoryCreateParams, type ForgeRepositoryDeleteOptions, type ForgeRepositoryId, type ForgeRepositoryState, type ForgeRepositoryUpdateParams, type ForgeRepositoryVisibility, ForgeStorageError, ForgeUnavailableError, type FsEntry, type FsListResponse, type FsStat, type FunctionCreateParams, type FunctionData, type FunctionId, type FunctionInvokeParams, type FunctionListParams, type FunctionUpdateParams, Functions, type GithubRepo, type GithubSshKey, type HealthCheckCreateParams, type HealthCheckData, type HealthCheckId, type HealthCheckListParams, type HealthCheckUpdateParams, HealthChecks, type HostCreateParams, type HostData, type HostEvent, type HostId, type HostListResponse, type HostStatus, type HostUpdateParams, InstallationRequiredError, InsufficientCreditsError, type IntegrationCatalogEntry, type IntegrationData, Integrations, type JobData, type JobEvent, type JobEventType, type JobId, type JobListResponse, type JobRunParams, type JobStatus, type KeyParams, type LaunchParams, type LinearCreateIssueParams, type ListAdminApiKeysParams, type ListAdminComputersParams, type ListAdminTenantsParams, type ListAdminUsersParams, ManagedProviderBindingOnlyError, Mcp, type McpDispatchParams, Miosa, type MiosaClientConfig, MiosaError, type MiosaErrorBody, type MkdirParams, type ModeParams, Models, type MouseButton, NetworkError, NetworkPolicy, type NetworkPolicyData, type NetworkPolicyEffect, type NetworkPolicyProtocol, type NetworkPolicyRule, type NetworkPolicySetParams, NotFoundError, type NotificationPrefsUpdateParams, OAuthFlow, type OauthConnectParams, type OauthProvider, type OauthStartResult, type OauthStatusResult, type ObjectListParams, type AgentEvent as OcAgentEvent, type OcAgentSessionData, type AgentSessionListResponse as OcAgentSessionListResponse, type OcWorkspaceCreateParams, type OcWorkspaceData, type OcWorkspaceEvent, type OcWorkspaceListResponse, type OcWorkspaceStatus, type OcWorkspaceUpdateParams, OpenComputers, type OrgInvite, type OrgInviteCreated, type OrgInviteCreatedResponse, type OrgInviteListResponse, type OrgInvitePreview, type OrgInviteRevokeResponse, OrgInvites, type OrgRole, type OrganizationMember, type OrganizationMemberList, type OrganizationMemberRemoved, OrganizationMembers, type OrganizationRole, type OrganizationSummary, type OrganizationSwitchResult, Organizations, type OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, type PreviewDomainData, type ProductCatalogEntry, type ProductTemplate, type ProductTemplateCatalog, ProjectAuth, type ProjectAuthEnableParams, type ProjectAuthStatus, type ProjectAuthUpdateParams, type ProjectIntegrationCatalogEntry, type ProjectIntegrationCreateParams, type ProjectIntegrationData, type ProjectIntegrationListParams, type ProjectIntegrationUpdateParams, ProjectIntegrations, ProjectNotLinkedError, ProviderDefaults, type ProviderKeyUpsertParams, type PublishFromSandboxParams, type PublishParams, type PublishResult, RateLimitError, type RegionData, Regions, type RollbackParams, type RulesListParams, type Run, type RunActivity, type RunCommandOutput, type RunCreateParams, type RunDiagnostic, type RunDownload, type RunFile, type RunGroup, type RunGroupActivity, type RunGroupCounts, type RunGroupCreateParams, type RunGroupDispatchEntry, type RunGroupDispatchResult, type RunGroupFile, type RunGroupListParams, type RunGroupStatus, type RunGroupWaitOptions, RunGroups, type RunListParams, type RunMessage, type RunOutputs, type RunPreview, type RunStatus, type RunTargetKind, type RunWaitOptions, Runs, type RuntimeCapabilities, RuntimeCapabilitiesResource, RuntimeEnv, type RuntimeEnvListParams, type RuntimeEnvScope, type RuntimeEnvSetParams, type RuntimeEnvTarget, type RuntimeEnvVar, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxConnectorAttachParams, type SandboxConnectorBinding, type SandboxConnectorPreflightParams, type SandboxConnectorPreflightResult, SandboxConnectors, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecEvent, type SandboxExecOptions, type SandboxExecResult, type SandboxExecRunner, SandboxFiles, type SandboxGetOrCreateParams, type SandboxId, type SandboxListParams, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, type SandboxState, SandboxTags, type SandboxTemplate, type SandboxTemplateBuild, type SandboxTemplateBuildCreateParams, type SandboxTemplateBuildResourceData, type SandboxTemplateBuildResourceId, type SandboxTemplateCreateParams, type SandboxTemplateList, type SandboxTemplateListParams, type SandboxTemplateResourceData, type SandboxTemplateResourceId, SandboxTemplates, SandboxTerminal, type SandboxTerminalCreateParams, type SandboxTerminalSession, Sandboxes, ScopeNotAllowedError, ScopedFs, type ScrollDirection, type ScrollParams, type SecretCreateParams, type SecretData, type SecretId, type SecretListParams, type SecretRotateParams, type SecretSetParams, type SecretUpdateParams, type SessionId, Settings, type SettingsUpdateParams, type SizeData, type SlackSendTestParams, type SnapshotCreateParams, type SnapshotData, type SnapshotListResponse, type SnapshotProgressEvent, type SnapshotRestoreResult, type SnapshotStatus, SnapshotsStandalone, Storage, type StorageObjectData, SubjectNotAllowedError, type SuggestionsParams, type TemplateBenchmarkLane, type TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, type TemplateReadinessContract, type TemplateReadinessState, type TemplateSizeReadiness, Templates, type TemplatesListParams, Tenant, type TenantBrandingUpdateParams, type TenantId, type TenantPlan, type TenantSummary, type TerminalCreateParams, TimeoutError, type TimeseriesParams, TokenRefreshFailedError, type TunnelAuthMode, type TunnelCreateParams, type TunnelData, type TunnelId, type TunnelListResponse, type TunnelUpdateParams, type TypeParams, type UpdateWorkspaceMemberRoleParams, Usage, type UsageReportParams, type UsageSession, type UsageSessionsParams, type UsageSummary, UserAuthorizationRequiredError, type UserId, ValidationError, type VersionListParams, type VolumeAttachParams, type VolumeAttachmentData, type VolumeCreateParams, type VolumeData, type VolumeId, type VolumeListParams, Volumes, type WaitParams, type WebhookCreateParams, type WebhookData, type WebhookDeliveryData, type WebhookDeliveryId, type WebhookId, type WebhookListParams, type WebhookUpdateParams, Webhooks, type WindowFocusParams, type WindowInfo, type WorkspaceId, type WorkspaceInvite, type WorkspaceInviteCreatedResponse, type WorkspaceInviteListResponse, type WorkspaceInvitePreview, type WorkspaceInviteRevokeResponse, WorkspaceInvites, type WorkspaceMember, type WorkspaceMemberAddedResponse, type WorkspaceMemberDeleteResponse, type WorkspaceMemberListResponse, type WorkspaceMemberRecord, type WorkspaceMemberRecordResponse, WorkspaceMembers, type WorkspaceRole, type WsTicket, createAgentBuildExecutionPacket, createAgentBuildExpectedOutputs, createAgentBuildPrompt, createBuildRunParams, getAgentBuildKindSpec, resolveAgentBuildKind, verifySignature };
|