@miosa/sdk 1.2.5 → 1.2.7

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.
Files changed (92) hide show
  1. package/README.md +107 -59
  2. package/dist/index.d.ts +513 -193
  3. package/dist/index.js +1266 -891
  4. package/dist/index.js.map +1 -1
  5. package/package.json +1 -2
  6. package/src/client.ts +0 -293
  7. package/src/errors.ts +0 -136
  8. package/src/http.test.ts +0 -374
  9. package/src/http.ts +0 -390
  10. package/src/index.ts +0 -569
  11. package/src/resources/admin.ts +0 -348
  12. package/src/resources/analytics.ts +0 -60
  13. package/src/resources/api-keys.ts +0 -119
  14. package/src/resources/audit-log.ts +0 -64
  15. package/src/resources/benchmarks.ts +0 -104
  16. package/src/resources/builder-sessions.ts +0 -75
  17. package/src/resources/channels.ts +0 -143
  18. package/src/resources/checkpoints.ts +0 -225
  19. package/src/resources/command-center.ts +0 -73
  20. package/src/resources/community.ts +0 -103
  21. package/src/resources/completions.ts +0 -104
  22. package/src/resources/computer-auto-stop.ts +0 -43
  23. package/src/resources/computer-env.ts +0 -76
  24. package/src/resources/computer-logs.ts +0 -50
  25. package/src/resources/computer-osa.ts +0 -76
  26. package/src/resources/computer-ports.ts +0 -91
  27. package/src/resources/computer-terminal.ts +0 -61
  28. package/src/resources/computer-volumes.ts +0 -64
  29. package/src/resources/computer.ts +0 -551
  30. package/src/resources/computers.ts +0 -75
  31. package/src/resources/credits.ts +0 -43
  32. package/src/resources/cron-jobs.ts +0 -191
  33. package/src/resources/custom_domains.ts +0 -123
  34. package/src/resources/dashboard.ts +0 -49
  35. package/src/resources/databases.ts +0 -218
  36. package/src/resources/deployments.test.ts +0 -197
  37. package/src/resources/deployments.ts +0 -1208
  38. package/src/resources/desktop.ts +0 -134
  39. package/src/resources/devices.test.ts +0 -92
  40. package/src/resources/devices.ts +0 -291
  41. package/src/resources/egress.test.ts +0 -318
  42. package/src/resources/egressAudit.ts +0 -245
  43. package/src/resources/egressNetwork.ts +0 -450
  44. package/src/resources/egressSecrets.ts +0 -577
  45. package/src/resources/email.ts +0 -212
  46. package/src/resources/embeddings.ts +0 -36
  47. package/src/resources/events.ts +0 -296
  48. package/src/resources/exec.ts +0 -319
  49. package/src/resources/external-keys.ts +0 -79
  50. package/src/resources/files.test.ts +0 -339
  51. package/src/resources/files.ts +0 -220
  52. package/src/resources/flat-custom-domains.ts +0 -127
  53. package/src/resources/functions.ts +0 -178
  54. package/src/resources/health-checks.ts +0 -165
  55. package/src/resources/integrations.ts +0 -183
  56. package/src/resources/mcp.ts +0 -70
  57. package/src/resources/models.ts +0 -45
  58. package/src/resources/network_policy.ts +0 -73
  59. package/src/resources/open-computers/agents.ts +0 -91
  60. package/src/resources/open-computers/apps.ts +0 -102
  61. package/src/resources/open-computers/clusters.ts +0 -88
  62. package/src/resources/open-computers/desktop.ts +0 -34
  63. package/src/resources/open-computers/files.ts +0 -97
  64. package/src/resources/open-computers/hosts.ts +0 -85
  65. package/src/resources/open-computers/index.ts +0 -98
  66. package/src/resources/open-computers/jobs.ts +0 -75
  67. package/src/resources/open-computers/open_computers.test.ts +0 -288
  68. package/src/resources/open-computers/secrets.ts +0 -115
  69. package/src/resources/open-computers/terminal.ts +0 -33
  70. package/src/resources/open-computers/tunnels.ts +0 -87
  71. package/src/resources/open-computers/types.ts +0 -343
  72. package/src/resources/open-computers/workspaces.ts +0 -135
  73. package/src/resources/org-invites.ts +0 -189
  74. package/src/resources/project-auth.ts +0 -142
  75. package/src/resources/project-integrations.ts +0 -133
  76. package/src/resources/provider-defaults.ts +0 -89
  77. package/src/resources/regions.ts +0 -94
  78. package/src/resources/sandbox-templates.ts +0 -195
  79. package/src/resources/sandboxes.live.test.ts +0 -92
  80. package/src/resources/sandboxes.test.ts +0 -655
  81. package/src/resources/sandboxes.ts +0 -1437
  82. package/src/resources/settings.ts +0 -143
  83. package/src/resources/snapshots-standalone.ts +0 -51
  84. package/src/resources/storage.ts +0 -221
  85. package/src/resources/tenant.ts +0 -66
  86. package/src/resources/usage.ts +0 -85
  87. package/src/resources/volumes.ts +0 -117
  88. package/src/resources/webhooks.ts +0 -239
  89. package/src/resources/workspace-invites.ts +0 -188
  90. package/src/resources/workspace-members.test.ts +0 -121
  91. package/src/resources/workspace-members.ts +0 -143
  92. package/src/types.ts +0 -463
