@miosa/sdk 1.2.24 → 1.2.25

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/index.d.ts CHANGED
@@ -253,19 +253,6 @@ interface AgentRunCreateParams {
253
253
  timeout?: number;
254
254
  wait?: boolean;
255
255
  env?: Record<string, string>;
256
- /** Claude Code: `--output-format`, e.g. "json" or "stream-json". */
257
- outputFormat?: "text" | "json" | "stream-json" | string;
258
- output_format?: "text" | "json" | "stream-json" | string;
259
- /** Claude Code: `--resume <session_id>`. */
260
- resumeSessionId?: string;
261
- resume_session_id?: string;
262
- /** Codex: pass `--json` for JSONL event output. */
263
- json?: boolean;
264
- /** Codex: path to a JSON Schema file inside the runtime. */
265
- outputSchema?: string;
266
- output_schema?: string;
267
- /** Codex: path to an image file inside the runtime. */
268
- image?: string;
269
256
  agentRuntimeProfileId?: string;
270
257
  agentProfileId?: string;
271
258
  agentRunGroupId?: string;
@@ -2352,24 +2339,12 @@ declare class Desktop$1 {
2352
2339
  screenshot(): Promise<Uint8Array>;
2353
2340
  /** Click at the given coordinates. */
2354
2341
  click(x: number, y: number, button?: ClickParams["button"]): Promise<DesktopActionResult>;
2355
- /** Explicit left-button click. Alias for click(x, y, "left"). */
2356
- leftClick(x: number, y: number): Promise<DesktopActionResult>;
2357
- /** Right-button click. Alias for click(x, y, "right"). */
2358
- rightClick(x: number, y: number): Promise<DesktopActionResult>;
2359
- /** Middle-button click. Alias for click(x, y, "middle"). */
2360
- middleClick(x: number, y: number): Promise<DesktopActionResult>;
2361
2342
  /** Double-click at the given coordinates. */
2362
2343
  doubleClick(x: number, y: number): Promise<DesktopActionResult>;
2363
- /** Move the mouse pointer without clicking. */
2364
- moveMouse(x: number, y: number): Promise<DesktopActionResult>;
2365
2344
  /** Type text into the currently focused element. */
2366
2345
  type(text: string, delay?: number): Promise<DesktopActionResult>;
2367
- /** Alias for `type(text)` used by simple computer-control loops. */
2368
- write(text: string, delay?: number): Promise<DesktopActionResult>;
2369
2346
  /** Send a key or key combination (e.g. "Enter", "ctrl+c"). */
2370
2347
  key(key: string): Promise<DesktopActionResult>;
2371
- /** Alias for `key(key)` used by simple computer-control loops. */
2372
- press(key: string): Promise<DesktopActionResult>;
2373
2348
  /** Scroll in a direction at an optional position. */
2374
2349
  scroll(direction: ScrollParams["direction"], clicks?: number, x?: number, y?: number): Promise<DesktopActionResult>;
2375
2350
  /** Click and drag from one coordinate to another. */
@@ -3261,24 +3236,16 @@ declare class Computer {
3261
3236
  rightClick(x: number, y: number): Promise<void>;
3262
3237
  /** Double-click at the given coordinates. */
3263
3238
  doubleClick(x: number, y: number): Promise<void>;
3264
- /** Middle-button click. */
3265
- middleClick(x: number, y: number): Promise<void>;
3266
- /** Move the pointer without clicking. */
3267
- moveMouse(x: number, y: number): Promise<void>;
3268
3239
  /**
3269
3240
  * Type text into the focused element.
3270
3241
  * Shortcut for `computer.desktop.type(text)`.
3271
3242
  */
3272
3243
  type(text: string): Promise<void>;
3273
- /** Alias for `type(text)`. */
3274
- write(text: string): Promise<void>;
3275
3244
  /**
3276
3245
  * Send a key or key combo.
3277
3246
  * Shortcut for `computer.desktop.key(key)`.
3278
3247
  */
3279
3248
  key(key: string): Promise<void>;
3280
- /** Alias for `key(key)`. */
3281
- press(key: string): Promise<void>;
3282
3249
  /**
3283
3250
  * Scroll in a direction.
3284
3251
  * Shortcut for `computer.desktop.scroll(direction, clicks)`.
@@ -3346,13 +3313,6 @@ declare class Computer {
3346
3313
  urls(): Promise<Record<string, unknown>>;
3347
3314
  /** Mint a short-lived stream token for this computer. */
3348
3315
  streamToken(): Promise<Record<string, unknown>>;
3349
- /**
3350
- * Mint a passwordless browser embed URL for authenticated platform sessions.
3351
- *
3352
- * Use this inside MIOSA or tenant apps. Raw shared desktop URLs can still use
3353
- * the viewer password flow when opened outside an authenticated platform.
3354
- */
3355
- embed(): Promise<Record<string, unknown>>;
3356
3316
  /** Clone this computer into a new one. */
3357
3317
  clone(opts?: Record<string, unknown>): Promise<Computer>;
3358
3318
  /** Resize the computer (change CPU/memory/disk). */
@@ -5689,20 +5649,11 @@ interface TemplateData {
5689
5649
  slug?: string;
5690
5650
  [key: string]: unknown;
5691
5651
  }
5692
- interface ComputeCatalogData {
5693
- products?: Array<Record<string, unknown>>;
5694
- regions?: Array<Record<string, unknown>>;
5695
- sizes?: Array<Record<string, unknown>>;
5696
- templates?: Array<Record<string, unknown>>;
5697
- [key: string]: unknown;
5698
- }
5699
5652
  declare class Regions {
5700
5653
  private readonly http;
5701
5654
  constructor(http: HttpClient);
5702
5655
  /** List datacenter regions. */
5703
5656
  listRegions(): Promise<RegionData[]>;
5704
- /** Get canonical compute catalog, including product templates and readiness. */
5705
- catalog(): Promise<ComputeCatalogData>;
5706
5657
  /** List available compute sizes. */
5707
5658
  listSizes(): Promise<SizeData[]>;
5708
5659
  /** Get static compute pricing data. */
@@ -6208,11 +6159,6 @@ declare class SandboxEvents {
6208
6159
  /** Stream live sandbox events via SSE. */
6209
6160
  stream(): AsyncIterableIterator<Record<string, unknown>>;
6210
6161
  }
6211
- declare class SandboxMetrics {
6212
- private readonly sandbox;
6213
- constructor(sandbox: Sandbox);
6214
- get(window?: string): Promise<Record<string, unknown>>;
6215
- }
6216
6162
  declare class SandboxPreviews {
6217
6163
  private readonly sandbox;
6218
6164
  constructor(sandbox: Sandbox);
@@ -6266,8 +6212,6 @@ declare class Sandbox {
6266
6212
  readonly terminal: SandboxTerminal;
6267
6213
  /** SSE event stream. */
6268
6214
  readonly events: SandboxEvents;
6269
- /** Operational metrics and current resource state. */
6270
- readonly metricsResource: SandboxMetrics;
6271
6215
  /** Preview CRUD + share/revokeShare. */
6272
6216
  readonly previews: SandboxPreviews;
6273
6217
  /** Read-only env var listing. */
@@ -6307,15 +6251,11 @@ declare class Sandbox {
6307
6251
  listFiles(path?: string): Promise<SandboxFileList>;
6308
6252
  statFile(path: string): Promise<SandboxFileStat>;
6309
6253
  expose(port?: number): Promise<string>;
6310
- getUrl(port?: number, path?: string): Promise<string>;
6311
- getHost(port?: number): Promise<string>;
6312
6254
  exposeInfo(port?: number): Promise<PreviewUrlInfo>;
6313
6255
  startTemplate(options?: Record<string, unknown>): Promise<Record<string, unknown>>;
6314
6256
  getArtifacts(): Promise<Record<string, unknown>>;
6315
6257
  getLogs(lines?: number): Promise<string | Record<string, unknown>>;
6316
6258
  streamLogs(): AsyncIterableIterator<Record<string, unknown>>;
6317
- metrics(window?: string): Promise<Record<string, unknown>>;
6318
- getMetrics(window?: string): Promise<Record<string, unknown>>;
6319
6259
  createSnapshot(comment?: string): Promise<SandboxSnapshot>;
6320
6260
  listSnapshots(): Promise<SandboxSnapshot[]>;
6321
6261
  restoreSnapshot(snapshotId: string): Promise<Sandbox>;
@@ -6915,26 +6855,6 @@ interface VolumeCreateParams {
6915
6855
  idempotencyKey?: string;
6916
6856
  [key: string]: unknown;
6917
6857
  }
6918
- interface VolumeAttachmentData {
6919
- id: string;
6920
- volume_id: string;
6921
- computer_id: string;
6922
- mount_path: string;
6923
- read_only?: boolean;
6924
- state?: string;
6925
- created_at?: string;
6926
- updated_at?: string;
6927
- [key: string]: unknown;
6928
- }
6929
- interface VolumeAttachParams {
6930
- volumeId?: string;
6931
- volume_id?: string;
6932
- mountPath?: string;
6933
- mount_path?: string;
6934
- readOnly?: boolean;
6935
- read_only?: boolean;
6936
- [key: string]: unknown;
6937
- }
6938
6858
  declare class Volumes {
6939
6859
  private readonly http;
6940
6860
  constructor(http: HttpClient);
@@ -6942,9 +6862,6 @@ declare class Volumes {
6942
6862
  get(volumeId: string): Promise<VolumeData>;
6943
6863
  create(params: VolumeCreateParams): Promise<VolumeData>;
6944
6864
  delete(volumeId: string): Promise<void>;
6945
- listAttachments(computerId: string): Promise<VolumeAttachmentData[]>;
6946
- attach(computerId: string, params: VolumeAttachParams): Promise<VolumeAttachmentData>;
6947
- detach(computerId: string, attachmentId: string): Promise<void>;
6948
6865
  }
6949
6866
 
6950
6867
  /**
@@ -7654,4 +7571,4 @@ declare class TokenRefreshFailedError extends MiosaError {
7654
7571
  constructor(message: string, status?: number, details?: unknown, requestId?: string);
7655
7572
  }
7656
7573
 
7657
- export { AGENT_BUILD_KIND_SPECS, type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentBuildArtifactSpec, type AgentBuildExecutionPacket, type AgentBuildKind, type AgentBuildKindSpec, type AgentBuildPlannerDocument, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, type AgentRun, type AgentRunCreateParams, type AgentRunEvent, type AgentRunGroup, type AgentRunGroupArtifact, type AgentRunGroupCounts, type AgentRunGroupCreateParams, type AgentRunGroupDispatchEntry, type AgentRunGroupDispatchResult, type AgentRunGroupEvent, type AgentRunGroupListParams, type AgentRunGroupStatus, type AgentRunGroupWaitOptions, AgentRunGroups, type AgentRunListParams, type AgentRunStatus, type AgentRunTargetKind, type AgentRunWaitOptions, AgentRuns, AgentRuntimeProfiles, type AgentSessionCreateParams, type AgentSessionData, type AgentSessionListResponse$1 as AgentSessionListResponse, type AgentSessionStatus$1 as AgentSessionStatus, type AllowParams, Analytics, type AnalyticsFilters, type ApiKeyCreateParams, type ApiKeyCreateResult, type ApiKeyData, type ApiKeyId, type ApiKeyListParams, ApiKeys, AppAuth, type AppAuthConfig, type AppAuthResourceType, type AppAuthSession, type AppAuthTokenPayload, type AppCatalogEntry, type AppInstallData, type AppInstallEvent, 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, 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 CreateBuildAgentRunParams, 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 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, 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 OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, type PreviewDomainData, 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 RuntimeCapabilities, RuntimeCapabilitiesResource, RuntimeEnv, type RuntimeEnvListParams, type RuntimeEnvScope, type RuntimeEnvSetParams, type RuntimeEnvTarget, type RuntimeEnvVar, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxArtifacts, 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 TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, 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, createAgentBuildOutputContract, createAgentBuildPrompt, createBuildAgentRunParams, getAgentBuildKindSpec, resolveAgentBuildKind, verifySignature };
7574
+ export { AGENT_BUILD_KIND_SPECS, type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentBuildArtifactSpec, type AgentBuildExecutionPacket, type AgentBuildKind, type AgentBuildKindSpec, type AgentBuildPlannerDocument, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, type AgentRun, type AgentRunCreateParams, type AgentRunEvent, type AgentRunGroup, type AgentRunGroupArtifact, type AgentRunGroupCounts, type AgentRunGroupCreateParams, type AgentRunGroupDispatchEntry, type AgentRunGroupDispatchResult, type AgentRunGroupEvent, type AgentRunGroupListParams, type AgentRunGroupStatus, type AgentRunGroupWaitOptions, AgentRunGroups, type AgentRunListParams, type AgentRunStatus, type AgentRunTargetKind, type AgentRunWaitOptions, AgentRuns, AgentRuntimeProfiles, type AgentSessionCreateParams, type AgentSessionData, type AgentSessionListResponse$1 as AgentSessionListResponse, type AgentSessionStatus$1 as AgentSessionStatus, type AllowParams, Analytics, type AnalyticsFilters, type ApiKeyCreateParams, type ApiKeyCreateResult, type ApiKeyData, type ApiKeyId, type ApiKeyListParams, ApiKeys, AppAuth, type AppAuthConfig, type AppAuthResourceType, type AppAuthSession, type AppAuthTokenPayload, type AppCatalogEntry, type AppInstallData, type AppInstallEvent, 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, 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 CreateBuildAgentRunParams, 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 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, 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 OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, type PreviewDomainData, 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 RuntimeCapabilities, RuntimeCapabilitiesResource, RuntimeEnv, type RuntimeEnvListParams, type RuntimeEnvScope, type RuntimeEnvSetParams, type RuntimeEnvTarget, type RuntimeEnvVar, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxArtifacts, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxConnectorAttachParams, type SandboxConnectorBinding, type SandboxConnectorPreflightParams, type SandboxConnectorPreflightResult, SandboxConnectors, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecOptions, type SandboxExecResult, 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 TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, 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 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, createAgentBuildOutputContract, createAgentBuildPrompt, createBuildAgentRunParams, getAgentBuildKindSpec, resolveAgentBuildKind, verifySignature };
package/dist/index.js CHANGED
@@ -1047,11 +1047,6 @@ var AgentRuns = class {
1047
1047
  timeout: params.timeout,
1048
1048
  wait: params.wait,
1049
1049
  env: params.env,
1050
- output_format: params.outputFormat ?? params.output_format,
1051
- resume_session_id: params.resumeSessionId ?? params.resume_session_id,
1052
- json: params.json,
1053
- output_schema: params.outputSchema ?? params.output_schema,
1054
- image: params.image,
1055
1050
  agent_runtime_profile_id: params.agentRuntimeProfileId,
1056
1051
  agent_profile_id: params.agentProfileId,
1057
1052
  agent_run_group_id: params.agentRunGroupId,
@@ -2689,18 +2684,6 @@ var Desktop = class {
2689
2684
  button
2690
2685
  });
2691
2686
  }
2692
- /** Explicit left-button click. Alias for click(x, y, "left"). */
2693
- async leftClick(x, y) {
2694
- return this.click(x, y, "left");
2695
- }
2696
- /** Right-button click. Alias for click(x, y, "right"). */
2697
- async rightClick(x, y) {
2698
- return this.click(x, y, "right");
2699
- }
2700
- /** Middle-button click. Alias for click(x, y, "middle"). */
2701
- async middleClick(x, y) {
2702
- return this.click(x, y, "middle");
2703
- }
2704
2687
  /** Double-click at the given coordinates. */
2705
2688
  async doubleClick(x, y) {
2706
2689
  const params = { x, y };
@@ -2709,28 +2692,16 @@ var Desktop = class {
2709
2692
  params
2710
2693
  );
2711
2694
  }
2712
- /** Move the mouse pointer without clicking. */
2713
- async moveMouse(x, y) {
2714
- return this.http.post(`${this.base()}/move`, { x, y });
2715
- }
2716
2695
  /** Type text into the currently focused element. */
2717
2696
  async type(text, delay) {
2718
2697
  const params = { text, ...delay !== void 0 && { delay } };
2719
2698
  return this.http.post(`${this.base()}/type`, params);
2720
2699
  }
2721
- /** Alias for `type(text)` used by simple computer-control loops. */
2722
- async write(text, delay) {
2723
- return this.type(text, delay);
2724
- }
2725
2700
  /** Send a key or key combination (e.g. "Enter", "ctrl+c"). */
2726
2701
  async key(key) {
2727
2702
  const params = { key };
2728
2703
  return this.http.post(`${this.base()}/key`, params);
2729
2704
  }
2730
- /** Alias for `key(key)` used by simple computer-control loops. */
2731
- async press(key) {
2732
- return this.key(key);
2733
- }
2734
2705
  /** Scroll in a direction at an optional position. */
2735
2706
  async scroll(direction, clicks = 3, x, y) {
2736
2707
  const params = {
@@ -4185,14 +4156,6 @@ var Computer = class _Computer {
4185
4156
  async doubleClick(x, y) {
4186
4157
  await this.desktop.doubleClick(x, y);
4187
4158
  }
4188
- /** Middle-button click. */
4189
- async middleClick(x, y) {
4190
- await this.desktop.click(x, y, "middle");
4191
- }
4192
- /** Move the pointer without clicking. */
4193
- async moveMouse(x, y) {
4194
- await this.desktop.moveMouse(x, y);
4195
- }
4196
4159
  /**
4197
4160
  * Type text into the focused element.
4198
4161
  * Shortcut for `computer.desktop.type(text)`.
@@ -4200,10 +4163,6 @@ var Computer = class _Computer {
4200
4163
  async type(text) {
4201
4164
  await this.desktop.type(text);
4202
4165
  }
4203
- /** Alias for `type(text)`. */
4204
- async write(text) {
4205
- await this.desktop.write(text);
4206
- }
4207
4166
  /**
4208
4167
  * Send a key or key combo.
4209
4168
  * Shortcut for `computer.desktop.key(key)`.
@@ -4211,10 +4170,6 @@ var Computer = class _Computer {
4211
4170
  async key(key) {
4212
4171
  await this.desktop.key(key);
4213
4172
  }
4214
- /** Alias for `key(key)`. */
4215
- async press(key) {
4216
- await this.desktop.press(key);
4217
- }
4218
4173
  /**
4219
4174
  * Scroll in a direction.
4220
4175
  * Shortcut for `computer.desktop.scroll(direction, clicks)`.
@@ -4330,17 +4285,6 @@ var Computer = class _Computer {
4330
4285
  await this.http.post(`/computers/${this.id}/stream-token`)
4331
4286
  );
4332
4287
  }
4333
- /**
4334
- * Mint a passwordless browser embed URL for authenticated platform sessions.
4335
- *
4336
- * Use this inside MIOSA or tenant apps. Raw shared desktop URLs can still use
4337
- * the viewer password flow when opened outside an authenticated platform.
4338
- */
4339
- async embed() {
4340
- return unwrapData(
4341
- await this.http.get(`/computers/${this.id}/embed`)
4342
- );
4343
- }
4344
4288
  /** Clone this computer into a new one. */
4345
4289
  async clone(opts = {}) {
4346
4290
  const body4 = Object.fromEntries(
@@ -7113,11 +7057,6 @@ var Regions = class {
7113
7057
  const data = await this.http.get("/compute/regions");
7114
7058
  return listItems10(data);
7115
7059
  }
7116
- /** Get canonical compute catalog, including product templates and readiness. */
7117
- async catalog() {
7118
- const data = await this.http.get("/compute/catalog");
7119
- return unwrap41(data);
7120
- }
7121
7060
  /** List available compute sizes. */
7122
7061
  async listSizes() {
7123
7062
  const data = await this.http.get("/compute/sizes");
@@ -7505,15 +7444,6 @@ var SandboxEvents = class {
7505
7444
  return this.sandbox.http.stream(`/sandboxes/${this.sandbox.id}/events`);
7506
7445
  }
7507
7446
  };
7508
- var SandboxMetrics = class {
7509
- constructor(sandbox) {
7510
- this.sandbox = sandbox;
7511
- }
7512
- sandbox;
7513
- get(window2 = "1h") {
7514
- return this.sandbox.metrics(window2);
7515
- }
7516
- };
7517
7447
  var SandboxPreviews = class {
7518
7448
  constructor(sandbox) {
7519
7449
  this.sandbox = sandbox;
@@ -7654,7 +7584,6 @@ var Sandbox = class _Sandbox {
7654
7584
  this.snapshots = new SandboxSnapshots(this);
7655
7585
  this.terminal = new SandboxTerminal(this);
7656
7586
  this.events = new SandboxEvents(this);
7657
- this.metricsResource = new SandboxMetrics(this);
7658
7587
  this.previews = new SandboxPreviews(this);
7659
7588
  this.env = new SandboxEnv(this);
7660
7589
  this.tags = new SandboxTags(this);
@@ -7677,8 +7606,6 @@ var Sandbox = class _Sandbox {
7677
7606
  terminal;
7678
7607
  /** SSE event stream. */
7679
7608
  events;
7680
- /** Operational metrics and current resource state. */
7681
- metricsResource;
7682
7609
  /** Preview CRUD + share/revokeShare. */
7683
7610
  previews;
7684
7611
  /** Read-only env var listing. */
@@ -7821,14 +7748,6 @@ var Sandbox = class _Sandbox {
7821
7748
  async expose(port) {
7822
7749
  return (await this.exposeInfo(port)).url;
7823
7750
  }
7824
- async getUrl(port, path = "/") {
7825
- const url = new URL((await this.exposeInfo(port)).url);
7826
- url.pathname = path.startsWith("/") ? path : `/${path}`;
7827
- return url.toString();
7828
- }
7829
- async getHost(port) {
7830
- return new URL((await this.exposeInfo(port)).url).host;
7831
- }
7832
7751
  async exposeInfo(port) {
7833
7752
  this.assertRunning("expose");
7834
7753
  const response = unwrap44(
@@ -7867,17 +7786,6 @@ var Sandbox = class _Sandbox {
7867
7786
  `/sandboxes/${this.id}/logs/stream`
7868
7787
  );
7869
7788
  }
7870
- async metrics(window2 = "1h") {
7871
- return unwrap44(
7872
- await this.http.get(
7873
- `/sandboxes/${this.id}/metrics`,
7874
- { window: window2 }
7875
- )
7876
- );
7877
- }
7878
- async getMetrics(window2 = "1h") {
7879
- return this.metrics(window2);
7880
- }
7881
7789
  async createSnapshot(comment) {
7882
7790
  this.assertRunning("snapshots.create");
7883
7791
  return unwrap44(
@@ -8961,39 +8869,6 @@ var Volumes = class {
8961
8869
  async delete(volumeId) {
8962
8870
  await this.http.delete(`/volumes/${volumeId}`);
8963
8871
  }
8964
- async listAttachments(computerId) {
8965
- const data = await this.http.get(`/computers/${computerId}/volumes`);
8966
- return listItems15(data, [
8967
- "data",
8968
- "attachments",
8969
- "volumes",
8970
- "items"
8971
- ]);
8972
- }
8973
- async attach(computerId, params) {
8974
- const volumeId = params.volumeId ?? params.volume_id;
8975
- const mountPath = params.mountPath ?? params.mount_path;
8976
- const readOnly = params.readOnly ?? params.read_only;
8977
- const body4 = stripUndefined30({
8978
- ...params,
8979
- volumeId: void 0,
8980
- mountPath: void 0,
8981
- readOnly: void 0,
8982
- volume_id: volumeId,
8983
- mount_path: mountPath,
8984
- read_only: readOnly
8985
- });
8986
- const data = await this.http.post(
8987
- `/computers/${computerId}/volumes`,
8988
- body4
8989
- );
8990
- return unwrap51(data);
8991
- }
8992
- async detach(computerId, attachmentId) {
8993
- await this.http.delete(
8994
- `/computers/${computerId}/volumes/${attachmentId}`
8995
- );
8996
- }
8997
8872
  };
8998
8873
  function unwrap52(payload) {
8999
8874
  if (payload && typeof payload === "object" && "data" in payload) {