@miosa/sdk 2.0.7 → 3.0.1

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
@@ -443,9 +443,6 @@ type RunTargetKind = "sandbox" | "computer";
443
443
  type RunStatus = "running" | "succeeded" | "failed" | "canceled";
444
444
  interface Run {
445
445
  id: string;
446
- agent_definition_id?: string | null;
447
- agent_version_id?: string | null;
448
- configuration_receipt?: Record<string, unknown> | null;
449
446
  run_group_id?: string;
450
447
  parent_run_id?: string;
451
448
  orchestration_role?: string;
@@ -606,9 +603,6 @@ interface RunCreateParams {
606
603
  env?: Record<string, string>;
607
604
  agentRuntimeProfileId?: string;
608
605
  agentProfileId?: string;
609
- agentDefinitionId?: string;
610
- agentVersionId?: string;
611
- configurationReceipt?: Record<string, unknown>;
612
606
  runGroupId?: string;
613
607
  parentRunId?: string;
614
608
  orchestrationRole?: string;
@@ -856,62 +850,6 @@ declare class AgentRuntimeProfiles {
856
850
  delete(id: string): Promise<void>;
857
851
  }
858
852
 
859
- interface AgentVersionData {
860
- id: string;
861
- agent_definition_id: string;
862
- version: number;
863
- fingerprint: string;
864
- configuration: Record<string, unknown>;
865
- published_by_user_id?: string | null;
866
- published_at: string;
867
- }
868
- interface AgentDefinitionData {
869
- id: string;
870
- tenant_id: string;
871
- workspace_id: string;
872
- project_id?: string | null;
873
- name: string;
874
- description?: string | null;
875
- status: "active" | "archived" | string;
876
- metadata: Record<string, unknown>;
877
- latest_version: AgentVersionData;
878
- versions?: AgentVersionData[];
879
- created_at: string;
880
- updated_at: string;
881
- }
882
- interface AgentDefinitionListParams {
883
- workspaceId?: string;
884
- workspace_id?: string;
885
- projectId?: string;
886
- project_id?: string;
887
- status?: "active" | "archived" | "all" | string;
888
- }
889
- interface AgentDefinitionCreateParams {
890
- workspaceId?: string;
891
- workspace_id?: string;
892
- projectId?: string;
893
- project_id?: string;
894
- name: string;
895
- description?: string;
896
- metadata?: Record<string, unknown>;
897
- configuration: Record<string, unknown>;
898
- }
899
- interface AgentDefinitionUpdateParams {
900
- name?: string;
901
- description?: string;
902
- metadata?: Record<string, unknown>;
903
- }
904
- declare class AgentDefinitions {
905
- private readonly http;
906
- constructor(http: HttpClient);
907
- list(params?: AgentDefinitionListParams): Promise<AgentDefinitionData[]>;
908
- get(id: string): Promise<AgentDefinitionData>;
909
- create(params: AgentDefinitionCreateParams): Promise<AgentDefinitionData>;
910
- update(id: string, params: AgentDefinitionUpdateParams): Promise<AgentDefinitionData>;
911
- publish(id: string, configuration: Record<string, unknown>): Promise<AgentVersionData>;
912
- archive(id: string): Promise<void>;
913
- }
914
-
915
853
  /**
916
854
  * Analytics — overview + timeseries (admin scope).
917
855
  */
@@ -985,195 +923,6 @@ declare class ApiKeys {
985
923
  delete(keyId: string): Promise<void>;
986
924
  }
987
925
 
988
- type AppJson = null | boolean | number | string | AppJson[] | {
989
- [key: string]: AppJson;
990
- };
991
- interface AppDocument {
992
- id: string;
993
- name: string;
994
- format: "miosa-app/v1";
995
- metadata?: Record<string, AppJson>;
996
- view: {
997
- kind: "generated";
998
- source: string;
999
- artifact?: {
1000
- entrypoint: string;
1001
- files: Record<string, string>;
1002
- };
1003
- } | {
1004
- kind: "served";
1005
- deploymentId: string;
1006
- releaseId: string;
1007
- };
1008
- capabilities: string[];
1009
- collections: string[];
1010
- connectors: string[];
1011
- automations: Array<{
1012
- id: string;
1013
- trigger: {
1014
- kind: "schedule";
1015
- cron: string;
1016
- } | {
1017
- kind: "event";
1018
- event: string;
1019
- };
1020
- steps: Array<{
1021
- capability: string;
1022
- input: AppJson;
1023
- }>;
1024
- }>;
1025
- pins: Array<{
1026
- slot: string;
1027
- component: string;
1028
- baseHash: string;
1029
- source: string;
1030
- editIntents: AppJson[];
1031
- }>;
1032
- bindings?: Array<{
1033
- id: string;
1034
- capability: string;
1035
- samples: AppJson[];
1036
- path: string[];
1037
- }>;
1038
- }
1039
- interface AppReleaseApproval {
1040
- id: string;
1041
- app_document_id: string;
1042
- version_hash: string;
1043
- approved_by_user_id: string | null;
1044
- reason: string | null;
1045
- compiled_requirements: Record<string, AppJson>;
1046
- deployment_id: string | null;
1047
- deployment_version_id: string | null;
1048
- release_id: string | null;
1049
- artifact_sha256: string | null;
1050
- source_snapshot_sha256: string | null;
1051
- approved_at: string;
1052
- revoked_at: string | null;
1053
- revoked_by_user_id: string | null;
1054
- }
1055
- interface AppReleaseCandidate {
1056
- deployment_id: string;
1057
- deployment_version_id: string;
1058
- release_id: string;
1059
- artifact_sha256: string;
1060
- source_snapshot_sha256: string;
1061
- }
1062
- interface AppDocumentDiagnostics {
1063
- ok: boolean;
1064
- issues: Array<Record<string, AppJson>>;
1065
- manifest: Record<string, AppJson> | null;
1066
- }
1067
- interface AppCollectionRecord<T extends Record<string, AppJson> = Record<string, AppJson>> {
1068
- key: string;
1069
- collection: string;
1070
- value: T;
1071
- version: number;
1072
- inserted_at: string;
1073
- updated_at: string;
1074
- }
1075
- interface AppPublication {
1076
- deployment_id: string;
1077
- release_id: string;
1078
- version_hash: string;
1079
- published_at: string;
1080
- }
1081
- interface AppActionDecision {
1082
- decision: "allow" | "pending_approval" | "deny";
1083
- receipt_id?: string;
1084
- approval_request_id?: string;
1085
- reason?: string;
1086
- capability?: Record<string, AppJson>;
1087
- }
1088
- interface AppRuntimeToken {
1089
- token: string;
1090
- release_id: string;
1091
- expires_in: number;
1092
- }
1093
- interface AppBindingResolution {
1094
- binding_id: string;
1095
- receipt_id: string;
1096
- capability_fingerprint: string;
1097
- value: AppJson;
1098
- }
1099
- interface AppAutomationRun {
1100
- id: string;
1101
- app_document_id: string;
1102
- release_id: string;
1103
- automation_id: string;
1104
- trigger: Record<string, AppJson>;
1105
- cursor: number;
1106
- status: "running" | "executing" | "waiting_approval" | "completed" | "failed" | "stopped";
1107
- current_step: Record<string, AppJson> | null;
1108
- claim: {
1109
- receipt_id: string;
1110
- idempotency_key: string;
1111
- cursor: number;
1112
- } | null;
1113
- pending_approval_request_id: string | null;
1114
- history: Array<Record<string, AppJson>>;
1115
- last_error: Record<string, AppJson> | null;
1116
- inserted_at: string;
1117
- updated_at: string;
1118
- }
1119
- interface AppDocumentRecord {
1120
- id: string;
1121
- tenant_id: string;
1122
- workspace_id: string;
1123
- created_by_user_id: string | null;
1124
- name: string;
1125
- document: AppDocument;
1126
- version_hash: string;
1127
- state: "draft" | "published" | "archived";
1128
- version_approved: boolean;
1129
- approval: AppReleaseApproval | null;
1130
- publication: AppPublication | null;
1131
- inserted_at: string;
1132
- updated_at: string;
1133
- }
1134
- interface AppDocumentCreateParams {
1135
- workspaceId: string;
1136
- name: string;
1137
- document: AppDocument;
1138
- }
1139
- interface AppDocumentUpdateParams {
1140
- name?: string;
1141
- document?: AppDocument;
1142
- }
1143
- declare class AppDocuments {
1144
- private readonly http;
1145
- constructor(http: HttpClient);
1146
- list(workspaceId: string): Promise<AppDocumentRecord[]>;
1147
- get(id: string): Promise<AppDocumentRecord>;
1148
- create(params: AppDocumentCreateParams): Promise<AppDocumentRecord>;
1149
- update(id: string, params: AppDocumentUpdateParams): Promise<AppDocumentRecord>;
1150
- archive(id: string): Promise<void>;
1151
- diagnostics(id: string): Promise<AppDocumentDiagnostics>;
1152
- stageCandidate(id: string): Promise<AppReleaseCandidate>;
1153
- approveExactVersion(id: string, releaseId: string, reason?: string): Promise<AppReleaseApproval>;
1154
- publishExactRelease(id: string): Promise<AppDocumentRecord>;
1155
- listData<T extends Record<string, AppJson> = Record<string, AppJson>>(id: string, collection: string): Promise<AppCollectionRecord<T>[]>;
1156
- getData<T extends Record<string, AppJson> = Record<string, AppJson>>(id: string, collection: string, key: string): Promise<AppCollectionRecord<T>>;
1157
- putData<T extends Record<string, AppJson>>(id: string, collection: string, key: string, value: T, expectedVersion?: number): Promise<AppCollectionRecord<T>>;
1158
- deleteData(id: string, collection: string, key: string, expectedVersion?: number): Promise<void>;
1159
- authorizeAction(id: string, input: {
1160
- releaseId: string;
1161
- callbackToken: string;
1162
- capability: Record<string, AppJson>;
1163
- requestFingerprint: string;
1164
- paramsFingerprint: string;
1165
- connectorId?: string;
1166
- }): Promise<AppActionDecision>;
1167
- mintRuntimeToken(id: string): Promise<AppRuntimeToken>;
1168
- resolveBinding(id: string, bindingId: string, receiptId: string, callbackToken: string): Promise<AppBindingResolution>;
1169
- listAutomationRuns(id: string): Promise<AppAutomationRun[]>;
1170
- startAutomationRun(id: string, automationId: string, trigger?: Record<string, AppJson>): Promise<AppAutomationRun>;
1171
- claimAutomationStep(id: string, runId: string): Promise<AppAutomationRun>;
1172
- completeAutomationStep(id: string, runId: string, cursor: number, idempotencyKey: string, output?: AppJson): Promise<AppAutomationRun>;
1173
- failAutomationStep(id: string, runId: string, cursor: number, idempotencyKey: string, reason: string): Promise<AppAutomationRun>;
1174
- revokeApproval(id: string, approvalId: string): Promise<void>;
1175
- }
1176
-
1177
926
  /**
1178
927
  * Audit log — admin-scoped event history.
1179
928
  */
@@ -5194,259 +4943,6 @@ declare class Functions {
5194
4943
  invoke(functionId: string, params?: FunctionInvokeParams): Promise<Record<string, unknown>>;
5195
4944
  }
5196
4945
 
5197
- interface MiosaErrorBody {
5198
- error?: string | {
5199
- code?: string;
5200
- message?: string;
5201
- details?: unknown;
5202
- };
5203
- message?: string;
5204
- code?: string;
5205
- detail?: string;
5206
- details?: unknown;
5207
- reason?: string;
5208
- request_id?: string;
5209
- }
5210
- declare class MiosaError extends Error {
5211
- readonly status: number;
5212
- readonly code: string;
5213
- readonly details: unknown;
5214
- readonly requestId: string | undefined;
5215
- constructor(message: string, status: number, code: string, details?: unknown, requestId?: string);
5216
- static fromResponse(status: number, body: MiosaErrorBody, requestId?: string): MiosaError;
5217
- }
5218
- declare class AuthError extends MiosaError {
5219
- constructor(message: string, status?: number, code?: string, details?: unknown, requestId?: string);
5220
- }
5221
- declare class NotFoundError extends MiosaError {
5222
- constructor(message: string, code?: string, details?: unknown, requestId?: string);
5223
- }
5224
- declare class RateLimitError extends MiosaError {
5225
- readonly retryAfter: number | undefined;
5226
- constructor(message: string, details?: unknown, requestId?: string, retryAfter?: number);
5227
- }
5228
- declare class InsufficientCreditsError extends MiosaError {
5229
- constructor(message: string, details?: unknown, requestId?: string);
5230
- }
5231
- declare class ValidationError extends MiosaError {
5232
- constructor(message: string, status: number, code?: string, details?: unknown, requestId?: string);
5233
- }
5234
- declare class TimeoutError extends MiosaError {
5235
- constructor(message?: string);
5236
- }
5237
- declare class NetworkError extends MiosaError {
5238
- readonly cause: Error;
5239
- constructor(message: string, cause: Error);
5240
- }
5241
- declare class ProjectNotLinkedError extends MiosaError {
5242
- constructor(message: string, status?: number, details?: unknown, requestId?: string);
5243
- }
5244
- declare class SubjectNotAllowedError extends MiosaError {
5245
- constructor(message: string, status?: number, details?: unknown, requestId?: string);
5246
- }
5247
- declare class ScopeNotAllowedError extends MiosaError {
5248
- constructor(message: string, status?: number, details?: unknown, requestId?: string);
5249
- }
5250
- declare class ManagedProviderBindingOnlyError extends MiosaError {
5251
- constructor(message: string, status?: number, details?: unknown, requestId?: string);
5252
- }
5253
- declare class InstallationRequiredError extends MiosaError {
5254
- constructor(message: string, status?: number, details?: unknown, requestId?: string);
5255
- }
5256
- declare class UserAuthorizationRequiredError extends MiosaError {
5257
- constructor(message: string, status?: number, details?: unknown, requestId?: string);
5258
- }
5259
- declare class EgressHostNotAllowedError extends MiosaError {
5260
- constructor(message: string, status?: number, details?: unknown, requestId?: string);
5261
- }
5262
- declare class TokenRefreshFailedError extends MiosaError {
5263
- constructor(message: string, status?: number, details?: unknown, requestId?: string);
5264
- }
5265
-
5266
- type ForgeRepositoryId = string & {
5267
- readonly __brand: "ForgeRepositoryId";
5268
- };
5269
- type ForgeOrganizationId = string & {
5270
- readonly __brand: "ForgeOrganizationId";
5271
- };
5272
- type ForgeRepositoryVisibility = "public" | "private" | "internal";
5273
- type ForgeRepositoryState = "provisioning" | "active" | "error" | "deletion_pending" | "deleted";
5274
- interface ForgeRepository {
5275
- id: ForgeRepositoryId;
5276
- name: string;
5277
- slug: string;
5278
- default_branch: string;
5279
- visibility: ForgeRepositoryVisibility;
5280
- state: ForgeRepositoryState;
5281
- clone_ready: boolean;
5282
- clone_url: string | null;
5283
- project_ids: string[];
5284
- created_at: string;
5285
- updated_at: string;
5286
- }
5287
- interface ForgeRepositoryCreateParams {
5288
- name: string;
5289
- slug?: string;
5290
- defaultBranch?: string;
5291
- visibility?: ForgeRepositoryVisibility;
5292
- projectIds?: string[];
5293
- idempotencyKey?: string;
5294
- }
5295
- interface ForgeRepositoryUpdateParams {
5296
- name?: string;
5297
- slug?: string;
5298
- visibility?: ForgeRepositoryVisibility;
5299
- projectIds?: string[];
5300
- }
5301
- interface ForgeRepositoryDeleteOptions {
5302
- /** Deprecated: delete is inherently replay-safe and accepts no key in v1. */
5303
- idempotencyKey?: never;
5304
- }
5305
- interface ForgeCapabilities {
5306
- api_version: "v1";
5307
- ownership: "organization";
5308
- detail_locator: "repository_id";
5309
- lifecycle_states: ForgeRepositoryState[];
5310
- visibility_values: ForgeRepositoryVisibility[];
5311
- clone_ready_states: ["active"];
5312
- base_url: string;
5313
- features: Record<string, boolean>;
5314
- }
5315
- interface ForgeDeleteReceipt {
5316
- operation_id: ForgeRepositoryId;
5317
- replayed: boolean;
5318
- }
5319
- interface ForgeNamedRef {
5320
- name: string;
5321
- oid: string;
5322
- }
5323
- interface ForgeBranch extends ForgeNamedRef {
5324
- is_default: boolean;
5325
- }
5326
- interface ForgeRepositoryRefs {
5327
- default_branch: string;
5328
- head_oid: string | null;
5329
- branches: ForgeBranch[];
5330
- tags: ForgeNamedRef[];
5331
- }
5332
- type ForgeTreeEntryType = "blob" | "tree";
5333
- interface ForgeTreeEntry {
5334
- name: string;
5335
- path: string;
5336
- type: ForgeTreeEntryType;
5337
- oid: string;
5338
- size: number | null;
5339
- }
5340
- interface ForgeRepositoryTree {
5341
- ref: string;
5342
- commit_oid: string;
5343
- path: string;
5344
- entries: ForgeTreeEntry[];
5345
- truncated: boolean;
5346
- }
5347
- type ForgeBlobEncoding = "utf-8" | "base64";
5348
- interface ForgeRepositoryBlob {
5349
- ref: string;
5350
- commit_oid: string;
5351
- path: string;
5352
- oid: string;
5353
- size: number;
5354
- encoding: ForgeBlobEncoding;
5355
- content: string;
5356
- }
5357
- interface ForgeCommit {
5358
- oid: string;
5359
- short_oid: string;
5360
- subject: string;
5361
- author_name: string;
5362
- author_email: string;
5363
- authored_at: string;
5364
- committer_name: string;
5365
- committed_at: string;
5366
- parents: string[];
5367
- }
5368
- interface ForgeCommitHistory {
5369
- ref: string;
5370
- path: string;
5371
- commits: ForgeCommit[];
5372
- page: {
5373
- has_more: boolean;
5374
- next_cursor: string | null;
5375
- };
5376
- }
5377
- interface ForgeContentLocation {
5378
- ref?: string;
5379
- path?: string;
5380
- }
5381
- interface ForgeCommitQuery extends ForgeContentLocation {
5382
- limit?: number;
5383
- cursor?: string;
5384
- }
5385
- interface ForgeFileAuthoringParams {
5386
- branch?: string;
5387
- expectedHead: string;
5388
- message?: string;
5389
- content?: string;
5390
- idempotencyKey?: string;
5391
- }
5392
- interface ForgeFileOperationReceipt {
5393
- operation_id: string;
5394
- repository_id: ForgeRepositoryId;
5395
- branch: string;
5396
- path: string;
5397
- action: "create" | "update" | "delete";
5398
- previous_head: string;
5399
- new_head: string;
5400
- commit: Omit<ForgeCommit, "parents"> & {
5401
- committer_email: string;
5402
- signature_status: "unsigned";
5403
- };
5404
- policy: {
5405
- decision: "allowed";
5406
- receipt_ids: string[];
5407
- };
5408
- replayed: boolean;
5409
- }
5410
- declare class ForgeContractError extends MiosaError {
5411
- constructor(message: string, details?: unknown);
5412
- }
5413
- declare class ForgeUnavailableError extends MiosaError {
5414
- constructor(message: string, cause: MiosaError);
5415
- }
5416
- declare class ForgeStorageError extends MiosaError {
5417
- constructor(message: string, cause: MiosaError);
5418
- }
5419
- declare class ForgePolicyViolationError extends MiosaError {
5420
- constructor(message: string, cause: MiosaError);
5421
- }
5422
- declare class ForgeRepositories {
5423
- private readonly http;
5424
- constructor(http: HttpClient);
5425
- create(params: ForgeRepositoryCreateParams): Promise<ForgeRepository>;
5426
- list(): Promise<ForgeRepository[]>;
5427
- get(id: ForgeRepositoryId): Promise<ForgeRepository>;
5428
- refs(id: ForgeRepositoryId): Promise<ForgeRepositoryRefs>;
5429
- tree(id: ForgeRepositoryId, location?: ForgeContentLocation): Promise<ForgeRepositoryTree>;
5430
- blob(id: ForgeRepositoryId, location: ForgeContentLocation & {
5431
- path: string;
5432
- }): Promise<ForgeRepositoryBlob>;
5433
- readme(id: ForgeRepositoryId, location?: ForgeContentLocation): Promise<ForgeRepositoryBlob>;
5434
- commits(id: ForgeRepositoryId, query?: ForgeCommitQuery): Promise<ForgeCommitHistory>;
5435
- putFile(id: ForgeRepositoryId, path: string, params: ForgeFileAuthoringParams & {
5436
- content: string;
5437
- }): Promise<ForgeFileOperationReceipt>;
5438
- deleteFile(id: ForgeRepositoryId, path: string, params: ForgeFileAuthoringParams): Promise<ForgeFileOperationReceipt>;
5439
- private authorFile;
5440
- update(id: ForgeRepositoryId, params: ForgeRepositoryUpdateParams): Promise<ForgeRepository>;
5441
- delete(id: ForgeRepositoryId, _options?: ForgeRepositoryDeleteOptions): Promise<ForgeDeleteReceipt>;
5442
- }
5443
- declare class Forge {
5444
- readonly repositories: ForgeRepositories;
5445
- constructor(http: HttpClient);
5446
- private readonly http;
5447
- capabilities(): Promise<ForgeCapabilities>;
5448
- }
5449
-
5450
4946
  /**
5451
4947
  * HealthChecks resource — uptime monitoring.
5452
4948
  */
@@ -6784,18 +6280,6 @@ interface SandboxCreateParams {
6784
6280
  agent_profile_id?: string;
6785
6281
  skipRuntimeProfile?: boolean;
6786
6282
  skip_agent_runtime_profile?: boolean;
6787
- workspaceId?: string;
6788
- workspace_id?: string;
6789
- workspaceSlug?: string;
6790
- workspace_slug?: string;
6791
- workspaceName?: string;
6792
- workspace_name?: string;
6793
- projectId?: string;
6794
- project_id?: string;
6795
- projectSlug?: string;
6796
- project_slug?: string;
6797
- projectName?: string;
6798
- project_name?: string;
6799
6283
  externalWorkspaceId?: string;
6800
6284
  external_workspace_id?: string;
6801
6285
  externalUserId?: string;
@@ -6919,8 +6403,6 @@ interface SandboxUsage {
6919
6403
  state: string;
6920
6404
  runtime_sec: number;
6921
6405
  provisioned_vcpu_ms: number;
6922
- provisioned_memory_mb_ms: number | null;
6923
- creation_count: number;
6924
6406
  active_cpu_ms: number | null;
6925
6407
  network_ingress_bytes: number | null;
6926
6408
  network_egress_bytes: number | null;
@@ -6934,8 +6416,6 @@ interface SandboxUsage {
6934
6416
  timeout_remaining_ms: number | null;
6935
6417
  }
6936
6418
  interface SandboxForkParams {
6937
- snapshotId?: string;
6938
- snapshot_id?: string;
6939
6419
  timeoutSec?: number;
6940
6420
  timeout_sec?: number;
6941
6421
  templateId?: string;
@@ -7374,11 +6854,6 @@ declare class Sandbox {
7374
6854
  resume(idempotencyKey?: string): Promise<Sandbox>;
7375
6855
  deploy(params?: SandboxDeployParams): Promise<Record<string, unknown>>;
7376
6856
  deployDocker(params?: SandboxDeployParams): Promise<Record<string, unknown>>;
7377
- /** Deploy an immutable snapshot without modifying the editable sandbox. */
7378
- deploySnapshot(snapshotId: string, params?: SandboxDeployParams, options?: {
7379
- cleanup?: boolean;
7380
- forkIdempotencyKey?: string;
7381
- }): Promise<Record<string, unknown>>;
7382
6857
  /** Check readiness of the sandbox (GET /sandboxes/:id/readiness). */
7383
6858
  readiness(): Promise<Record<string, unknown>>;
7384
6859
  /**
@@ -7401,16 +6876,6 @@ declare class Sandbox {
7401
6876
  timeout?: number;
7402
6877
  stream?: boolean;
7403
6878
  }): Promise<boolean>;
7404
- /**
7405
- * Readiness answers from the server; `assertRunning` reads the local
7406
- * snapshot. Leaving that snapshot behind meant a caller could await
7407
- * `waitUntilReady()`, receive `true`, and have the very next call refused
7408
- * for being "provisioning" — the sandbox was running the whole time, only
7409
- * this object had not been told. Nothing here can fail the wait: readiness
7410
- * has already answered, so a refresh that does not land is not the caller's
7411
- * problem.
7412
- */
7413
- private adoptReadyState;
7414
6879
  /**
7415
6880
  * Returns `true` / `false` for terminal SSE events, or `null` if the
7416
6881
  * stream endpoint is unavailable (404 or transport error) so callers
@@ -8449,7 +7914,6 @@ declare class Miosa {
8449
7914
  readonly orgInvites: OrgInvites;
8450
7915
  /** Organizations available to the user session, membership, invites, and switching. */
8451
7916
  readonly organizations: Organizations;
8452
- readonly forge: Forge;
8453
7917
  /** Current tenant plan, limits, and live usage counters. */
8454
7918
  readonly tenant: Tenant;
8455
7919
  /** Datacenter regions, compute sizes, pricing, community templates. */
@@ -8474,8 +7938,6 @@ declare class Miosa {
8474
7938
  readonly projectIntegrations: ProjectIntegrations;
8475
7939
  /** Built-in auth for generated apps inside sandboxes/deployments. */
8476
7940
  readonly projectAuth: ProjectAuth;
8477
- /** Durable generated App Documents, exact-version reviews, and publication bindings. */
8478
- readonly appDocuments: AppDocuments;
8479
7941
  /** BYOK encrypted per-user provider keys. */
8480
7942
  readonly externalKeys: ExternalKeys;
8481
7943
  /** Model Context Protocol — JSON-RPC dispatch + streaming channel. */
@@ -8490,8 +7952,6 @@ declare class Miosa {
8490
7952
  readonly agentRunGroups: AgentRunGroups;
8491
7953
  /** Agent runtime profiles — tenant/workspace defaults for sandbox/computer agents. */
8492
7954
  readonly agentRuntimeProfiles: AgentRuntimeProfiles;
8493
- /** Persisted workspace Agent definitions and immutable versions. */
8494
- readonly agents: AgentDefinitions;
8495
7955
  /** MIOSA Connect — provider connectors and runtime tokens. */
8496
7956
  readonly connectors: Connectors;
8497
7957
  /** Inherited runtime env — tenant/workspace/project defaults for agent runtimes. */
@@ -8787,4 +8247,73 @@ declare class AppAuth {
8787
8247
  private _post;
8788
8248
  }
8789
8249
 
8790
- export { AGENT_BUILD_KIND_SPECS, type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentBuildExecutionPacket, type AgentBuildFileSpec, type AgentBuildKind, type AgentBuildKindSpec, type AgentBuildPlannerDocument, type AgentDefinitionCreateParams, type AgentDefinitionData, type AgentDefinitionListParams, type AgentDefinitionUpdateParams, AgentDefinitions, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, AgentRuntimeProfiles, type AgentSessionCreateParams, type AgentSessionData, type AgentSessionListResponse$1 as AgentSessionListResponse, type AgentSessionStatus$1 as AgentSessionStatus, type AgentVersionData, type AllowParams, Analytics, type AnalyticsFilters, type ApiKeyCreateParams, type ApiKeyCreateResult, type ApiKeyData, type ApiKeyId, type ApiKeyListParams, ApiKeys, type AppActionDecision, AppAuth, type AppAuthConfig, type AppAuthResourceType, type AppAuthSession, type AppAuthTokenPayload, type AppAutomationRun, type AppCatalogEntry, type AppCollectionRecord, type AppDocument, type AppDocumentCreateParams, type AppDocumentDiagnostics, type AppDocumentRecord, type AppDocumentUpdateParams, AppDocuments, type AppInstallData, type AppInstallEvent, type AppJson, type AppReleaseApproval, type AppReleaseCandidate, type AttachAwsRoleParams, type AuditListParams, AuditLog, type AuditLogEvent, type AuditLogListParams, type AuditTailParams, AuthError, type AuthToken, type BenchmarkCompareParams, type BenchmarkCreateParams, Benchmarks, type BindingCreateParams, type BindingListParams, type BrandingData, type BrandingUpdateParams, type BucketCreateParams, type BucketData, type BucketId, type BuilderSessionListParams, BuilderSessions, type BulkUserActionParams, type ChannelCreateParams, type ChannelData, type ChannelListParams, type ChannelUpdateParams, Channels, type ChatCompletionCreateParams, type ChatCompletionCreateStreamParams, Checkpoints, type ClickParams, Cloud, type CloudAccount, type CloudAccountCreateParams, type CloudAccountMode, type CloudAccountStatus, type CloudCredentialType, type CloudListParams, type CloudPlacementScope, type CloudPool, type CloudPoolCreateParams, type CloudPoolKind, type CloudPreflightRecordParams, type CloudPreflightRun, type CloudPreflightStatus, type CloudProvider, type CloudRegion, type CloudRegionCreateParams, type ClusterCreateParams, type ClusterData, type ClusterEvent, type ClusterId, type ClusterListResponse, type ClusterStatus, CommandCenter, Community, type CompletionCreateParams, type CompletionCreateStreamParams, Completions, type ComputeProduct, Computer, ComputerAudit, ComputerAutoStop, ComputerConnectors, type ComputerCreateParams, type ComputerData, ComputerEnv, type ComputerId, ComputerInbox, type ComputerListParams, type ComputerListResponse, ComputerLogs, type ComputerLogsGetParams, ComputerNetwork, ComputerOsa, ComputerPorts, ComputerSecrets, type ComputerSize, type ComputerStatus, type ComputerTemplateType, ComputerTerminal, type ComputerUpdateParams, type ComputerVisibility, ComputerVolumes, Computers, type ConnectorApplicableDefaultParams, type ConnectorCreateParams, type ConnectorData, type ConnectorDefault, type ConnectorDefaultListParams, type ConnectorDefaultParams, type ConnectorListParams, type ConnectorSubject, type ConnectorTokenParams, type ConnectorTokenResponse, Connectors, type CopyParams, type CreateAdminApiKeyParams, type CreateAgentBuildPacketParams, type CreateBuildRunParams, type CreateOrgInviteParams, type CreateWorkspaceInviteParams, type CreateWorkspaceInviteResponse, type CreditBalance, type CreditTransaction, type CreditTransactionListResponse, type CreditUsage, Credits, type CronJobCreateParams, type CronJobData, type CronJobExecutionData, type CronJobExecutionId, type CronJobId, type CronJobListParams, type CronJobUpdateParams, CronJobs, type CursorInfo, type CustomDomainCreateParams, type CustomDomainData, type CustomDomainId, type CustomDomainListParams, DEFAULT_AGENT_BUILD_OUTPUT_ROOT, DEFAULT_AGENT_BUILD_PACKET_VERSION, Dashboard, type DashboardSummary, type DatabaseCreateParams, type DatabaseCredentials, type DatabaseData, type DatabaseId, type DatabaseListParams, type DatabaseLogsParams, type DatabaseLogsResult, Databases, type DeploymentBuildData, DeploymentConnectors, type DeploymentCreateParams, type DeploymentData, DeploymentDomains, type DeploymentId, type DeploymentListParams, type DeploymentProduct, type DeploymentProofCheck, type DeploymentProofParams, type DeploymentProofProbe, type DeploymentProofResult, type DeploymentReleaseData, type DeploymentReleaseId, DeploymentReleases, DeploymentRuntimeInstances, type DeploymentServiceData, type DeploymentServiceId, type DeploymentServiceType, type DeploymentSourceType, type DeploymentState, type DeploymentUpdateParams, type DeploymentVersionData, type DeploymentVersionId, type DeploymentVersionKind, type DeploymentVersionState, DeploymentVersions, Deployments, Desktop$1 as Desktop, type DesktopActionResult, type DeviceBootstrapParams, type DeviceBootstrapResult, type DeviceBrowserResult, type DeviceCapabilities, type DeviceData, type DeviceExecParams, type DeviceExecResult, type DeviceExposeParams, type DeviceExposeResult, type DeviceExtendParams, type DeviceFileEntry, type DeviceFileListParams, type DeviceKind, type DeviceLifecycleResult, type DeviceListParams, type DeviceReadFileParams, type DeviceReadFileResult, type DeviceWriteFileParams, type DeviceWriteFileResult, Devices, type DirEntry, type DirListResult, type DiscordSendTestParams, DockerDeploy, type DockerDeployApplianceStatus, type DockerDeployCreateParams, type DockerDeployDoctorCheck, type DockerDeployDoctorParams, type DockerDeployDoctorProbe, type DockerDeployDoctorResult, type DockerDeployHostData, type DockerDeployHostEnsureParams, type DockerDeployHostId, type DockerDeployHostListParams, type DockerDeployHostListResponse, type DockerDeployHostResponse, type DockerDeployHostStatus, type DoubleClickParams, type DragParams, type EgressAllowlistRule, EgressAudit, type EgressAuditEvent, type EgressBindingData, EgressHostNotAllowedError, EgressNetwork, type EgressPolicyData, type EgressPolicyMode, type EgressRuleEffect, type EgressSecretData, type EgressSecretScope, type EgressSecretType, EgressSecrets, type EgressSuggestion, Email, EmailCampaigns, EmailInbox, EmailTemplates, type EmbeddingCreateParams, Embeddings, Exec, type ExecParams, type ExecPythonParams, type ExecResult, type ExternalAttribution, type ExternalKeyCreateParams, type ExternalKeyData, ExternalKeys, type FileDeleteParams, type FileDownloadParams, type FileEntry, type FileExportParams, type FileExportResult, type FileListParams, type FileListResult, type FileStat, Files, FlatCustomDomains, Forge, ForgeContractError, type ForgeDeleteReceipt, type ForgeOrganizationId, ForgePolicyViolationError, ForgeRepositories, type ForgeRepository, type ForgeRepositoryCreateParams, type ForgeRepositoryDeleteOptions, type ForgeRepositoryId, type ForgeRepositoryState, type ForgeRepositoryUpdateParams, type ForgeRepositoryVisibility, ForgeStorageError, ForgeUnavailableError, type FsEntry, type FsListResponse, type FsStat, type FunctionCreateParams, type FunctionData, type FunctionId, type FunctionInvokeParams, type FunctionListParams, type FunctionUpdateParams, Functions, type GithubRepo, type GithubSshKey, type HealthCheckCreateParams, type HealthCheckData, type HealthCheckId, type HealthCheckListParams, type HealthCheckUpdateParams, HealthChecks, type HostCreateParams, type HostData, type HostEvent, type HostId, type HostListResponse, type HostStatus, type HostUpdateParams, InstallationRequiredError, InsufficientCreditsError, type IntegrationCatalogEntry, type IntegrationData, Integrations, type JobData, type JobEvent, type JobEventType, type JobId, type JobListResponse, type JobRunParams, type JobStatus, type KeyParams, type LaunchParams, type LinearCreateIssueParams, type ListAdminApiKeysParams, type ListAdminComputersParams, type ListAdminTenantsParams, type ListAdminUsersParams, ManagedProviderBindingOnlyError, Mcp, type McpDispatchParams, Miosa, type MiosaClientConfig, MiosaError, type MiosaErrorBody, type MkdirParams, type ModeParams, Models, type MouseButton, NetworkError, NetworkPolicy, type NetworkPolicyData, type NetworkPolicyEffect, type NetworkPolicyProtocol, type NetworkPolicyRule, type NetworkPolicySetParams, NotFoundError, type NotificationPrefsUpdateParams, OAuthFlow, type OauthConnectParams, type OauthProvider, type OauthStartResult, type OauthStatusResult, type ObjectListParams, type AgentEvent as OcAgentEvent, type OcAgentSessionData, type AgentSessionListResponse as OcAgentSessionListResponse, type OcWorkspaceCreateParams, type OcWorkspaceData, type OcWorkspaceEvent, type OcWorkspaceListResponse, type OcWorkspaceStatus, type OcWorkspaceUpdateParams, OpenComputers, type OrgInvite, type OrgInviteCreated, type OrgInviteCreatedResponse, type OrgInviteListResponse, type OrgInvitePreview, type OrgInviteRevokeResponse, OrgInvites, type OrgRole, type OrganizationMember, type OrganizationMemberList, type OrganizationMemberRemoved, OrganizationMembers, type OrganizationRole, type OrganizationSummary, type OrganizationSwitchResult, Organizations, type OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, type PreviewDomainData, type ProductCatalogEntry, type ProductTemplate, type ProductTemplateCatalog, ProjectAuth, type ProjectAuthEnableParams, type ProjectAuthStatus, type ProjectAuthUpdateParams, type ProjectIntegrationCatalogEntry, type ProjectIntegrationCreateParams, type ProjectIntegrationData, type ProjectIntegrationListParams, type ProjectIntegrationUpdateParams, ProjectIntegrations, ProjectNotLinkedError, ProviderDefaults, type ProviderKeyUpsertParams, type PublishFromSandboxParams, type PublishParams, type PublishResult, RateLimitError, type RegionData, Regions, type RollbackParams, type RulesListParams, type Run, type RunActivity, type RunCommandOutput, type RunCreateParams, type RunDiagnostic, type RunDownload, type RunFile, type RunGroup, type RunGroupActivity, type RunGroupCounts, type RunGroupCreateParams, type RunGroupDispatchEntry, type RunGroupDispatchResult, type RunGroupFile, type RunGroupListParams, type RunGroupStatus, type RunGroupWaitOptions, RunGroups, type RunListParams, type RunMessage, type RunOutputs, type RunPreview, type RunStatus, type RunTargetKind, type RunWaitOptions, Runs, type RuntimeCapabilities, RuntimeCapabilitiesResource, RuntimeEnv, type RuntimeEnvListParams, type RuntimeEnvScope, type RuntimeEnvSetParams, type RuntimeEnvTarget, type RuntimeEnvVar, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxConnectorAttachParams, type SandboxConnectorBinding, type SandboxConnectorPreflightParams, type SandboxConnectorPreflightResult, SandboxConnectors, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecEvent, type SandboxExecOptions, type SandboxExecResult, type SandboxExecRunner, SandboxFiles, type SandboxGetOrCreateParams, type SandboxId, type SandboxListParams, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, type SandboxState, SandboxTags, type SandboxTemplate, type SandboxTemplateBuild, type SandboxTemplateBuildCreateParams, type SandboxTemplateBuildResourceData, type SandboxTemplateBuildResourceId, type SandboxTemplateCreateParams, type SandboxTemplateList, type SandboxTemplateListParams, type SandboxTemplateResourceData, type SandboxTemplateResourceId, SandboxTemplates, SandboxTerminal, Sandboxes, ScopeNotAllowedError, ScopedFs, type ScrollDirection, type ScrollParams, type SecretCreateParams, type SecretData, type SecretId, type SecretListParams, type SecretRotateParams, type SecretSetParams, type SecretUpdateParams, type SessionId, Settings, type SettingsUpdateParams, type SizeData, type SlackSendTestParams, type SnapshotCreateParams, type SnapshotData, type SnapshotListResponse, type SnapshotProgressEvent, type SnapshotRestoreResult, type SnapshotStatus, SnapshotsStandalone, Storage, type StorageObjectData, SubjectNotAllowedError, type SuggestionsParams, type TemplateBenchmarkLane, type TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, type TemplateReadinessContract, type TemplateReadinessState, type TemplateSizeReadiness, Templates, type TemplatesListParams, Tenant, type TenantBrandingUpdateParams, type TenantId, type TenantPlan, type TenantSummary, type TerminalCreateParams, TimeoutError, type TimeseriesParams, TokenRefreshFailedError, type TunnelAuthMode, type TunnelCreateParams, type TunnelData, type TunnelId, type TunnelListResponse, type TunnelUpdateParams, type TypeParams, type UpdateWorkspaceMemberRoleParams, Usage, type UsageReportParams, type UsageSession, type UsageSessionsParams, type UsageSummary, UserAuthorizationRequiredError, type UserId, ValidationError, type VersionListParams, type VolumeAttachParams, type VolumeAttachmentData, type VolumeCreateParams, type VolumeData, type VolumeId, type VolumeListParams, Volumes, type WaitParams, type WebhookCreateParams, type WebhookData, type WebhookDeliveryData, type WebhookDeliveryId, type WebhookId, type WebhookListParams, type WebhookUpdateParams, Webhooks, type WindowFocusParams, type WindowInfo, type WorkspaceId, type WorkspaceInvite, type WorkspaceInviteCreatedResponse, type WorkspaceInviteListResponse, type WorkspaceInvitePreview, type WorkspaceInviteRevokeResponse, WorkspaceInvites, type WorkspaceMember, type WorkspaceMemberAddedResponse, type WorkspaceMemberDeleteResponse, type WorkspaceMemberListResponse, type WorkspaceMemberRecord, type WorkspaceMemberRecordResponse, WorkspaceMembers, type WorkspaceRole, type WsTicket, createAgentBuildExecutionPacket, createAgentBuildExpectedOutputs, createAgentBuildPrompt, createBuildRunParams, getAgentBuildKindSpec, resolveAgentBuildKind, verifySignature };
8250
+ interface MiosaErrorBody {
8251
+ error?: string | {
8252
+ code?: string;
8253
+ message?: string;
8254
+ details?: unknown;
8255
+ };
8256
+ message?: string;
8257
+ code?: string;
8258
+ detail?: string;
8259
+ details?: unknown;
8260
+ reason?: string;
8261
+ request_id?: string;
8262
+ }
8263
+ declare class MiosaError extends Error {
8264
+ readonly status: number;
8265
+ readonly code: string;
8266
+ readonly details: unknown;
8267
+ readonly requestId: string | undefined;
8268
+ constructor(message: string, status: number, code: string, details?: unknown, requestId?: string);
8269
+ static fromResponse(status: number, body: MiosaErrorBody, requestId?: string): MiosaError;
8270
+ }
8271
+ declare class AuthError extends MiosaError {
8272
+ constructor(message: string, status?: number, code?: string, details?: unknown, requestId?: string);
8273
+ }
8274
+ declare class NotFoundError extends MiosaError {
8275
+ constructor(message: string, code?: string, details?: unknown, requestId?: string);
8276
+ }
8277
+ declare class RateLimitError extends MiosaError {
8278
+ readonly retryAfter: number | undefined;
8279
+ constructor(message: string, details?: unknown, requestId?: string, retryAfter?: number);
8280
+ }
8281
+ declare class InsufficientCreditsError extends MiosaError {
8282
+ constructor(message: string, details?: unknown, requestId?: string);
8283
+ }
8284
+ declare class ValidationError extends MiosaError {
8285
+ constructor(message: string, status: number, code?: string, details?: unknown, requestId?: string);
8286
+ }
8287
+ declare class TimeoutError extends MiosaError {
8288
+ constructor(message?: string);
8289
+ }
8290
+ declare class NetworkError extends MiosaError {
8291
+ readonly cause: Error;
8292
+ constructor(message: string, cause: Error);
8293
+ }
8294
+ declare class ProjectNotLinkedError extends MiosaError {
8295
+ constructor(message: string, status?: number, details?: unknown, requestId?: string);
8296
+ }
8297
+ declare class SubjectNotAllowedError extends MiosaError {
8298
+ constructor(message: string, status?: number, details?: unknown, requestId?: string);
8299
+ }
8300
+ declare class ScopeNotAllowedError extends MiosaError {
8301
+ constructor(message: string, status?: number, details?: unknown, requestId?: string);
8302
+ }
8303
+ declare class ManagedProviderBindingOnlyError extends MiosaError {
8304
+ constructor(message: string, status?: number, details?: unknown, requestId?: string);
8305
+ }
8306
+ declare class InstallationRequiredError extends MiosaError {
8307
+ constructor(message: string, status?: number, details?: unknown, requestId?: string);
8308
+ }
8309
+ declare class UserAuthorizationRequiredError extends MiosaError {
8310
+ constructor(message: string, status?: number, details?: unknown, requestId?: string);
8311
+ }
8312
+ declare class EgressHostNotAllowedError extends MiosaError {
8313
+ constructor(message: string, status?: number, details?: unknown, requestId?: string);
8314
+ }
8315
+ declare class TokenRefreshFailedError extends MiosaError {
8316
+ constructor(message: string, status?: number, details?: unknown, requestId?: string);
8317
+ }
8318
+
8319
+ export { AGENT_BUILD_KIND_SPECS, type AcceptOrgInviteResponse, type AcceptWorkspaceInviteResponse, type AddDomainParams, type AddWorkspaceMemberParams, Admin, type AgentBuildExecutionPacket, type AgentBuildFileSpec, type AgentBuildKind, type AgentBuildKindSpec, type AgentBuildPlannerDocument, type AgentDispatchParams, type AgentEvent$1 as AgentEvent, type AgentEventType, AgentRuntimeProfiles, type AgentSessionCreateParams, type AgentSessionData, type AgentSessionListResponse$1 as AgentSessionListResponse, type AgentSessionStatus$1 as AgentSessionStatus, type AllowParams, Analytics, type AnalyticsFilters, type ApiKeyCreateParams, type ApiKeyCreateResult, type ApiKeyData, type ApiKeyId, type ApiKeyListParams, ApiKeys, AppAuth, type AppAuthConfig, type AppAuthResourceType, type AppAuthSession, type AppAuthTokenPayload, type AppCatalogEntry, type AppInstallData, type AppInstallEvent, type AttachAwsRoleParams, type AuditListParams, AuditLog, type AuditLogEvent, type AuditLogListParams, type AuditTailParams, AuthError, type AuthToken, type BenchmarkCompareParams, type BenchmarkCreateParams, Benchmarks, type BindingCreateParams, type BindingListParams, type BrandingData, type BrandingUpdateParams, type BucketCreateParams, type BucketData, type BucketId, type BuilderSessionListParams, BuilderSessions, type BulkUserActionParams, type ChannelCreateParams, type ChannelData, type ChannelListParams, type ChannelUpdateParams, Channels, type ChatCompletionCreateParams, type ChatCompletionCreateStreamParams, Checkpoints, type ClickParams, Cloud, type CloudAccount, type CloudAccountCreateParams, type CloudAccountMode, type CloudAccountStatus, type CloudCredentialType, type CloudListParams, type CloudPlacementScope, type CloudPool, type CloudPoolCreateParams, type CloudPoolKind, type CloudPreflightRecordParams, type CloudPreflightRun, type CloudPreflightStatus, type CloudProvider, type CloudRegion, type CloudRegionCreateParams, type ClusterCreateParams, type ClusterData, type ClusterEvent, type ClusterId, type ClusterListResponse, type ClusterStatus, CommandCenter, Community, type CompletionCreateParams, type CompletionCreateStreamParams, Completions, type ComputeProduct, Computer, ComputerAudit, ComputerAutoStop, ComputerConnectors, type ComputerCreateParams, type ComputerData, ComputerEnv, type ComputerId, ComputerInbox, type ComputerListParams, type ComputerListResponse, ComputerLogs, type ComputerLogsGetParams, ComputerNetwork, ComputerOsa, ComputerPorts, ComputerSecrets, type ComputerSize, type ComputerStatus, type ComputerTemplateType, ComputerTerminal, type ComputerUpdateParams, type ComputerVisibility, ComputerVolumes, Computers, type ConnectorApplicableDefaultParams, type ConnectorCreateParams, type ConnectorData, type ConnectorDefault, type ConnectorDefaultListParams, type ConnectorDefaultParams, type ConnectorListParams, type ConnectorSubject, type ConnectorTokenParams, type ConnectorTokenResponse, Connectors, type CopyParams, type CreateAdminApiKeyParams, type CreateAgentBuildPacketParams, type CreateBuildRunParams, type CreateOrgInviteParams, type CreateWorkspaceInviteParams, type CreateWorkspaceInviteResponse, type CreditBalance, type CreditTransaction, type CreditTransactionListResponse, type CreditUsage, Credits, type CronJobCreateParams, type CronJobData, type CronJobExecutionData, type CronJobExecutionId, type CronJobId, type CronJobListParams, type CronJobUpdateParams, CronJobs, type CursorInfo, type CustomDomainCreateParams, type CustomDomainData, type CustomDomainId, type CustomDomainListParams, DEFAULT_AGENT_BUILD_OUTPUT_ROOT, DEFAULT_AGENT_BUILD_PACKET_VERSION, Dashboard, type DashboardSummary, type DatabaseCreateParams, type DatabaseCredentials, type DatabaseData, type DatabaseId, type DatabaseListParams, type DatabaseLogsParams, type DatabaseLogsResult, Databases, type DeploymentBuildData, DeploymentConnectors, type DeploymentCreateParams, type DeploymentData, DeploymentDomains, type DeploymentId, type DeploymentListParams, type DeploymentProduct, type DeploymentProofCheck, type DeploymentProofParams, type DeploymentProofProbe, type DeploymentProofResult, type DeploymentReleaseData, type DeploymentReleaseId, DeploymentReleases, DeploymentRuntimeInstances, type DeploymentServiceData, type DeploymentServiceId, type DeploymentServiceType, type DeploymentSourceType, type DeploymentState, type DeploymentUpdateParams, type DeploymentVersionData, type DeploymentVersionId, type DeploymentVersionKind, type DeploymentVersionState, DeploymentVersions, Deployments, Desktop$1 as Desktop, type DesktopActionResult, type DeviceBootstrapParams, type DeviceBootstrapResult, type DeviceBrowserResult, type DeviceCapabilities, type DeviceData, type DeviceExecParams, type DeviceExecResult, type DeviceExposeParams, type DeviceExposeResult, type DeviceExtendParams, type DeviceFileEntry, type DeviceFileListParams, type DeviceKind, type DeviceLifecycleResult, type DeviceListParams, type DeviceReadFileParams, type DeviceReadFileResult, type DeviceWriteFileParams, type DeviceWriteFileResult, Devices, type DirEntry, type DirListResult, type DiscordSendTestParams, DockerDeploy, type DockerDeployApplianceStatus, type DockerDeployCreateParams, type DockerDeployDoctorCheck, type DockerDeployDoctorParams, type DockerDeployDoctorProbe, type DockerDeployDoctorResult, type DockerDeployHostData, type DockerDeployHostEnsureParams, type DockerDeployHostId, type DockerDeployHostListParams, type DockerDeployHostListResponse, type DockerDeployHostResponse, type DockerDeployHostStatus, type DoubleClickParams, type DragParams, type EgressAllowlistRule, EgressAudit, type EgressAuditEvent, type EgressBindingData, EgressHostNotAllowedError, EgressNetwork, type EgressPolicyData, type EgressPolicyMode, type EgressRuleEffect, type EgressSecretData, type EgressSecretScope, type EgressSecretType, EgressSecrets, type EgressSuggestion, Email, EmailCampaigns, EmailInbox, EmailTemplates, type EmbeddingCreateParams, Embeddings, Exec, type ExecParams, type ExecPythonParams, type ExecResult, type ExternalAttribution, type ExternalKeyCreateParams, type ExternalKeyData, ExternalKeys, type FileDeleteParams, type FileDownloadParams, type FileEntry, type FileExportParams, type FileExportResult, type FileListParams, type FileListResult, type FileStat, Files, FlatCustomDomains, type FsEntry, type FsListResponse, type FsStat, type FunctionCreateParams, type FunctionData, type FunctionId, type FunctionInvokeParams, type FunctionListParams, type FunctionUpdateParams, Functions, type GithubRepo, type GithubSshKey, type HealthCheckCreateParams, type HealthCheckData, type HealthCheckId, type HealthCheckListParams, type HealthCheckUpdateParams, HealthChecks, type HostCreateParams, type HostData, type HostEvent, type HostId, type HostListResponse, type HostStatus, type HostUpdateParams, InstallationRequiredError, InsufficientCreditsError, type IntegrationCatalogEntry, type IntegrationData, Integrations, type JobData, type JobEvent, type JobEventType, type JobId, type JobListResponse, type JobRunParams, type JobStatus, type KeyParams, type LaunchParams, type LinearCreateIssueParams, type ListAdminApiKeysParams, type ListAdminComputersParams, type ListAdminTenantsParams, type ListAdminUsersParams, ManagedProviderBindingOnlyError, Mcp, type McpDispatchParams, Miosa, type MiosaClientConfig, MiosaError, type MiosaErrorBody, type MkdirParams, type ModeParams, Models, type MouseButton, NetworkError, NetworkPolicy, type NetworkPolicyData, type NetworkPolicyEffect, type NetworkPolicyProtocol, type NetworkPolicyRule, type NetworkPolicySetParams, NotFoundError, type NotificationPrefsUpdateParams, OAuthFlow, type OauthConnectParams, type OauthProvider, type OauthStartResult, type OauthStatusResult, type ObjectListParams, type AgentEvent as OcAgentEvent, type OcAgentSessionData, type AgentSessionListResponse as OcAgentSessionListResponse, type OcWorkspaceCreateParams, type OcWorkspaceData, type OcWorkspaceEvent, type OcWorkspaceListResponse, type OcWorkspaceStatus, type OcWorkspaceUpdateParams, OpenComputers, type OrgInvite, type OrgInviteCreated, type OrgInviteCreatedResponse, type OrgInviteListResponse, type OrgInvitePreview, type OrgInviteRevokeResponse, OrgInvites, type OrgRole, type OrganizationMember, type OrganizationMemberList, type OrganizationMemberRemoved, OrganizationMembers, type OrganizationRole, type OrganizationSummary, type OrganizationSwitchResult, Organizations, type OverviewData, type PolicyCreateParams, type PolicyListParams, type PolicyUpdateParams, type PresignParams, type PresignResult, type PreviewDomainData, type ProductCatalogEntry, type ProductTemplate, type ProductTemplateCatalog, ProjectAuth, type ProjectAuthEnableParams, type ProjectAuthStatus, type ProjectAuthUpdateParams, type ProjectIntegrationCatalogEntry, type ProjectIntegrationCreateParams, type ProjectIntegrationData, type ProjectIntegrationListParams, type ProjectIntegrationUpdateParams, ProjectIntegrations, ProjectNotLinkedError, ProviderDefaults, type ProviderKeyUpsertParams, type PublishFromSandboxParams, type PublishParams, type PublishResult, RateLimitError, type RegionData, Regions, type RollbackParams, type RulesListParams, type Run, type RunActivity, type RunCommandOutput, type RunCreateParams, type RunDiagnostic, type RunDownload, type RunFile, type RunGroup, type RunGroupActivity, type RunGroupCounts, type RunGroupCreateParams, type RunGroupDispatchEntry, type RunGroupDispatchResult, type RunGroupFile, type RunGroupListParams, type RunGroupStatus, type RunGroupWaitOptions, RunGroups, type RunListParams, type RunMessage, type RunOutputs, type RunPreview, type RunStatus, type RunTargetKind, type RunWaitOptions, Runs, type RuntimeCapabilities, RuntimeCapabilitiesResource, RuntimeEnv, type RuntimeEnvListParams, type RuntimeEnvScope, type RuntimeEnvSetParams, type RuntimeEnvTarget, type RuntimeEnvVar, type RuntimeInstanceData, type RuntimeInstanceId, type RuntimeInstanceState, type RuntimeLogsResult, SANDBOX_TEMPLATE, Sandbox, SandboxAudit, type SandboxBuildSpec, type SandboxBuildSpecError, type SandboxBuildSpecValidation, SandboxCommands, type SandboxConnectorAttachParams, type SandboxConnectorBinding, type SandboxConnectorPreflightParams, type SandboxConnectorPreflightResult, SandboxConnectors, type SandboxCreateParams, type SandboxData, SandboxEnv, SandboxEvents, type SandboxExecEvent, type SandboxExecOptions, type SandboxExecResult, type SandboxExecRunner, SandboxFiles, type SandboxGetOrCreateParams, type SandboxId, type SandboxListParams, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, type SandboxState, SandboxTags, type SandboxTemplate, type SandboxTemplateBuild, type SandboxTemplateBuildCreateParams, type SandboxTemplateBuildResourceData, type SandboxTemplateBuildResourceId, type SandboxTemplateCreateParams, type SandboxTemplateList, type SandboxTemplateListParams, type SandboxTemplateResourceData, type SandboxTemplateResourceId, SandboxTemplates, SandboxTerminal, Sandboxes, ScopeNotAllowedError, ScopedFs, type ScrollDirection, type ScrollParams, type SecretCreateParams, type SecretData, type SecretId, type SecretListParams, type SecretRotateParams, type SecretSetParams, type SecretUpdateParams, type SessionId, Settings, type SettingsUpdateParams, type SizeData, type SlackSendTestParams, type SnapshotCreateParams, type SnapshotData, type SnapshotListResponse, type SnapshotProgressEvent, type SnapshotRestoreResult, type SnapshotStatus, SnapshotsStandalone, Storage, type StorageObjectData, SubjectNotAllowedError, type SuggestionsParams, type TemplateBenchmarkLane, type TemplateBuildCreateParams, type TemplateCreateParams, type TemplateData, type TemplateReadinessContract, type TemplateReadinessState, type TemplateSizeReadiness, Templates, type TemplatesListParams, Tenant, type TenantBrandingUpdateParams, type TenantId, type TenantPlan, type TenantSummary, type TerminalCreateParams, TimeoutError, type TimeseriesParams, TokenRefreshFailedError, type TunnelAuthMode, type TunnelCreateParams, type TunnelData, type TunnelId, type TunnelListResponse, type TunnelUpdateParams, type TypeParams, type UpdateWorkspaceMemberRoleParams, Usage, type UsageReportParams, type UsageSession, type UsageSessionsParams, type UsageSummary, UserAuthorizationRequiredError, type UserId, ValidationError, type VersionListParams, type VolumeAttachParams, type VolumeAttachmentData, type VolumeCreateParams, type VolumeData, type VolumeId, type VolumeListParams, Volumes, type WaitParams, type WebhookCreateParams, type WebhookData, type WebhookDeliveryData, type WebhookDeliveryId, type WebhookId, type WebhookListParams, type WebhookUpdateParams, Webhooks, type WindowFocusParams, type WindowInfo, type WorkspaceId, type WorkspaceInvite, type WorkspaceInviteCreatedResponse, type WorkspaceInviteListResponse, type WorkspaceInvitePreview, type WorkspaceInviteRevokeResponse, WorkspaceInvites, type WorkspaceMember, type WorkspaceMemberAddedResponse, type WorkspaceMemberDeleteResponse, type WorkspaceMemberListResponse, type WorkspaceMemberRecord, type WorkspaceMemberRecordResponse, WorkspaceMembers, type WorkspaceRole, type WsTicket, createAgentBuildExecutionPacket, createAgentBuildExpectedOutputs, createAgentBuildPrompt, createBuildRunParams, getAgentBuildKindSpec, resolveAgentBuildKind, verifySignature };