package/dist/index.d.ts CHANGED
@@ -155,6 +155,107 @@ declare class Admin {
155
155
  optimalStatus(): Promise<Json>;
156
156
  listOptimalModels(): Promise<Json>;
157
157
  switchOptimalModel(modelId: string): Promise<Json>;
158
+ /** POST /api/v1/admin/impersonate — returns {token, expires_at}. */
159
+ impersonate(externalUserId: string, options?: {
160
+ ttlSec?: number;
161
+ }): Promise<{
162
+ token: string;
163
+ expires_at: string;
164
+ }>;
165
+ }
166
+
167
+ type AgentRuntime = "osa" | "codex" | "claude" | "claude-code" | "pi" | "hermes" | "custom";
168
+ interface AgentRuntimeProfile {
169
+ id: string;
170
+ tenant_id?: string;
171
+ tenantId?: string;
172
+ workspace_id?: string | null;
173
+ workspaceId?: string | null;
174
+ name: string;
175
+ runtime: AgentRuntime | string;
176
+ description?: string | null;
177
+ applies_to?: Record<string, unknown>;
178
+ appliesTo?: Record<string, unknown>;
179
+ tools?: string[];
180
+ connectors?: string[];
181
+ env?: Record<string, string>;
182
+ policy?: Record<string, unknown>;
183
+ metadata?: Record<string, unknown>;
184
+ is_default?: boolean;
185
+ isDefault?: boolean;
186
+ created_at?: string;
187
+ createdAt?: string;
188
+ updated_at?: string;
189
+ updatedAt?: string;
190
+ }
191
+ interface AgentRuntimeProfileParams {
192
+ workspaceId?: string;
193
+ workspace_id?: string;
194
+ name: string;
195
+ runtime: AgentRuntime | string;
196
+ description?: string;
197
+ appliesTo?: Record<string, unknown>;
198
+ applies_to?: Record<string, unknown>;
199
+ tools?: string[];
200
+ connectors?: string[];
201
+ env?: Record<string, string>;
202
+ policy?: Record<string, unknown>;
203
+ metadata?: Record<string, unknown>;
204
+ isDefault?: boolean;
205
+ is_default?: boolean;
206
+ }
207
+ type AgentRuntimeProfileUpdateParams = Partial<AgentRuntimeProfileParams>;
208
+ declare class AgentRuntimeProfiles {
209
+ private readonly http;
210
+ constructor(http: HttpClient);
211
+ list(params?: {
212
+ workspaceId?: string;
213
+ workspace_id?: string;
214
+ }): Promise<AgentRuntimeProfile[]>;
215
+ get(id: string): Promise<AgentRuntimeProfile>;
216
+ create(params: AgentRuntimeProfileParams): Promise<AgentRuntimeProfile>;
217
+ update(id: string, params: AgentRuntimeProfileUpdateParams): Promise<AgentRuntimeProfile>;
218
+ delete(id: string): Promise<void>;
219
+ }
220
+
221
+ type AgentRunTargetKind = "sandbox" | "computer";
222
+ type AgentRunStatus = "running" | "succeeded" | "failed" | "canceled";
223
+ interface AgentRun {
224
+ id: string;
225
+ target_kind: AgentRunTargetKind;
226
+ target_id: string;
227
+ provider: string;
228
+ prompt: string;
229
+ status: AgentRunStatus;
230
+ output?: string;
231
+ stderr?: string;
232
+ exit_code?: number;
233
+ metadata?: Record<string, unknown>;
234
+ started_at?: string;
235
+ finished_at?: string;
236
+ created_at?: string;
237
+ updated_at?: string;
238
+ [key: string]: unknown;
239
+ }
240
+ interface AgentRunCreateParams {
241
+ prompt: string;
242
+ targetKind?: AgentRunTargetKind;
243
+ targetId?: string;
244
+ sandboxId?: string;
245
+ /** Shortcut for a computer-backed Agent Run. */
246
+ computerId?: string;
247
+ provider?: string;
248
+ model?: string;
249
+ command?: string;
250
+ runtimeCommand?: string;
251
+ cwd?: string;
252
+ timeout?: number;
253
+ metadata?: Record<string, unknown>;
254
+ }
255
+ declare class AgentRuns {
256
+ private readonly http;
257
+ constructor(http: HttpClient);
258
+ run(params: AgentRunCreateParams): Promise<AgentRun>;
158
259
  }
159
260
 
160
261
  /**
@@ -221,6 +322,12 @@ declare class ApiKeys {
221
322
  constructor(http: HttpClient);
222
323
  list(params?: ApiKeyListParams): Promise<ApiKeyData[]>;
223
324
  create(params: ApiKeyCreateParams): Promise<ApiKeyCreateResult>;
325
+ /** POST /api/v1/api-keys/scoped — L2 delegation token bound to one external user. */
326
+ createScoped(params: {
327
+ externalUserId: string;
328
+ scopes: string[];
329
+ expiresAt?: string;
330
+ }): Promise<ApiKeyCreateResult>;
224
331
  delete(keyId: string): Promise<void>;
225
332
  }
226
333
 
