@miosa/sdk 1.2.9 → 1.2.10

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.js CHANGED
@@ -22,10 +22,10 @@ var MiosaError = class _MiosaError extends Error {
22
22
  this.details = details;
23
23
  this.requestId = requestId;
24
24
  }
25
- static fromResponse(status, body2, requestId) {
26
- const message = body2.error?.message ?? body2.message ?? `HTTP ${status}`;
27
- const code = body2.error?.code ?? body2.code ?? "UNKNOWN_ERROR";
28
- const details = body2.error?.details;
25
+ static fromResponse(status, body3, requestId) {
26
+ const message = body3.error?.message ?? body3.message ?? `HTTP ${status}`;
27
+ const code = body3.error?.code ?? body3.code ?? "UNKNOWN_ERROR";
28
+ const details = body3.error?.details;
29
29
  if (status === 401 || status === 403) {
30
30
  return new AuthError(message, status, code, details, requestId);
31
31
  }
@@ -145,10 +145,10 @@ var HttpClient = class {
145
145
  this.timeout = config.timeout ?? DEFAULT_TIMEOUT;
146
146
  this.maxRetries = config.maxRetries ?? DEFAULT_MAX_RETRIES;
147
147
  }
148
- buildUrl(path, query) {
148
+ buildUrl(path, query2) {
149
149
  const url = new URL(`${this.baseUrl}${path}`);
150
- if (query) {
151
- for (const [key, value] of Object.entries(query)) {
150
+ if (query2) {
151
+ for (const [key, value] of Object.entries(query2)) {
152
152
  if (value !== void 0) {
153
153
  url.searchParams.set(key, String(value));
154
154
  }
@@ -167,7 +167,7 @@ var HttpClient = class {
167
167
  async request(path, options = {}) {
168
168
  const {
169
169
  method = "GET",
170
- body: body2,
170
+ body: body3,
171
171
  formData,
172
172
  binary = false,
173
173
  timeout = this.timeout
@@ -176,9 +176,9 @@ var HttpClient = class {
176
176
  let fetchBody;
177
177
  if (formData) {
178
178
  fetchBody = formData;
179
- } else if (body2 !== void 0) {
179
+ } else if (body3 !== void 0) {
180
180
  headers = { ...headers, "Content-Type": "application/json" };
181
- fetchBody = JSON.stringify(body2);
181
+ fetchBody = JSON.stringify(body3);
182
182
  }
183
183
  let lastError;
184
184
  for (let attempt = 0; attempt <= this.maxRetries; attempt++) {
@@ -248,11 +248,11 @@ var HttpClient = class {
248
248
  }
249
249
  throw lastError ?? new MiosaError("Max retries exceeded", 0, "MAX_RETRIES_EXCEEDED");
250
250
  }
251
- async get(path, query) {
251
+ async get(path, query2) {
252
252
  let fullPath = path;
253
- if (query) {
253
+ if (query2) {
254
254
  const params = new URLSearchParams();
255
- for (const [k, v] of Object.entries(query)) {
255
+ for (const [k, v] of Object.entries(query2)) {
256
256
  if (v !== void 0 && v !== null) params.set(k, String(v));
257
257
  }
258
258
  const qs = params.toString();
@@ -260,17 +260,17 @@ var HttpClient = class {
260
260
  }
261
261
  return this.request(fullPath, { method: "GET" });
262
262
  }
263
- async post(path, body2) {
264
- return this.request(path, { method: "POST", body: body2 });
263
+ async post(path, body3) {
264
+ return this.request(path, { method: "POST", body: body3 });
265
265
  }
266
- async patch(path, body2) {
267
- return this.request(path, { method: "PATCH", body: body2 });
266
+ async patch(path, body3) {
267
+ return this.request(path, { method: "PATCH", body: body3 });
268
268
  }
269
- async put(path, body2) {
270
- return this.request(path, { method: "PUT", body: body2 });
269
+ async put(path, body3) {
270
+ return this.request(path, { method: "PUT", body: body3 });
271
271
  }
272
- async delete(path, body2) {
273
- return this.request(path, { method: "DELETE", body: body2 });
272
+ async delete(path, body3) {
273
+ return this.request(path, { method: "DELETE", body: body3 });
274
274
  }
275
275
  async getBinary(path) {
276
276
  return this.request(path, { method: "GET", binary: true });
@@ -288,10 +288,10 @@ var HttpClient = class {
288
288
  Accept: "text/event-stream",
289
289
  ...options.headers
290
290
  });
291
- let body2 = null;
291
+ let body3 = null;
292
292
  if (options.body !== void 0) {
293
293
  headers = { ...headers, "Content-Type": "application/json" };
294
- body2 = JSON.stringify(options.body);
294
+ body3 = JSON.stringify(options.body);
295
295
  }
296
296
  const controller = new AbortController();
297
297
  let response;
@@ -299,7 +299,7 @@ var HttpClient = class {
299
299
  response = await fetch(`${this.baseUrl}${path}`, {
300
300
  method,
301
301
  headers,
302
- body: body2,
302
+ body: body3,
303
303
  signal: controller.signal
304
304
  });
305
305
  } catch (err) {
@@ -368,10 +368,10 @@ var Admin = class {
368
368
  this.http = http;
369
369
  }
370
370
  /** Escape hatch — call any admin endpoint by method + path. */
371
- async request(method, path, body2, query) {
372
- const fullPath = query ? (() => {
371
+ async request(method, path, body3, query2) {
372
+ const fullPath = query2 ? (() => {
373
373
  const qs = new URLSearchParams();
374
- for (const [k, v] of Object.entries(query)) {
374
+ for (const [k, v] of Object.entries(query2)) {
375
375
  if (v !== void 0) qs.set(k, String(v));
376
376
  }
377
377
  const s = qs.toString();
@@ -381,13 +381,13 @@ var Admin = class {
381
381
  case "GET":
382
382
  return this.http.get(fullPath);
383
383
  case "POST":
384
- return this.http.post(fullPath, body2);
384
+ return this.http.post(fullPath, body3);
385
385
  case "PUT":
386
- return this.http.put(fullPath, body2);
386
+ return this.http.put(fullPath, body3);
387
387
  case "PATCH":
388
- return this.http.patch(fullPath, body2);
388
+ return this.http.patch(fullPath, body3);
389
389
  case "DELETE":
390
- return this.http.delete(fullPath, body2);
390
+ return this.http.delete(fullPath, body3);
391
391
  }
392
392
  }
393
393
  // ── Overview ────────────────────────────────────────────────
@@ -737,7 +737,7 @@ var AgentRuns = class {
737
737
  );
738
738
  }
739
739
  async run(params) {
740
- const body2 = stripUndefined({
740
+ const body3 = stripUndefined({
741
741
  prompt: params.prompt,
742
742
  target_kind: params.targetKind,
743
743
  target_id: params.targetId,
@@ -755,7 +755,7 @@ var AgentRuns = class {
755
755
  skip_agent_runtime_profile: params.skipAgentRuntimeProfile,
756
756
  metadata: params.metadata
757
757
  });
758
- return unwrap2(await this.http.post("/agent-runs", body2));
758
+ return unwrap2(await this.http.post("/agent-runs", body3));
759
759
  }
760
760
  async cancel(id) {
761
761
  return unwrap2(
@@ -789,14 +789,14 @@ var Analytics = class {
789
789
  http;
790
790
  /** Get the platform analytics overview. */
791
791
  async overview(filters = {}) {
792
- const query = stripUndefined2(filters);
793
- const data = await this.http.get("/analytics/overview", query);
792
+ const query2 = stripUndefined2(filters);
793
+ const data = await this.http.get("/analytics/overview", query2);
794
794
  return unwrap3(data);
795
795
  }
796
796
  /** Get a timeseries for a metric over a period. */
797
797
  async timeseries(params = {}) {
798
- const query = stripUndefined2(params);
799
- const data = await this.http.get("/analytics/timeseries", query);
798
+ const query2 = stripUndefined2(params);
799
+ const data = await this.http.get("/analytics/timeseries", query2);
800
800
  return unwrap3(data);
801
801
  }
802
802
  };
@@ -830,32 +830,32 @@ var ApiKeys = class {
830
830
  }
831
831
  http;
832
832
  async list(params = {}) {
833
- const query = stripUndefined3({ ...params });
834
- const data = await this.http.get("/api-keys", query);
833
+ const query2 = stripUndefined3({ ...params });
834
+ const data = await this.http.get("/api-keys", query2);
835
835
  return listItems(data);
836
836
  }
837
837
  async create(params) {
838
838
  const { idempotencyKey: ikey, expiresAt, ...rest } = params;
839
- const body2 = stripUndefined3({
839
+ const body3 = stripUndefined3({
840
840
  ...rest,
841
841
  expires_at: expiresAt ?? rest.expires_at
842
842
  });
843
843
  const data = await this.http.request("/api-keys", {
844
844
  method: "POST",
845
- body: body2,
845
+ body: body3,
846
846
  headers: { "Idempotency-Key": idempotencyKey(ikey) }
847
847
  });
848
848
  return unwrap4(data);
849
849
  }
850
850
  /** POST /api/v1/api-keys/scoped — L2 delegation token bound to one external user. */
851
851
  async createScoped(params) {
852
- const body2 = stripUndefined3({
852
+ const body3 = stripUndefined3({
853
853
  external_user_id: params.externalUserId,
854
854
  scopes: params.scopes,
855
855
  expires_at: params.expiresAt
856
856
  });
857
857
  return unwrap4(
858
- await this.http.post("/api-keys/scoped", body2)
858
+ await this.http.post("/api-keys/scoped", body3)
859
859
  );
860
860
  }
861
861
  async delete(keyId) {
@@ -885,8 +885,8 @@ var AuditLog = class {
885
885
  http;
886
886
  /** List audit-log events with optional filters. */
887
887
  async list(params = {}) {
888
- const query = stripUndefined4(params);
889
- const data = await this.http.get("/audit-log", query);
888
+ const query2 = stripUndefined4(params);
889
+ const data = await this.http.get("/audit-log", query2);
890
890
  const result = unwrap5(data);
891
891
  if (Array.isArray(result)) return result;
892
892
  return [];
@@ -919,10 +919,10 @@ var Benchmarks = class {
919
919
  }
920
920
  http;
921
921
  async list(filters = {}) {
922
- const query = Object.fromEntries(
922
+ const query2 = Object.fromEntries(
923
923
  Object.entries(filters).filter(([, v]) => v !== void 0)
924
924
  );
925
- const data = await this.http.get("/admin/benchmarks", query);
925
+ const data = await this.http.get("/admin/benchmarks", query2);
926
926
  return unwrapList(data);
927
927
  }
928
928
  async get(benchmarkId) {
@@ -932,10 +932,10 @@ var Benchmarks = class {
932
932
  }
933
933
  /** Start a new benchmark run — pass kind and run-specific options. */
934
934
  async create(params) {
935
- const body2 = Object.fromEntries(
935
+ const body3 = Object.fromEntries(
936
936
  Object.entries(params).filter(([, v]) => v !== void 0)
937
937
  );
938
- return unwrap6(await this.http.post("/admin/benchmarks", body2));
938
+ return unwrap6(await this.http.post("/admin/benchmarks", body3));
939
939
  }
940
940
  async cancel(benchmarkId) {
941
941
  return unwrap6(
@@ -944,22 +944,22 @@ var Benchmarks = class {
944
944
  }
945
945
  /** Return per-iteration timing samples for a benchmark run. */
946
946
  async samples(benchmarkId, filters = {}) {
947
- const query = Object.fromEntries(
947
+ const query2 = Object.fromEntries(
948
948
  Object.entries(filters).filter(([, v]) => v !== void 0)
949
949
  );
950
950
  const data = await this.http.get(
951
951
  `/admin/benchmarks/${benchmarkId}/samples`,
952
- query
952
+ query2
953
953
  );
954
954
  return unwrapList(data);
955
955
  }
956
956
  /** Compare two benchmark runs. */
957
957
  async compare(params) {
958
- const body2 = Object.fromEntries(
958
+ const body3 = Object.fromEntries(
959
959
  Object.entries(params).filter(([, v]) => v !== void 0)
960
960
  );
961
961
  return unwrap6(
962
- await this.http.post("/admin/benchmarks/compare", body2)
962
+ await this.http.post("/admin/benchmarks/compare", body3)
963
963
  );
964
964
  }
965
965
  };
@@ -990,8 +990,8 @@ var BuilderSessions = class {
990
990
  }
991
991
  http;
992
992
  async list(params = {}) {
993
- const query = { limit: 50, ...params };
994
- return unwrapList2(await this.http.get("/builder/sessions", query));
993
+ const query2 = { limit: 50, ...params };
994
+ return unwrapList2(await this.http.get("/builder/sessions", query2));
995
995
  }
996
996
  /**
997
997
  * Get a single session. The platform router only exposes index +
@@ -1040,8 +1040,8 @@ var Channels = class {
1040
1040
  http;
1041
1041
  /** List all channels for the tenant. */
1042
1042
  async list(params = {}) {
1043
- const query = stripUndefined5(params);
1044
- const data = await this.http.get("/channels", query);
1043
+ const query2 = stripUndefined5(params);
1044
+ const data = await this.http.get("/channels", query2);
1045
1045
  const result = unwrap8(data);
1046
1046
  if (Array.isArray(result)) return result;
1047
1047
  return [];
@@ -1053,14 +1053,14 @@ var Channels = class {
1053
1053
  }
1054
1054
  /** Create a new channel. */
1055
1055
  async create(params) {
1056
- const body2 = stripUndefObj(params);
1057
- const data = await this.http.post("/channels", body2);
1056
+ const body3 = stripUndefObj(params);
1057
+ const data = await this.http.post("/channels", body3);
1058
1058
  return unwrap8(data);
1059
1059
  }
1060
1060
  /** Update a channel. */
1061
1061
  async update(channelId, params) {
1062
- const body2 = stripUndefObj(params);
1063
- const data = await this.http.patch(`/channels/${channelId}`, body2);
1062
+ const body3 = stripUndefObj(params);
1063
+ const data = await this.http.patch(`/channels/${channelId}`, body3);
1064
1064
  return unwrap8(data);
1065
1065
  }
1066
1066
  /** Delete a channel. */
@@ -1075,8 +1075,8 @@ var Channels = class {
1075
1075
  }
1076
1076
  /** Update notification preferences. */
1077
1077
  async updateNotifications(params) {
1078
- const body2 = stripUndefObj(params);
1079
- const data = await this.http.put("/channels/notifications", body2);
1078
+ const body3 = stripUndefObj(params);
1079
+ const data = await this.http.put("/channels/notifications", body3);
1080
1080
  return unwrap8(data);
1081
1081
  }
1082
1082
  /** Enable a channel. */
@@ -1180,21 +1180,21 @@ var Community = class {
1180
1180
  http;
1181
1181
  // ── Agents ────────────────────────────────────────────────────────────
1182
1182
  async listAgents(filters = {}) {
1183
- const query = Object.fromEntries(
1183
+ const query2 = Object.fromEntries(
1184
1184
  Object.entries(filters).filter(([, v]) => v !== void 0)
1185
1185
  );
1186
- return unwrapList4(await this.http.get("/community/agents", query));
1186
+ return unwrapList4(await this.http.get("/community/agents", query2));
1187
1187
  }
1188
1188
  async getAgent(agentId) {
1189
1189
  return unwrap10(await this.http.get(`/community/agents/${agentId}`));
1190
1190
  }
1191
1191
  // ── Templates ─────────────────────────────────────────────────────────
1192
1192
  async listTemplates(filters = {}) {
1193
- const query = Object.fromEntries(
1193
+ const query2 = Object.fromEntries(
1194
1194
  Object.entries(filters).filter(([, v]) => v !== void 0)
1195
1195
  );
1196
1196
  return unwrapList4(
1197
- await this.http.get("/community/templates", query)
1197
+ await this.http.get("/community/templates", query2)
1198
1198
  );
1199
1199
  }
1200
1200
  async getTemplate(templateId) {
@@ -1204,19 +1204,19 @@ var Community = class {
1204
1204
  }
1205
1205
  /** Install a community template into the caller's tenant. */
1206
1206
  async installTemplate(templateId, opts = {}) {
1207
- const body2 = Object.fromEntries(
1207
+ const body3 = Object.fromEntries(
1208
1208
  Object.entries(opts).filter(([, v]) => v !== void 0)
1209
1209
  );
1210
1210
  return unwrap10(
1211
1211
  await this.http.post(
1212
1212
  `/community/templates/${templateId}/install`,
1213
- body2
1213
+ body3
1214
1214
  )
1215
1215
  );
1216
1216
  }
1217
1217
  /** Rate a community template (1–5). */
1218
1218
  async rateTemplate(templateId, rating, opts = {}) {
1219
- const body2 = {
1219
+ const body3 = {
1220
1220
  rating,
1221
1221
  ...Object.fromEntries(
1222
1222
  Object.entries(opts).filter(([, v]) => v !== void 0)
@@ -1225,7 +1225,7 @@ var Community = class {
1225
1225
  return unwrap10(
1226
1226
  await this.http.post(
1227
1227
  `/community/templates/${templateId}/rate`,
1228
- body2
1228
+ body3
1229
1229
  )
1230
1230
  );
1231
1231
  }
@@ -1251,24 +1251,24 @@ var Completions = class {
1251
1251
  }
1252
1252
  http;
1253
1253
  create(params) {
1254
- const body2 = buildBody(params);
1254
+ const body3 = buildBody(params);
1255
1255
  if (params.stream === true) {
1256
1256
  return this.http.stream(
1257
1257
  "/intelligence/completions",
1258
- { method: "POST", body: body2 }
1258
+ { method: "POST", body: body3 }
1259
1259
  );
1260
1260
  }
1261
- return this.http.post("/intelligence/completions", body2).then(unwrap11);
1261
+ return this.http.post("/intelligence/completions", body3).then(unwrap11);
1262
1262
  }
1263
1263
  chat(params) {
1264
- const body2 = buildBody(params);
1264
+ const body3 = buildBody(params);
1265
1265
  if (params.stream === true) {
1266
1266
  return this.http.stream(
1267
1267
  "/intelligence/chat/completions",
1268
- { method: "POST", body: body2 }
1268
+ { method: "POST", body: body3 }
1269
1269
  );
1270
1270
  }
1271
- return this.http.post("/intelligence/chat/completions", body2).then(unwrap11);
1271
+ return this.http.post("/intelligence/chat/completions", body3).then(unwrap11);
1272
1272
  }
1273
1273
  };
1274
1274
 
@@ -1499,11 +1499,11 @@ var ComputerLogs = class {
1499
1499
  computerId;
1500
1500
  /** Fetch the most recent log snapshot. */
1501
1501
  async get(params = {}) {
1502
- const query = Object.fromEntries(
1502
+ const query2 = Object.fromEntries(
1503
1503
  Object.entries(params).filter(([, v]) => v !== void 0)
1504
1504
  );
1505
1505
  return unwrap14(
1506
- await this.http.get(`/computers/${this.computerId}/logs`, query)
1506
+ await this.http.get(`/computers/${this.computerId}/logs`, query2)
1507
1507
  );
1508
1508
  }
1509
1509
  /** Stream live log events as SSE dicts `{type, data, id}`. */
@@ -1533,7 +1533,7 @@ var ComputerOsa = class {
1533
1533
  computerId;
1534
1534
  /** Submit a free-form task to the in-VM OSA agent. */
1535
1535
  async submitTask(task, params = {}) {
1536
- const body2 = {
1536
+ const body3 = {
1537
1537
  task,
1538
1538
  ...Object.fromEntries(
1539
1539
  Object.entries(params).filter(([, v]) => v !== void 0)
@@ -1542,7 +1542,7 @@ var ComputerOsa = class {
1542
1542
  return unwrap15(
1543
1543
  await this.http.post(
1544
1544
  `/computers/${this.computerId}/osa/task`,
1545
- body2
1545
+ body3
1546
1546
  )
1547
1547
  );
1548
1548
  }
@@ -1560,13 +1560,13 @@ var ComputerOsa = class {
1560
1560
  }
1561
1561
  /** Update OSA runtime configuration (model, tools, secrets, etc.). */
1562
1562
  async configure(config) {
1563
- const body2 = Object.fromEntries(
1563
+ const body3 = Object.fromEntries(
1564
1564
  Object.entries(config).filter(([, v]) => v !== void 0)
1565
1565
  );
1566
1566
  return unwrap15(
1567
1567
  await this.http.post(
1568
1568
  `/computers/${this.computerId}/osa/configure`,
1569
- body2
1569
+ body3
1570
1570
  )
1571
1571
  );
1572
1572
  }
@@ -1612,21 +1612,21 @@ var ComputerPorts = class {
1612
1612
  }
1613
1613
  /** Expose port with the given visibility options. */
1614
1614
  async create(port, opts = {}) {
1615
- const body2 = {
1615
+ const body3 = {
1616
1616
  port,
1617
1617
  ...Object.fromEntries(
1618
1618
  Object.entries(opts).filter(([, v]) => v !== void 0)
1619
1619
  )
1620
1620
  };
1621
- return unwrap16(await this.http.post(this.base(), body2));
1621
+ return unwrap16(await this.http.post(this.base(), body3));
1622
1622
  }
1623
1623
  /** Patch visibility / auth options for port. */
1624
1624
  async update(port, opts) {
1625
- const body2 = Object.fromEntries(
1625
+ const body3 = Object.fromEntries(
1626
1626
  Object.entries(opts).filter(([, v]) => v !== void 0)
1627
1627
  );
1628
1628
  return unwrap16(
1629
- await this.http.patch(`${this.base()}/${port}`, body2)
1629
+ await this.http.patch(`${this.base()}/${port}`, body3)
1630
1630
  );
1631
1631
  }
1632
1632
  /** Stop exposing port. */
@@ -1645,12 +1645,12 @@ var ComputerTerminal = class {
1645
1645
  computerId;
1646
1646
  /** Open a new PTY session. Returns the server payload (session id, etc.). */
1647
1647
  async create(params = {}) {
1648
- const body2 = Object.fromEntries(
1648
+ const body3 = Object.fromEntries(
1649
1649
  Object.entries(params).filter(([, v]) => v !== void 0)
1650
1650
  );
1651
1651
  const raw = await this.http.post(
1652
1652
  `/computers/${this.computerId}/terminal`,
1653
- body2
1653
+ body3
1654
1654
  );
1655
1655
  return unwrap17(raw);
1656
1656
  }
@@ -2094,12 +2094,12 @@ var EgressNetwork = class {
2094
2094
  }
2095
2095
  /** List allowlist rules. */
2096
2096
  async rules(params = {}) {
2097
- const query = stripUndefined7({
2097
+ const query2 = stripUndefined7({
2098
2098
  policy_id: pickFirst2(params.policyId, params.policy_id),
2099
2099
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2100
2100
  resource_type: pickFirst2(params.resourceType, params.resource_type)
2101
2101
  });
2102
- const data = await this.http.get("/egress/allowlist", query);
2102
+ const data = await this.http.get("/egress/allowlist", query2);
2103
2103
  return unwrapList9(data);
2104
2104
  }
2105
2105
  /** Delete an allowlist rule by id. */
@@ -2109,16 +2109,16 @@ var EgressNetwork = class {
2109
2109
  // ── policies ──────────────────────────────────────────────────────────────
2110
2110
  /** List egress policies. */
2111
2111
  async policies(params = {}) {
2112
- const query = stripUndefined7({
2112
+ const query2 = stripUndefined7({
2113
2113
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2114
2114
  resource_type: pickFirst2(params.resourceType, params.resource_type)
2115
2115
  });
2116
- const data = await this.http.get("/egress/policies", query);
2116
+ const data = await this.http.get("/egress/policies", query2);
2117
2117
  return unwrapList9(data);
2118
2118
  }
2119
2119
  /** Create an egress policy. */
2120
2120
  async createPolicy(params) {
2121
- const body2 = stripUndefined7({
2121
+ const body3 = stripUndefined7({
2122
2122
  name: params.name,
2123
2123
  mode: params.mode ?? "enforce",
2124
2124
  default_effect: pickFirst2(
@@ -2132,13 +2132,13 @@ var EgressNetwork = class {
2132
2132
  });
2133
2133
  const data = await this.http.post(
2134
2134
  "/egress/policies",
2135
- body2
2135
+ body3
2136
2136
  );
2137
2137
  return unwrap20(data);
2138
2138
  }
2139
2139
  /** Update an egress policy by id. */
2140
2140
  async updatePolicy(policyId, params) {
2141
- const body2 = stripUndefined7({
2141
+ const body3 = stripUndefined7({
2142
2142
  mode: params.mode,
2143
2143
  default_effect: pickFirst2(params.defaultEffect, params.default_effect),
2144
2144
  name: params.name,
@@ -2146,7 +2146,7 @@ var EgressNetwork = class {
2146
2146
  });
2147
2147
  const data = await this.http.patch(
2148
2148
  `/egress/policies/${policyId}`,
2149
- body2
2149
+ body3
2150
2150
  );
2151
2151
  return unwrap20(data);
2152
2152
  }
@@ -2166,28 +2166,28 @@ var EgressNetwork = class {
2166
2166
  if (policyId) {
2167
2167
  return this.updatePolicy(policyId, { mode });
2168
2168
  }
2169
- const body2 = resourceId !== void 0 && resourceType !== void 0 ? stripUndefined7({
2169
+ const body3 = resourceId !== void 0 && resourceType !== void 0 ? stripUndefined7({
2170
2170
  mode,
2171
2171
  resource_id: resourceId,
2172
2172
  resource_type: resourceType
2173
2173
  }) : { mode };
2174
2174
  const data = await this.http.patch(
2175
2175
  "/egress/policies",
2176
- body2
2176
+ body3
2177
2177
  );
2178
2178
  return unwrap20(data);
2179
2179
  }
2180
2180
  // ── suggestions ───────────────────────────────────────────────────────────
2181
2181
  /** AI-generated allowlist suggestions from recent denied egress. */
2182
2182
  async suggestions(params = {}) {
2183
- const query = stripUndefined7({
2183
+ const query2 = stripUndefined7({
2184
2184
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2185
2185
  resource_type: pickFirst2(params.resourceType, params.resource_type),
2186
2186
  since: params.since ?? "7d"
2187
2187
  });
2188
2188
  const data = await this.http.get(
2189
2189
  "/egress/audit/suggestions",
2190
- query
2190
+ query2
2191
2191
  );
2192
2192
  return unwrapList9(data);
2193
2193
  }
@@ -2231,28 +2231,28 @@ var SandboxNetwork = class {
2231
2231
  return this.delegate.removeRule(ruleId);
2232
2232
  }
2233
2233
  lockdown(params = {}) {
2234
- const body2 = {
2234
+ const body3 = {
2235
2235
  resource_id: this.resourceId,
2236
2236
  resource_type: this.resourceType
2237
2237
  };
2238
- if (params.policyId !== void 0) body2.policyId = params.policyId;
2239
- return this.delegate.lockdown(body2);
2238
+ if (params.policyId !== void 0) body3.policyId = params.policyId;
2239
+ return this.delegate.lockdown(body3);
2240
2240
  }
2241
2241
  observe(params = {}) {
2242
- const body2 = {
2242
+ const body3 = {
2243
2243
  resource_id: this.resourceId,
2244
2244
  resource_type: this.resourceType
2245
2245
  };
2246
- if (params.policyId !== void 0) body2.policyId = params.policyId;
2247
- return this.delegate.observe(body2);
2246
+ if (params.policyId !== void 0) body3.policyId = params.policyId;
2247
+ return this.delegate.observe(body3);
2248
2248
  }
2249
2249
  suggestions(params = {}) {
2250
- const body2 = {
2250
+ const body3 = {
2251
2251
  resource_id: this.resourceId,
2252
2252
  resource_type: this.resourceType
2253
2253
  };
2254
- if (params.since !== void 0) body2.since = params.since;
2255
- return this.delegate.suggestions(body2);
2254
+ if (params.since !== void 0) body3.since = params.since;
2255
+ return this.delegate.suggestions(body3);
2256
2256
  }
2257
2257
  policies() {
2258
2258
  return this.delegate.policies({
@@ -2453,10 +2453,10 @@ var EgressSecrets = class {
2453
2453
  }
2454
2454
  /** Rotate the secret's value. */
2455
2455
  async rotate(id, params) {
2456
- const body2 = typeof params === "string" ? rotateBody({ newValue: params }) : rotateBody(params);
2456
+ const body3 = typeof params === "string" ? rotateBody({ newValue: params }) : rotateBody(params);
2457
2457
  const data = await this.http.patch(
2458
2458
  `/egress/secrets/${id}`,
2459
- body2
2459
+ body3
2460
2460
  );
2461
2461
  return unwrap21(data);
2462
2462
  }
@@ -3068,12 +3068,12 @@ var ComputerInbox = class {
3068
3068
  return unwrapData(raw);
3069
3069
  }
3070
3070
  async update(fields) {
3071
- const body2 = Object.fromEntries(
3071
+ const body3 = Object.fromEntries(
3072
3072
  Object.entries(fields).filter(([, v]) => v !== void 0)
3073
3073
  );
3074
3074
  const raw = await this.http.patch(
3075
3075
  `/computers/${this.computerId}/inbox`,
3076
- body2
3076
+ body3
3077
3077
  );
3078
3078
  return unwrapData(raw);
3079
3079
  }
@@ -3372,12 +3372,12 @@ var Computer = class _Computer {
3372
3372
  }
3373
3373
  /** Clone this computer into a new one. */
3374
3374
  async clone(opts = {}) {
3375
- const body2 = Object.fromEntries(
3375
+ const body3 = Object.fromEntries(
3376
3376
  Object.entries(opts).filter(([, v]) => v !== void 0)
3377
3377
  );
3378
3378
  const raw = await this.http.post(
3379
3379
  `/computers/${this.id}/clone`,
3380
- body2
3380
+ body3
3381
3381
  );
3382
3382
  const data = unwrapData(raw);
3383
3383
  return new _Computer(this.http, data);
@@ -3393,12 +3393,12 @@ var Computer = class _Computer {
3393
3393
  }
3394
3394
  /** Move the computer to a different region or host. */
3395
3395
  async move(opts) {
3396
- const body2 = Object.fromEntries(
3396
+ const body3 = Object.fromEntries(
3397
3397
  Object.entries(opts).filter(([, v]) => v !== void 0)
3398
3398
  );
3399
3399
  const updated = await this.http.post(
3400
3400
  `/computers/${this.id}/move`,
3401
- body2
3401
+ body3
3402
3402
  );
3403
3403
  this.data = updated;
3404
3404
  return this;
@@ -3480,12 +3480,12 @@ var Computers = class {
3480
3480
  agentRuntimeProfileId,
3481
3481
  agentProfileId,
3482
3482
  skipAgentRuntimeProfile,
3483
- ...body2
3483
+ ...body3
3484
3484
  } = params;
3485
3485
  const data = await this.http.post("/computers", {
3486
3486
  template_type: "miosa-desktop",
3487
3487
  size: "small",
3488
- ...body2,
3488
+ ...body3,
3489
3489
  agent_runtime_profile_id: agentRuntimeProfileId ?? params.agent_runtime_profile_id ?? agentProfileId ?? params.agent_profile_id,
3490
3490
  skip_agent_runtime_profile: skipAgentRuntimeProfile ?? params.skip_agent_runtime_profile
3491
3491
  });
@@ -3495,14 +3495,14 @@ var Computers = class {
3495
3495
  * List all computers for the authenticated tenant.
3496
3496
  */
3497
3497
  async list(params) {
3498
- const query = {
3498
+ const query2 = {
3499
3499
  page: params?.page,
3500
3500
  per_page: params?.per_page,
3501
3501
  status: params?.status
3502
3502
  };
3503
3503
  const response = await this.http.get(
3504
3504
  "/computers",
3505
- query
3505
+ query2
3506
3506
  );
3507
3507
  return response.data.map((d) => new Computer(this.http, d));
3508
3508
  }
@@ -3543,13 +3543,13 @@ var Credits = class {
3543
3543
  }
3544
3544
  /** List credit transactions (purchases, deductions). */
3545
3545
  async transactions(params) {
3546
- const query = {
3546
+ const query2 = {
3547
3547
  page: params?.page,
3548
3548
  per_page: params?.per_page
3549
3549
  };
3550
3550
  return this.http.get(
3551
3551
  "/credits/transactions",
3552
- query
3552
+ query2
3553
3553
  );
3554
3554
  }
3555
3555
  /** Get aggregated credit usage for the current billing period. */
@@ -3587,8 +3587,8 @@ var CronJobs = class {
3587
3587
  }
3588
3588
  http;
3589
3589
  async list(params = {}) {
3590
- const query = stripUndefined9({ ...params });
3591
- const data = await this.http.get("/cron-jobs", query);
3590
+ const query2 = stripUndefined9({ ...params });
3591
+ const data = await this.http.get("/cron-jobs", query2);
3592
3592
  return listItems2(data);
3593
3593
  }
3594
3594
  async get(jobId) {
@@ -3597,17 +3597,17 @@ var CronJobs = class {
3597
3597
  }
3598
3598
  async create(params) {
3599
3599
  const { idempotencyKey: ikey, ...rest } = params;
3600
- const body2 = stripUndefined9(rest);
3600
+ const body3 = stripUndefined9(rest);
3601
3601
  const data = await this.http.request("/cron-jobs", {
3602
3602
  method: "POST",
3603
- body: body2,
3603
+ body: body3,
3604
3604
  headers: { "Idempotency-Key": idempotencyKey2(ikey) }
3605
3605
  });
3606
3606
  return unwrap22(data);
3607
3607
  }
3608
3608
  async update(jobId, params) {
3609
- const body2 = stripUndefined9(params);
3610
- const data = await this.http.patch(`/cron-jobs/${jobId}`, body2);
3609
+ const body3 = stripUndefined9(params);
3610
+ const data = await this.http.patch(`/cron-jobs/${jobId}`, body3);
3611
3611
  return unwrap22(data);
3612
3612
  }
3613
3613
  async delete(jobId) {
@@ -3705,8 +3705,8 @@ var Databases = class {
3705
3705
  }
3706
3706
  http;
3707
3707
  async list(params = {}) {
3708
- const query = stripUndefined10({ ...params });
3709
- const data = await this.http.get("/databases", query);
3708
+ const query2 = stripUndefined10({ ...params });
3709
+ const data = await this.http.get("/databases", query2);
3710
3710
  return listItems3(data);
3711
3711
  }
3712
3712
  async get(databaseId) {
@@ -3722,13 +3722,13 @@ var Databases = class {
3722
3722
  size: _deprecatedSize,
3723
3723
  ...rest
3724
3724
  } = params;
3725
- const body2 = stripUndefined10({
3725
+ const body3 = stripUndefined10({
3726
3726
  ...rest,
3727
3727
  engine_version: engine_version ?? version
3728
3728
  });
3729
3729
  const data = await this.http.request("/databases", {
3730
3730
  method: "POST",
3731
- body: body2,
3731
+ body: body3,
3732
3732
  headers: {
3733
3733
  "Idempotency-Key": idempotencyKey3(
3734
3734
  camelIdempotencyKey ?? snakeIdempotencyKey
@@ -3765,13 +3765,13 @@ var Databases = class {
3765
3765
  return unwrap24(data);
3766
3766
  }
3767
3767
  async logs(databaseId, params = {}) {
3768
- const query = stripUndefined10({
3768
+ const query2 = stripUndefined10({
3769
3769
  lines: params.lines,
3770
3770
  since: params.since
3771
3771
  });
3772
3772
  const data = await this.http.get(
3773
3773
  `/databases/${databaseId}/logs`,
3774
- query
3774
+ query2
3775
3775
  );
3776
3776
  return data;
3777
3777
  }
@@ -3863,7 +3863,7 @@ var DeploymentVersions = class {
3863
3863
  http;
3864
3864
  deploymentId;
3865
3865
  async list(params = {}) {
3866
- const query = stripUndefined11({
3866
+ const query2 = stripUndefined11({
3867
3867
  state: params.state,
3868
3868
  limit: params.limit,
3869
3869
  cursor: params.cursor,
@@ -3871,7 +3871,7 @@ var DeploymentVersions = class {
3871
3871
  });
3872
3872
  const data = await this.http.get(
3873
3873
  `/deployments/${this.deploymentId}/versions`,
3874
- query
3874
+ query2
3875
3875
  );
3876
3876
  return listItems4(data);
3877
3877
  }
@@ -3882,12 +3882,12 @@ var DeploymentVersions = class {
3882
3882
  return unwrap25(data);
3883
3883
  }
3884
3884
  async promote(versionId, opts = {}) {
3885
- const body2 = stripUndefined11({ environment: opts.environment });
3885
+ const body3 = stripUndefined11({ environment: opts.environment });
3886
3886
  const data = await this.http.request(
3887
3887
  `/deployments/${this.deploymentId}/versions/${versionId}/promote`,
3888
3888
  {
3889
3889
  method: "POST",
3890
- body: body2,
3890
+ body: body3,
3891
3891
  headers: { "Idempotency-Key": idempotencyKey4(opts.idempotencyKey) }
3892
3892
  }
3893
3893
  );
@@ -3960,7 +3960,7 @@ var DeploymentDomains = class {
3960
3960
  http;
3961
3961
  deploymentId;
3962
3962
  async add(domain, params = {}) {
3963
- const body2 = {
3963
+ const body3 = {
3964
3964
  domain,
3965
3965
  redirect_policy: params.redirectPolicy ?? params.redirect_policy,
3966
3966
  ...attributionBody(params)
@@ -3969,7 +3969,7 @@ var DeploymentDomains = class {
3969
3969
  `/deployments/${this.deploymentId}/domains`,
3970
3970
  {
3971
3971
  method: "POST",
3972
- body: stripUndefined11(body2),
3972
+ body: stripUndefined11(body3),
3973
3973
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
3974
3974
  }
3975
3975
  );
@@ -4001,7 +4001,7 @@ var Deployments = class {
4001
4001
  http;
4002
4002
  async list(params = {}) {
4003
4003
  const projectId = params.projectId ?? params.project_id;
4004
- const query = stripUndefined11({
4004
+ const query2 = stripUndefined11({
4005
4005
  project_id: projectId,
4006
4006
  state: params.state,
4007
4007
  limit: params.limit,
@@ -4010,7 +4010,7 @@ var Deployments = class {
4010
4010
  });
4011
4011
  const data = await this.http.get(
4012
4012
  "/deployments",
4013
- query
4013
+ query2
4014
4014
  );
4015
4015
  return listItems4(data);
4016
4016
  }
@@ -4019,7 +4019,7 @@ var Deployments = class {
4019
4019
  return unwrap25(data);
4020
4020
  }
4021
4021
  async create(params) {
4022
- const body2 = stripUndefined11({
4022
+ const body3 = stripUndefined11({
4023
4023
  name: params.name,
4024
4024
  repo_url: params.repoUrl ?? params.repo_url,
4025
4025
  branch: params.branch,
@@ -4032,7 +4032,7 @@ var Deployments = class {
4032
4032
  });
4033
4033
  const data = await this.http.request("/deployments", {
4034
4034
  method: "POST",
4035
- body: body2,
4035
+ body: body3,
4036
4036
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4037
4037
  });
4038
4038
  return unwrap25(data);
@@ -4182,7 +4182,7 @@ var Deployments = class {
4182
4182
  };
4183
4183
  }
4184
4184
  async update(deploymentId, params) {
4185
- const body2 = stripUndefined11({
4185
+ const body3 = stripUndefined11({
4186
4186
  name: params.name,
4187
4187
  branch: params.branch,
4188
4188
  build_command: params.buildCommand ?? params.build_command,
@@ -4191,7 +4191,7 @@ var Deployments = class {
4191
4191
  });
4192
4192
  const data = await this.http.patch(
4193
4193
  `/deployments/${deploymentId}`,
4194
- body2
4194
+ body3
4195
4195
  );
4196
4196
  return unwrap25(data);
4197
4197
  }
@@ -4199,7 +4199,7 @@ var Deployments = class {
4199
4199
  await this.http.delete(`/deployments/${deploymentId}`);
4200
4200
  }
4201
4201
  async publish(deploymentId, params) {
4202
- const body2 = stripUndefined11({
4202
+ const body3 = stripUndefined11({
4203
4203
  source_sandbox_id: params.sourceSandboxId ?? params.source_sandbox_id,
4204
4204
  output_path: params.outputPath ?? params.output_path,
4205
4205
  entrypoint: params.entrypoint,
@@ -4209,7 +4209,7 @@ var Deployments = class {
4209
4209
  `/deployments/${deploymentId}/publish`,
4210
4210
  {
4211
4211
  method: "POST",
4212
- body: body2,
4212
+ body: body3,
4213
4213
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4214
4214
  }
4215
4215
  );
@@ -4221,7 +4221,7 @@ var Deployments = class {
4221
4221
  * phase. Prefer `publish()` once Phase 2B/3 lands.
4222
4222
  */
4223
4223
  async publishFromSandbox(sandboxId, params = {}) {
4224
- const body2 = stripUndefined11({
4224
+ const body3 = stripUndefined11({
4225
4225
  name: params.name,
4226
4226
  deployment_id: params.deploymentId ?? params.deployment_id,
4227
4227
  output_path: params.outputPath ?? params.output_path,
@@ -4234,21 +4234,21 @@ var Deployments = class {
4234
4234
  `/sandboxes/${sandboxId}/deploy`,
4235
4235
  {
4236
4236
  method: "POST",
4237
- body: body2,
4237
+ body: body3,
4238
4238
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4239
4239
  }
4240
4240
  );
4241
4241
  return unwrap25(data);
4242
4242
  }
4243
4243
  async rollback(deploymentId, params = {}) {
4244
- const body2 = stripUndefined11({
4244
+ const body3 = stripUndefined11({
4245
4245
  version_id: params.versionId ?? params.version_id
4246
4246
  });
4247
4247
  const data = await this.http.request(
4248
4248
  `/deployments/${deploymentId}/rollback`,
4249
4249
  {
4250
4250
  method: "POST",
4251
- body: body2,
4251
+ body: body3,
4252
4252
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4253
4253
  }
4254
4254
  );
@@ -4273,10 +4273,10 @@ var Deployments = class {
4273
4273
  return listItems4(data);
4274
4274
  }
4275
4275
  async setEnv(deploymentId, vars, opts = {}) {
4276
- const body2 = stripUndefined11({ env: vars, environment: opts.environment });
4276
+ const body3 = stripUndefined11({ env: vars, environment: opts.environment });
4277
4277
  const data = await this.http.post(
4278
4278
  `/deployments/${deploymentId}/env`,
4279
- body2
4279
+ body3
4280
4280
  );
4281
4281
  return listItems4(data);
4282
4282
  }
@@ -4302,12 +4302,12 @@ function workspaceId(params) {
4302
4302
  return params?.workspace_id ?? params?.workspaceId;
4303
4303
  }
4304
4304
  function ensureBody(params) {
4305
- const body2 = {};
4305
+ const body3 = {};
4306
4306
  const id = params.workspace_id ?? params.workspaceId;
4307
4307
  const externalId = params.external_workspace_id ?? params.externalWorkspaceId;
4308
- if (id) body2.workspace_id = id;
4309
- if (externalId) body2.external_workspace_id = externalId;
4310
- return body2;
4308
+ if (id) body3.workspace_id = id;
4309
+ if (externalId) body3.external_workspace_id = externalId;
4310
+ return body3;
4311
4311
  }
4312
4312
  function unwrapHost(response) {
4313
4313
  const host = response.data ?? response.host;
@@ -4552,12 +4552,12 @@ var Embeddings = class {
4552
4552
  * `{ object: "list", data: [...], model, usage }`.
4553
4553
  */
4554
4554
  async create(params) {
4555
- const body2 = Object.fromEntries(
4555
+ const body3 = Object.fromEntries(
4556
4556
  Object.entries(params).filter(([, v]) => v !== void 0)
4557
4557
  );
4558
4558
  return this.http.post(
4559
4559
  "/intelligence/embeddings",
4560
- body2
4560
+ body3
4561
4561
  );
4562
4562
  }
4563
4563
  };
@@ -4591,8 +4591,8 @@ var ExternalKeys = class {
4591
4591
  }
4592
4592
  /** Create / register an external provider key. */
4593
4593
  async create(params) {
4594
- const body2 = stripUndefined12(params);
4595
- const data = await this.http.post("/external-keys", body2);
4594
+ const body3 = stripUndefined12(params);
4595
+ const data = await this.http.post("/external-keys", body3);
4596
4596
  return unwrap27(data);
4597
4597
  }
4598
4598
  /** Resolve (preview) the stored key for a provider. */
@@ -4640,8 +4640,8 @@ var FlatCustomDomains = class {
4640
4640
  }
4641
4641
  http;
4642
4642
  async list(params = {}) {
4643
- const query = stripUndefined13({ ...params });
4644
- const data = await this.http.get("/custom-domains", query);
4643
+ const query2 = stripUndefined13({ ...params });
4644
+ const data = await this.http.get("/custom-domains", query2);
4645
4645
  return listItems5(data);
4646
4646
  }
4647
4647
  async create(params) {
@@ -4652,7 +4652,7 @@ var FlatCustomDomains = class {
4652
4652
  redirectPolicy,
4653
4653
  ...rest
4654
4654
  } = params;
4655
- const body2 = stripUndefined13({
4655
+ const body3 = stripUndefined13({
4656
4656
  ...rest,
4657
4657
  resource_type: resourceType ?? rest.resource_type,
4658
4658
  resource_id: resourceId ?? rest.resource_id,
@@ -4660,7 +4660,7 @@ var FlatCustomDomains = class {
4660
4660
  });
4661
4661
  const data = await this.http.request("/custom-domains", {
4662
4662
  method: "POST",
4663
- body: body2,
4663
+ body: body3,
4664
4664
  headers: { "Idempotency-Key": idempotencyKey5(ikey) }
4665
4665
  });
4666
4666
  return unwrap28(data);
@@ -4699,8 +4699,8 @@ var Functions = class {
4699
4699
  }
4700
4700
  http;
4701
4701
  async list(params = {}) {
4702
- const query = stripUndefined14({ ...params });
4703
- const data = await this.http.get("/functions", query);
4702
+ const query2 = stripUndefined14({ ...params });
4703
+ const data = await this.http.get("/functions", query2);
4704
4704
  return listItems6(data);
4705
4705
  }
4706
4706
  async get(functionId) {
@@ -4709,28 +4709,28 @@ var Functions = class {
4709
4709
  }
4710
4710
  async create(params) {
4711
4711
  const { idempotencyKey: ikey, memoryMb, timeoutSec, ...rest } = params;
4712
- const body2 = stripUndefined14({
4712
+ const body3 = stripUndefined14({
4713
4713
  ...rest,
4714
4714
  memory_mb: memoryMb ?? rest.memory_mb,
4715
4715
  timeout_sec: timeoutSec ?? rest.timeout_sec
4716
4716
  });
4717
4717
  const data = await this.http.request("/functions", {
4718
4718
  method: "POST",
4719
- body: body2,
4719
+ body: body3,
4720
4720
  headers: { "Idempotency-Key": idempotencyKey6(ikey) }
4721
4721
  });
4722
4722
  return unwrap29(data);
4723
4723
  }
4724
4724
  async update(functionId, params) {
4725
4725
  const { memoryMb, timeoutSec, ...rest } = params;
4726
- const body2 = stripUndefined14({
4726
+ const body3 = stripUndefined14({
4727
4727
  ...rest,
4728
4728
  memory_mb: memoryMb ?? rest.memory_mb,
4729
4729
  timeout_sec: timeoutSec ?? rest.timeout_sec
4730
4730
  });
4731
4731
  const data = await this.http.patch(
4732
4732
  `/functions/${functionId}`,
4733
- body2
4733
+ body3
4734
4734
  );
4735
4735
  return unwrap29(data);
4736
4736
  }
@@ -4783,8 +4783,8 @@ var HealthChecks = class {
4783
4783
  }
4784
4784
  http;
4785
4785
  async list(params = {}) {
4786
- const query = stripUndefined15({ ...params });
4787
- const data = await this.http.get("/health-checks", query);
4786
+ const query2 = stripUndefined15({ ...params });
4787
+ const data = await this.http.get("/health-checks", query2);
4788
4788
  return listItems7(data);
4789
4789
  }
4790
4790
  async get(checkId) {
@@ -4799,7 +4799,7 @@ var HealthChecks = class {
4799
4799
  expectedStatus,
4800
4800
  ...rest
4801
4801
  } = params;
4802
- const body2 = stripUndefined15({
4802
+ const body3 = stripUndefined15({
4803
4803
  ...rest,
4804
4804
  interval_sec: intervalSec ?? rest.interval_sec,
4805
4805
  timeout_sec: timeoutSec ?? rest.timeout_sec,
@@ -4807,14 +4807,14 @@ var HealthChecks = class {
4807
4807
  });
4808
4808
  const data = await this.http.request("/health-checks", {
4809
4809
  method: "POST",
4810
- body: body2,
4810
+ body: body3,
4811
4811
  headers: { "Idempotency-Key": idempotencyKey7(ikey) }
4812
4812
  });
4813
4813
  return unwrap30(data);
4814
4814
  }
4815
4815
  async update(checkId, params) {
4816
4816
  const { intervalSec, timeoutSec, expectedStatus, ...rest } = params;
4817
- const body2 = stripUndefined15({
4817
+ const body3 = stripUndefined15({
4818
4818
  ...rest,
4819
4819
  interval_sec: intervalSec ?? rest.interval_sec,
4820
4820
  timeout_sec: timeoutSec ?? rest.timeout_sec,
@@ -4822,7 +4822,7 @@ var HealthChecks = class {
4822
4822
  });
4823
4823
  const data = await this.http.patch(
4824
4824
  `/health-checks/${checkId}`,
4825
- body2
4825
+ body3
4826
4826
  );
4827
4827
  return unwrap30(data);
4828
4828
  }
@@ -4898,19 +4898,19 @@ var Integrations = class {
4898
4898
  // ── Test hooks ─────────────────────────────────────────────────────────────
4899
4899
  /** Send a test message to the connected Slack channel. */
4900
4900
  async slackSendTest(params = {}) {
4901
- const body2 = stripUndefined16(params);
4901
+ const body3 = stripUndefined16(params);
4902
4902
  const data = await this.http.post(
4903
4903
  "/integrations/slack/send-test",
4904
- body2
4904
+ body3
4905
4905
  );
4906
4906
  return unwrap31(data);
4907
4907
  }
4908
4908
  /** Send a test message to the connected Discord channel. */
4909
4909
  async discordSendTest(params = {}) {
4910
- const body2 = stripUndefined16(params);
4910
+ const body3 = stripUndefined16(params);
4911
4911
  const data = await this.http.post(
4912
4912
  "/integrations/discord/send-test",
4913
- body2
4913
+ body3
4914
4914
  );
4915
4915
  return unwrap31(data);
4916
4916
  }
@@ -4922,10 +4922,10 @@ var Integrations = class {
4922
4922
  }
4923
4923
  /** Create a Linear issue via the connected workspace. */
4924
4924
  async linearCreateIssue(params = {}) {
4925
- const body2 = stripUndefined16(params);
4925
+ const body3 = stripUndefined16(params);
4926
4926
  const data = await this.http.post(
4927
4927
  "/integrations/linear/create-issue",
4928
- body2
4928
+ body3
4929
4929
  );
4930
4930
  return unwrap31(data);
4931
4931
  }
@@ -4953,10 +4953,10 @@ var Mcp = class {
4953
4953
  http;
4954
4954
  /** Send a JSON-RPC request to the MCP endpoint. */
4955
4955
  async dispatch(params = {}) {
4956
- const body2 = stripUndefined17(params);
4956
+ const body3 = stripUndefined17(params);
4957
4957
  const data = await this.http.post(
4958
4958
  "/mcp",
4959
- Object.keys(body2).length > 0 ? body2 : void 0
4959
+ Object.keys(body3).length > 0 ? body3 : void 0
4960
4960
  );
4961
4961
  return unwrap32(data);
4962
4962
  }
@@ -4994,10 +4994,10 @@ var Models = class {
4994
4994
  http;
4995
4995
  /** List all models available to the calling tenant (OpenAI-compatible shape). */
4996
4996
  async list(filters = {}) {
4997
- const query = Object.fromEntries(
4997
+ const query2 = Object.fromEntries(
4998
4998
  Object.entries(filters).filter(([, v]) => v !== void 0)
4999
4999
  );
5000
- const data = await this.http.get("/intelligence/models", query);
5000
+ const data = await this.http.get("/intelligence/models", query2);
5001
5001
  return unwrap33(data);
5002
5002
  }
5003
5003
  /**
@@ -5683,8 +5683,8 @@ var ProjectAuth = class {
5683
5683
  }
5684
5684
  /** Enable project auth. */
5685
5685
  async enable(params) {
5686
- const body2 = requestBody(params);
5687
- const data = await this.http.post("/project-auth/enable", body2);
5686
+ const body3 = requestBody(params);
5687
+ const data = await this.http.post("/project-auth/enable", body3);
5688
5688
  return unwrap34(data);
5689
5689
  }
5690
5690
  /** Disable project auth. */
@@ -5697,8 +5697,8 @@ var ProjectAuth = class {
5697
5697
  }
5698
5698
  /** Update project-auth configuration. */
5699
5699
  async update(params) {
5700
- const body2 = requestBody(params);
5701
- const data = await this.http.patch("/project-auth/config", body2);
5700
+ const body3 = requestBody(params);
5701
+ const data = await this.http.patch("/project-auth/config", body3);
5702
5702
  return unwrap34(data);
5703
5703
  }
5704
5704
  };
@@ -5735,8 +5735,8 @@ var ProjectIntegrations = class {
5735
5735
  http;
5736
5736
  /** List project integrations. */
5737
5737
  async list(params = {}) {
5738
- const query = stripUndefined19(params);
5739
- const data = await this.http.get("/project-integrations", query);
5738
+ const query2 = stripUndefined19(params);
5739
+ const data = await this.http.get("/project-integrations", query2);
5740
5740
  return listItems9(data);
5741
5741
  }
5742
5742
  /** List supported providers and their schemas. */
@@ -5753,16 +5753,16 @@ var ProjectIntegrations = class {
5753
5753
  }
5754
5754
  /** Create a project integration. */
5755
5755
  async create(params) {
5756
- const body2 = stripUndefObj2(params);
5757
- const data = await this.http.post("/project-integrations", body2);
5756
+ const body3 = stripUndefObj2(params);
5757
+ const data = await this.http.post("/project-integrations", body3);
5758
5758
  return unwrap35(data);
5759
5759
  }
5760
5760
  /** Update a project integration. */
5761
5761
  async update(integrationId, params) {
5762
- const body2 = stripUndefObj2(params);
5762
+ const body3 = stripUndefObj2(params);
5763
5763
  const data = await this.http.patch(
5764
5764
  `/project-integrations/${integrationId}`,
5765
- body2
5765
+ body3
5766
5766
  );
5767
5767
  return unwrap35(data);
5768
5768
  }
@@ -5802,11 +5802,11 @@ var ProviderDefaults = class {
5802
5802
  }
5803
5803
  /** Replace the fleet-wide defaults (PUT /admin/provider-defaults). */
5804
5804
  async update(opts) {
5805
- const body2 = Object.fromEntries(
5805
+ const body3 = Object.fromEntries(
5806
5806
  Object.entries(opts).filter(([, v]) => v !== void 0)
5807
5807
  );
5808
5808
  return unwrap36(
5809
- await this.http.put("/admin/provider-defaults", body2)
5809
+ await this.http.put("/admin/provider-defaults", body3)
5810
5810
  );
5811
5811
  }
5812
5812
  // ── Per-tenant overrides ────────────────────────────────────────────────
@@ -5818,13 +5818,13 @@ var ProviderDefaults = class {
5818
5818
  );
5819
5819
  }
5820
5820
  async setTenant(tenantId, opts) {
5821
- const body2 = Object.fromEntries(
5821
+ const body3 = Object.fromEntries(
5822
5822
  Object.entries(opts).filter(([, v]) => v !== void 0)
5823
5823
  );
5824
5824
  return unwrap36(
5825
5825
  await this.http.put(
5826
5826
  `/admin/tenants/${tenantId}/provider-config`,
5827
- body2
5827
+ body3
5828
5828
  )
5829
5829
  );
5830
5830
  }
@@ -5889,6 +5889,86 @@ var Regions = class {
5889
5889
  }
5890
5890
  };
5891
5891
 
5892
+ // src/resources/runtime-env.ts
5893
+ function unwrap38(payload) {
5894
+ if (payload !== null && typeof payload === "object" && "data" in payload && payload.data !== void 0) {
5895
+ return payload.data;
5896
+ }
5897
+ return payload;
5898
+ }
5899
+ function body2(params) {
5900
+ return Object.fromEntries(
5901
+ Object.entries({
5902
+ scope: params.scope,
5903
+ workspace_id: params.workspaceId ?? params.workspace_id,
5904
+ project_id: params.projectId ?? params.project_id,
5905
+ target: params.target,
5906
+ name: params.name,
5907
+ value: params.value,
5908
+ enabled: params.enabled,
5909
+ metadata: params.metadata
5910
+ }).filter(([, value]) => value !== void 0)
5911
+ );
5912
+ }
5913
+ function query(params) {
5914
+ return {
5915
+ scope: params.scope,
5916
+ workspace_id: params.workspaceId ?? params.workspace_id,
5917
+ project_id: params.projectId ?? params.project_id,
5918
+ target: params.target
5919
+ };
5920
+ }
5921
+ function normalize2(row) {
5922
+ const tenantId = row.tenantId ?? row.tenant_id;
5923
+ const workspaceId2 = row.workspaceId ?? row.workspace_id;
5924
+ const projectId = row.projectId ?? row.project_id;
5925
+ const createdAt = row.createdAt ?? row.created_at;
5926
+ const updatedAt = row.updatedAt ?? row.updated_at;
5927
+ return {
5928
+ ...row,
5929
+ ...tenantId !== void 0 ? { tenantId } : {},
5930
+ ...workspaceId2 !== void 0 ? { workspaceId: workspaceId2 } : {},
5931
+ ...projectId !== void 0 ? { projectId } : {},
5932
+ ...createdAt !== void 0 ? { createdAt } : {},
5933
+ ...updatedAt !== void 0 ? { updatedAt } : {}
5934
+ };
5935
+ }
5936
+ var RuntimeEnv = class {
5937
+ constructor(http) {
5938
+ this.http = http;
5939
+ }
5940
+ http;
5941
+ async list(params = {}) {
5942
+ const response = await this.http.get(
5943
+ "/runtime-env",
5944
+ query(params)
5945
+ );
5946
+ return unwrap38(response).map(normalize2);
5947
+ }
5948
+ async get(id) {
5949
+ return normalize2(
5950
+ unwrap38(
5951
+ await this.http.get(
5952
+ `/runtime-env/${encodeURIComponent(id)}`
5953
+ )
5954
+ )
5955
+ );
5956
+ }
5957
+ async set(params) {
5958
+ return normalize2(
5959
+ unwrap38(
5960
+ await this.http.post(
5961
+ "/runtime-env",
5962
+ body2(params)
5963
+ )
5964
+ )
5965
+ );
5966
+ }
5967
+ async delete(id) {
5968
+ await this.http.delete(`/runtime-env/${encodeURIComponent(id)}`);
5969
+ }
5970
+ };
5971
+
5892
5972
  // src/resources/sandboxes.ts
5893
5973
  function encodeContent(content) {
5894
5974
  const bytes = typeof content === "string" ? new TextEncoder().encode(content) : content;
@@ -5903,7 +5983,7 @@ var AGENT_WORKSPACE_TIMEOUT_SEC = 86400;
5903
5983
  var AGENT_WORKSPACE_IDLE_TIMEOUT_SEC = 1800;
5904
5984
  var AGENT_WORKSPACE_SNAPSHOT_EXPIRATION_DAYS = 30;
5905
5985
  var AGENT_WORKSPACE_KEEP_LAST_SNAPSHOTS = 1;
5906
- function unwrap38(payload) {
5986
+ function unwrap39(payload) {
5907
5987
  if (payload !== null && typeof payload === "object" && "data" in payload && payload.data !== void 0) {
5908
5988
  return payload.data;
5909
5989
  }
@@ -6126,11 +6206,11 @@ var SandboxTerminal = class {
6126
6206
  }
6127
6207
  sandbox;
6128
6208
  async create(params = {}) {
6129
- const body2 = Object.fromEntries(
6209
+ const body3 = Object.fromEntries(
6130
6210
  Object.entries(params).filter(([, v]) => v !== void 0)
6131
6211
  );
6132
- const response = unwrap38(
6133
- await this.sandbox.http.post(`/sandboxes/${this.sandbox.id}/terminal`, body2)
6212
+ const response = unwrap39(
6213
+ await this.sandbox.http.post(`/sandboxes/${this.sandbox.id}/terminal`, body3)
6134
6214
  );
6135
6215
  return response;
6136
6216
  }
@@ -6172,21 +6252,21 @@ var SandboxPreviews = class {
6172
6252
  return [];
6173
6253
  }
6174
6254
  async create(port, opts = {}) {
6175
- const body2 = {
6255
+ const body3 = {
6176
6256
  port,
6177
6257
  ...Object.fromEntries(
6178
6258
  Object.entries(opts).filter(([, v]) => v !== void 0)
6179
6259
  )
6180
6260
  };
6181
- return unwrap38(
6261
+ return unwrap39(
6182
6262
  await this.http.post(
6183
6263
  `/sandboxes/${this.sandbox.id}/previews`,
6184
- body2
6264
+ body3
6185
6265
  )
6186
6266
  );
6187
6267
  }
6188
6268
  async get(previewId) {
6189
- return unwrap38(
6269
+ return unwrap39(
6190
6270
  await this.http.get(
6191
6271
  `/sandboxes/${this.sandbox.id}/previews/${previewId}`
6192
6272
  )
@@ -6199,7 +6279,7 @@ var SandboxPreviews = class {
6199
6279
  }
6200
6280
  /** Mint a share token for previewId. */
6201
6281
  async share(previewId, opts = {}) {
6202
- return unwrap38(
6282
+ return unwrap39(
6203
6283
  await this.http.post(
6204
6284
  `/sandboxes/${this.sandbox.id}/previews/${previewId}/share`,
6205
6285
  { ttl_seconds: opts.ttl_seconds ?? opts.expires_in_sec ?? 3600 }
@@ -6268,7 +6348,7 @@ var SandboxTags = class {
6268
6348
  sandbox;
6269
6349
  /** Replace the full tag list with tags. */
6270
6350
  async set(tags) {
6271
- return unwrap38(
6351
+ return unwrap39(
6272
6352
  await this.sandbox.http.patch(`/sandboxes/${this.sandbox.id}/tags`, { tags })
6273
6353
  );
6274
6354
  }
@@ -6336,14 +6416,14 @@ var Sandbox = class _Sandbox {
6336
6416
  return this.data.template_id ?? this.data.image_id ?? "";
6337
6417
  }
6338
6418
  async refresh() {
6339
- this.data = unwrap38(
6419
+ this.data = unwrap39(
6340
6420
  await this.http.get(`/sandboxes/${this.id}`)
6341
6421
  );
6342
6422
  return this;
6343
6423
  }
6344
6424
  async runExec(command, options) {
6345
6425
  this.assertRunning("exec");
6346
- const response = unwrap38(
6426
+ const response = unwrap39(
6347
6427
  await this.http.post(
6348
6428
  `/sandboxes/${this.id}/exec`,
6349
6429
  execBody(command, options)
@@ -6387,25 +6467,25 @@ var Sandbox = class _Sandbox {
6387
6467
  );
6388
6468
  }
6389
6469
  async createExport(params) {
6390
- const body2 = typeof params === "string" ? { path: params } : Array.isArray(params) ? { paths: params } : params;
6391
- const response = unwrap38(
6470
+ const body3 = typeof params === "string" ? { path: params } : Array.isArray(params) ? { paths: params } : params;
6471
+ const response = unwrap39(
6392
6472
  await this.http.post(
6393
6473
  `/sandboxes/${this.id}/exports`,
6394
- body2
6474
+ body3
6395
6475
  )
6396
6476
  );
6397
6477
  return normalizeExport(response);
6398
6478
  }
6399
6479
  async downloadExport(paths, options = {}) {
6400
- const query = new URLSearchParams();
6480
+ const query2 = new URLSearchParams();
6401
6481
  if (Array.isArray(paths)) {
6402
- for (const path of paths) query.append("paths[]", path);
6482
+ for (const path of paths) query2.append("paths[]", path);
6403
6483
  } else {
6404
- query.set("path", paths);
6484
+ query2.set("path", paths);
6405
6485
  }
6406
- if (options.filename) query.set("filename", options.filename);
6486
+ if (options.filename) query2.set("filename", options.filename);
6407
6487
  return this.http.getBinary(
6408
- `/sandboxes/${this.id}/exports/download?${query.toString()}`
6488
+ `/sandboxes/${this.id}/exports/download?${query2.toString()}`
6409
6489
  );
6410
6490
  }
6411
6491
  async readFile(path) {
@@ -6413,7 +6493,7 @@ var Sandbox = class _Sandbox {
6413
6493
  }
6414
6494
  async listFiles(path = "/workspace") {
6415
6495
  this.assertRunning("files.list");
6416
- const response = unwrap38(
6496
+ const response = unwrap39(
6417
6497
  await this.http.get(
6418
6498
  `/sandboxes/${this.id}/files`,
6419
6499
  { path }
@@ -6423,7 +6503,7 @@ var Sandbox = class _Sandbox {
6423
6503
  }
6424
6504
  async statFile(path) {
6425
6505
  this.assertRunning("files.stat");
6426
- return unwrap38(
6506
+ return unwrap39(
6427
6507
  await this.http.post(
6428
6508
  `/sandboxes/${this.id}/files/stat`,
6429
6509
  { path }
@@ -6432,7 +6512,7 @@ var Sandbox = class _Sandbox {
6432
6512
  }
6433
6513
  async expose(port) {
6434
6514
  this.assertRunning("expose");
6435
- const response = unwrap38(
6515
+ const response = unwrap39(
6436
6516
  await this.http.post(
6437
6517
  `/sandboxes/${this.id}/expose`,
6438
6518
  port === void 0 ? {} : { port }
@@ -6442,7 +6522,7 @@ var Sandbox = class _Sandbox {
6442
6522
  }
6443
6523
  async startTemplate(options = {}) {
6444
6524
  this.assertRunning("startTemplate");
6445
- return unwrap38(
6525
+ return unwrap39(
6446
6526
  await this.http.post(
6447
6527
  `/sandboxes/${this.id}/template/start`,
6448
6528
  options
@@ -6450,7 +6530,7 @@ var Sandbox = class _Sandbox {
6450
6530
  );
6451
6531
  }
6452
6532
  async getArtifacts() {
6453
- return unwrap38(
6533
+ return unwrap39(
6454
6534
  await this.http.get(
6455
6535
  `/sandboxes/${this.id}/artifacts`
6456
6536
  )
@@ -6461,7 +6541,7 @@ var Sandbox = class _Sandbox {
6461
6541
  `/sandboxes/${this.id}/logs`,
6462
6542
  { lines }
6463
6543
  );
6464
- return unwrap38(response);
6544
+ return unwrap39(response);
6465
6545
  }
6466
6546
  streamLogs() {
6467
6547
  return this.http.stream(
@@ -6470,7 +6550,7 @@ var Sandbox = class _Sandbox {
6470
6550
  }
6471
6551
  async createSnapshot(comment) {
6472
6552
  this.assertRunning("snapshots.create");
6473
- return unwrap38(
6553
+ return unwrap39(
6474
6554
  await this.http.post(
6475
6555
  `/sandboxes/${this.id}/snapshots`,
6476
6556
  comment ? { comment } : {}
@@ -6478,14 +6558,14 @@ var Sandbox = class _Sandbox {
6478
6558
  );
6479
6559
  }
6480
6560
  async listSnapshots() {
6481
- return unwrap38(
6561
+ return unwrap39(
6482
6562
  await this.http.get(
6483
6563
  `/sandboxes/${this.id}/snapshots`
6484
6564
  )
6485
6565
  );
6486
6566
  }
6487
6567
  async restoreSnapshot(snapshotId) {
6488
- const data = unwrap38(
6568
+ const data = unwrap39(
6489
6569
  await this.http.post(
6490
6570
  `/sandboxes/${this.id}/restore/${snapshotId}`,
6491
6571
  {}
@@ -6502,13 +6582,13 @@ var Sandbox = class _Sandbox {
6502
6582
  */
6503
6583
  async fork(opts = {}) {
6504
6584
  this.assertRunning("fork");
6505
- const body2 = {};
6506
- if (opts.name !== void 0) body2.name = opts.name;
6507
- if (opts.metadata !== void 0) body2.metadata = opts.metadata;
6508
- const data = unwrap38(
6585
+ const body3 = {};
6586
+ if (opts.name !== void 0) body3.name = opts.name;
6587
+ if (opts.metadata !== void 0) body3.metadata = opts.metadata;
6588
+ const data = unwrap39(
6509
6589
  await this.http.post(
6510
6590
  `/sandboxes/${this.id}/fork`,
6511
- body2
6591
+ body3
6512
6592
  )
6513
6593
  );
6514
6594
  return new _Sandbox(this.http, data);
@@ -6527,7 +6607,7 @@ var Sandbox = class _Sandbox {
6527
6607
  if (keepLastSnapshots !== void 0) {
6528
6608
  metadata.keep_last_snapshots = keepLastSnapshots;
6529
6609
  }
6530
- const body2 = stripUndefined20({
6610
+ const body3 = stripUndefined20({
6531
6611
  name: params.name,
6532
6612
  slug: params.slug,
6533
6613
  tags: params.tags,
@@ -6536,17 +6616,17 @@ var Sandbox = class _Sandbox {
6536
6616
  timeout_sec: params.timeout_sec ?? params.timeoutSec,
6537
6617
  idle_timeout_sec: params.idle_timeout_sec ?? params.idleTimeoutSec
6538
6618
  });
6539
- const data = unwrap38(
6619
+ const data = unwrap39(
6540
6620
  await this.http.patch(
6541
6621
  `/sandboxes/${this.id}`,
6542
- body2
6622
+ body3
6543
6623
  )
6544
6624
  );
6545
6625
  this.data = data;
6546
6626
  return this;
6547
6627
  }
6548
6628
  async extend(timeoutSec) {
6549
- const data = unwrap38(
6629
+ const data = unwrap39(
6550
6630
  await this.http.post(
6551
6631
  `/sandboxes/${this.id}/extend`,
6552
6632
  { timeout_sec: timeoutSec }
@@ -6569,7 +6649,7 @@ var Sandbox = class _Sandbox {
6569
6649
  return raw;
6570
6650
  }
6571
6651
  async pause() {
6572
- const data = unwrap38(
6652
+ const data = unwrap39(
6573
6653
  await this.http.post(
6574
6654
  `/sandboxes/${this.id}/pause`,
6575
6655
  {}
@@ -6579,7 +6659,7 @@ var Sandbox = class _Sandbox {
6579
6659
  return this;
6580
6660
  }
6581
6661
  async resume() {
6582
- const data = unwrap38(
6662
+ const data = unwrap39(
6583
6663
  await this.http.post(
6584
6664
  `/sandboxes/${this.id}/resume`,
6585
6665
  {}
@@ -6615,7 +6695,7 @@ var Sandbox = class _Sandbox {
6615
6695
  if (idempotencyKey11) {
6616
6696
  requestOptions.headers = { "Idempotency-Key": idempotencyKey11 };
6617
6697
  }
6618
- return unwrap38(
6698
+ return unwrap39(
6619
6699
  await this.http.request(
6620
6700
  `/sandboxes/${this.id}/deploy`,
6621
6701
  requestOptions
@@ -6627,7 +6707,7 @@ var Sandbox = class _Sandbox {
6627
6707
  }
6628
6708
  /** Check readiness of the sandbox (GET /sandboxes/:id/readiness). */
6629
6709
  async readiness() {
6630
- return unwrap38(
6710
+ return unwrap39(
6631
6711
  await this.http.get(
6632
6712
  `/sandboxes/${this.id}/readiness`
6633
6713
  )
@@ -6795,7 +6875,7 @@ var Sandboxes = class {
6795
6875
  if (idempotencyKey11) {
6796
6876
  requestOptions.headers = { "Idempotency-Key": idempotencyKey11 };
6797
6877
  }
6798
- const data = unwrap38(
6878
+ const data = unwrap39(
6799
6879
  await this.http.request(
6800
6880
  "/sandboxes",
6801
6881
  requestOptions
@@ -6814,7 +6894,7 @@ var Sandboxes = class {
6814
6894
  return listItems11(data).map((item) => new Sandbox(this.http, item));
6815
6895
  }
6816
6896
  async get(id) {
6817
- const data = unwrap38(
6897
+ const data = unwrap39(
6818
6898
  await this.http.get(`/sandboxes/${id}`)
6819
6899
  );
6820
6900
  return new Sandbox(this.http, data);
@@ -6823,7 +6903,7 @@ var Sandboxes = class {
6823
6903
  return this.get(id);
6824
6904
  }
6825
6905
  async getByName(name) {
6826
- const data = unwrap38(
6906
+ const data = unwrap39(
6827
6907
  await this.http.get(
6828
6908
  `/sandboxes/by-name/${encodeURIComponent(name)}`
6829
6909
  )
@@ -6888,7 +6968,7 @@ var Sandboxes = class {
6888
6968
  metadata: params.metadata
6889
6969
  })
6890
6970
  );
6891
- return unwrap38(response);
6971
+ return unwrap39(response);
6892
6972
  }
6893
6973
  async createTemplateBuild(templateId, params = {}) {
6894
6974
  const response = await this.http.post(
@@ -6898,19 +6978,19 @@ var Sandboxes = class {
6898
6978
  metadata: params.metadata
6899
6979
  })
6900
6980
  );
6901
- return unwrap38(response);
6981
+ return unwrap39(response);
6902
6982
  }
6903
6983
  async listTemplateBuilds(templateId) {
6904
6984
  const response = await this.http.get(
6905
6985
  `/sandbox-templates/${templateId}/builds`
6906
6986
  );
6907
- return unwrap38(response);
6987
+ return unwrap39(response);
6908
6988
  }
6909
6989
  async getTemplateBuild(buildId) {
6910
6990
  const response = await this.http.get(
6911
6991
  `/sandbox-template-builds/${buildId}`
6912
6992
  );
6913
- return unwrap38(response);
6993
+ return unwrap39(response);
6914
6994
  }
6915
6995
  };
6916
6996
  function toBase642(bytes) {
@@ -6922,7 +7002,7 @@ function toBase642(bytes) {
6922
7002
  }
6923
7003
  return btoa(binary);
6924
7004
  }
6925
- function unwrap39(payload) {
7005
+ function unwrap40(payload) {
6926
7006
  if (payload && typeof payload === "object" && "data" in payload) {
6927
7007
  return payload.data;
6928
7008
  }
@@ -6953,8 +7033,8 @@ var SandboxTemplates = class {
6953
7033
  http;
6954
7034
  async list(params = {}) {
6955
7035
  const includeAliases = params.includeAliases ?? params.include_aliases ?? false;
6956
- const query = includeAliases ? { include_aliases: true } : void 0;
6957
- const data = await this.http.get("/sandbox-templates", query);
7036
+ const query2 = includeAliases ? { include_aliases: true } : void 0;
7037
+ const data = await this.http.get("/sandbox-templates", query2);
6958
7038
  return listItems12(data, [
6959
7039
  "data",
6960
7040
  "templates",
@@ -6965,7 +7045,7 @@ var SandboxTemplates = class {
6965
7045
  const data = await this.http.get(
6966
7046
  `/sandbox-templates/${templateId}`
6967
7047
  );
6968
- return unwrap39(data);
7048
+ return unwrap40(data);
6969
7049
  }
6970
7050
  async create(params) {
6971
7051
  const {
@@ -6975,17 +7055,17 @@ var SandboxTemplates = class {
6975
7055
  name,
6976
7056
  ...rest
6977
7057
  } = params;
6978
- const body2 = stripUndefined21({
7058
+ const body3 = stripUndefined21({
6979
7059
  name,
6980
7060
  build_spec: buildSpec ?? build_spec,
6981
7061
  ...rest
6982
7062
  });
6983
7063
  const data = await this.http.request("/sandbox-templates", {
6984
7064
  method: "POST",
6985
- body: body2,
7065
+ body: body3,
6986
7066
  headers: { "Idempotency-Key": idempotencyKey8(ikey) }
6987
7067
  });
6988
- return unwrap39(data);
7068
+ return unwrap40(data);
6989
7069
  }
6990
7070
  async buildSpecSchema() {
6991
7071
  const data = await this.http.get("/sandbox-templates/build-spec");
@@ -7009,21 +7089,21 @@ var SandboxTemplates = class {
7009
7089
  }
7010
7090
  async createBuild(templateId, params = {}) {
7011
7091
  const { idempotencyKey: ikey, ...rest } = params;
7012
- const body2 = stripUndefined21(rest);
7092
+ const body3 = stripUndefined21(rest);
7013
7093
  const data = await this.http.request(
7014
7094
  `/sandbox-templates/${templateId}/builds`,
7015
7095
  {
7016
7096
  method: "POST",
7017
- body: body2,
7097
+ body: body3,
7018
7098
  headers: { "Idempotency-Key": idempotencyKey8(ikey) }
7019
7099
  }
7020
7100
  );
7021
- return unwrap39(data);
7101
+ return unwrap40(data);
7022
7102
  }
7023
7103
  };
7024
7104
 
7025
7105
  // src/resources/settings.ts
7026
- function unwrap40(payload) {
7106
+ function unwrap41(payload) {
7027
7107
  if (payload && typeof payload === "object") {
7028
7108
  const p = payload;
7029
7109
  for (const k of [
@@ -7039,7 +7119,7 @@ function unwrap40(payload) {
7039
7119
  return payload;
7040
7120
  }
7041
7121
  function listItems13(payload) {
7042
- const result = unwrap40(payload);
7122
+ const result = unwrap41(payload);
7043
7123
  if (Array.isArray(result)) return result;
7044
7124
  return [];
7045
7125
  }
@@ -7056,46 +7136,46 @@ var Settings = class {
7056
7136
  /** Get the current tenant settings. */
7057
7137
  async get() {
7058
7138
  const data = await this.http.get("/settings");
7059
- return unwrap40(data);
7139
+ return unwrap41(data);
7060
7140
  }
7061
7141
  /** Update tenant settings. */
7062
7142
  async update(params) {
7063
- const body2 = stripUndefined22(params);
7064
- const data = await this.http.put("/settings", body2);
7065
- return unwrap40(data);
7143
+ const body3 = stripUndefined22(params);
7144
+ const data = await this.http.put("/settings", body3);
7145
+ return unwrap41(data);
7066
7146
  }
7067
7147
  // ── Branding ──────────────────────────────────────────────────────────────
7068
7148
  /** Get tenant branding (logo, colors, custom wordmark). */
7069
7149
  async getBranding() {
7070
7150
  const data = await this.http.get("/settings/branding");
7071
- return unwrap40(data);
7151
+ return unwrap41(data);
7072
7152
  }
7073
7153
  /** Update tenant branding. */
7074
7154
  async updateBranding(params) {
7075
- const body2 = stripUndefined22(params);
7076
- const data = await this.http.put("/settings/branding", body2);
7077
- return unwrap40(data);
7155
+ const body3 = stripUndefined22(params);
7156
+ const data = await this.http.put("/settings/branding", body3);
7157
+ return unwrap41(data);
7078
7158
  }
7079
7159
  // ── Read-only reference data ───────────────────────────────────────────────
7080
7160
  /** Get tenant-scoped compute pricing. */
7081
7161
  async computePricing() {
7082
7162
  const data = await this.http.get("/settings/compute-pricing");
7083
- return unwrap40(data);
7163
+ return unwrap41(data);
7084
7164
  }
7085
7165
  /** Get tenant-scoped GPU pricing. */
7086
7166
  async gpuPricing() {
7087
7167
  const data = await this.http.get("/settings/gpu-pricing");
7088
- return unwrap40(data);
7168
+ return unwrap41(data);
7089
7169
  }
7090
7170
  /** List models available to this tenant. */
7091
7171
  async availableModels() {
7092
7172
  const data = await this.http.get("/settings/available-models");
7093
- return unwrap40(data);
7173
+ return unwrap41(data);
7094
7174
  }
7095
7175
  /** List regions enabled for this tenant. */
7096
7176
  async regions() {
7097
7177
  const data = await this.http.get("/settings/regions");
7098
- return unwrap40(data);
7178
+ return unwrap41(data);
7099
7179
  }
7100
7180
  // ── BYOK provider keys ────────────────────────────────────────────────────
7101
7181
  /** List tenant-level BYOK provider keys (Anthropic, OpenAI, etc.). */
@@ -7105,12 +7185,12 @@ var Settings = class {
7105
7185
  }
7106
7186
  /** Create or update a BYOK provider key. */
7107
7187
  async upsertProviderKey(provider, params) {
7108
- const body2 = stripUndefined22(params);
7188
+ const body3 = stripUndefined22(params);
7109
7189
  const data = await this.http.put(
7110
7190
  `/settings/provider-keys/${provider}`,
7111
- body2
7191
+ body3
7112
7192
  );
7113
- return unwrap40(data);
7193
+ return unwrap41(data);
7114
7194
  }
7115
7195
  /** Delete a BYOK provider key. */
7116
7196
  async deleteProviderKey(provider) {
@@ -7119,7 +7199,7 @@ var Settings = class {
7119
7199
  };
7120
7200
 
7121
7201
  // src/resources/snapshots-standalone.ts
7122
- function unwrap41(data) {
7202
+ function unwrap42(data) {
7123
7203
  if (data && typeof data === "object") {
7124
7204
  const d = data;
7125
7205
  for (const k of ["data", "snapshots", "items"]) {
@@ -7144,20 +7224,20 @@ var SnapshotsStandalone = class {
7144
7224
  }
7145
7225
  http;
7146
7226
  async list(filters = {}) {
7147
- const query = Object.fromEntries(
7227
+ const query2 = Object.fromEntries(
7148
7228
  Object.entries(filters).filter(([, v]) => v !== void 0)
7149
7229
  );
7150
- return unwrapList12(await this.http.get("/admin/snapshots", query));
7230
+ return unwrapList12(await this.http.get("/admin/snapshots", query2));
7151
7231
  }
7152
7232
  async get(snapshotId) {
7153
- return unwrap41(
7233
+ return unwrap42(
7154
7234
  await this.http.get(`/admin/snapshots/${snapshotId}`)
7155
7235
  );
7156
7236
  }
7157
7237
  };
7158
7238
 
7159
7239
  // src/resources/storage.ts
7160
- function unwrap42(payload) {
7240
+ function unwrap43(payload) {
7161
7241
  if (payload && typeof payload === "object" && "data" in payload) {
7162
7242
  return payload.data;
7163
7243
  }
@@ -7190,31 +7270,31 @@ var Storage = class {
7190
7270
  }
7191
7271
  async createBucket(params) {
7192
7272
  const { name, public: isPublic, visibility, ...rest } = params;
7193
- const body2 = stripUndefined23({
7273
+ const body3 = stripUndefined23({
7194
7274
  name,
7195
7275
  visibility: visibility ?? (isPublic === void 0 ? void 0 : isPublic ? "public" : "private"),
7196
7276
  ...rest
7197
7277
  });
7198
- const data = await this.http.post("/storage/buckets", body2);
7199
- return unwrap42(data);
7278
+ const data = await this.http.post("/storage/buckets", body3);
7279
+ return unwrap43(data);
7200
7280
  }
7201
7281
  async getBucket(bucketId) {
7202
7282
  const data = await this.http.get(`/storage/buckets/${bucketId}`);
7203
- return unwrap42(data);
7283
+ return unwrap43(data);
7204
7284
  }
7205
7285
  async deleteBucket(bucketId) {
7206
7286
  await this.http.delete(`/storage/buckets/${bucketId}`);
7207
7287
  }
7208
7288
  // ── Objects ────────────────────────────────────────────────────────────────
7209
7289
  async listObjects(bucketId, params = {}) {
7210
- const query = stripUndefined23({
7290
+ const query2 = stripUndefined23({
7211
7291
  prefix: params.prefix,
7212
7292
  max_keys: params.max_keys ?? params.maxKeys ?? params.limit,
7213
7293
  marker: params.marker ?? params.cursor
7214
7294
  });
7215
7295
  const data = await this.http.get(
7216
7296
  `/storage/buckets/${bucketId}/objects`,
7217
- query
7297
+ query2
7218
7298
  );
7219
7299
  return listItems14(data, ["data", "objects", "items"]);
7220
7300
  }
@@ -7241,16 +7321,16 @@ var Storage = class {
7241
7321
  // ── Presigned URLs ─────────────────────────────────────────────────────────
7242
7322
  async presign(bucketId, params) {
7243
7323
  const operationMethod = params.operation === "put" ? "PUT" : params.operation === "get" ? "GET" : void 0;
7244
- const body2 = stripUndefined23({
7324
+ const body3 = stripUndefined23({
7245
7325
  key: params.key,
7246
7326
  method: params.method ?? operationMethod ?? "GET",
7247
7327
  expires_in: params.expiresIn ?? params.expires_in ?? params.expiresInSec ?? params.expires_in_sec ?? 3600
7248
7328
  });
7249
7329
  const data = await this.http.post(
7250
7330
  `/storage/buckets/${bucketId}/presign`,
7251
- body2
7331
+ body3
7252
7332
  );
7253
- return unwrap42(data);
7333
+ return unwrap43(data);
7254
7334
  }
7255
7335
  };
7256
7336
 
@@ -7340,7 +7420,7 @@ var OrgInvites = class {
7340
7420
  };
7341
7421
 
7342
7422
  // src/resources/tenant.ts
7343
- function unwrap43(payload) {
7423
+ function unwrap44(payload) {
7344
7424
  if (payload && typeof payload === "object") {
7345
7425
  const p = payload;
7346
7426
  for (const k of ["data", "tenant", "branding", "items"]) {
@@ -7362,14 +7442,14 @@ var PreviewDomain = class {
7362
7442
  /** Get the tenant's white-label preview domain settings. */
7363
7443
  async get() {
7364
7444
  const data = await this.http.get("/tenant/preview-domain");
7365
- return unwrap43(data);
7445
+ return unwrap44(data);
7366
7446
  }
7367
7447
  /** Set the tenant's white-label preview domain. */
7368
7448
  async set(domain) {
7369
7449
  const data = await this.http.put("/tenant/preview-domain", {
7370
7450
  preview_domain: domain
7371
7451
  });
7372
- return unwrap43(data);
7452
+ return unwrap44(data);
7373
7453
  }
7374
7454
  /** Re-run DNS verification for the configured preview domain. */
7375
7455
  async verify() {
@@ -7377,7 +7457,7 @@ var PreviewDomain = class {
7377
7457
  "/tenant/preview-domain/verify",
7378
7458
  {}
7379
7459
  );
7380
- return unwrap43(data);
7460
+ return unwrap44(data);
7381
7461
  }
7382
7462
  /** Remove the tenant's custom preview domain. */
7383
7463
  async delete() {
@@ -7392,14 +7472,14 @@ var Branding = class {
7392
7472
  /** Get tenant branding used by white-label hosted surfaces. */
7393
7473
  async get() {
7394
7474
  const data = await this.http.get("/tenant/branding");
7395
- return unwrap43(data);
7475
+ return unwrap44(data);
7396
7476
  }
7397
7477
  /** Update tenant branding used by white-label hosted surfaces. */
7398
7478
  async set(params) {
7399
7479
  const data = await this.http.put("/tenant/branding", {
7400
7480
  branding: stripUndefined24(params)
7401
7481
  });
7402
- return unwrap43(data);
7482
+ return unwrap44(data);
7403
7483
  }
7404
7484
  /** Reset tenant branding to platform defaults. */
7405
7485
  async delete() {
@@ -7421,7 +7501,7 @@ var Tenant = class {
7421
7501
  /** Get the current tenant's plan, limits, and live usage counters. */
7422
7502
  async current() {
7423
7503
  const data = await this.http.get("/tenant/plan");
7424
- return unwrap43(data);
7504
+ return unwrap44(data);
7425
7505
  }
7426
7506
  /** Convenience alias for `tenant.branding.get()`. */
7427
7507
  async getBranding() {
@@ -7438,7 +7518,7 @@ var Tenant = class {
7438
7518
  };
7439
7519
 
7440
7520
  // src/resources/usage.ts
7441
- function unwrap44(payload) {
7521
+ function unwrap45(payload) {
7442
7522
  if (payload && typeof payload === "object") {
7443
7523
  const p = payload;
7444
7524
  for (const k of ["data", "usage", "sessions", "summary", "items"]) {
@@ -7460,24 +7540,24 @@ var Usage = class {
7460
7540
  /** Get the current period usage summary. */
7461
7541
  async current() {
7462
7542
  const data = await this.http.get("/usage/summary");
7463
- return unwrap44(data);
7543
+ return unwrap45(data);
7464
7544
  }
7465
7545
  /** List per-session metering events. */
7466
7546
  async sessions(params = {}) {
7467
- const query = stripUndefined25(params);
7468
- const data = await this.http.get("/usage/sessions", query);
7469
- const result = unwrap44(data);
7547
+ const query2 = stripUndefined25(params);
7548
+ const data = await this.http.get("/usage/sessions", query2);
7549
+ const result = unwrap45(data);
7470
7550
  if (Array.isArray(result)) return result;
7471
7551
  return [];
7472
7552
  }
7473
7553
  /** Get a usage report for a period. */
7474
7554
  async report(params = {}) {
7475
- const query = stripUndefined25(params);
7476
- const data = await this.http.get("/usage/summary", query);
7477
- return unwrap44(data);
7555
+ const query2 = stripUndefined25(params);
7556
+ const data = await this.http.get("/usage/summary", query2);
7557
+ return unwrap45(data);
7478
7558
  }
7479
7559
  };
7480
- function unwrap45(payload) {
7560
+ function unwrap46(payload) {
7481
7561
  if (payload && typeof payload === "object" && "data" in payload) {
7482
7562
  return payload.data;
7483
7563
  }
@@ -7507,32 +7587,32 @@ var Volumes = class {
7507
7587
  }
7508
7588
  http;
7509
7589
  async list(params = {}) {
7510
- const query = stripUndefined26({ ...params });
7511
- const data = await this.http.get("/volumes", query);
7590
+ const query2 = stripUndefined26({ ...params });
7591
+ const data = await this.http.get("/volumes", query2);
7512
7592
  return listItems15(data);
7513
7593
  }
7514
7594
  async get(volumeId) {
7515
7595
  const data = await this.http.get(`/volumes/${volumeId}`);
7516
- return unwrap45(data);
7596
+ return unwrap46(data);
7517
7597
  }
7518
7598
  async create(params) {
7519
7599
  const { idempotencyKey: ikey, sizeGb, ...rest } = params;
7520
- const body2 = stripUndefined26({
7600
+ const body3 = stripUndefined26({
7521
7601
  ...rest,
7522
7602
  size_gb: sizeGb ?? rest.size_gb
7523
7603
  });
7524
7604
  const data = await this.http.request("/volumes", {
7525
7605
  method: "POST",
7526
- body: body2,
7606
+ body: body3,
7527
7607
  headers: { "Idempotency-Key": idempotencyKey9(ikey) }
7528
7608
  });
7529
- return unwrap45(data);
7609
+ return unwrap46(data);
7530
7610
  }
7531
7611
  async delete(volumeId) {
7532
7612
  await this.http.delete(`/volumes/${volumeId}`);
7533
7613
  }
7534
7614
  };
7535
- function unwrap46(payload) {
7615
+ function unwrap47(payload) {
7536
7616
  if (payload && typeof payload === "object" && "data" in payload) {
7537
7617
  return payload.data;
7538
7618
  }
@@ -7556,12 +7636,12 @@ function stripUndefined27(input) {
7556
7636
  function idempotencyKey10(key) {
7557
7637
  return key ?? randomUUID();
7558
7638
  }
7559
- function bodyBuffer(body2) {
7560
- if (Buffer.isBuffer(body2)) return body2;
7561
- if (typeof body2 === "string") return Buffer.from(body2, "utf8");
7562
- return Buffer.from(body2);
7639
+ function bodyBuffer(body3) {
7640
+ if (Buffer.isBuffer(body3)) return body3;
7641
+ if (typeof body3 === "string") return Buffer.from(body3, "utf8");
7642
+ return Buffer.from(body3);
7563
7643
  }
7564
- function verifySignature(body2, header, secret, toleranceSec = 300) {
7644
+ function verifySignature(body3, header, secret, toleranceSec = 300) {
7565
7645
  const parts = Object.fromEntries(
7566
7646
  header.split(",").map((chunk) => chunk.split("=", 2)).filter(([key, value]) => key && value)
7567
7647
  );
@@ -7574,7 +7654,7 @@ function verifySignature(body2, header, secret, toleranceSec = 300) {
7574
7654
  if (ageSec > toleranceSec) {
7575
7655
  throw new Error("webhook timestamp too old");
7576
7656
  }
7577
- const rawBody = bodyBuffer(body2);
7657
+ const rawBody = bodyBuffer(body3);
7578
7658
  const signed = Buffer.concat([Buffer.from(`${timestamp}.`), rawBody]);
7579
7659
  const expected = createHmac("sha256", secret).update(signed).digest("hex");
7580
7660
  try {
@@ -7593,28 +7673,28 @@ var Webhooks = class {
7593
7673
  http;
7594
7674
  static verifySignature = verifySignature;
7595
7675
  async list(params = {}) {
7596
- const query = stripUndefined27({ ...params });
7597
- const data = await this.http.get("/webhooks", query);
7676
+ const query2 = stripUndefined27({ ...params });
7677
+ const data = await this.http.get("/webhooks", query2);
7598
7678
  return listItems16(data);
7599
7679
  }
7600
7680
  async get(webhookId) {
7601
7681
  const data = await this.http.get(`/webhooks/${webhookId}`);
7602
- return unwrap46(data);
7682
+ return unwrap47(data);
7603
7683
  }
7604
7684
  async create(params) {
7605
7685
  const { idempotencyKey: ikey, ...rest } = params;
7606
- const body2 = stripUndefined27(rest);
7686
+ const body3 = stripUndefined27(rest);
7607
7687
  const data = await this.http.request("/webhooks", {
7608
7688
  method: "POST",
7609
- body: body2,
7689
+ body: body3,
7610
7690
  headers: { "Idempotency-Key": idempotencyKey10(ikey) }
7611
7691
  });
7612
- return unwrap46(data);
7692
+ return unwrap47(data);
7613
7693
  }
7614
7694
  async update(webhookId, params) {
7615
- const body2 = stripUndefined27(params);
7616
- const data = await this.http.patch(`/webhooks/${webhookId}`, body2);
7617
- return unwrap46(data);
7695
+ const body3 = stripUndefined27(params);
7696
+ const data = await this.http.patch(`/webhooks/${webhookId}`, body3);
7697
+ return unwrap47(data);
7618
7698
  }
7619
7699
  async delete(webhookId) {
7620
7700
  await this.http.delete(`/webhooks/${webhookId}`);
@@ -7627,7 +7707,7 @@ var Webhooks = class {
7627
7707
  headers: { "Idempotency-Key": idempotencyKey10(opts.idempotencyKey) }
7628
7708
  }
7629
7709
  );
7630
- return unwrap46(data);
7710
+ return unwrap47(data);
7631
7711
  }
7632
7712
  async deliveries(webhookId) {
7633
7713
  const data = await this.http.get(
@@ -7838,6 +7918,8 @@ var Miosa = class {
7838
7918
  agentRuns;
7839
7919
  /** Agent runtime profiles — tenant/workspace defaults for sandbox/computer agents. */
7840
7920
  agentRuntimeProfiles;
7921
+ /** Inherited runtime env — tenant/workspace/project defaults for agent runtimes. */
7922
+ runtimeEnv;
7841
7923
  /** Computer management — create, list, get, delete. */
7842
7924
  computers;
7843
7925
  /** Sandboxes — native code-execution environments under `/sandboxes`. */
@@ -7942,6 +8024,7 @@ var Miosa = class {
7942
8024
  this.mcp = new Mcp(this.http);
7943
8025
  this.agentRuns = new AgentRuns(this.http);
7944
8026
  this.agentRuntimeProfiles = new AgentRuntimeProfiles(this.http);
8027
+ this.runtimeEnv = new RuntimeEnv(this.http);
7945
8028
  this.computers = new Computers(this.http);
7946
8029
  this.sandboxes = new Sandboxes(this.http);
7947
8030
  this.deployments = new Deployments(this.http);
@@ -8063,8 +8146,8 @@ var AppAuth = class {
8063
8146
  }
8064
8147
  });
8065
8148
  if (!resp.ok) {
8066
- const body2 = await resp.text();
8067
- throw new Error(`AppAuth me failed (${resp.status}): ${body2}`);
8149
+ const body3 = await resp.text();
8150
+ throw new Error(`AppAuth me failed (${resp.status}): ${body3}`);
8068
8151
  }
8069
8152
  return unwrapSession(await resp.json());
8070
8153
  }
@@ -8116,12 +8199,12 @@ var AppAuth = class {
8116
8199
  return payload;
8117
8200
  }
8118
8201
  // ── Private ──────────────────────────────────────────────────────────────────
8119
- async _post(action, body2) {
8202
+ async _post(action, body3) {
8120
8203
  const url = `${this.baseUrl}/app-auth/${this.resourceType}/${this.resourceId}/${action}`;
8121
8204
  const resp = await fetch(url, {
8122
8205
  method: "POST",
8123
8206
  headers: { "Content-Type": "application/json" },
8124
- body: JSON.stringify(body2)
8207
+ body: JSON.stringify(body3)
8125
8208
  });
8126
8209
  if (!resp.ok) {
8127
8210
  const text = await resp.text();
@@ -8131,6 +8214,6 @@ var AppAuth = class {
8131
8214
  }
8132
8215
  };
8133
8216
 
8134
- export { Admin, AgentRuns, AgentRuntimeProfiles, Analytics, ApiKeys, AppAuth, AuditLog, AuthError, Benchmarks, BuilderSessions, Channels, Checkpoints, CommandCenter, Community, Completions, Computer, ComputerAudit, ComputerAutoStop, ComputerEnv, ComputerInbox, ComputerLogs, ComputerNetwork, ComputerOsa, ComputerPorts, ComputerSecrets, ComputerTerminal, ComputerVolumes, Computers, Credits, CronJobs, Dashboard, Databases, DeploymentDomains, DeploymentReleases, DeploymentRuntimeInstances, DeploymentVersions, Deployments, Desktop, DockerDeploy, EgressAudit, EgressNetwork, EgressSecrets, Email, EmailCampaigns, EmailInbox, EmailTemplates, Embeddings, Exec, ExternalKeys, Files, FlatCustomDomains, Functions, HealthChecks, InsufficientCreditsError, Integrations, Mcp, Miosa, MiosaError, Models, NetworkError, NetworkPolicy, NotFoundError, OAuthFlow, OpenComputers, OrgInvites, ProjectAuth, ProjectIntegrations, ProviderDefaults, RateLimitError, Regions, SANDBOX_TEMPLATE, Sandbox, SandboxArtifacts, SandboxAudit, SandboxCommands, SandboxEnv, SandboxEvents, SandboxFiles, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, SandboxTags, SandboxTemplates, SandboxTerminal, Sandboxes, ScopedFs, Settings, SnapshotsStandalone, Storage, Tenant, TimeoutError, Usage, ValidationError, Volumes, Webhooks, WorkspaceInvites, WorkspaceMembers, verifySignature };
8217
+ export { Admin, AgentRuns, AgentRuntimeProfiles, Analytics, ApiKeys, AppAuth, AuditLog, AuthError, Benchmarks, BuilderSessions, Channels, Checkpoints, CommandCenter, Community, Completions, Computer, ComputerAudit, ComputerAutoStop, ComputerEnv, ComputerInbox, ComputerLogs, ComputerNetwork, ComputerOsa, ComputerPorts, ComputerSecrets, ComputerTerminal, ComputerVolumes, Computers, Credits, CronJobs, Dashboard, Databases, DeploymentDomains, DeploymentReleases, DeploymentRuntimeInstances, DeploymentVersions, Deployments, Desktop, DockerDeploy, EgressAudit, EgressNetwork, EgressSecrets, Email, EmailCampaigns, EmailInbox, EmailTemplates, Embeddings, Exec, ExternalKeys, Files, FlatCustomDomains, Functions, HealthChecks, InsufficientCreditsError, Integrations, Mcp, Miosa, MiosaError, Models, NetworkError, NetworkPolicy, NotFoundError, OAuthFlow, OpenComputers, OrgInvites, ProjectAuth, ProjectIntegrations, ProviderDefaults, RateLimitError, Regions, RuntimeEnv, SANDBOX_TEMPLATE, Sandbox, SandboxArtifacts, SandboxAudit, SandboxCommands, SandboxEnv, SandboxEvents, SandboxFiles, SandboxNetwork, SandboxPreview, SandboxPreviews, SandboxSecrets, SandboxTags, SandboxTemplates, SandboxTerminal, Sandboxes, ScopedFs, Settings, SnapshotsStandalone, Storage, Tenant, TimeoutError, Usage, ValidationError, Volumes, Webhooks, WorkspaceInvites, WorkspaceMembers, verifySignature };
8135
8218
  //# sourceMappingURL=index.js.map
8136
8219
  //# sourceMappingURL=index.js.map