@miosa/sdk 2.0.1 → 2.0.5

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 CHANGED
@@ -55,6 +55,7 @@ await sbx.pause();
55
55
  | `miosa.sandboxes` | Lightweight code-execution VMs — exec, files, snapshots, previews |
56
56
  | `miosa.computers` | Full Linux desktop VMs with desktop control for agents |
57
57
  | `miosa.deployments` | Versioned production releases with rollback |
58
+ | `miosa.appDocuments` | Durable generated apps with exact-version review approvals and immutable publication bindings |
58
59
  | `miosa.databases` | Managed Postgres / Redis lifecycle |
59
60
  | `miosa.storage` | S3-compatible object storage |
60
61
  | `miosa.volumes` | Persistent block storage |
@@ -69,6 +70,38 @@ await sbx.pause();
69
70
  | `miosa.completions` | OpenAI-compatible chat completions with SSE streaming |
70
71
  | `miosa.embeddings` | OpenAI-compatible embedding vectors |
71
72
 
73
+ ## Durable generated apps
74
+
75
+ App Documents persist the generated app contract outside the browser.
76
+ They are workspace-scoped and include the view, declared capabilities, connectors, collections, automations, and component pins.
77
+ Native rendering authority is a separate approval pinned to the current canonical version hash.
78
+ Editing the document changes the hash and invalidates the old approval.
79
+
80
+ ```ts
81
+ const app = await miosa.appDocuments.create({
82
+ workspaceId: "workspace-id",
83
+ name: "Clinic triage",
84
+ document: {
85
+ id: crypto.randomUUID(),
86
+ name: "Clinic triage",
87
+ format: "miosa-app/v1",
88
+ view: { kind: "generated", source: "<main>Triage</main>" },
89
+ capabilities: ["computer.exec"],
90
+ collections: ["tickets"],
91
+ connectors: ["linear"],
92
+ automations: [],
93
+ pins: [],
94
+ },
95
+ });
96
+
97
+ const approval = await miosa.appDocuments.approveExactVersion(
98
+ app.id,
99
+ "Reviewed for exact release publishing",
100
+ );
101
+
102
+ await miosa.appDocuments.revokeApproval(app.id, approval.id);
103
+ ```
104
+
72
105
  ## Connect vs Egress
73
106
 
74
107
  Use **Connect** when your product needs to manage provider credentials for
@@ -258,6 +291,30 @@ const deployment = await sbx.deploy({
258
291
  });
