@miosa/sdk 2.0.0 → 2.0.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 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
package/dist/index.d.ts CHANGED
@@ -923,6 +923,195 @@ declare class ApiKeys {
923
923
  delete(keyId: string): Promise<void>;
924
924
  }
925
925
 
926
+ type AppJson = null | boolean | number | string | AppJson[] | {
927
+ [key: string]: AppJson;
928
+ };
929
+ interface AppDocument {
930
+ id: string;
931
+ name: string;
932
+ format: "miosa-app/v1";
933
+ metadata?: Record<string, AppJson>;
934
+ view: {
935
+ kind: "generated";
936
+ source: string;
937
+ artifact?: {
938
+ entrypoint: string;
939
+ files: Record<string, string>;
940
+ };
941
+ } | {
942
+ kind: "served";
943
+ deploymentId: string;
944
+ releaseId: string;
945
+ };
946
+ capabilities: string[];
947
+ collections: string[];
948
+ connectors: string[];
949
+ automations: Array<{
950
+ id: string;
951
+ trigger: {
952
+ kind: "schedule";
953
+ cron: string;
954
+ } | {
955
+ kind: "event";
956
+ event: string;
957
+ };
958
+ steps: Array<{
959
+ capability: string;
960
+ input: AppJson;
961
+ }>;
962
+ }>;
963
+ pins: Array<{
964
+ slot: string;
965
+ component: string;
966
+ baseHash: string;
967
+ source: string;
968
+ editIntents: AppJson[];
969
+ }>;
970
+ bindings?: Array<{
971
+ id: string;
972
+ capability: string;
973
+ samples: AppJson[];
974
+ path: string[];
975
+ }>;
976
+ }
977
+ interface AppReleaseApproval {
978
+ id: string;
979
+ app_document_id: string;
980
+ version_hash: string;
981
+ approved_by_user_id: string | null;
982
+ reason: string | null;
983
+ compiled_requirements: Record<string, AppJson>;
984
+ deployment_id: string | null;
985
+ deployment_version_id: string | null;
986
+ release_id: string | null;
987
+ artifact_sha256: string | null;
988
+ source_snapshot_sha256: string | null;
989
+ approved_at: string;
990
+ revoked_at: string | null;
991
+ revoked_by_user_id: string | null;
992
+ }
993
+ interface AppReleaseCandidate {
994
+ deployment_id: string;
995
+ deployment_version_id: string;
996
+ release_id: string;
997
+ artifact_sha256: string;
998
+ source_snapshot_sha256: string;
999
+ }
1000
+ interface AppDocumentDiagnostics {
1001
+ ok: boolean;
1002
+ issues: Array<Record<string, AppJson>>;
1003
+ manifest: Record<string, AppJson> | null;
1004
+ }
1005
+ interface AppCollectionRecord<T extends Record<string, AppJson> = Record<string, AppJson>> {
1006
+ key: string;
1007
+ collection: string;
1008
+ value: T;
1009
+ version: number;
1010
+ inserted_at: string;
1011
+ updated_at: string;
1012
+ }
1013
+ interface AppPublication {
1014
+ deployment_id: string;
1015
+ release_id: string;
1016
+ version_hash: string;
1017
+ published_at: string;
1018
+ }
1019
+ interface AppActionDecision {
1020
+ decision: "allow" | "pending_approval" | "deny";
1021
+ receipt_id?: string;
1022
+ approval_request_id?: string;
1023
+ reason?: string;
1024
+ capability?: Record<string, AppJson>;
1025
+ }
1026
+ interface AppRuntimeToken {
1027
+ token: string;
1028
+ release_id: string;
1029
+ expires_in: number;
1030
+ }
1031
+ interface AppBindingResolution {
1032
+ binding_id: string;
1033
+ receipt_id: string;
1034
+ capability_fingerprint: string;
1035
+ value: AppJson;
1036
+ }
1037
+ interface AppAutomationRun {
1038
+ id: string;
1039
+ app_document_id: string;
1040
+ release_id: string;
1041
+ automation_id: string;
1042
+ trigger: Record<string, AppJson>;
1043
+ cursor: number;
1044
+ status: "running" | "executing" | "waiting_approval" | "completed" | "failed" | "stopped";
1045
+ current_step: Record<string, AppJson> | null;
1046
+ claim: {
1047
+ receipt_id: string;
1048
+ idempotency_key: string;
1049
+ cursor: number;
1050
+ } | null;
1051
+ pending_approval_request_id: string | null;
1052
+ history: Array<Record<string, AppJson>>;
1053
+ last_error: Record<string, AppJson> | null;
1054
+ inserted_at: string;
1055
+ updated_at: string;
1056
+ }
1057
+ interface AppDocumentRecord {
1058
+ id: string;
1059
+ tenant_id: string;
1060
+ workspace_id: string;
1061
+ created_by_user_id: string | null;
1062
+ name: string;
1063
+ document: AppDocument;
1064
+ version_hash: string;
1065
+ state: "draft" | "published" | "archived";
1066
+ version_approved: boolean;
1067
+ approval: AppReleaseApproval | null;
1068
+ publication: AppPublication | null;
1069
+ inserted_at: string;
1070
+ updated_at: string;
1071
+ }
1072
+ interface AppDocumentCreateParams {
1073
+ workspaceId: string;
1074
+ name: string;
1075
+ document: AppDocument;
1076
+ }
1077
+ interface AppDocumentUpdateParams {
1078
+ name?: string;
1079
+ document?: AppDocument;
1080
+ }
1081
+ declare class AppDocuments {
1082
+ private readonly http;
1083
+ constructor(http: HttpClient);
1084
+ list(workspaceId: string): Promise<AppDocumentRecord[]>;
1085
+ get(id: string): Promise<AppDocumentRecord>;
1086
+ create(params: AppDocumentCreateParams): Promise<AppDocumentRecord>;
1087
+ update(id: string, params: AppDocumentUpdateParams): Promise<AppDocumentRecord>;
1088
+ archive(id: string): Promise<void>;
1089
+ diagnostics(id: string): Promise<AppDocumentDiagnostics>;
1090
+ stageCandidate(id: string): Promise<AppReleaseCandidate>;
1091
+ approveExactVersion(id: string, releaseId: string, reason?: string): Promise<AppReleaseApproval>;
1092
+ publishExactRelease(id: string): Promise<AppDocumentRecord>;
1093
+ listData<T extends Record<string, AppJson> = Record<string, AppJson>>(id: string, collection: string): Promise<AppCollectionRecord<T>[]>;
1094
+ getData<T extends Record<string, AppJson> = Record<string, AppJson>>(id: string, collection: string, key: string): Promise<AppCollectionRecord<T>>;
1095
+ putData<T extends Record<string, AppJson>>(id: string, collection: string, key: string, value: T, expectedVersion?: number): Promise<AppCollectionRecord<T>>;
1096
+ deleteData(id: string, collection: string, key: string, expectedVersion?: number): Promise<void>;
1097
+ authorizeAction(id: string, input: {
1098
+ releaseId: string;
1099
+ callbackToken: string;
1100
+ capability: Record<string, AppJson>;
1101
+ requestFingerprint: string;
1102
+ paramsFingerprint: string;
1103
+ connectorId?: string;
1104
+ }): Promise<AppActionDecision>;
1105
+ mintRuntimeToken(id: string): Promise<AppRuntimeToken>;
1106
+ resolveBinding(id: string, bindingId: string, receiptId: string, callbackToken: string): Promise<AppBindingResolution>;
1107
+ listAutomationRuns(id: string): Promise<AppAutomationRun[]>;
1108
+ startAutomationRun(id: string, automationId: string, trigger?: Record<string, AppJson>): Promise<AppAutomationRun>;
1109
+ claimAutomationStep(id: string, runId: string): Promise<AppAutomationRun>;
1110
+ completeAutomationStep(id: string, runId: string, cursor: number, idempotencyKey: string, output?: AppJson): Promise<AppAutomationRun>;
1111
+ failAutomationStep(id: string, runId: string, cursor: number, idempotencyKey: string, reason: string): Promise<AppAutomationRun>;
1112
+ revokeApproval(id: string, approvalId: string): Promise<void>;
1113
+ }
1114
+
926
1115
  /**
927
1116
  * Audit log — admin-scoped event history.
928
1117
  */
