@miosa/sdk 1.2.27 → 2.0.0

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
@@ -16,6 +16,7 @@ interface RequestOptions {
16
16
  interface HttpClientConfig {
17
17
  baseUrl: string;
18
18
  apiKey: string;
19
+ tenant?: string;
19
20
  timeout: number;
20
21
  maxRetries: number;
21
22
  }
@@ -24,6 +25,7 @@ declare class HttpClient {
24
25
  readonly baseUrl: string;
25
26
  /** Public for WebSocket clients that need to send the same auth. */
26
27
  readonly apiKey: string;
28
+ readonly tenant: string | undefined;
27
29
  private readonly timeout;
28
30
  private readonly maxRetries;
29
31
  constructor(config: HttpClientConfig);
@@ -437,6 +439,345 @@ declare class AgentRunGroups {
437
439
  waitForCompletion(id: string, options?: AgentRunGroupWaitOptions): Promise<AgentRunGroup>;
438
440
  }
439
441
 
442
+ type RunTargetKind = "sandbox" | "computer";
443
+ type RunStatus = "running" | "succeeded" | "failed" | "canceled";
444
+ interface Run {
445
+ id: string;
446
+ run_group_id?: string;
447
+ parent_run_id?: string;
448
+ orchestration_role?: string;
449
+ external_workspace_id?: string | null;
450
+ external_user_id?: string | null;
451
+ external_project_id?: string | null;
452
+ target_kind: RunTargetKind;
453
+ target_id: string;
454
+ runner: string;
455
+ provider?: string | null;
456
+ model?: string | null;
457
+ instruction: string;
458
+ status: RunStatus;
459
+ metadata?: Record<string, unknown>;
460
+ started_at?: string;
461
+ finished_at?: string;
462
+ created_at?: string;
463
+ updated_at?: string;
464
+ [key: string]: unknown;
465
+ }
466
+ interface RunFile {
467
+ id: string;
468
+ run_id?: string;
469
+ target_kind?: RunTargetKind;
470
+ target_id?: string;
471
+ path: string;
472
+ kind?: string;
473
+ mime_type?: string;
474
+ size_bytes?: number;
475
+ sha256?: string;
476
+ status?: string;
477
+ persisted?: boolean;
478
+ storage_backend?: string | null;
479
+ persisted_at?: string | null;
480
+ created_at?: string;
481
+ updated_at?: string;
482
+ [key: string]: unknown;
483
+ name?: string | null;
484
+ download_url?: string | null;
485
+ signed_download_url?: string | null;
486
+ }
487
+ interface RunMessage {
488
+ id?: string;
489
+ role?: string;
490
+ type?: string;
491
+ text?: string;
492
+ content?: string;
493
+ created_at?: string | null;
494
+ [key: string]: unknown;
495
+ }
496
+ interface RunCommandOutput {
497
+ stdout?: string | null;
498
+ stderr?: string | null;
499
+ exit_code?: number | null;
500
+ }
501
+ interface RunDownload {
502
+ id?: string;
503
+ file_id: string;
504
+ name?: string | null;
505
+ path?: string;
506
+ url: string;
507
+ mime_type?: string | null;
508
+ size_bytes?: number | null;
509
+ status?: string;
510
+ [key: string]: unknown;
511
+ }
512
+ interface RunPreview {
513
+ id: string;
514
+ run_id?: string;
515
+ file_id?: string;
516
+ type: string;
517
+ title?: string | null;
518
+ path?: string | null;
519
+ url?: string | null;
520
+ mime_type?: string | null;
521
+ status?: string;
522
+ metadata?: Record<string, unknown>;
523
+ [key: string]: unknown;
524
+ }
525
+ interface RunDiagnostic {
526
+ id: string;
527
+ run_id?: string;
528
+ code: string;
529
+ message?: string | null;
530
+ retryable?: boolean;
531
+ [key: string]: unknown;
532
+ }
533
+ interface RunOutputs {
534
+ run_id: string;
535
+ task_run_id?: string;
536
+ status: RunStatus;
537
+ result?: Record<string, unknown> | null;
538
+ message?: string | null;
539
+ messages: RunMessage[];
540
+ command_output: RunCommandOutput;
541
+ activity: RunActivity[];
542
+ files: RunFile[];
543
+ downloads: RunDownload[];
544
+ previews: RunPreview[];
545
+ diagnostics: RunDiagnostic[];
546
+ [key: string]: unknown;
547
+ }
548
+ interface RunActivity {
549
+ id: string;
550
+ run_id?: string;
551
+ sequence?: number;
552
+ type: string;
553
+ message?: string | null;
554
+ payload?: Record<string, unknown>;
555
+ created_at?: string | null;
556
+ [key: string]: unknown;
557
+ }
558
+ interface RunExecutionPacket {
559
+ goal?: string;
560
+ context?: Record<string, unknown>;
561
+ plan?: unknown;
562
+ constraints?: unknown;
563
+ acceptance_criteria?: unknown;
564
+ [key: string]: unknown;
565
+ }
566
+ interface RunExpectedFile {
567
+ path: string;
568
+ name?: string;
569
+ kind?: string;
570
+ mime_type?: string;
571
+ preview?: boolean;
572
+ [key: string]: unknown;
573
+ }
574
+ interface RunExpectedOutputs {
575
+ messages?: boolean;
576
+ files?: Array<string | RunExpectedFile>;
577
+ previews?: boolean | unknown[];
578
+ [key: string]: unknown;
579
+ }
580
+ interface RunApprovalPolicy {
581
+ publish?: "manual" | "automatic" | string;
582
+ external_write?: "manual" | "automatic" | string;
583
+ destructive_actions?: "forbidden" | "manual" | "automatic" | string;
584
+ [key: string]: unknown;
585
+ }
586
+ interface RunCreateParams {
587
+ instruction?: string;
588
+ targetKind?: RunTargetKind;
589
+ targetId?: string;
590
+ runtimeId?: string;
591
+ sandboxId?: string;
592
+ /** Shortcut for a computer-backed run. */
593
+ computerId?: string;
594
+ /** Optional model/vendor configuration, not the runner selector. */
595
+ provider?: string;
596
+ runner?: string;
597
+ model?: string;
598
+ command?: string;
599
+ runtimeCommand?: string;
600
+ cwd?: string;
601
+ timeout?: number;
602
+ wait?: boolean;
603
+ env?: Record<string, string>;
604
+ agentRuntimeProfileId?: string;
605
+ agentProfileId?: string;
606
+ runGroupId?: string;
607
+ parentRunId?: string;
608
+ orchestrationRole?: string;
609
+ externalWorkspaceId?: string;
610
+ external_workspace_id?: string;
611
+ externalUserId?: string;
612
+ external_user_id?: string;
613
+ externalProjectId?: string;
614
+ external_project_id?: string;
615
+ skipRuntimeProfile?: boolean;
616
+ executionPacket?: RunExecutionPacket;
617
+ expectedOutputs?: RunExpectedOutputs;
618
+ approvalPolicy?: RunApprovalPolicy;
619
+ capabilityRequirements?: string[];
620
+ metadata?: Record<string, unknown>;
621
+ }
622
+ interface RunListParams {
623
+ targetKind?: RunTargetKind;
624
+ targetId?: string;
625
+ runtimeId?: string;
626
+ sandboxId?: string;
627
+ computerId?: string;
628
+ runGroupId?: string;
629
+ externalWorkspaceId?: string;
630
+ external_workspace_id?: string;
631
+ externalUserId?: string;
632
+ external_user_id?: string;
633
+ externalProjectId?: string;
634
+ external_project_id?: string;
635
+ status?: RunStatus | string;
636
+ }
637
+ interface RunWaitOptions {
638
+ timeoutMs?: number;
639
+ pollIntervalMs?: number;
640
+ terminalStatuses?: string[];
641
+ }
642
+ declare class Runs {
643
+ private readonly http;
644
+ constructor(http: HttpClient);
645
+ list(params?: RunListParams): Promise<Run[]>;
646
+ get(id: string): Promise<Run>;
647
+ outputs(id: string): Promise<RunOutputs>;
648
+ files(id: string): Promise<RunFile[]>;
649
+ downloadFile(id: string, fileId: string, options?: {
650
+ inline?: boolean;
651
+ }): Promise<Uint8Array>;
652
+ messages(id: string): Promise<RunMessage[]>;
653
+ commandOutput(id: string): Promise<RunCommandOutput>;
654
+ activity(id: string): Promise<RunActivity[]>;
655
+ previews(id: string): Promise<RunPreview[]>;
656
+ diagnostics(id: string): Promise<RunDiagnostic[]>;
657
+ streamActivity(id: string): AsyncIterableIterator<RunActivity>;
658
+ waitForCompletion(id: string, options?: RunWaitOptions): Promise<Run>;
659
+ run(params: RunCreateParams): Promise<Run>;
660
+ cancel(id: string): Promise<Run>;
661
+ }
662
+
663
+ type RunGroupStatus = "running" | "succeeded" | "failed" | "canceled";
664
+ interface RunGroupCounts {
665
+ total: number;
666
+ running: number;
667
+ succeeded: number;
668
+ failed: number;
669
+ canceled: number;
670
+ }
671
+ interface RunGroupEntryCounts extends RunGroupCounts {
672
+ queued: number;
673
+ }
674
+ type RunGroupEntryStatus = "queued" | "running" | "succeeded" | "failed" | "canceled";
675
+ interface RunGroupEntry {
676
+ id: string;
677
+ run_group_id: string;
678
+ run_id?: string;
679
+ index: number;
680
+ status: RunGroupEntryStatus;
681
+ attempts?: number;
682
+ error?: Record<string, unknown>;
683
+ queued_at?: string;
684
+ claimed_at?: string;
685
+ finished_at?: string;
686
+ updated_at?: string;
687
+ }
688
+ interface RunGroup {
689
+ id: string;
690
+ tenant_id?: string;
691
+ user_id?: string;
692
+ workspace_id?: string;
693
+ project_id?: string;
694
+ name: string;
695
+ description?: string;
696
+ status: RunGroupStatus;
697
+ concurrency_limit?: number;
698
+ expected_runs?: number;
699
+ counts?: RunGroupCounts;
700
+ entry_counts?: RunGroupEntryCounts;
701
+ metadata?: Record<string, unknown>;
702
+ started_at?: string;
703
+ finished_at?: string;
704
+ created_at?: string;
705
+ updated_at?: string;
706
+ runs?: Run[];
707
+ [key: string]: unknown;
708
+ }
709
+ interface RunGroupCreateParams {
710
+ name: string;
711
+ description?: string;
712
+ workspaceId?: string;
713
+ projectId?: string;
714
+ concurrencyLimit?: number;
715
+ expectedRuns?: number;
716
+ metadata?: Record<string, unknown>;
717
+ }
718
+ interface RunGroupListParams {
719
+ workspaceId?: string;
720
+ projectId?: string;
721
+ status?: RunGroupStatus | string;
722
+ limit?: number;
723
+ }
724
+ type RunGroupDispatchEntry = RunCreateParams & {
725
+ targetId?: string;
726
+ sandboxId?: string;
727
+ computerId?: string;
728
+ };
729
+ interface RunGroupDispatchResult {
730
+ group: RunGroup;
731
+ results?: Array<{
732
+ index: number;
733
+ ok: true;
734
+ run: Run;
735
+ } | {
736
+ index: number;
737
+ ok: false;
738
+ error: Record<string, unknown>;
739
+ }>;
740
+ entries?: RunGroupEntry[];
741
+ }
742
+ interface RunGroupDispatchOptions {
743
+ async?: boolean;
744
+ }
745
+ interface RunGroupWaitOptions {
746
+ timeoutMs?: number;
747
+ pollIntervalMs?: number;
748
+ terminalStatuses?: string[];
749
+ includeRuns?: boolean;
750
+ }
751
+ interface RunGroupActivity {
752
+ id: string;
753
+ run_group_id?: string;
754
+ run_id?: string;
755
+ sequence?: number;
756
+ type: string;
757
+ message?: string | null;
758
+ payload?: Record<string, unknown>;
759
+ created_at?: string | null;
760
+ [key: string]: unknown;
761
+ }
762
+ type RunGroupFile = RunFile & {
763
+ run_id: string;
764
+ };
765
+ declare class RunGroups {
766
+ private readonly http;
767
+ constructor(http: HttpClient);
768
+ list(params?: RunGroupListParams): Promise<RunGroup[]>;
769
+ create(params: RunGroupCreateParams): Promise<RunGroup>;
770
+ get(id: string, options?: {
771
+ includeRuns?: boolean;
772
+ }): Promise<RunGroup>;
773
+ dispatch(id: string, runs: RunGroupDispatchEntry[], options?: RunGroupDispatchOptions): Promise<RunGroupDispatchResult>;
774
+ cancel(id: string): Promise<RunGroup>;
775
+ activity(id: string): Promise<RunGroupActivity[]>;
776
+ streamActivity(id: string): AsyncIterableIterator<RunGroupActivity>;
777
+ files(id: string): Promise<RunGroupFile[]>;
778
+ waitForCompletion(id: string, options?: RunGroupWaitOptions): Promise<RunGroup>;
779
+ }
780
+
440
781
  type AgentRuntime = "osa" | "codex" | "claude" | "claude-code" | "pi" | "hermes" | "custom";
441
782
  type AgentRuntimeConnector = string | {
442
783
  uid?: string;
@@ -1315,6 +1656,7 @@ interface ComputerCreateParams {
1315
1656
  agentProfileId?: string;
1316
1657
  agent_profile_id?: string;
1317
1658
  /** Opt out of the default agent runtime profile for this create call. */
1659
+ skipRuntimeProfile?: boolean;
1318
1660
  skipAgentRuntimeProfile?: boolean;
1319
1661
  skip_agent_runtime_profile?: boolean;
1320
1662
  }
@@ -1610,7 +1952,11 @@ interface CreditUsage {
1610
1952
  }
1611
1953
 
1612
1954
  interface MiosaClientConfig {
1613
- apiKey: string;
1955
+ apiKey?: string;
1956
+ /** User JWT required for organization switching. */
1957
+ accessToken?: string;
1958
+ /** Organization UUID or slug sent as X-MIOSA-Tenant on every request. */
1959
+ tenant?: string;
1614
1960
  baseUrl?: string;
1615
1961
  timeout?: number;
1616
1962
  maxRetries?: number;
@@ -3148,6 +3494,7 @@ declare class ComputerInbox {
3148
3494
  get(): Promise<Record<string, unknown>>;
3149
3495
  update(fields: Record<string, unknown>): Promise<Record<string, unknown>>;
3150
3496
  }
3497
+ type ComputerRunOptions = Omit<RunCreateParams, "instruction" | "targetKind" | "targetId" | "sandboxId" | "computerId">;
3151
3498
  type ComputerPromptOptions = Omit<AgentRunCreateParams, "prompt" | "targetKind" | "targetId" | "sandboxId" | "computerId">;
3152
3499
  /**
3153
3500
  * A Computer instance bound to a specific computer ID.
@@ -3237,9 +3584,13 @@ declare class Computer {
3237
3584
  * Run an AI agent inside this Computer.
3238
3585
  *
3239
3586
  * The Computer is the graphical desktop VM product. This dispatches the
3240
- * same Agent Runs API as `miosa agent run --computer`, scoped to this VM.
3587
+ * same Runs API as `miosa agent run --computer`, scoped to this VM.
3588
+ */
3589
+ run(instruction: string, options?: ComputerRunOptions): Promise<Run>;
3590
+ /**
3591
+ * Dispatch a prompt into this Computer through the Agent Runs API.
3241
3592
  */
3242
- prompt(instruction: string, options?: ComputerPromptOptions): Promise<AgentRun>;
3593
+ prompt(prompt: string, options?: ComputerPromptOptions): Promise<AgentRun>;
3243
3594
  /**
3244
3595
  * Capture a desktop screenshot as PNG bytes.
3245
3596
  * Shortcut for `computer.desktop.screenshot()`.
@@ -3679,14 +4030,14 @@ declare class DockerDeploy {
3679
4030
  private readonly http;
3680
4031
  constructor(http: HttpClient);
3681
4032
  /**
3682
- * List Docker Deploy appliance hosts scoped to the current tenant.
4033
+ * List App Engine appliance hosts scoped to the current tenant.
3683
4034
  *
3684
4035
  * Pass a workspace ID to inspect the dedicated always-on appliance machine
3685
4036
  * for one white-label workspace.
3686
4037
  */
3687
4038
  listHosts(params?: DockerDeployHostListParams): Promise<DockerDeployHostData[]>;
3688
4039
  /**
3689
- * Ensure a workspace has its dedicated Docker Deploy appliance host.
4040
+ * Ensure a workspace has its dedicated App Engine appliance host.
3690
4041
  *
3691
4042
  * The host may still be `pending`, `provisioning`, or `bootstrapping` after
3692
4043
  * this call. Treat `status === "active"` and `appliance_status === "healthy"`
@@ -3696,11 +4047,11 @@ declare class DockerDeploy {
3696
4047
  host: DockerDeployHostData;
3697
4048
  queued: boolean;
3698
4049
  }>;
3699
- /** Fetch one Docker Deploy host by ID. */
4050
+ /** Fetch one App Engine host by ID. */
3700
4051
  getHost(hostId: string): Promise<DockerDeployHostData>;
3701
- /** List Docker Deploy starter templates. */
4052
+ /** List App Engine starter templates. */
3702
4053
  listTemplates(): Promise<DockerDeployTemplate[]>;
3703
- /** Fetch one Docker Deploy starter template by ID. */
4054
+ /** Fetch one App Engine starter template by ID. */
3704
4055
  getTemplate(templateId: string): Promise<DockerDeployTemplate>;
3705
4056
  }
3706
4057
 
@@ -3750,6 +4101,8 @@ interface DeploymentData {
3750
4101
  id: DeploymentId;
3751
4102
  tenant_id: string;
3752
4103
  owner_id?: string;
4104
+ workspace_id?: string | null;
4105
+ project_id?: string | null;
3753
4106
  name: string;
3754
4107
  slug: string;
3755
4108
  /**
@@ -3771,11 +4124,31 @@ interface DeploymentData {
3771
4124
  linked_database_id?: string | null;
3772
4125
  deployment_product?: DeploymentProduct | string | null;
3773
4126
  docker_deploy_host_id?: string | null;
4127
+ docker_deploy_app?: {
4128
+ id?: string | null;
4129
+ deployment_id?: string | null;
4130
+ deployment_version_id?: string | null;
4131
+ docker_deploy_host_id?: string | null;
4132
+ name?: string | null;
4133
+ app_id?: string | null;
4134
+ container_id?: string | null;
4135
+ status?: string | null;
4136
+ runtime_ip?: string | null;
4137
+ runtime_port?: number | string | null;
4138
+ public_url?: string | null;
4139
+ last_health_status?: string | null;
4140
+ last_error?: string | null;
4141
+ last_seen_at?: string | null;
4142
+ deployed_at?: string | null;
4143
+ stopped_at?: string | null;
4144
+ } | null;
3774
4145
  metadata?: Record<string, unknown>;
3775
4146
  external_workspace_id?: string | null;
3776
4147
  external_user_id?: string | null;
3777
4148
  external_project_id?: string | null;
3778
4149
  public_url?: string | null;
4150
+ /** Backend-computed default hostname. Prefer public_url as the canonical URL. */
4151
+ auto_subdomain?: string | null;
3779
4152
  created_at?: string;
3780
4153
  updated_at?: string;
3781
4154
  }
@@ -3789,6 +4162,8 @@ interface DeploymentVersionData {
3789
4162
  id: DeploymentVersionId;
3790
4163
  deployment_id: DeploymentId;
3791
4164
  tenant_id: string;
4165
+ workspace_id?: string | null;
4166
+ project_id?: string | null;
3792
4167
  created_by?: string | null;
3793
4168
  source_sandbox_id?: string | null;
3794
4169
  build_id?: string | null;
@@ -3819,6 +4194,8 @@ interface DeploymentReleaseData {
3819
4194
  deployment_version_id: DeploymentVersionId;
3820
4195
  service_id?: DeploymentServiceId | null;
3821
4196
  tenant_id: string;
4197
+ workspace_id?: string | null;
4198
+ project_id?: string | null;
3822
4199
  external_workspace_id?: string | null;
3823
4200
  external_user_id?: string | null;
3824
4201
  external_project_id?: string | null;
@@ -3953,6 +4330,35 @@ interface DockerDeployDoctorResult {
3953
4330
  checks: DockerDeployDoctorCheck[];
3954
4331
  probe?: DockerDeployDoctorProbe;
3955
4332
  }
4333
+ interface DeploymentProofCheck {
4334
+ id: string;
4335
+ ok: boolean;
4336
+ message: string;
4337
+ details?: Record<string, unknown>;
4338
+ recovery?: string[];
4339
+ }
4340
+ interface DeploymentProofProbe {
4341
+ url?: string;
4342
+ ok: boolean;
4343
+ status?: number;
4344
+ error?: string;
4345
+ }
4346
+ interface DeploymentProofResult {
4347
+ ok: boolean;
4348
+ deployment: DeploymentData;
4349
+ deployment_product: string | null;
4350
+ public_url: string | null;
4351
+ checks: DeploymentProofCheck[];
4352
+ probe?: DeploymentProofProbe;
4353
+ next_actions: string[];
4354
+ }
4355
+ interface DeploymentProofParams {
4356
+ probePath?: string;
4357
+ probe_path?: string;
4358
+ timeoutMs?: number;
4359
+ timeout_ms?: number;
4360
+ probe?: boolean;
4361
+ }
3956
4362
  interface DockerDeployDoctorParams {
3957
4363
  probePath?: string;
3958
4364
  probe_path?: string;
@@ -4084,17 +4490,18 @@ declare class Deployments {
4084
4490
  get(deploymentId: string): Promise<DeploymentData>;
4085
4491
  create(params: DeploymentCreateParams): Promise<DeploymentData>;
4086
4492
  /**
4087
- * Create a deployment that runs on the workspace's dedicated Docker Deploy
4493
+ * Create a deployment that runs on the workspace's dedicated App Engine
4088
4494
  * runtime. It uses the same /deployments API as MIOSA Deploy, but marks the
4089
4495
  * deployment so the control plane attaches it to the workspace Docker host.
4090
4496
  */
4091
4497
  createDockerDeploy(params: DockerDeployCreateParams): Promise<DeploymentData>;
4092
4498
  /**
4093
- * Verify a Docker Deploy deployment before telling a user or agent it is
4499
+ * Verify a App Engine deployment before telling a user or agent it is
4094
4500
  * live. Checks product markers, appliance host health, route metadata, and
4095
4501
  * optionally probes the public URL.
4096
4502
  */
4097
4503
  doctorDockerDeploy(deploymentId: string, params?: DockerDeployDoctorParams): Promise<DockerDeployDoctorResult>;
4504
+ prove(deploymentId: string, params?: DeploymentProofParams): Promise<DeploymentProofResult>;
4098
4505
  update(deploymentId: string, params: DeploymentUpdateParams): Promise<DeploymentData>;
4099
4506
  delete(deploymentId: string): Promise<void>;
4100
4507
  publish(deploymentId: string, params: PublishParams): Promise<PublishResult>;
@@ -5760,8 +6167,8 @@ declare class RuntimeEnv {
5760
6167
  interface RuntimeCapabilities {
5761
6168
  version: number;
5762
6169
  targets?: Record<string, unknown>;
5763
- agent_runs?: Record<string, unknown>;
5764
- agent_run_groups?: Record<string, unknown>;
6170
+ runs?: Record<string, unknown>;
6171
+ run_groups?: Record<string, unknown>;
5765
6172
  runtime_env?: Record<string, unknown>;
5766
6173
  files?: Record<string, unknown>;
5767
6174
  orchestration?: Record<string, unknown>;
@@ -5774,6 +6181,7 @@ declare class RuntimeCapabilitiesResource {
5774
6181
  }
5775
6182
 
5776
6183
  declare const SANDBOX_TEMPLATE = "miosa-sandbox";
6184
+ type SandboxSize = "xs" | "small" | "medium" | "large" | "xl";
5777
6185
  type SandboxId = string & {
5778
6186
  readonly __brand: "SandboxId";
5779
6187
  };
@@ -5782,6 +6190,7 @@ interface SandboxCreateParams {
5782
6190
  templateId?: string;
5783
6191
  template_id?: string;
5784
6192
  image?: string;
6193
+ size?: SandboxSize;
5785
6194
  cpuCount?: number;
5786
6195
  cpu_count?: number;
5787
6196
  memoryMb?: number;
@@ -5848,7 +6257,7 @@ interface SandboxCreateParams {
5848
6257
  agent_runtime_profile_id?: string;
5849
6258
  agentProfileId?: string;
5850
6259
  agent_profile_id?: string;
5851
- skipAgentRuntimeProfile?: boolean;
6260
+ skipRuntimeProfile?: boolean;
5852
6261
  skip_agent_runtime_profile?: boolean;
5853
6262
  externalWorkspaceId?: string;
5854
6263
  external_workspace_id?: string;
@@ -5936,6 +6345,8 @@ interface SandboxExecRunner {
5936
6345
  interface SandboxData {
5937
6346
  id: SandboxId;
5938
6347
  state: SandboxState;
6348
+ slug?: string;
6349
+ name?: string | null;
5939
6350
  ready?: boolean;
5940
6351
  template_id?: string;
5941
6352
  image_id?: string | null;
@@ -5944,6 +6355,9 @@ interface SandboxData {
5944
6355
  disk_mb?: number | null;
5945
6356
  disk_size_mb?: number | null;
5946
6357
  timeout_sec?: number | null;
6358
+ timeout_remaining_ms?: number | null;
6359
+ idle_timeout_sec?: number;
6360
+ always_on?: boolean;
5947
6361
  persistent?: boolean;
5948
6362
  boot_path?: string | null;
5949
6363
  boot_ms?: number | null;
@@ -5959,6 +6373,38 @@ interface SandboxData {
5959
6373
  started_at?: string | null;
5960
6374
  destroyed_at?: string | null;
5961
6375
  total_runtime_sec?: number | null;
6376
+ external_workspace_id?: string | null;
6377
+ external_user_id?: string | null;
6378
+ external_project_id?: string | null;
6379
+ }
6380
+ interface SandboxUsage {
6381
+ sandbox_id: string;
6382
+ state: string;
6383
+ runtime_sec: number;
6384
+ provisioned_vcpu_ms: number;
6385
+ active_cpu_ms: number | null;
6386
+ network_ingress_bytes: number | null;
6387
+ network_egress_bytes: number | null;
6388
+ measurement_status: {
6389
+ active_cpu: string;
6390
+ network: string;
6391
+ provisioned_resources: "measured";
6392
+ };
6393
+ estimated_cost_cents: number;
6394
+ timeout_sec: number;
6395
+ timeout_remaining_ms: number | null;
6396
+ }
6397
+ interface SandboxForkParams {
6398
+ timeoutSec?: number;
6399
+ timeout_sec?: number;
6400
+ templateId?: string;
6401
+ template_id?: string;
6402
+ idempotencyKey?: string;
6403
+ idempotency_key?: string;
6404
+ }
6405
+ interface SandboxLegacyForkParams extends SandboxForkParams {
6406
+ name?: string;
6407
+ metadata?: Record<string, unknown>;
5962
6408
  }
5963
6409
  type PreviewUrlClass = "temporary_preview" | "always_on_preview" | "stable_sandbox_embed" | "durable_deployment" | (string & {});
5964
6410
  type PreviewUrlAction = "create_alias_or_publish" | "publish_when_ready" | "attach_custom_domain" | (string & {});
@@ -6148,6 +6594,7 @@ interface SandboxDeployParams {
6148
6594
  idempotencyKey?: string;
6149
6595
  idempotency_key?: string;
6150
6596
  }
6597
+ type SandboxRunOptions = Omit<RunCreateParams, "instruction" | "targetKind" | "targetId" | "sandboxId" | "computerId">;
6151
6598
  type SandboxPromptOptions = Omit<AgentRunCreateParams, "prompt" | "targetKind" | "targetId" | "sandboxId" | "computerId">;
6152
6599
  declare class SandboxCommands {
6153
6600
  private readonly sandbox;
@@ -6299,9 +6746,13 @@ declare class Sandbox {
6299
6746
  * Run an AI coding agent inside this Sandbox.
6300
6747
  *
6301
6748
  * Defaults to Claude Code, waits for completion, and runs from `/workspace`.
6302
- * Pass `{ provider: "codex", env: { CODEX_API_KEY } }` to run Codex.
6749
+ * Pass `{ runner: "codex", env: { CODEX_API_KEY } }` to run Codex.
6303
6750
  */
6304
- prompt(instruction: string, options?: SandboxPromptOptions): Promise<AgentRun>;
6751
+ run(instruction: string, options?: SandboxRunOptions): Promise<Run>;
6752
+ /**
6753
+ * Dispatch a prompt into this Sandbox through the Agent Runs API.
6754
+ */
6755
+ prompt(prompt: string, options?: SandboxPromptOptions): Promise<AgentRun>;
6305
6756
  private runExec;
6306
6757
  private execStream;
6307
6758
  writeFile(path: string, content: string | Uint8Array): Promise<void>;
@@ -6331,10 +6782,11 @@ declare class Sandbox {
6331
6782
  * Fork (clone) this sandbox into a new sandbox via copy-on-write snapshot.
6332
6783
  * The original sandbox continues running unchanged.
6333
6784
  */
6334
- fork(opts?: {
6335
- name?: string;
6336
- metadata?: Record<string, unknown>;
6337
- }): Promise<Sandbox>;
6785
+ fork(opts?: SandboxForkParams): Promise<Sandbox>;
6786
+ /** @deprecated Use forkLegacy() for private name/metadata fork fields. */
6787
+ fork(opts: SandboxLegacyForkParams): Promise<Sandbox>;
6788
+ /** Fork using private compatibility fields excluded from the public V1 contract. */
6789
+ forkLegacy(opts?: SandboxLegacyForkParams): Promise<Sandbox>;
6338
6790
  /**
6339
6791
  * PATCH /api/v1/sandboxes/{id} — update mutable sandbox fields.
6340
6792
  */
@@ -6365,7 +6817,8 @@ declare class Sandbox {
6365
6817
  delete_evicted?: boolean;
6366
6818
  };
6367
6819
  }): Promise<Sandbox>;
6368
- extend(timeoutSec: number): Promise<Sandbox>;
6820
+ extend(timeoutSec?: number): Promise<Sandbox>;
6821
+ usage(): Promise<SandboxUsage>;
6369
6822
  /**
6370
6823
  * POST /api/v1/sandboxes/{id}/preview-token → {token, url, expires_at, scope}
6371
6824
  */
@@ -6377,7 +6830,7 @@ declare class Sandbox {
6377
6830
  [key: string]: unknown;
6378
6831
  }>;
6379
6832
  pause(): Promise<Sandbox>;
6380
- resume(): Promise<Sandbox>;
6833
+ resume(idempotencyKey?: string): Promise<Sandbox>;
6381
6834
  deploy(params?: SandboxDeployParams): Promise<Record<string, unknown>>;
6382
6835
  deployDocker(params?: SandboxDeployParams): Promise<Record<string, unknown>>;
6383
6836
  /** Check readiness of the sandbox (GET /sandboxes/:id/readiness). */
@@ -6429,6 +6882,14 @@ declare class Sandboxes {
6429
6882
  create(params?: SandboxCreateParams): Promise<Sandbox>;
6430
6883
  list(params?: SandboxListParams): Promise<Sandbox[]>;
6431
6884
  get(id: SandboxId | string): Promise<Sandbox>;
6885
+ extend(id: SandboxId | string, timeoutSec?: number): Promise<Sandbox>;
6886
+ usage(id: SandboxId | string): Promise<SandboxUsage>;
6887
+ pause(id: SandboxId | string): Promise<Sandbox>;
6888
+ resume(id: SandboxId | string, idempotencyKey?: string): Promise<Sandbox>;
6889
+ fork(id: SandboxId | string, params?: SandboxForkParams): Promise<Sandbox>;
6890
+ /** @deprecated Use forkLegacy() for private name/metadata fork fields. */
6891
+ fork(id: SandboxId | string, params: SandboxLegacyForkParams): Promise<Sandbox>;
6892
+ forkLegacy(id: SandboxId | string, params?: SandboxLegacyForkParams): Promise<Sandbox>;
6432
6893
  connect(id: SandboxId | string): Promise<Sandbox>;
6433
6894
  getByName(name: string): Promise<Sandbox>;
6434
6895
  /**
@@ -6781,6 +7242,67 @@ declare class OrgInvites {
6781
7242
  accept(token: string): Promise<AcceptOrgInviteResponse>;
6782
7243
  }
6783
7244
 
7245
+ type OrganizationRole = "owner" | "admin" | "member";
7246
+ interface OrganizationSummary {
7247
+ id: string;
7248
+ name: string;
7249
+ slug: string;
7250
+ role?: OrganizationRole;
7251
+ owner_user_id?: string | null;
7252
+ plan_id?: string | null;
7253
+ plan?: Record<string, unknown> | null;
7254
+ plan_name?: string | null;
7255
+ credit_balance?: number;
7256
+ settings?: Record<string, unknown>;
7257
+ branding?: Record<string, unknown> | null;
7258
+ inserted_at?: string;
7259
+ updated_at?: string;
7260
+ }
7261
+ interface OrganizationMember {
7262
+ id: string;
7263
+ tenant_id: string;
7264
+ user_id: string;
7265
+ role: OrganizationRole;
7266
+ status: "invited" | "active" | string;
7267
+ invited_at?: string | null;
7268
+ joined_at?: string | null;
7269
+ created_at?: string;
7270
+ user_name?: string | null;
7271
+ user_email?: string | null;
7272
+ user_avatar_url?: string | null;
7273
+ }
7274
+ interface OrganizationSwitchResult {
7275
+ tenant: OrganizationSummary;
7276
+ token: string;
7277
+ refresh_token: string;
7278
+ }
7279
+ interface OrganizationMemberList {
7280
+ members: OrganizationMember[];
7281
+ total: number;
7282
+ }
7283
+ interface OrganizationMemberRemoved {
7284
+ tenant_id: string;
7285
+ user_id: string;
7286
+ removed: boolean;
7287
+ }
7288
+ declare class OrganizationMembers {
7289
+ private readonly http;
7290
+ constructor(http: HttpClient);
7291
+ list(organizationId: string): Promise<OrganizationMemberList>;
7292
+ add(organizationId: string, userId: string, role?: OrganizationRole): Promise<OrganizationMember>;
7293
+ remove(organizationId: string, userId: string): Promise<OrganizationMemberRemoved>;
7294
+ }
7295
+ declare class Organizations {
7296
+ private readonly http;
7297
+ readonly members: OrganizationMembers;
7298
+ readonly invites: OrgInvites;
7299
+ constructor(http: HttpClient);
7300
+ list(): Promise<OrganizationSummary[]>;
7301
+ current(): Promise<OrganizationSummary>;
7302
+ /** Requires a user JWT. API keys are pinned to their organization. */
7303
+ switch(idOrSlug: string): Promise<OrganizationSwitchResult>;
7304
+ }
7305
+
6784
7306
  /**
6785
7307
  * Tenant — current tenant info and plan/usage.
6786
7308
  */
@@ -6927,6 +7449,7 @@ interface TemplatesListParams {
6927
7449
  product?: ComputeProduct | string;
6928
7450
  }
6929
7451
  interface ProductTemplateCatalog {
7452
+ data?: ProductTemplate[];
6930
7453
  templates: ProductTemplate[];
6931
7454
  products?: ProductCatalogEntry[];
6932
7455
  sizes?: Array<Record<string, unknown>>;
@@ -7368,6 +7891,8 @@ declare class Miosa {
7368
7891
  * Requires admin/owner role for write operations.
7369
7892
  */
7370
7893
  readonly orgInvites: OrgInvites;
7894
+ /** Organizations available to the user session, membership, invites, and switching. */
7895
+ readonly organizations: Organizations;
7371
7896
  /** Current tenant plan, limits, and live usage counters. */
7372
7897
  readonly tenant: Tenant;
7373
7898
  /** Datacenter regions, compute sizes, pricing, community templates. */
@@ -7396,9 +7921,13 @@ declare class Miosa {
7396
7921
  readonly externalKeys: ExternalKeys;
7397
7922
  /** Model Context Protocol — JSON-RPC dispatch + streaming channel. */
7398
7923
  readonly mcp: Mcp;
7399
- /** Agent Runs prompt dispatch into sandbox targets. */
7924
+ /** Runs - instruction dispatch into sandbox and computer targets. */
7925
+ readonly runs: Runs;
7926
+ /** Run groups - durable multi-run orchestration groups. */
7927
+ readonly runGroups: RunGroups;
7928
+ /** Agent runs - compatibility API for prompt dispatch. */
7400
7929
  readonly agentRuns: AgentRuns;
7401
- /** Agent Run Groups durable multi-agent orchestration groups. */
7930
+ /** Agent run groups - compatibility API for multi-agent orchestration. */
7402
7931
  readonly agentRunGroups: AgentRunGroups;
7403
7932
  /** Agent runtime profiles — tenant/workspace defaults for sandbox/computer agents. */
7404
7933
  readonly agentRuntimeProfiles: AgentRuntimeProfiles;
@@ -7419,7 +7948,7 @@ declare class Miosa {
7419
7948
  * Versions, releases, rollback, custom domains.
7420
7949
  */
7421
7950
  readonly deployments: Deployments;
7422
- /** Docker Deploy appliance hosts — one always-on workspace host, many apps. */
7951
+ /** App Engine appliance hosts — one always-on workspace host, many apps. */
7423
7952
  readonly dockerDeploy: DockerDeploy;
7424
7953
  /** Credit balance and usage. */
7425
7954
  readonly credits: Credits;
@@ -7483,7 +8012,7 @@ declare class Miosa {
7483
8012
  }
7484
8013
 
7485
8014
  type AgentBuildKind = "landing_page" | "website" | "lead_magnet" | "webinar" | "slides_deck" | "email_sequence" | "social_content" | "ad_creative" | "booking_page" | "brand_identity" | "offer" | "program" | "podcast" | "sales_script" | "campaign" | "challenge" | "character" | "custom";
7486
- interface AgentBuildArtifactSpec {
8015
+ interface AgentBuildFileSpec {
7487
8016
  kind: string;
7488
8017
  path: string;
7489
8018
  mime_type?: string;
@@ -7510,11 +8039,11 @@ interface AgentBuildInputRef {
7510
8039
  interface AgentBuildKindSpec {
7511
8040
  kind: AgentBuildKind;
7512
8041
  label: string;
7513
- artifactType: string;
8042
+ deliverableType: string;
7514
8043
  runtimeTemplate: Record<string, unknown>;
7515
8044
  requestedOutputs: string[];
7516
8045
  plannerDocumentKinds: string[];
7517
- artifacts: AgentBuildArtifactSpec[];
8046
+ files: AgentBuildFileSpec[];
7518
8047
  designResearchRequired: boolean;
7519
8048
  previewPort?: number;
7520
8049
  }
@@ -7530,7 +8059,7 @@ interface AgentBuildExecutionPacket {
7530
8059
  version: string;
7531
8060
  run_type: AgentBuildKind;
7532
8061
  build_kind: AgentBuildKind;
7533
- artifact_type: string;
8062
+ deliverable_type: string;
7534
8063
  title: string;
7535
8064
  goal: string;
7536
8065
  source_refs: unknown[];
@@ -7540,7 +8069,7 @@ interface AgentBuildExecutionPacket {
7540
8069
  requested_outputs: string[];
7541
8070
  quality_rules: string[];
7542
8071
  runtime_profile_id?: string;
7543
- output_contract: AgentRunOutputContract;
8072
+ expected_outputs: RunExpectedOutputs;
7544
8073
  runtime_instructions: Record<string, unknown>;
7545
8074
  metadata: Record<string, unknown>;
7546
8075
  [key: string]: unknown;
@@ -7548,7 +8077,7 @@ interface AgentBuildExecutionPacket {
7548
8077
  interface CreateAgentBuildPacketParams {
7549
8078
  runType?: string;
7550
8079
  buildKind?: string;
7551
- artifactType?: string;
8080
+ deliverableType?: string;
7552
8081
  title: string;
7553
8082
  goal: string;
7554
8083
  contextMarkdown?: string;
@@ -7559,19 +8088,20 @@ interface CreateAgentBuildPacketParams {
7559
8088
  inputRefs?: AgentBuildInputRef[];
7560
8089
  runtimeProfileId?: string;
7561
8090
  runtimeTemplate?: Record<string, unknown>;
7562
- outputContract?: AgentRunOutputContract;
7563
- artifacts?: AgentBuildArtifactSpec[];
8091
+ expectedOutputs?: RunExpectedOutputs;
8092
+ files?: AgentBuildFileSpec[];
7564
8093
  outputRoot?: string;
7565
8094
  metadata?: Record<string, unknown>;
7566
8095
  }
7567
- interface CreateBuildAgentRunParams extends CreateAgentBuildPacketParams {
7568
- targetKind?: AgentRunTargetKind;
8096
+ interface CreateBuildRunParams extends CreateAgentBuildPacketParams {
8097
+ targetKind?: RunTargetKind;
7569
8098
  targetId?: string;
7570
8099
  sandboxId?: string;
7571
8100
  computerId?: string;
8101
+ runner?: string;
7572
8102
  provider?: string;
7573
8103
  model?: string;
7574
- prompt?: string;
8104
+ instruction?: string;
7575
8105
  cwd?: string;
7576
8106
  timeout?: number;
7577
8107
  wait?: boolean;
@@ -7580,7 +8110,7 @@ interface CreateBuildAgentRunParams extends CreateAgentBuildPacketParams {
7580
8110
  externalWorkspaceId?: string;
7581
8111
  externalUserId?: string;
7582
8112
  externalProjectId?: string;
7583
- approvalPolicy?: AgentRunCreateParams["approvalPolicy"];
8113
+ approvalPolicy?: RunCreateParams["approvalPolicy"];
7584
8114
  capabilityRequirements?: string[];
7585
8115
  }
7586
8116
  declare const DEFAULT_AGENT_BUILD_PACKET_VERSION = "2026-06-19";
@@ -7588,15 +8118,15 @@ declare const DEFAULT_AGENT_BUILD_OUTPUT_ROOT = "/workspace/output";
7588
8118
  declare const AGENT_BUILD_KIND_SPECS: Record<AgentBuildKind, AgentBuildKindSpec>;
7589
8119
  declare function resolveAgentBuildKind(value: string | undefined, fallback?: AgentBuildKind): AgentBuildKind;
7590
8120
  declare function getAgentBuildKindSpec(value: string | undefined): AgentBuildKindSpec;
7591
- declare function createAgentBuildOutputContract(buildKind: string | undefined, options?: {
7592
- artifactType?: string;
7593
- artifacts?: AgentBuildArtifactSpec[];
7594
- outputContract?: AgentRunOutputContract;
8121
+ declare function createAgentBuildExpectedOutputs(buildKind: string | undefined, options?: {
8122
+ deliverableType?: string;
8123
+ files?: AgentBuildFileSpec[];
8124
+ expectedOutputs?: RunExpectedOutputs;
7595
8125
  outputRoot?: string;
7596
- }): AgentRunOutputContract;
8126
+ }): RunExpectedOutputs;
7597
8127
  declare function createAgentBuildExecutionPacket(params: CreateAgentBuildPacketParams): AgentBuildExecutionPacket;
7598
8128
  declare function createAgentBuildPrompt(packet: AgentBuildExecutionPacket): string;
7599
- declare function createBuildAgentRunParams(params: CreateBuildAgentRunParams): AgentRunCreateParams;
8129
+ declare function createBuildRunParams(params: CreateBuildRunParams): RunCreateParams;
7600
8130
 
7601
8131
  /**
7602
8132
  * AppAuth — end-user authentication client for apps deployed on MIOSA.
@@ -7697,13 +8227,17 @@ declare class AppAuth {
7697
8227
  }
7698
8228
 
7699
8229
  interface MiosaErrorBody {
7700
- error?: {
8230
+ error?: string | {
7701
8231
  code?: string;
7702
8232
  message?: string;
7703
8233
  details?: unknown;
7704
8234
  };
7705
8235
  message?: string;
7706
8236
  code?: string;
8237
+ detail?: string;
8238
+ details?: unknown;
8239
+ reason?: string;
8240
+ request_id?: string;
7707
8241
  }
7708
8242
  declare class MiosaError extends Error {
7709
8243
  readonly status: number;
@@ -7761,4 +8295,4 @@ declare class TokenRefreshFailedError extends MiosaError {
7761
8295
  constructor(message: string, status?: number, details?: unknown, requestId?: string);
7762
8296
  }
7763
8297
 
7764
- 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, 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 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, 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 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 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, createAgentBuildOutputContract, createAgentBuildPrompt, createBuildAgentRunParams, getAgentBuildKindSpec, resolveAgentBuildKind, verifySignature };
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 };