@@ -639,7 +746,7 @@ interface CustomDomainData$1 {
639
746
  * // 1. Register the domain
640
747
  * const domain = await computer.domains.register("app.example.com");
641
748
  * console.log(domain.instructions);
642
- * // => "Add a CNAME record: app.example.com → <slug>.sandbox.<tenant-domain>"
749
+ * // => "Add a CNAME record: app.example.com → <slug>.sandbox.miosa.ai"
643
750
  *
644
751
  * // 2. Add the CNAME in your DNS registrar, then...
645
752
  *
@@ -745,6 +852,18 @@ interface ComputerCreateParams {
745
852
  size?: ComputerSize;
746
853
  visibility?: ComputerVisibility;
747
854
  metadata?: Record<string, string>;
855
+ /**
856
+ * Explicit agent runtime profile to mount into this computer. When omitted,
857
+ * MIOSA applies the workspace/tenant default profile that targets computers.
858
+ */
859
+ agentRuntimeProfileId?: string;
860
+ agent_runtime_profile_id?: string;
861
+ /** Back-compat shorthand for agentRuntimeProfileId. */
862
+ agentProfileId?: string;
863
+ agent_profile_id?: string;
864
+ /** Opt out of the default agent runtime profile for this create call. */
865
+ skipAgentRuntimeProfile?: boolean;
866
+ skip_agent_runtime_profile?: boolean;
748
867
  }
749
868
  interface ComputerUpdateParams {
750
869
  name?: string;
@@ -755,9 +874,9 @@ interface ComputerData {
755
874
  id: ComputerId;
756
875
  name: string;
757
876
  /**
758
- * URL-safe identifier used in preview URLs:
759
- * `https://{port}-{slug}.sandbox.{preview_domain}`.
760
- * Falls back to the computer id when no slug is assigned.
877
+ * URL-safe identifier used in preview URLs: `https://{port}-{slug}.sandbox.{preview_domain}`.
878
+ * Falls back to the computer id when no slug is assigned. The domain is the
879
+ * tenant's white-label `preview_domain` (server-provided) never hardcode it.
761
880
  */
762
881
  slug: string;
763
882
  status: ComputerStatus;
@@ -768,9 +887,9 @@ interface ComputerData {
768
887
  metadata: Record<string, string>;
769
888
  /** Controls who can access the HTTP preview URL. Defaults to `"public"`. */
770
889
  visibility: ComputerVisibility;
771
- /** Public ingress root, e.g. `https://<slug>.sandbox.<preview_domain>`. */
890
+ /** Public ingress root, e.g. `https://<slug>.sandbox.<preview_domain>` (server-provided). */
772
891
  sandbox_url?: string;
773
- /** Tenant's white-label preview/base domain, e.g. `cliniciq.com`. */
892
+ /** Tenant's white-label preview/base domain (e.g. `cliniciq.com`). Use to build preview URLs. */
774
893
  preview_domain?: string;
775
894
  /** KasmVNC URL for desktop templates. */
776
895
  desktop_url?: string;
@@ -2535,6 +2654,90 @@ declare class Databases {
2535
2654
  streamLogs(databaseId: string): AsyncIterableIterator<unknown>;
2536
2655
  }
2537
2656
 
2657
+ type DockerDeployHostId = string & {
2658
+ readonly __brand: "DockerDeployHostId";
2659
+ };
2660
+ type DockerDeployHostStatus = "pending" | "provisioning" | "bootstrapping" | "active" | "degraded" | "suspended" | "retired" | "error";
2661
+ type DockerDeployApplianceStatus = "not_installed" | "installing" | "starting" | "healthy" | "unhealthy" | "unknown";
2662
+ interface DockerDeployHostData {
2663
+ id: DockerDeployHostId;
2664
+ tenant_id: string;
2665
+ workspace_id: string;
2666
+ external_workspace_id?: string | null;
2667
+ computer_id?: string | null;
2668
+ fleet_node_id?: string | null;
2669
+ status: DockerDeployHostStatus;
2670
+ size: string;
2671
+ region: string;
2672
+ portal_domain?: string | null;
2673
+ runtime_base_url?: string | null;
2674
+ agent_base_url?: string | null;
2675
+ appliance_image?: string | null;
2676
+ appliance_version?: string | null;
2677
+ appliance_status: DockerDeployApplianceStatus;
2678
+ agent_last_seen_at?: string | null;
2679
+ metadata?: Record<string, unknown>;
2680
+ created_at?: string;
2681
+ updated_at?: string;
2682
+ }
2683
+ interface DockerDeployHostListParams {
2684
+ workspace_id?: string;
2685
+ workspaceId?: string;
2686
+ }
2687
+ interface DockerDeployHostEnsureParams {
2688
+ workspace_id?: string;
2689
+ workspaceId?: string;
2690
+ external_workspace_id?: string;
2691
+ externalWorkspaceId?: string;
2692
+ }
2693
+ interface DockerDeployHostListResponse {
2694
+ data?: DockerDeployHostData[];
2695
+ hosts?: DockerDeployHostData[];
2696
+ }
2697
+ interface DockerDeployHostResponse {
2698
+ data?: DockerDeployHostData;
2699
+ host?: DockerDeployHostData;
2700
+ queued?: boolean;
2701
+ }
2702
+ interface DockerDeployTemplate {
2703
+ id: string;
2704
+ name: string;
2705
+ description?: string;
2706
+ category?: string;
2707
+ runtime?: string;
2708
+ tags?: string[];
2709
+ metadata?: Record<string, unknown>;
2710
+ [key: string]: unknown;
2711
+ }
2712
+ declare class DockerDeploy {
2713
+ private readonly http;
2714
+ constructor(http: HttpClient);
2715
+ /**
2716
+ * List Docker Deploy appliance hosts scoped to the current tenant.
2717
+ *
2718
+ * Pass a workspace ID to inspect the dedicated always-on appliance machine
2719
+ * for one white-label workspace.
2720
+ */
2721
+ listHosts(params?: DockerDeployHostListParams): Promise<DockerDeployHostData[]>;
2722
+ /**
2723
+ * Ensure a workspace has its dedicated Docker Deploy appliance host.
2724
+ *
2725
+ * The host may still be `pending`, `provisioning`, or `bootstrapping` after
2726
+ * this call. Treat `status === "active"` and `appliance_status === "healthy"`
2727
+ * as the ready condition before sending app/container traffic to it.
2728
+ */
2729
+ ensureHost(params?: DockerDeployHostEnsureParams): Promise<{
2730
+ host: DockerDeployHostData;
2731
+ queued: boolean;
2732
+ }>;
2733
+ /** Fetch one Docker Deploy host by ID. */
2734
+ getHost(hostId: string): Promise<DockerDeployHostData>;
2735
+ /** List Docker Deploy starter templates. */
2736
+ listTemplates(): Promise<DockerDeployTemplate[]>;
2737
+ /** Fetch one Docker Deploy starter template by ID. */
2738
+ getTemplate(templateId: string): Promise<DockerDeployTemplate>;
2739
+ }
2740
+
2538
2741
  /**
2539
2742
  * Deployments resource — sandbox→production publishing surface.
2540
2743
  *
@@ -2760,107 +2963,36 @@ interface DeploymentCreateParams extends ExternalAttribution {
2760
2963
  auto_deploy?: boolean;
2761
2964
  autoDeploy?: boolean;
2762
2965
  database?: DeploymentDatabaseRequest;
2763
- docker_deploy_template_id?: string;
2764
- dockerDeployTemplateId?: string;
2765
2966
  metadata?: Record<string, unknown>;
2766
2967
  idempotencyKey?: string;
2767
2968
  }
2768
2969
  interface DockerDeployCreateParams extends DeploymentCreateParams {
2769
2970
  }
2770
- interface DockerDeployHostData {
2771
- id: string;
2772
- tenant_id?: string;
2773
- workspace_id?: string | null;
2774
- computer_id?: string | null;
2775
- fleet_node_id?: string | null;
2776
- runtime_base_url?: string | null;
2777
- status?: string;
2778
- appliance_status?: string | null;
2779
- appliance_version?: string | null;
2780
- appliance_image?: string | null;
2781
- agent_configured?: boolean;
2782
- last_health_check_at?: string | null;
2783
- created_at?: string;
2784
- updated_at?: string;
2785
- metadata?: Record<string, unknown>;
2786
- }
2787
- interface DockerDeployHostListParams {
2788
- workspace_id?: string;
2789
- workspaceId?: string;
2790
- }
2791
- interface DockerDeployHostEnsureParams {
2792
- workspace_id: string;
2793
- workspaceId?: string;
2794
- region?: string;
2795
- size?: string;
2796
- appliance_image?: string;
2797
- applianceImage?: string;
2798
- metadata?: Record<string, unknown>;
2799
- idempotencyKey?: string;
2800
- }
2801
- interface DockerDeployTemplateData {
2802
- id: string;
2803
- name: string;
2804
- summary?: string;
2805
- description?: string;
2806
- category?: string;
2807
- runtime?: string;
2808
- framework?: string;
2809
- build_command?: string | null;
2810
- run_command?: string | null;
2811
- ports?: number[];
2812
- env?: Record<string, string>;
2813
- files?: Record<string, string>;
2814
- design_md?: string | null;
2815
- design_source_url?: string | null;
2816
- design_sources?: string[];
2817
- design_reference_presets?: DockerDeployDesignReferencePreset[];
2818
- metadata?: Record<string, unknown>;
2819
- }
2820
- interface DockerDeployDesignReferencePreset {
2821
- id: string;
2822
- name: string;
2823
- summary: string;
2824
- best_for?: string[];
2825
- }
2826
- interface DockerDeployTemplateListParams {
2827
- category?: string;
2828
- runtime?: string;
2829
- framework?: string;
2830
- includePreview?: boolean;
2831
- include_preview?: boolean;
2832
- }
2833
- interface DockerDeployDoctorParams {
2834
- /** Probe the deployment public URL after checking control-plane metadata. Default: true. */
2835
- probe?: boolean;
2836
- /** Path to request on the public URL. Default: "/". */
2837
- probePath?: string;
2838
- /** Public URL probe timeout in milliseconds. Default: 20_000. */
2839
- timeoutMs?: number;
2840
- /** Test hook or custom runtime fetch implementation. */
2841
- fetchImpl?: typeof fetch;
2842
- }
2843
2971
  interface DockerDeployDoctorCheck {
2844
2972
  name: string;
2845
2973
  ok: boolean;
2846
2974
  message: string;
2847
- data?: Record<string, unknown>;
2975
+ details?: Record<string, unknown>;
2848
2976
  }
2849
2977
  interface DockerDeployDoctorProbe {
2850
2978
  url: string;
2851
- status: number | null;
2852
2979
  ok: boolean;
2853
- responseSnippet: string;
2854
- gatewayJson?: boolean;
2980
+ status?: number;
2981
+ error?: string;
2855
2982
  }
2856
2983
  interface DockerDeployDoctorResult {
2857
2984
  ok: boolean;
2858
2985
  deployment: DeploymentData;
2859
2986
  host?: DockerDeployHostData;
2860
- publicUrl?: string | null;
2861
2987
  checks: DockerDeployDoctorCheck[];
2862
2988
  probe?: DockerDeployDoctorProbe;
2863
2989
  }
2990
+ interface DockerDeployDoctorParams {
2991
+ probePath?: string;
2992
+ probe_path?: string;
2993
+ timeoutMs?: number;
2994
+ timeout_ms?: number;
2995
+ }
2864
2996
  interface DeploymentUpdateParams {
2865
2997
  name?: string;
2866
2998
  branch?: string;
@@ -2906,10 +3038,6 @@ interface PublishParams extends ExternalAttribution {
2906
3038
  healthCheckPath?: string;
2907
3039
  /** @deprecated Reserved for dynamic runtime publish. */
2908
3040
  health_check_path?: string;
2909
- deploymentType?: DeploymentProduct | string;
2910
- deployment_type?: DeploymentProduct | string;
2911
- dockerDeployTemplateId?: string;
2912
- docker_deploy_template_id?: string;
2913
3041
  /** @deprecated Reserved for managed data-service binding. */
2914
3042
  dataServices?: string[];
2915
3043
  /** @deprecated Reserved for managed data-service binding. */
@@ -2995,20 +3123,12 @@ declare class Deployments {
2995
3123
  * deployment so the control plane attaches it to the workspace Docker host.
2996
3124
  */
2997
3125
  createDockerDeploy(params: DockerDeployCreateParams): Promise<DeploymentData>;
2998
- listDockerDeployHosts(params?: DockerDeployHostListParams): Promise<DockerDeployHostData[]>;
2999
- ensureDockerDeployHost(params: DockerDeployHostEnsureParams): Promise<DockerDeployHostData>;
3000
- getDockerDeployHost(hostId: string): Promise<DockerDeployHostData>;
3001
3126
  /**
3002
- * Verify a Docker Deploy deployment end-to-end.
3003
- *
3004
- * This checks the deployment product marker, Docker Deploy host linkage,
3005
- * appliance health, route runtime metadata, and optionally the public URL.
3006
- * It is intentionally agent-friendly: use this after sandbox.deployDocker()
3007
- * or createDockerDeploy() before telling a user the app is live.
3127
+ * Verify a Docker Deploy deployment before telling a user or agent it is
3128
+ * live. Checks product markers, appliance host health, route metadata, and
3129
+ * optionally probes the public URL.
3008
3130
  */
3009
3131
  doctorDockerDeploy(deploymentId: string, params?: DockerDeployDoctorParams): Promise<DockerDeployDoctorResult>;
3010
- listDockerDeployTemplates(params?: DockerDeployTemplateListParams): Promise<DockerDeployTemplateData[]>;
3011
- getDockerDeployTemplate(templateId: string): Promise<DockerDeployTemplateData>;
3012
3132
  update(deploymentId: string, params: DeploymentUpdateParams): Promise<DeploymentData>;
3013
3133
  delete(deploymentId: string): Promise<void>;
3014
3134
  publish(deploymentId: string, params: PublishParams): Promise<PublishResult>;
@@ -3032,60 +3152,6 @@ declare class Deployments {
3032
3152
  domains(deploymentId: string): DeploymentDomains;
3033
3153
  }
3034
3154
 
3035
- type DeviceKind = "sandbox_worker" | "computer" | "local_device" | "docker_deploy_host";
3036
- type DeviceSource = "sandboxes" | "computers";
3037
- interface DeviceCatalogEntry {
3038
- kind: DeviceKind;
3039
- label: string;
3040
- purpose: string;
3041
- lifecycle: string;
3042
- persistence: string;
3043
- primaryCommands: string[];
3044
- useWhen: string[];
3045
- avoidWhen: string[];
3046
- }
3047
- interface DeviceRecord {
3048
- id: string;
3049
- kind: DeviceKind;
3050
- source: DeviceSource;
3051
- name?: string;
3052
- state?: string;
3053
- ready?: boolean;
3054
- persistent?: boolean;
3055
- alwaysOn?: boolean;
3056
- region?: string;
3057
- template?: string;
3058
- previewUrl?: string;
3059
- timeoutRemainingMs?: number;
3060
- }
3061
- interface DeviceListError {
3062
- source: DeviceSource;
3063
- message: string;
3064
- retryable: boolean;
3065
- }
3066
- interface DeviceListParams {
3067
- kind?: "all" | "sandbox_worker" | "sandbox" | "computer";
3068
- }
3069
- interface DeviceListResponse {
3070
- devices: DeviceRecord[];
3071
- errors: DeviceListError[];
3072
- }
3073
- declare class Devices {
3074
- private readonly http;
3075
- constructor(http: HttpClient);
3076
- /**
3077
- * Return the static device catalog used by orchestration apps to choose the
3078
- * right MIOSA execution surface before creating resources.
3079
- */
3080
- catalog(): DeviceCatalogEntry[];
3081
- /**
3082
- * List hosted devices by normalizing existing sandboxes and computers.
3083
- * Partial backend failures are returned in `errors` so orchestration UIs can
3084
- * still show usable inventory instead of failing the whole page.
3085
- */
3086
- list(params?: DeviceListParams): Promise<DeviceListResponse>;
3087
- }
3088
-
3089
3155
  /**
3090
3156
  * Email — admin email campaigns, templates, and inbox surfaces.
3091
3157
  *
@@ -3630,28 +3696,53 @@ interface TunnelUpdateParams {
3630
3696
  interface TunnelListResponse {
3631
3697
  data: TunnelData[];
3632
3698
  }
3633
- type AgentSessionStatus = "pending" | "running" | "completed" | "failed" | "cancelled";
3699
+ type AgentSessionStatus = "pending" | "running" | "succeeded" | "completed" | "failed" | "canceled" | "cancelled";
3634
3700
  interface OcAgentSessionData {
3635
3701
  id: string;
3702
+ session_id?: string;
3636
3703
  host_id: HostId;
3637
3704
  task: string;
3638
- model_id: string | null;
3705
+ model_id?: string | null;
3706
+ model?: string | null;
3639
3707
  status: AgentSessionStatus;
3640
- max_turns: number;
3641
- turns_used: number;
3642
- created_at: string;
3643
- updated_at: string;
3644
- completed_at: string | null;
3645
- error: string | null;
3708
+ tools?: string[];
3709
+ max_turns?: number;
3710
+ turns_used?: number;
3711
+ max_steps?: number | null;
3712
+ max_tokens?: number | null;
3713
+ timeout_ms?: number | null;
3714
+ agent_runtime_profile_id?: string | null;
3715
+ runtime_context?: Record<string, unknown>;
3716
+ sse_url?: string;
3717
+ optimal_session_id?: string | null;
3718
+ created_at?: string;
3719
+ updated_at?: string;
3720
+ started_at?: string | null;
3721
+ ended_at?: string | null;
3722
+ inserted_at?: string;
3723
+ completed_at?: string | null;
3724
+ error?: string | null;
3725
+ result_summary?: string | null;
3646
3726
  }
3647
3727
  interface AgentDispatchParams {
3648
3728
  task: string;
3729
+ model?: string;
3649
3730
  model_id?: string;
3650
3731
  max_turns?: number;
3732
+ tools?: string[];
3733
+ budget?: {
3734
+ max_steps?: number;
3735
+ max_tokens?: number;
3736
+ timeout_ms?: number;
3737
+ };
3738
+ agent_runtime_profile_id?: string;
3739
+ agent_profile_id?: string;
3740
+ skip_agent_runtime_profile?: boolean;
3651
3741
  context?: Record<string, unknown>;
3652
3742
  }
3653
3743
  interface AgentSessionListResponse {
3654
- data: OcAgentSessionData[];
3744
+ data?: OcAgentSessionData[];
3745
+ sessions?: OcAgentSessionData[];
3655
3746
  }
3656
3747
  interface AgentEvent {
3657
3748
  type: string;
@@ -3778,6 +3869,8 @@ declare class Agents {
3778
3869
  private readonly http;
3779
3870
  constructor(http: HttpClient);
3780
3871
  private base;
3872
+ private unwrapSession;
3873
+ private unwrapList;
3781
3874
  /**
3782
3875
  * Dispatch a new agent session on the host.
3783
3876
  */
@@ -4483,6 +4576,28 @@ interface SandboxCreateParams {
4483
4576
  timeout_sec?: number;
4484
4577
  idleTimeoutSec?: number;
4485
4578
  idle_timeout_sec?: number;
4579
+ /**
4580
+ * Persistence policy for builder/agent sandboxes.
4581
+ *
4582
+ * MIOSA persistence means the sandbox should snapshot/pause when idle and
4583
+ * resume from that checkpoint later. It does not mean "keep CPU running".
4584
+ * Use alwaysOn for a sandbox that must keep executing without idle pause.
4585
+ */
4586
+ persistent?: boolean;
4587
+ snapshotExpirationSec?: number;
4588
+ snapshot_expiration_sec?: number;
4589
+ snapshotExpirationDays?: number;
4590
+ snapshot_expiration_days?: number;
4591
+ keepLastSnapshots?: number | {
4592
+ count: number;
4593
+ expirationSec?: number;
4594
+ deleteEvicted?: boolean;
4595
+ };
4596
+ keep_last_snapshots?: number | {
4597
+ count: number;
4598
+ expiration_sec?: number;
4599
+ delete_evicted?: boolean;
4600
+ };
4486
4601
  alwaysOn?: boolean;
4487
4602
  always_on?: boolean;
4488
4603
  env?: Record<string, string>;
@@ -4504,6 +4619,12 @@ interface SandboxCreateParams {
4504
4619
  idempotencyKey?: string;
4505
4620
  idempotency_key?: string;
4506
4621
  slug?: string;
4622
+ agentRuntimeProfileId?: string;
4623
+ agent_runtime_profile_id?: string;
4624
+ agentProfileId?: string;
4625
+ agent_profile_id?: string;
4626
+ skipAgentRuntimeProfile?: boolean;
4627
+ skip_agent_runtime_profile?: boolean;
4507
4628
  externalWorkspaceId?: string;
4508
4629
  external_workspace_id?: string;
4509
4630
  externalUserId?: string;
@@ -4511,6 +4632,15 @@ interface SandboxCreateParams {
4511
4632
  externalProjectId?: string;
4512
4633
  external_project_id?: string;
4513
4634
  }
4635
+ interface SandboxGetOrCreateParams extends SandboxCreateParams {
4636
+ name: string;
4637
+ /** Resume an existing paused sandbox before returning it. Defaults to true. */
4638
+ resume?: boolean;
4639
+ /** Wait for readiness before returning a created/resumed sandbox. Defaults to false. */
4640
+ waitUntilReady?: boolean;
4641
+ /** Readiness wait timeout in seconds. Defaults to 60 when waitUntilReady is true. */
4642
+ waitTimeoutSec?: number;
4643
+ }
4514
4644
  interface SandboxListParams {
4515
4645
  state?: SandboxState | string;
4516
4646
  tags?: string[];
@@ -4538,6 +4668,30 @@ interface SandboxExecResult {
4538
4668
  durationMs?: number;
4539
4669
  duration_ms?: number;
4540
4670
  }
4671
+ interface SandboxExportFile {
4672
+ path: string;
4673
+ filename?: string;
4674
+ download_url?: string;
4675
+ downloadUrl?: string;
4676
+ }
4677
+ interface SandboxExport {
4678
+ id: string;
4679
+ sandbox_id?: string;
4680
+ sandboxId?: string;
4681
+ label?: string | null;
4682
+ status: string;
4683
+ files: SandboxExportFile[];
4684
+ archive_download_url?: string;
4685
+ archiveDownloadUrl?: string;
4686
+ created_at?: string;
4687
+ createdAt?: string;
4688
+ }
4689
+ interface SandboxExportParams {
4690
+ path?: string;
4691
+ paths?: string[];
4692
+ label?: string;
4693
+ filename?: string;
4694
+ }
4541
4695
  type SandboxExecEvent = {
4542
4696
  type?: "stdout";
4543
4697
  line: string;
@@ -4742,8 +4896,6 @@ interface SandboxDeployParams {
4742
4896
  health_check_path?: string;
4743
4897
  deploymentType?: "miosa_deploy" | "docker_deploy" | "docker-deploy" | string;
4744
4898
  deployment_type?: "miosa_deploy" | "docker_deploy" | "docker-deploy" | string;
4745
- dockerDeployTemplateId?: string;
4746
- docker_deploy_template_id?: string;
4747
4899
  type?: "static" | "dynamic" | "server" | string;
4748
4900
  mode?: "static" | "dynamic" | "server" | string;
4749
4901
  database?: boolean | Record<string, unknown>;
@@ -4894,6 +5046,10 @@ declare class Sandbox {
4894
5046
  private execStream;
4895
5047
  writeFile(path: string, content: string | Uint8Array): Promise<void>;
4896
5048
  download(path: string): Promise<Uint8Array>;
5049
+ createExport(params: string | string[] | SandboxExportParams): Promise<SandboxExport>;
5050
+ downloadExport(paths: string | string[], options?: {
5051
+ filename?: string;
5052
+ }): Promise<Uint8Array>;
4897
5053
  readFile(path: string): Promise<string>;
4898
5054
  listFiles(path?: string): Promise<SandboxFileList>;
4899
5055
  statFile(path: string): Promise<SandboxFileStat>;
@@ -4923,9 +5079,28 @@ declare class Sandbox {
4923
5079
  tags?: string[];
4924
5080
  metadata?: Record<string, unknown>;
4925
5081
  always_on?: boolean;
5082
+ alwaysOn?: boolean;
4926
5083
  timeout_sec?: number;
5084
+ timeoutSec?: number;
4927
5085
  idle_timeout_sec?: number;
5086
+ idleTimeoutSec?: number;
5087
+ persistent?: boolean;
5088
+ snapshotExpirationSec?: number;
5089
+ snapshot_expiration_sec?: number;
5090
+ snapshotExpirationDays?: number;
5091
+ snapshot_expiration_days?: number;
5092
+ keepLastSnapshots?: number | {
5093
+ count: number;
5094
+ expirationSec?: number;
5095
+ deleteEvicted?: boolean;
5096
+ };
5097
+ keep_last_snapshots?: number | {
5098
+ count: number;
5099
+ expiration_sec?: number;
5100
+ delete_evicted?: boolean;
5101
+ };
4928
5102
  }): Promise<Sandbox>;
5103
+ extend(timeoutSec: number): Promise<Sandbox>;
4929
5104
  /**
4930
5105
  * POST /api/v1/sandboxes/{id}/preview-token → {token, url, expires_at, scope}
4931
5106
  */
@@ -4975,10 +5150,30 @@ declare class Sandbox {
4975
5150
  declare class Sandboxes {
4976
5151
  private readonly http;
4977
5152
  constructor(http: HttpClient);
5153
+ /**
5154
+ * Create a persistent agent workspace.
5155
+ *
5156
+ * This is the preferred entry point for AI builders, coding agents, and
5157
+ * product workspaces. It gives the sandbox a stable name, a longer interactive
5158
+ * timeout, and metadata that makes the workspace easy to identify later. The
5159
+ * agent should create/edit files in `/workspace`, run installs/tests/builds
5160
+ * inside the sandbox, expose previews from the sandbox, and publish from the
5161
+ * sandbox when ready.
5162
+ */
5163
+ createAgentWorkspace(params: SandboxGetOrCreateParams): Promise<Sandbox>;
4978
5164
  create(params?: SandboxCreateParams): Promise<Sandbox>;
4979
5165
  list(params?: SandboxListParams): Promise<Sandbox[]>;
4980
5166
  get(id: SandboxId | string): Promise<Sandbox>;
4981
5167
  connect(id: SandboxId | string): Promise<Sandbox>;
5168
+ getByName(name: string): Promise<Sandbox>;
5169
+ /**
5170
+ * Idempotently obtain a persistent sandbox by stable name.
5171
+ *
5172
+ * If the sandbox exists, it is returned. If it is paused and `resume !== false`,
5173
+ * it is resumed first. If it does not exist, it is created with the supplied
5174
+ * params. Destroyed sandboxes are permanent and are not resumed by this helper.
5175
+ */
5176
+ getOrCreate(params: SandboxGetOrCreateParams): Promise<Sandbox>;
4982
5177
  delete(id: SandboxId | string): Promise<void>;
4983
5178
  listTemplates(options?: {
4984
5179
  includeAliases?: boolean;
@@ -5328,39 +5523,66 @@ declare class OrgInvites {
5328
5523
  interface TenantPlan {
5329
5524
  id?: string;
5330
5525
  name?: string;
5331
- preview_domain?: string | null;
5332
- deployment_domain?: string | null;
5333
- fallback_miosa_domain?: string | null;
5334
5526
  limits?: Record<string, unknown>;
5335
5527
  usage?: Record<string, unknown>;
5336
5528
  [key: string]: unknown;
5337
5529
  }
5338
- interface BrandingData {
5339
- logo_url?: string | null;
5340
- primary_color?: string | null;
5341
- wordmark?: string | null;
5342
- favicon_url?: string | null;
5343
- [key: string]: unknown;
5344
- }
5345
5530
  interface PreviewDomainData {
5346
5531
  preview_domain?: string | null;
5347
- deployment_domain?: string | null;
5348
- fallback_miosa_domain?: string | null;
5532
+ default_domain?: string;
5349
5533
  status?: string;
5534
+ dns_status?: string;
5535
+ cname_target?: string | null;
5536
+ dns_instructions?: unknown;
5350
5537
  [key: string]: unknown;
5351
5538
  }
5352
5539
  interface TenantBrandingUpdateParams {
5353
- logo_url?: string | null;
5354
- primary_color?: string | null;
5355
- wordmark?: string | null;
5356
- favicon_url?: string | null;
5540
+ product_name?: string;
5541
+ logo_url?: string;
5542
+ support_url?: string;
5543
+ support_email?: string;
5544
+ primary_color?: string;
5545
+ background_color?: string;
5357
5546
  [key: string]: unknown;
5358
5547
  }
5548
+ type BrandingData = TenantBrandingUpdateParams;
5549
+ declare class PreviewDomain {
5550
+ private readonly http;
5551
+ constructor(http: HttpClient);
5552
+ /** Get the tenant's white-label preview domain settings. */
5553
+ get(): Promise<PreviewDomainData>;
5554
+ /** Set the tenant's white-label preview domain. */
5555
+ set(domain: string): Promise<PreviewDomainData>;
5556
+ /** Re-run DNS verification for the configured preview domain. */
5557
+ verify(): Promise<PreviewDomainData>;
5558
+ /** Remove the tenant's custom preview domain. */
5559
+ delete(): Promise<void>;
5560
+ }
5561
+ declare class Branding {
5562
+ private readonly http;
5563
+ constructor(http: HttpClient);
5564
+ /** Get tenant branding used by white-label hosted surfaces. */
5565
+ get(): Promise<BrandingData>;
5566
+ /** Update tenant branding used by white-label hosted surfaces. */
5567
+ set(params: TenantBrandingUpdateParams): Promise<BrandingData>;
5568
+ /** Reset tenant branding to platform defaults. */
5569
+ delete(): Promise<void>;
5570
+ }
5359
5571
  declare class Tenant {
5360
5572
  private readonly http;
5573
+ readonly preview_domain: PreviewDomain;
5574
+ readonly branding: Branding;
5575
+ /** camelCase alias for SDK consumers that avoid snake_case properties. */
5576
+ readonly previewDomain: PreviewDomain;
5361
5577
  constructor(http: HttpClient);
5362
5578
  /** Get the current tenant's plan, limits, and live usage counters. */
5363
5579
  current(): Promise<TenantPlan>;
5580
+ /** Convenience alias for `tenant.branding.get()`. */
5581
+ getBranding(): Promise<BrandingData>;
5582
+ /** Convenience alias for `tenant.branding.set(...)`. */
5583
+ setBranding(params: TenantBrandingUpdateParams): Promise<BrandingData>;
5584
+ /** Convenience alias for `tenant.branding.delete()`. */
5585
+ deleteBranding(): Promise<void>;
5364
5586
  }
5365
5587
 
5366
5588
  /**
@@ -5498,20 +5720,16 @@ interface WebhookUpdateParams {
5498
5720
  enabled?: boolean;
5499
5721
  [key: string]: unknown;
5500
5722
  }
5501
- interface WebhookSignatureVerifyOptions {
5502
- /** Maximum age for the webhook timestamp in seconds. Defaults to 300. */
5503
- toleranceSeconds?: number;
5504
- }
5505
5723
  /**
5506
- * Verify a MIOSA webhook signature header.
5724
+ * Verify the `Miosa-Signature` webhook header.
5507
5725
  *
5508
- * Header format: `t=<unix_seconds>,v1=<hex_hmac_sha256>`.
5726
+ * Header format: `t=<unix_seconds>,v1=<hex_hmac>`.
5727
+ * Signed payload: `<timestamp>.<raw_body>`.
5509
5728
  */
5510
- declare function verifySignature(body: string | Buffer | Uint8Array, header: string, secret: string, options?: WebhookSignatureVerifyOptions): boolean;
5729
+ declare function verifySignature(body: Buffer | Uint8Array | string, header: string, secret: string, toleranceSec?: number): boolean;
5511
5730
  declare class Webhooks {
5512
5731
  private readonly http;
5513
5732
  static verifySignature: typeof verifySignature;
5514
- static verify_signature: typeof verifySignature;
5515
5733
  constructor(http: HttpClient);
5516
5734
  list(params?: WebhookListParams): Promise<WebhookData[]>;
5517
5735
  get(webhookId: string): Promise<WebhookData>;
@@ -5790,17 +6008,21 @@ declare class Miosa {
5790
6008
  readonly externalKeys: ExternalKeys;
5791
6009
  /** Model Context Protocol — JSON-RPC dispatch + streaming channel. */
5792
6010
  readonly mcp: Mcp;
6011
+ /** Agent Runs — prompt dispatch into sandbox targets. */
6012
+ readonly agentRuns: AgentRuns;
6013
+ /** Agent runtime profiles — tenant/workspace defaults for sandbox/computer agents. */
6014
+ readonly agentRuntimeProfiles: AgentRuntimeProfiles;
5793
6015
  /** Computer management — create, list, get, delete. */
5794
6016
  readonly computers: Computers;
5795
6017
  /** Sandboxes — native code-execution environments under `/sandboxes`. */
5796
6018
  readonly sandboxes: Sandboxes;
5797
- /** Agent device facade — route work across Sandboxes, Computers, and deploy hosts. */
5798
- readonly devices: Devices;
5799
6019
  /**
5800
6020
  * Deployments — publish from a sandbox to a stable production URL.
5801
6021
  * Versions, releases, rollback, custom domains.
5802
6022
  */
5803
6023
  readonly deployments: Deployments;
6024
+ /** Docker Deploy appliance hosts — one always-on workspace host, many apps. */
6025
+ readonly dockerDeploy: DockerDeploy;
5804
6026
  /** Credit balance and usage. */
5805
6027
  readonly credits: Credits;
5806
6028
  /** Admin surface (`/api/v1/admin/*`) — requires an admin credential. */
@@ -5860,6 +6082,104 @@ declare class Miosa {
5860
6082
  constructor(config: MiosaClientConfig);
5861
6083
  }
5862
6084
 
6085
+ /**
6086
+ * AppAuth — end-user authentication client for apps deployed on MIOSA.
6087
+ *
6088
+ * Reads AUTH_URL and AUTH_JWT_SECRET from the process environment at
6089
+ * construction time. Both are injected automatically when a sandbox or
6090
+ * deployment boots.
6091
+ *
6092
+ * @example
6093
+ * ```ts
6094
+ * import { AppAuth } from '@miosa/sdk';
6095
+ *
6096
+ * const auth = new AppAuth({ resourceType: 'deployment', resourceId: 'dep_abc' });
6097
+ *
6098
+ * const session = await auth.signup('alice@example.com', 'hunter2');
6099
+ * console.log(session.userId, session.token);
6100
+ *
6101
+ * const verified = await auth.verifyToken(session.token);
6102
+ * console.log(verified.sub);
6103
+ * ```
6104
+ */
6105
+ /** Branded string types for domain safety. */
6106
+ type UserId = string & {
6107
+ readonly __brand: "UserId";
6108
+ };
6109
+ type AuthToken = string & {
6110
+ readonly __brand: "AuthToken";
6111
+ };
6112
+ /** Response returned by signup, login, verify, and me. */
6113
+ interface AppAuthSession {
6114
+ userId: UserId;
6115
+ token: AuthToken;
6116
+ expiresAt: string;
6117
+ }
6118
+ /** Decoded JWT payload returned by verifyToken. */
6119
+ interface AppAuthTokenPayload {
6120
+ sub: string;
6121
+ exp: number;
6122
+ iat: number;
6123
+ [key: string]: unknown;
6124
+ }
6125
+ type AppAuthResourceType = "sandbox" | "deployment";
6126
+ interface AppAuthConfig {
6127
+ /** Resource type — "sandbox" or "deployment". */
6128
+ resourceType: AppAuthResourceType;
6129
+ /** Resource ID (sandbox ID or deployment ID). */
6130
+ resourceId: string;
6131
+ /**
6132
+ * Base URL of the app-auth service. Defaults to the AUTH_URL environment
6133
+ * variable, which is injected at boot inside every MIOSA sandbox/deployment.
6134
+ */
6135
+ authUrl?: string;
6136
+ /**
6137
+ * HS256 secret for verifyToken(). Defaults to AUTH_JWT_SECRET from env.
6138
+ * Only needed if you call verifyToken() server-side.
6139
+ */
6140
+ jwtSecret?: string;
6141
+ }
6142
+ declare class AppAuth {
6143
+ private readonly baseUrl;
6144
+ private readonly resourceType;
6145
+ private readonly resourceId;
6146
+ private readonly jwtSecret;
6147
+ constructor(config: AppAuthConfig);
6148
+ /** POST /app-auth/:resourceType/:resourceId/signup */
6149
+ signup(email: string, password: string): Promise<AppAuthSession>;
6150
+ /** POST /app-auth/:resourceType/:resourceId/login */
6151
+ login(email: string, password: string): Promise<AppAuthSession>;
6152
+ /**
6153
+ * POST /app-auth/:resourceType/:resourceId/verify
6154
+ * Verifies an email confirmation or magic-link token issued by the backend.
6155
+ */
6156
+ verify(token: string): Promise<AppAuthSession>;
6157
+ /** POST /app-auth/:resourceType/:resourceId/password-reset */
6158
+ passwordReset(email: string): Promise<{
6159
+ ok: boolean;
6160
+ }>;
6161
+ /**
6162
+ * POST /app-auth/:resourceType/:resourceId/logout
6163
+ * Invalidates the given bearer token server-side.
6164
+ */
6165
+ logout(token: AuthToken): Promise<{
6166
+ ok: boolean;
6167
+ }>;
6168
+ /**
6169
+ * GET /app-auth/:resourceType/:resourceId/me
6170
+ * Returns the session for the bearer token.
6171
+ */
6172
+ me(token: AuthToken): Promise<AppAuthSession>;
6173
+ /**
6174
+ * Verifies a JWT token locally using HS256 + AUTH_JWT_SECRET.
6175
+ *
6176
+ * Does NOT make a network call. Throws if the signature is invalid or the
6177
+ * token is expired. Returns the decoded payload on success.
6178
+ */
6179
+ verifyToken(token: string): Promise<AppAuthTokenPayload>;
6180
+ private _post;
6181
+ }
6182
+
5863
6183
  interface MiosaErrorBody {
5864
6184
  error?: {
5865
6185
  code?: string;
@@ -5901,4 +6221,4 @@ declare class NetworkError extends MiosaError {
5901
6221
  constructor(message: string, cause: Error);
5902
6222
  }
5903
6223
 
5904
- export { type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, 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 AppCatalogEntry, type AppInstallData, type AppInstallEvent, type AuditListParams, AuditLog, type AuditLogEvent, type AuditLogListParams, type AuditTailParams, AuthError, 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, type ClusterCreateParams, type ClusterData, type ClusterEvent, type ClusterId, type ClusterListResponse, type ClusterStatus, CommandCenter, Community, type CompletionCreateParams, type CompletionCreateStreamParams, Completions, Computer, ComputerAudit, ComputerAutoStop, 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 CopyParams, type CreateAdminApiKeyParams, 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, Dashboard, type DashboardSummary, type DatabaseCreateParams, type DatabaseCredentials, type DatabaseData, type DatabaseId, type DatabaseListParams, type DatabaseLogsParams, type DatabaseLogsResult, Databases, type DeploymentBuildData, 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 DeviceCatalogEntry, type DeviceKind, type DeviceListError, type DeviceListParams, type DeviceListResponse, type DeviceRecord, type DeviceSource, Devices, type DirEntry, type DirListResult, type DiscordSendTestParams, type DockerDeployCreateParams, type DockerDeployDesignReferencePreset, type DockerDeployDoctorCheck, type DockerDeployDoctorParams, type DockerDeployDoctorProbe, type DockerDeployDoctorResult, type DockerDeployHostData, type DockerDeployHostEnsureParams, type DockerDeployHostListParams, type DockerDeployTemplateData, type DockerDeployTemplateListParams, type DoubleClickParams, type DragParams, type EgressAllowlistRule, EgressAudit, type EgressAuditEvent, type EgressBindingData, 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, 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, Mcp, type McpDispatchParams, Miosa, type MiosaClientConfig, MiosaError, type MkdirParams, type ModeParams, Models, type MouseButton, NetworkError, NetworkPolicy, type NetworkPolicyData, type NetworkPolicyEffect, type NetworkPolicyProtocol, type NetworkPolicyRule, type NetworkPolicySetParams, NotFoundError, type NotificationPrefsUpdateParams, OAuthFlow, type OauthConnectParams, type OauthProvider, type OauthStartResult, type OauthStatusResult, type ObjectListParams, type AgentEvent as OcAgentEvent, type OcAgentSessionData, type AgentSessionListResponse as OcAgentSessionListResponse, type OcWorkspaceCreateParams, type OcWorkspaceData, type OcWorkspaceEvent, type OcWorkspaceListResponse, type OcWorkspaceStatus, type OcWorkspaceUpdateParams, OpenComputers, type OrgInvite, type OrgInviteCreated, type OrgInviteCreatedResponse, type OrgInviteListResponse, type OrgInvitePreview, type OrgInviteRevokeResponse, OrgInvites, type OrgRole, type OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, type PreviewDomainData, ProjectAuth, type ProjectAuthEnableParams, type ProjectAuthStatus, type ProjectAuthUpdateParams, type ProjectIntegrationCatalogEntry, type ProjectIntegrationCreateParams, type ProjectIntegrationData, type ProjectIntegrationListParams, type ProjectIntegrationUpdateParams, ProjectIntegrations, ProviderDefaults, type ProviderKeyUpsertParams, type PublishFromSandboxParams, type PublishParams, type PublishResult, RateLimitError, type RegionData, Regions, type RollbackParams, type RulesListParams, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxArtifacts, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecOptions, type SandboxExecResult, SandboxFiles, 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, 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, type SuggestionsParams, type TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, Tenant, type TenantBrandingUpdateParams, type TenantId, type TenantPlan, type TenantSummary, type TerminalCreateParams, TimeoutError, type TimeseriesParams, 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, ValidationError, type VersionListParams, type VolumeCreateParams, type VolumeData, type VolumeId, type VolumeListParams, Volumes, type WaitParams, type WebhookCreateParams, type WebhookData, type WebhookDeliveryData, type WebhookDeliveryId, type WebhookId, type WebhookListParams, type WebhookUpdateParams, Webhooks, type WindowFocusParams, type WindowInfo, type WorkspaceId, type WorkspaceInvite, type WorkspaceInviteCreatedResponse, type WorkspaceInviteListResponse, type WorkspaceInvitePreview, type WorkspaceInviteRevokeResponse, WorkspaceInvites, type WorkspaceMember, type WorkspaceMemberAddedResponse, type WorkspaceMemberDeleteResponse, type WorkspaceMemberListResponse, type WorkspaceMemberRecord, type WorkspaceMemberRecordResponse, WorkspaceMembers, type WorkspaceRole, type WsTicket, verifySignature };
6224
+ export { type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, type AgentRun, type AgentRunCreateParams, type AgentRunStatus, type AgentRunTargetKind, 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 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, type ClusterCreateParams, type ClusterData, type ClusterEvent, type ClusterId, type ClusterListResponse, type ClusterStatus, CommandCenter, Community, type CompletionCreateParams, type CompletionCreateStreamParams, Completions, Computer, ComputerAudit, ComputerAutoStop, 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 CopyParams, type CreateAdminApiKeyParams, 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, Dashboard, type DashboardSummary, type DatabaseCreateParams, type DatabaseCredentials, type DatabaseData, type DatabaseId, type DatabaseListParams, type DatabaseLogsParams, type DatabaseLogsResult, Databases, type DeploymentBuildData, 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 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, 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, 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, Mcp, type McpDispatchParams, Miosa, type MiosaClientConfig, MiosaError, type MkdirParams, type ModeParams, Models, type MouseButton, NetworkError, NetworkPolicy, type NetworkPolicyData, type NetworkPolicyEffect, type NetworkPolicyProtocol, type NetworkPolicyRule, type NetworkPolicySetParams, NotFoundError, type NotificationPrefsUpdateParams, OAuthFlow, type OauthConnectParams, type OauthProvider, type OauthStartResult, type OauthStatusResult, type ObjectListParams, type AgentEvent as OcAgentEvent, type OcAgentSessionData, type AgentSessionListResponse as OcAgentSessionListResponse, type OcWorkspaceCreateParams, type OcWorkspaceData, type OcWorkspaceEvent, type OcWorkspaceListResponse, type OcWorkspaceStatus, type OcWorkspaceUpdateParams, OpenComputers, type OrgInvite, type OrgInviteCreated, type OrgInviteCreatedResponse, type OrgInviteListResponse, type OrgInvitePreview, type OrgInviteRevokeResponse, OrgInvites, type OrgRole, type OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, type PreviewDomainData, ProjectAuth, type ProjectAuthEnableParams, type ProjectAuthStatus, type ProjectAuthUpdateParams, type ProjectIntegrationCatalogEntry, type ProjectIntegrationCreateParams, type ProjectIntegrationData, type ProjectIntegrationListParams, type ProjectIntegrationUpdateParams, ProjectIntegrations, ProviderDefaults, type ProviderKeyUpsertParams, type PublishFromSandboxParams, type PublishParams, type PublishResult, RateLimitError, type RegionData, Regions, type RollbackParams, type RulesListParams, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxArtifacts, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecOptions, type SandboxExecResult, SandboxFiles, type SandboxGetOrCreateParams, type SandboxId, type SandboxListParams, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, type SandboxState, SandboxTags, type SandboxTemplate, type SandboxTemplateBuild, type SandboxTemplateBuildCreateParams, type SandboxTemplateBuildResourceData, type SandboxTemplateBuildResourceId, type SandboxTemplateCreateParams, type SandboxTemplateList, type SandboxTemplateListParams, type SandboxTemplateResourceData, type SandboxTemplateResourceId, SandboxTemplates, SandboxTerminal, Sandboxes, 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, type SuggestionsParams, type TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, Tenant, type TenantBrandingUpdateParams, type TenantId, type TenantPlan, type TenantSummary, type TerminalCreateParams, TimeoutError, type TimeseriesParams, 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, type UserId, ValidationError, type VersionListParams, type VolumeCreateParams, type VolumeData, type VolumeId, type VolumeListParams, Volumes, type WaitParams, type WebhookCreateParams, type WebhookData, type WebhookDeliveryData, type WebhookDeliveryId, type WebhookId, type WebhookListParams, type WebhookUpdateParams, Webhooks, type WindowFocusParams, type WindowInfo, type WorkspaceId, type WorkspaceInvite, type WorkspaceInviteCreatedResponse, type WorkspaceInviteListResponse, type WorkspaceInvitePreview, type WorkspaceInviteRevokeResponse, WorkspaceInvites, type WorkspaceMember, type WorkspaceMemberAddedResponse, type WorkspaceMemberDeleteResponse, type WorkspaceMemberListResponse, type WorkspaceMemberRecord, type WorkspaceMemberRecordResponse, WorkspaceMembers, type WorkspaceRole, type WsTicket, verifySignature };