@miosa/sdk 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -155,13 +155,6 @@ 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
158
  }
166
159
 
167
160
  /**
@@ -228,12 +221,6 @@ declare class ApiKeys {
228
221
  constructor(http: HttpClient);
229
222
  list(params?: ApiKeyListParams): Promise<ApiKeyData[]>;
230
223
  create(params: ApiKeyCreateParams): Promise<ApiKeyCreateResult>;
231
- /** POST /api/v1/api-keys/scoped — L2 delegation token bound to one external user. */
232
- createScoped(params: {
233
- externalUserId: string;
234
- scopes: string[];
235
- expiresAt?: string;
236
- }): Promise<ApiKeyCreateResult>;
237
224
  delete(keyId: string): Promise<void>;
238
225
  }
239
226
 
@@ -652,7 +639,7 @@ interface CustomDomainData$1 {
652
639
  * // 1. Register the domain
653
640
  * const domain = await computer.domains.register("app.example.com");
654
641
  * console.log(domain.instructions);
655
- * // => "Add a CNAME record: app.example.com → <slug>.sandbox.miosa.ai"
642
+ * // => "Add a CNAME record: app.example.com → <slug>.sandbox.<tenant-domain>"
656
643
  *
657
644
  * // 2. Add the CNAME in your DNS registrar, then...
658
645
  *
@@ -768,9 +755,9 @@ interface ComputerData {
768
755
  id: ComputerId;
769
756
  name: string;
770
757
  /**
771
- * URL-safe identifier used in preview URLs: `https://{port}-{slug}.sandbox.{preview_domain}`.
772
- * Falls back to the computer id when no slug is assigned. The domain is the
773
- * tenant's white-label `preview_domain` (server-provided) never hardcode it.
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.
774
761
  */
775
762
  slug: string;
776
763
  status: ComputerStatus;
@@ -781,9 +768,9 @@ interface ComputerData {
781
768
  metadata: Record<string, string>;
782
769
  /** Controls who can access the HTTP preview URL. Defaults to `"public"`. */
783
770
  visibility: ComputerVisibility;
784
- /** Public ingress root, e.g. `https://<slug>.sandbox.<preview_domain>` (server-provided). */
771
+ /** Public ingress root, e.g. `https://<slug>.sandbox.<preview_domain>`. */
785
772
  sandbox_url?: string;
786
- /** Tenant's white-label preview/base domain (e.g. `cliniciq.com`). Use to build preview URLs. */
773
+ /** Tenant's white-label preview/base domain, e.g. `cliniciq.com`. */
787
774
  preview_domain?: string;
788
775
  /** KasmVNC URL for desktop templates. */
789
776
  desktop_url?: string;
@@ -2548,90 +2535,6 @@ declare class Databases {
2548
2535
  streamLogs(databaseId: string): AsyncIterableIterator<unknown>;
2549
2536
  }
2550
2537
 
2551
- type DockerDeployHostId = string & {
2552
- readonly __brand: "DockerDeployHostId";
2553
- };
2554
- type DockerDeployHostStatus = "pending" | "provisioning" | "bootstrapping" | "active" | "degraded" | "suspended" | "retired" | "error";
2555
- type DockerDeployApplianceStatus = "not_installed" | "installing" | "starting" | "healthy" | "unhealthy" | "unknown";
2556
- interface DockerDeployHostData {
2557
- id: DockerDeployHostId;
2558
- tenant_id: string;
2559
- workspace_id: string;
2560
- external_workspace_id?: string | null;
2561
- computer_id?: string | null;
2562
- fleet_node_id?: string | null;
2563
- status: DockerDeployHostStatus;
2564
- size: string;
2565
- region: string;
2566
- portal_domain?: string | null;
2567
- runtime_base_url?: string | null;
2568
- agent_base_url?: string | null;
2569
- appliance_image?: string | null;
2570
- appliance_version?: string | null;
2571
- appliance_status: DockerDeployApplianceStatus;
2572
- agent_last_seen_at?: string | null;
2573
- metadata?: Record<string, unknown>;
2574
- created_at?: string;
2575
- updated_at?: string;
2576
- }
2577
- interface DockerDeployHostListParams {
2578
- workspace_id?: string;
2579
- workspaceId?: string;
2580
- }
2581
- interface DockerDeployHostEnsureParams {
2582
- workspace_id?: string;
2583
- workspaceId?: string;
2584
- external_workspace_id?: string;
2585
- externalWorkspaceId?: string;
2586
- }
2587
- interface DockerDeployHostListResponse {
2588
- data?: DockerDeployHostData[];
2589
- hosts?: DockerDeployHostData[];
2590
- }
2591
- interface DockerDeployHostResponse {
2592
- data?: DockerDeployHostData;
2593
- host?: DockerDeployHostData;
2594
- queued?: boolean;
2595
- }
2596
- interface DockerDeployTemplate {
2597
- id: string;
2598
- name: string;
2599
- description?: string;
2600
- category?: string;
2601
- runtime?: string;
2602
- tags?: string[];
2603
- metadata?: Record<string, unknown>;
2604
- [key: string]: unknown;
2605
- }
2606
- declare class DockerDeploy {
2607
- private readonly http;
2608
- constructor(http: HttpClient);
2609
- /**
2610
- * List Docker Deploy appliance hosts scoped to the current tenant.
2611
- *
2612
- * Pass a workspace ID to inspect the dedicated always-on appliance machine
2613
- * for one white-label workspace.
2614
- */
2615
- listHosts(params?: DockerDeployHostListParams): Promise<DockerDeployHostData[]>;
2616
- /**
2617
- * Ensure a workspace has its dedicated Docker Deploy appliance host.
2618
- *
2619
- * The host may still be `pending`, `provisioning`, or `bootstrapping` after
2620
- * this call. Treat `status === "active"` and `appliance_status === "healthy"`
2621
- * as the ready condition before sending app/container traffic to it.
2622
- */
2623
- ensureHost(params?: DockerDeployHostEnsureParams): Promise<{
2624
- host: DockerDeployHostData;
2625
- queued: boolean;
2626
- }>;
2627
- /** Fetch one Docker Deploy host by ID. */
2628
- getHost(hostId: string): Promise<DockerDeployHostData>;
2629
- /** List Docker Deploy starter templates. */
2630
- listTemplates(): Promise<DockerDeployTemplate[]>;
2631
- /** Fetch one Docker Deploy starter template by ID. */
2632
- getTemplate(templateId: string): Promise<DockerDeployTemplate>;
2633
- }
2634
-
2635
2538
  /**
2636
2539
  * Deployments resource — sandbox→production publishing surface.
2637
2540
  *
@@ -2707,31 +2610,6 @@ interface DeploymentData {
2707
2610
  created_at?: string;
2708
2611
  updated_at?: string;
2709
2612
  }
2710
- interface DockerDeployDoctorCheck {
2711
- name: string;
2712
- ok: boolean;
2713
- message: string;
2714
- details?: Record<string, unknown>;
2715
- }
2716
- interface DockerDeployDoctorProbe {
2717
- url: string;
2718
- ok: boolean;
2719
- status?: number;
2720
- error?: string;
2721
- }
2722
- interface DockerDeployDoctorResult {
2723
- ok: boolean;
2724
- deployment: DeploymentData;
2725
- host?: DockerDeployHostData;
2726
- checks: DockerDeployDoctorCheck[];
2727
- probe?: DockerDeployDoctorProbe;
2728
- }
2729
- interface DockerDeployDoctorParams {
2730
- probePath?: string;
2731
- probe_path?: string;
2732
- timeoutMs?: number;
2733
- timeout_ms?: number;
2734
- }
2735
2613
  type DeploymentDatabaseRequest = boolean | {
2736
2614
  engine?: "postgresql" | "mysql" | "redis" | "qdrant";
2737
2615
  size?: "xs" | "small" | "medium" | "large";
@@ -2882,11 +2760,107 @@ interface DeploymentCreateParams extends ExternalAttribution {
2882
2760
  auto_deploy?: boolean;
2883
2761
  autoDeploy?: boolean;
2884
2762
  database?: DeploymentDatabaseRequest;
2763
+ docker_deploy_template_id?: string;
2764
+ dockerDeployTemplateId?: string;
2885
2765
  metadata?: Record<string, unknown>;
2886
2766
  idempotencyKey?: string;
2887
2767
  }
2888
2768
  interface DockerDeployCreateParams extends DeploymentCreateParams {
2889
2769
  }
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
+ interface DockerDeployDoctorCheck {
2844
+ name: string;
2845
+ ok: boolean;
2846
+ message: string;
2847
+ data?: Record<string, unknown>;
2848
+ }
2849
+ interface DockerDeployDoctorProbe {
2850
+ url: string;
2851
+ status: number | null;
2852
+ ok: boolean;
2853
+ responseSnippet: string;
2854
+ gatewayJson?: boolean;
2855
+ }
2856
+ interface DockerDeployDoctorResult {
2857
+ ok: boolean;
2858
+ deployment: DeploymentData;
2859
+ host?: DockerDeployHostData;
2860
+ publicUrl?: string | null;
2861
+ checks: DockerDeployDoctorCheck[];
2862
+ probe?: DockerDeployDoctorProbe;
2863
+ }
2890
2864
  interface DeploymentUpdateParams {
2891
2865
  name?: string;
2892
2866
  branch?: string;
@@ -2932,6 +2906,10 @@ interface PublishParams extends ExternalAttribution {
2932
2906
  healthCheckPath?: string;
2933
2907
  /** @deprecated Reserved for dynamic runtime publish. */
2934
2908
  health_check_path?: string;
2909
+ deploymentType?: DeploymentProduct | string;
2910
+ deployment_type?: DeploymentProduct | string;
2911
+ dockerDeployTemplateId?: string;
2912
+ docker_deploy_template_id?: string;
2935
2913
  /** @deprecated Reserved for managed data-service binding. */
2936
2914
  dataServices?: string[];
2937
2915
  /** @deprecated Reserved for managed data-service binding. */
@@ -3017,12 +2995,20 @@ declare class Deployments {
3017
2995
  * deployment so the control plane attaches it to the workspace Docker host.
3018
2996
  */
3019
2997
  createDockerDeploy(params: DockerDeployCreateParams): Promise<DeploymentData>;
2998
+ listDockerDeployHosts(params?: DockerDeployHostListParams): Promise<DockerDeployHostData[]>;
2999
+ ensureDockerDeployHost(params: DockerDeployHostEnsureParams): Promise<DockerDeployHostData>;
3000
+ getDockerDeployHost(hostId: string): Promise<DockerDeployHostData>;
3020
3001
  /**
3021
- * Verify a Docker Deploy deployment before telling a user or agent it is
3022
- * live. Checks product markers, appliance host health, route metadata, and
3023
- * optionally probes the public URL.
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.
3024
3008
  */
3025
3009
  doctorDockerDeploy(deploymentId: string, params?: DockerDeployDoctorParams): Promise<DockerDeployDoctorResult>;
3010
+ listDockerDeployTemplates(params?: DockerDeployTemplateListParams): Promise<DockerDeployTemplateData[]>;
3011
+ getDockerDeployTemplate(templateId: string): Promise<DockerDeployTemplateData>;
3026
3012
  update(deploymentId: string, params: DeploymentUpdateParams): Promise<DeploymentData>;
3027
3013
  delete(deploymentId: string): Promise<void>;
3028
3014
  publish(deploymentId: string, params: PublishParams): Promise<PublishResult>;
@@ -3046,6 +3032,60 @@ declare class Deployments {
3046
3032
  domains(deploymentId: string): DeploymentDomains;
3047
3033
  }
3048
3034
 
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
+
3049
3089
  /**
3050
3090
  * Email — admin email campaigns, templates, and inbox surfaces.
3051
3091
  *
@@ -4702,6 +4742,8 @@ interface SandboxDeployParams {
4702
4742
  health_check_path?: string;
4703
4743
  deploymentType?: "miosa_deploy" | "docker_deploy" | "docker-deploy" | string;
4704
4744
  deployment_type?: "miosa_deploy" | "docker_deploy" | "docker-deploy" | string;
4745
+ dockerDeployTemplateId?: string;
4746
+ docker_deploy_template_id?: string;
4705
4747
  type?: "static" | "dynamic" | "server" | string;
4706
4748
  mode?: "static" | "dynamic" | "server" | string;
4707
4749
  database?: boolean | Record<string, unknown>;
@@ -5286,66 +5328,39 @@ declare class OrgInvites {
5286
5328
  interface TenantPlan {
5287
5329
  id?: string;
5288
5330
  name?: string;
5331
+ preview_domain?: string | null;
5332
+ deployment_domain?: string | null;
5333
+ fallback_miosa_domain?: string | null;
5289
5334
  limits?: Record<string, unknown>;
5290
5335
  usage?: Record<string, unknown>;
5291
5336
  [key: string]: unknown;
5292
5337
  }
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
+ }
5293
5345
  interface PreviewDomainData {
5294
5346
  preview_domain?: string | null;
5295
- default_domain?: string;
5347
+ deployment_domain?: string | null;
5348
+ fallback_miosa_domain?: string | null;
5296
5349
  status?: string;
5297
- dns_status?: string;
5298
- cname_target?: string | null;
5299
- dns_instructions?: unknown;
5300
5350
  [key: string]: unknown;
5301
5351
  }
5302
5352
  interface TenantBrandingUpdateParams {
5303
- product_name?: string;
5304
- logo_url?: string;
5305
- support_url?: string;
5306
- support_email?: string;
5307
- primary_color?: string;
5308
- background_color?: string;
5353
+ logo_url?: string | null;
5354
+ primary_color?: string | null;
5355
+ wordmark?: string | null;
5356
+ favicon_url?: string | null;
5309
5357
  [key: string]: unknown;
5310
5358
  }
5311
- type BrandingData = TenantBrandingUpdateParams;
5312
- declare class PreviewDomain {
5313
- private readonly http;
5314
- constructor(http: HttpClient);
5315
- /** Get the tenant's white-label preview domain settings. */
5316
- get(): Promise<PreviewDomainData>;
5317
- /** Set the tenant's white-label preview domain. */
5318
- set(domain: string): Promise<PreviewDomainData>;
5319
- /** Re-run DNS verification for the configured preview domain. */
5320
- verify(): Promise<PreviewDomainData>;
5321
- /** Remove the tenant's custom preview domain. */
5322
- delete(): Promise<void>;
5323
- }
5324
- declare class Branding {
5325
- private readonly http;
5326
- constructor(http: HttpClient);
5327
- /** Get tenant branding used by white-label hosted surfaces. */
5328
- get(): Promise<BrandingData>;
5329
- /** Update tenant branding used by white-label hosted surfaces. */
5330
- set(params: TenantBrandingUpdateParams): Promise<BrandingData>;
5331
- /** Reset tenant branding to platform defaults. */
5332
- delete(): Promise<void>;
5333
- }
5334
5359
  declare class Tenant {
5335
5360
  private readonly http;
5336
- readonly preview_domain: PreviewDomain;
5337
- readonly branding: Branding;
5338
- /** camelCase alias for SDK consumers that avoid snake_case properties. */
5339
- readonly previewDomain: PreviewDomain;
5340
5361
  constructor(http: HttpClient);
5341
5362
  /** Get the current tenant's plan, limits, and live usage counters. */
5342
5363
  current(): Promise<TenantPlan>;
5343
- /** Convenience alias for `tenant.branding.get()`. */
5344
- getBranding(): Promise<BrandingData>;
5345
- /** Convenience alias for `tenant.branding.set(...)`. */
5346
- setBranding(params: TenantBrandingUpdateParams): Promise<BrandingData>;
5347
- /** Convenience alias for `tenant.branding.delete()`. */
5348
- deleteBranding(): Promise<void>;
5349
5364
  }
5350
5365
 
5351
5366
  /**
@@ -5483,17 +5498,21 @@ interface WebhookUpdateParams {
5483
5498
  enabled?: boolean;
5484
5499
  [key: string]: unknown;
5485
5500
  }
5501
+ interface WebhookSignatureVerifyOptions {
5502
+ /** Maximum age for the webhook timestamp in seconds. Defaults to 300. */
5503
+ toleranceSeconds?: number;
5504
+ }
5486
5505
  /**
5487
- * Verify the `Miosa-Signature` webhook header.
5506
+ * Verify a MIOSA webhook signature header.
5488
5507
  *
5489
- * Header format: `t=<unix_seconds>,v1=<hex_hmac>`.
5490
- * Signed payload: `<timestamp>.<raw_body>`.
5508
+ * Header format: `t=<unix_seconds>,v1=<hex_hmac_sha256>`.
5491
5509
  */
5492
- declare function verifySignature(body: Buffer | Uint8Array | string, header: string, secret: string, toleranceSec?: number): boolean;
5510
+ declare function verifySignature(body: string | Buffer | Uint8Array, header: string, secret: string, options?: WebhookSignatureVerifyOptions): boolean;
5493
5511
  declare class Webhooks {
5494
5512
  private readonly http;
5495
- constructor(http: HttpClient);
5496
5513
  static verifySignature: typeof verifySignature;
5514
+ static verify_signature: typeof verifySignature;
5515
+ constructor(http: HttpClient);
5497
5516
  list(params?: WebhookListParams): Promise<WebhookData[]>;
5498
5517
  get(webhookId: string): Promise<WebhookData>;
5499
5518
  create(params: WebhookCreateParams): Promise<WebhookData>;
@@ -5775,13 +5794,13 @@ declare class Miosa {
5775
5794
  readonly computers: Computers;
5776
5795
  /** Sandboxes — native code-execution environments under `/sandboxes`. */
5777
5796
  readonly sandboxes: Sandboxes;
5797
+ /** Agent device facade — route work across Sandboxes, Computers, and deploy hosts. */
5798
+ readonly devices: Devices;
5778
5799
  /**
5779
5800
  * Deployments — publish from a sandbox to a stable production URL.
5780
5801
  * Versions, releases, rollback, custom domains.
5781
5802
  */
5782
5803
  readonly deployments: Deployments;
5783
- /** Docker Deploy appliance hosts — one always-on workspace host, many apps. */
5784
- readonly dockerDeploy: DockerDeploy;
5785
5804
  /** Credit balance and usage. */
5786
5805
  readonly credits: Credits;
5787
5806
  /** Admin surface (`/api/v1/admin/*`) — requires an admin credential. */
@@ -5882,4 +5901,4 @@ declare class NetworkError extends MiosaError {
5882
5901
  constructor(message: string, cause: Error);
5883
5902
  }
5884
5903
 
5885
- 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 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 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 };
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 };