259
292
  ```
260
293
 
294
+ To publish the exact snapshot that passed QA instead of whatever the editable
295
+ sandbox holds right now, use `deploySnapshot`. It forks the snapshot into a
296
+ temporary release sandbox, deploys that fork, and destroys it again, so the
297
+ source sandbox is never mutated:
298
+
299
+ ```ts
300
+ const snap = await sbx.snapshots.create("qa-approved");
301
+
302
+ const release = await sbx.deploySnapshot(snap.id, {
303
+ name: "clinic-intake",
304
+ outputPath: "/workspace/dist",
305
+ entrypoint: "index.html",
306
+ });
307
+
308
+ console.log(release.source_snapshot_id, release.release_sandbox_id);
309
+ ```
310
+
311
+ The result always carries `source_snapshot_id` and `release_sandbox_id` for
312
+ provenance. Pass `{ cleanup: false }` as the third argument to keep the release
313
+ sandbox for inspection. If the release sandbox could not be destroyed, the
314
+ deployment still succeeds and `release.release_cleanup_error` explains why; when
315
+ the deploy itself fails and the release sandbox survives, the thrown error
316
+ carries the same fields so the leftover sandbox can be cleaned up by id.
317
+
261
318
  For workspace App Engine, publish from the same sandbox but choose the
262
319
  App Engine target:
263
320
 
package/dist/index.d.ts CHANGED
@@ -443,6 +443,9 @@ type RunTargetKind = "sandbox" | "computer";
443
443
  type RunStatus = "running" | "succeeded" | "failed" | "canceled";
444
444
  interface Run {
445
445
  id: string;
446
+ agent_definition_id?: string | null;
447
+ agent_version_id?: string | null;
448
+ configuration_receipt?: Record<string, unknown> | null;
446
449
  run_group_id?: string;
447
450
  parent_run_id?: string;
448
451
  orchestration_role?: string;
@@ -603,6 +606,9 @@ interface RunCreateParams {
603
606
  env?: Record<string, string>;
604
607
  agentRuntimeProfileId?: string;
605
608
  agentProfileId?: string;
609
+ agentDefinitionId?: string;
610
+ agentVersionId?: string;
611
+ configurationReceipt?: Record<string, unknown>;
606
612
  runGroupId?: string;
607
613
  parentRunId?: string;
608
614
  orchestrationRole?: string;
@@ -850,6 +856,62 @@ declare class AgentRuntimeProfiles {
850
856
  delete(id: string): Promise<void>;
851
857
  }
852
858
 
859
+ interface AgentVersionData {
860
+ id: string;
861
+ agent_definition_id: string;
862
+ version: number;
863
+ fingerprint: string;
864
+ configuration: Record<string, unknown>;
865
+ published_by_user_id?: string | null;
866
+ published_at: string;
867
+ }
868
+ interface AgentDefinitionData {
869
+ id: string;
870
+ tenant_id: string;
871
+ workspace_id: string;
872
+ project_id?: string | null;
873
+ name: string;
874
+ description?: string | null;
875
+ status: "active" | "archived" | string;
876
+ metadata: Record<string, unknown>;
877
+ latest_version: AgentVersionData;
878
+ versions?: AgentVersionData[];
879
+ created_at: string;
880
+ updated_at: string;
881
+ }
882
+ interface AgentDefinitionListParams {
883
+ workspaceId?: string;
884
+ workspace_id?: string;
885
+ projectId?: string;
886
+ project_id?: string;
887
+ status?: "active" | "archived" | "all" | string;
888
+ }
889
+ interface AgentDefinitionCreateParams {
890
+ workspaceId?: string;
891
+ workspace_id?: string;
892
+ projectId?: string;
893
+ project_id?: string;
894
+ name: string;
895
+ description?: string;
896
+ metadata?: Record<string, unknown>;
897
+ configuration: Record<string, unknown>;
898
+ }
899
+ interface AgentDefinitionUpdateParams {
900
+ name?: string;
901
+ description?: string;
902
+ metadata?: Record<string, unknown>;
903
+ }
904
+ declare class AgentDefinitions {
905
+ private readonly http;
906
+ constructor(http: HttpClient);
907
+ list(params?: AgentDefinitionListParams): Promise<AgentDefinitionData[]>;
908
+ get(id: string): Promise<AgentDefinitionData>;
909
+ create(params: AgentDefinitionCreateParams): Promise<AgentDefinitionData>;
910
+ update(id: string, params: AgentDefinitionUpdateParams): Promise<AgentDefinitionData>;
911
+ publish(id: string, configuration: Record<string, unknown>): Promise<AgentVersionData>;
912
+ archive(id: string): Promise<void>;
913
+ }
914
+
853
915
  /**
854
916
  * Analytics — overview + timeseries (admin scope).
855
917
  */
@@ -923,6 +985,195 @@ declare class ApiKeys {
923
985
  delete(keyId: string): Promise<void>;
924
986
  }
925
987
 
988
+ type AppJson = null | boolean | number | string | AppJson[] | {
989
+ [key: string]: AppJson;
990
+ };
991
+ interface AppDocument {
992
+ id: string;
993
+ name: string;
994
+ format: "miosa-app/v1";
995
+ metadata?: Record<string, AppJson>;
996
+ view: {
997
+ kind: "generated";
998
+ source: string;
999
+ artifact?: {
1000
+ entrypoint: string;
1001
+ files: Record<string, string>;
1002
+ };
1003
+ } | {
1004
+ kind: "served";
1005
+ deploymentId: string;
1006
+ releaseId: string;
1007
+ };
1008
+ capabilities: string[];
1009
+ collections: string[];
1010
+ connectors: string[];
1011
+ automations: Array<{
1012
+ id: string;
1013
+ trigger: {
1014
+ kind: "schedule";
1015
+ cron: string;
1016
+ } | {
1017
+ kind: "event";
1018
+ event: string;
1019
+ };
1020
+ steps: Array<{
1021
+ capability: string;
1022
+ input: AppJson;
1023
+ }>;
1024
+ }>;
1025
+ pins: Array<{
1026
+ slot: string;
1027
+ component: string;
1028
+ baseHash: string;
1029
+ source: string;
1030
+ editIntents: AppJson[];
1031
+ }>;
1032
+ bindings?: Array<{
1033
+ id: string;
1034
+ capability: string;
1035
+ samples: AppJson[];
1036
+ path: string[];
1037
+ }>;
1038
+ }
1039
+ interface AppReleaseApproval {
1040
+ id: string;
1041
+ app_document_id: string;
1042
+ version_hash: string;
1043
+ approved_by_user_id: string | null;
1044
+ reason: string | null;
1045
+ compiled_requirements: Record<string, AppJson>;
1046
+ deployment_id: string | null;
1047
+ deployment_version_id: string | null;
1048
+ release_id: string | null;
1049
+ artifact_sha256: string | null;
1050
+ source_snapshot_sha256: string | null;
1051
+ approved_at: string;
1052
+ revoked_at: string | null;
1053
+ revoked_by_user_id: string | null;
1054
+ }
1055
+ interface AppReleaseCandidate {
1056
+ deployment_id: string;
1057
+ deployment_version_id: string;
1058
+ release_id: string;
1059
+ artifact_sha256: string;
1060
+ source_snapshot_sha256: string;
1061
+ }
1062
+ interface AppDocumentDiagnostics {
1063
+ ok: boolean;
1064
+ issues: Array<Record<string, AppJson>>;
1065
+ manifest: Record<string, AppJson> | null;
1066
+ }
1067
+ interface AppCollectionRecord<T extends Record<string, AppJson> = Record<string, AppJson>> {
1068
+ key: string;
1069
+ collection: string;
1070
+ value: T;
1071
+ version: number;
1072
+ inserted_at: string;
1073
+ updated_at: string;
1074
+ }
1075
+ interface AppPublication {
1076
+ deployment_id: string;
1077
+ release_id: string;
1078
+ version_hash: string;
1079
+ published_at: string;
1080
+ }
1081
+ interface AppActionDecision {
1082
+ decision: "allow" | "pending_approval" | "deny";
1083
+ receipt_id?: string;
1084
+ approval_request_id?: string;
1085
+ reason?: string;
1086
+ capability?: Record<string, AppJson>;
1087
+ }
1088
+ interface AppRuntimeToken {
1089
+ token: string;
1090
+ release_id: string;
1091
+ expires_in: number;
1092
+ }
1093
+ interface AppBindingResolution {
1094
+ binding_id: string;
1095
+ receipt_id: string;
1096
+ capability_fingerprint: string;
1097
+ value: AppJson;
1098
+ }
1099
+ interface AppAutomationRun {
1100
+ id: string;
1101
+ app_document_id: string;
1102
+ release_id: string;
1103
+ automation_id: string;
1104
+ trigger: Record<string, AppJson>;
1105
+ cursor: number;
1106
+ status: "running" | "executing" | "waiting_approval" | "completed" | "failed" | "stopped";
1107
+ current_step: Record<string, AppJson> | null;
1108
+ claim: {
1109
+ receipt_id: string;
1110
+ idempotency_key: string;
1111
+ cursor: number;
1112
+ } | null;
1113
+ pending_approval_request_id: string | null;
1114
+ history: Array<Record<string, AppJson>>;
1115
+ last_error: Record<string, AppJson> | null;
1116
+ inserted_at: string;
1117
+ updated_at: string;
1118
+ }
1119
+ interface AppDocumentRecord {
1120
+ id: string;
1121
+ tenant_id: string;
1122
+ workspace_id: string;
1123
+ created_by_user_id: string | null;
1124
+ name: string;
1125
+ document: AppDocument;
1126
+ version_hash: string;
1127
+ state: "draft" | "published" | "archived";
1128
+ version_approved: boolean;
1129
+ approval: AppReleaseApproval | null;
1130
+ publication: AppPublication | null;
1131
+ inserted_at: string;
1132
+ updated_at: string;
1133
+ }
1134
+ interface AppDocumentCreateParams {
1135
+ workspaceId: string;
1136
+ name: string;
1137
+ document: AppDocument;
1138
+ }
1139
+ interface AppDocumentUpdateParams {
1140
+ name?: string;
1141
+ document?: AppDocument;
1142
+ }
1143
+ declare class AppDocuments {
1144
+ private readonly http;
1145
+ constructor(http: HttpClient);
1146
+ list(workspaceId: string): Promise<AppDocumentRecord[]>;
1147
+ get(id: string): Promise<AppDocumentRecord>;
1148
+ create(params: AppDocumentCreateParams): Promise<AppDocumentRecord>;
1149
+ update(id: string, params: AppDocumentUpdateParams): Promise<AppDocumentRecord>;
1150
+ archive(id: string): Promise<void>;
1151
+ diagnostics(id: string): Promise<AppDocumentDiagnostics>;
1152
+ stageCandidate(id: string): Promise<AppReleaseCandidate>;
1153
+ approveExactVersion(id: string, releaseId: string, reason?: string): Promise<AppReleaseApproval>;
1154
+ publishExactRelease(id: string): Promise<AppDocumentRecord>;
1155
+ listData<T extends Record<string, AppJson> = Record<string, AppJson>>(id: string, collection: string): Promise<AppCollectionRecord<T>[]>;
1156
+ getData<T extends Record<string, AppJson> = Record<string, AppJson>>(id: string, collection: string, key: string): Promise<AppCollectionRecord<T>>;
1157
+ putData<T extends Record<string, AppJson>>(id: string, collection: string, key: string, value: T, expectedVersion?: number): Promise<AppCollectionRecord<T>>;
1158
+ deleteData(id: string, collection: string, key: string, expectedVersion?: number): Promise<void>;
1159
+ authorizeAction(id: string, input: {
1160
+ releaseId: string;
1161
+ callbackToken: string;
1162
+ capability: Record<string, AppJson>;
1163
+ requestFingerprint: string;
1164
+ paramsFingerprint: string;
1165
+ connectorId?: string;
1166
+ }): Promise<AppActionDecision>;
1167
+ mintRuntimeToken(id: string): Promise<AppRuntimeToken>;
1168
+ resolveBinding(id: string, bindingId: string, receiptId: string, callbackToken: string): Promise<AppBindingResolution>;
1169
+ listAutomationRuns(id: string): Promise<AppAutomationRun[]>;
1170
+ startAutomationRun(id: string, automationId: string, trigger?: Record<string, AppJson>): Promise<AppAutomationRun>;
1171
+ claimAutomationStep(id: string, runId: string): Promise<AppAutomationRun>;
1172
+ completeAutomationStep(id: string, runId: string, cursor: number, idempotencyKey: string, output?: AppJson): Promise<AppAutomationRun>;
1173
+ failAutomationStep(id: string, runId: string, cursor: number, idempotencyKey: string, reason: string): Promise<AppAutomationRun>;
1174
+ revokeApproval(id: string, approvalId: string): Promise<void>;
1175
+ }
1176
+
926
1177
  /**
927
1178
  * Audit log — admin-scoped event history.
928
1179
  */
@@ -6280,6 +6531,18 @@ interface SandboxCreateParams {
6280
6531
  agent_profile_id?: string;
6281
6532
  skipRuntimeProfile?: boolean;
6282
6533
  skip_agent_runtime_profile?: boolean;
6534
+ workspaceId?: string;
6535
+ workspace_id?: string;
6536
+ workspaceSlug?: string;
6537
+ workspace_slug?: string;
6538
+ workspaceName?: string;
6539
+ workspace_name?: string;
6540
+ projectId?: string;
6541
+ project_id?: string;
6542
+ projectSlug?: string;
6543
+ project_slug?: string;
6544
+ projectName?: string;
6545
+ project_name?: string;
6283
6546
  externalWorkspaceId?: string;
6284
6547
  external_workspace_id?: string;
6285
6548
  externalUserId?: string;
@@ -6403,6 +6666,8 @@ interface SandboxUsage {
6403
6666
  state: string;
6404
6667
  runtime_sec: number;
6405
6668
  provisioned_vcpu_ms: number;
6669
+ provisioned_memory_mb_ms: number | null;
6670
+ creation_count: number;
6406
6671
  active_cpu_ms: number | null;
6407
6672
  network_ingress_bytes: number | null;
6408
6673
  network_egress_bytes: number | null;
@@ -6416,6 +6681,8 @@ interface SandboxUsage {
6416
6681
  timeout_remaining_ms: number | null;
6417
6682
  }
6418
6683
  interface SandboxForkParams {
6684
+ snapshotId?: string;
6685
+ snapshot_id?: string;
6419
6686
  timeoutSec?: number;
6420
6687
  timeout_sec?: number;
6421
6688
  templateId?: string;
@@ -6854,6 +7121,11 @@ declare class Sandbox {
6854
7121
  resume(idempotencyKey?: string): Promise<Sandbox>;
6855
7122
  deploy(params?: SandboxDeployParams): Promise<Record<string, unknown>>;
6856
7123
  deployDocker(params?: SandboxDeployParams): Promise<Record<string, unknown>>;
7124
+ /** Deploy an immutable snapshot without modifying the editable sandbox. */
7125
+ deploySnapshot(snapshotId: string, params?: SandboxDeployParams, options?: {
7126
+ cleanup?: boolean;
7127
+ forkIdempotencyKey?: string;
7128
+ }): Promise<Record<string, unknown>>;
6857
7129
  /** Check readiness of the sandbox (GET /sandboxes/:id/readiness). */
6858
7130
  readiness(): Promise<Record<string, unknown>>;
6859
7131
  /**
@@ -7938,6 +8210,8 @@ declare class Miosa {
7938
8210
  readonly projectIntegrations: ProjectIntegrations;
7939
8211
  /** Built-in auth for generated apps inside sandboxes/deployments. */
7940
8212
  readonly projectAuth: ProjectAuth;
8213
+ /** Durable generated App Documents, exact-version reviews, and publication bindings. */
8214
+ readonly appDocuments: AppDocuments;
7941
8215
  /** BYOK encrypted per-user provider keys. */
7942
8216
  readonly externalKeys: ExternalKeys;
7943
8217
  /** Model Context Protocol — JSON-RPC dispatch + streaming channel. */
@@ -7952,6 +8226,8 @@ declare class Miosa {
7952
8226
  readonly agentRunGroups: AgentRunGroups;
7953
8227
  /** Agent runtime profiles — tenant/workspace defaults for sandbox/computer agents. */
7954
8228
  readonly agentRuntimeProfiles: AgentRuntimeProfiles;
8229
+ /** Persisted workspace Agent definitions and immutable versions. */
8230
+ readonly agents: AgentDefinitions;
7955
8231
  /** MIOSA Connect — provider connectors and runtime tokens. */
7956
8232
  readonly connectors: Connectors;
7957
8233
  /** Inherited runtime env — tenant/workspace/project defaults for agent runtimes. */
@@ -8316,4 +8592,4 @@ declare class TokenRefreshFailedError extends MiosaError {
8316
8592
  constructor(message: string, status?: number, details?: unknown, requestId?: string);
8317
8593
  }
8318
8594
 
8319
- 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 AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, 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, 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, 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 };
8595
+ 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, 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 };