@@ -3897,6 +4086,7 @@ type DatabaseId = string & {
3897
4086
  interface DatabaseData {
3898
4087
  id: DatabaseId;
3899
4088
  tenant_id: string;
4089
+ environment_id?: string | null;
3900
4090
  name: string;
3901
4091
  state?: string;
3902
4092
  engine?: string;
@@ -3948,6 +4138,9 @@ interface DatabaseCreateParams {
3948
4138
  /** @deprecated use cpu_count/memory_mb/storage_mb. */
3949
4139
  size?: string;
3950
4140
  region?: string;
4141
+ workspace_id?: string;
4142
+ project_id?: string;
4143
+ environment_id?: string;
3951
4144
  idempotencyKey?: string;
3952
4145
  idempotency_key?: string;
3953
4146
  [key: string]: unknown;
@@ -4117,6 +4310,8 @@ interface DeploymentData {
4117
4310
  runtime_image?: string | null;
4118
4311
  current_build_id?: string | null;
4119
4312
  active_version_id?: string | null;
4313
+ active_release_id?: string | null;
4314
+ running_artifact_sha256?: string | null;
4120
4315
  source_type?: DeploymentSourceType;
4121
4316
  state: DeploymentState;
4122
4317
  auto_deploy?: boolean;
@@ -4187,6 +4382,16 @@ interface DeploymentVersionData {
4187
4382
  created_at?: string;
4188
4383
  updated_at?: string;
4189
4384
  }
4385
+ interface MigrationBackupData {
4386
+ id: string;
4387
+ database_id: string;
4388
+ state: string;
4389
+ backup_type?: string;
4390
+ size_bytes?: number | null;
4391
+ started_at?: string | null;
4392
+ completed_at?: string | null;
4393
+ created_at?: string | null;
4394
+ }
4190
4395
  interface DeploymentReleaseData {
4191
4396
  id: DeploymentReleaseId;
4192
4397
  deployment_id?: DeploymentId;
@@ -4458,6 +4663,10 @@ declare class DeploymentVersions {
4458
4663
  environment?: string;
4459
4664
  idempotencyKey?: string;
4460
4665
  }): Promise<DeploymentData>;
4666
+ prepareMigrationBackup(versionId: string): Promise<{
4667
+ backup: MigrationBackupData;
4668
+ version: DeploymentVersionData;
4669
+ }>;
4461
4670
  }
4462
4671
  declare class DeploymentReleases {
4463
4672
  private readonly http;
@@ -4465,6 +4674,7 @@ declare class DeploymentReleases {
4465
4674
  constructor(http: HttpClient, deploymentId: string);
4466
4675
  list(): Promise<DeploymentReleaseData[]>;
4467
4676
  get(releaseId: string): Promise<DeploymentReleaseData>;
4677
+ promote(releaseId: string, idempotencyKey?: string): Promise<DeploymentData>;
4468
4678
  }
4469
4679
  declare class DeploymentRuntimeInstances {
4470
4680
  private readonly http;
@@ -6259,6 +6469,18 @@ interface SandboxCreateParams {
6259
6469
  agent_profile_id?: string;
6260
6470
  skipRuntimeProfile?: boolean;
6261
6471
  skip_agent_runtime_profile?: boolean;
6472
+ workspaceId?: string;
6473
+ workspace_id?: string;
6474
+ workspaceSlug?: string;
6475
+ workspace_slug?: string;
6476
+ workspaceName?: string;
6477
+ workspace_name?: string;
6478
+ projectId?: string;
6479
+ project_id?: string;
6480
+ projectSlug?: string;
6481
+ project_slug?: string;
6482
+ projectName?: string;
6483
+ project_name?: string;
6262
6484
  externalWorkspaceId?: string;
6263
6485
  external_workspace_id?: string;
6264
6486
  externalUserId?: string;
@@ -6382,6 +6604,8 @@ interface SandboxUsage {
6382
6604
  state: string;
6383
6605
  runtime_sec: number;
6384
6606
  provisioned_vcpu_ms: number;
6607
+ provisioned_memory_mb_ms: number | null;
6608
+ creation_count: number;
6385
6609
  active_cpu_ms: number | null;
6386
6610
  network_ingress_bytes: number | null;
6387
6611
  network_egress_bytes: number | null;
@@ -7917,6 +8141,8 @@ declare class Miosa {
7917
8141
  readonly projectIntegrations: ProjectIntegrations;
7918
8142
  /** Built-in auth for generated apps inside sandboxes/deployments. */
7919
8143
  readonly projectAuth: ProjectAuth;
8144
+ /** Durable generated App Documents, exact-version reviews, and publication bindings. */
8145
+ readonly appDocuments: AppDocuments;
7920
8146
  /** BYOK encrypted per-user provider keys. */
7921
8147
  readonly externalKeys: ExternalKeys;
7922
8148
  /** Model Context Protocol — JSON-RPC dispatch + streaming channel. */
@@ -8295,4 +8521,4 @@ declare class TokenRefreshFailedError extends MiosaError {
8295
8521
  constructor(message: string, status?: number, details?: unknown, requestId?: string);
8296
8522
  }
8297
8523
 
8298
- 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 };
8524
+ 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, 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 };