@miosa/sdk 1.2.10 → 1.2.12

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, 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;
25
+ static fromResponse(status, body4, requestId) {
26
+ const message = body4.error?.message ?? body4.message ?? `HTTP ${status}`;
27
+ const code = body4.error?.code ?? body4.code ?? "UNKNOWN_ERROR";
28
+ const details = body4.error?.details;
29
29
  if (status === 401 || status === 403) {
30
30
  return new AuthError(message, status, code, details, requestId);
31
31
  }
@@ -167,7 +167,7 @@ var HttpClient = class {
167
167
  async request(path, options = {}) {
168
168
  const {
169
169
  method = "GET",
170
- body: body3,
170
+ body: body4,
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 (body3 !== void 0) {
179
+ } else if (body4 !== void 0) {
180
180
  headers = { ...headers, "Content-Type": "application/json" };
181
- fetchBody = JSON.stringify(body3);
181
+ fetchBody = JSON.stringify(body4);
182
182
  }
183
183
  let lastError;
184
184
  for (let attempt = 0; attempt <= this.maxRetries; attempt++) {
@@ -260,17 +260,17 @@ var HttpClient = class {
260
260
  }
261
261
  return this.request(fullPath, { method: "GET" });
262
262
  }
263
- async post(path, body3) {
264
- return this.request(path, { method: "POST", body: body3 });
263
+ async post(path, body4) {
264
+ return this.request(path, { method: "POST", body: body4 });
265
265
  }
266
- async patch(path, body3) {
267
- return this.request(path, { method: "PATCH", body: body3 });
266
+ async patch(path, body4) {
267
+ return this.request(path, { method: "PATCH", body: body4 });
268
268
  }
269
- async put(path, body3) {
270
- return this.request(path, { method: "PUT", body: body3 });
269
+ async put(path, body4) {
270
+ return this.request(path, { method: "PUT", body: body4 });
271
271
  }
272
- async delete(path, body3) {
273
- return this.request(path, { method: "DELETE", body: body3 });
272
+ async delete(path, body4) {
273
+ return this.request(path, { method: "DELETE", body: body4 });
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 body3 = null;
291
+ let body4 = null;
292
292
  if (options.body !== void 0) {
293
293
  headers = { ...headers, "Content-Type": "application/json" };
294
- body3 = JSON.stringify(options.body);
294
+ body4 = 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: body3,
302
+ body: body4,
303
303
  signal: controller.signal
304
304
  });
305
305
  } catch (err) {
@@ -368,7 +368,7 @@ 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, body3, query2) {
371
+ async request(method, path, body4, query2) {
372
372
  const fullPath = query2 ? (() => {
373
373
  const qs = new URLSearchParams();
374
374
  for (const [k, v] of Object.entries(query2)) {
@@ -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, body3);
384
+ return this.http.post(fullPath, body4);
385
385
  case "PUT":
386
- return this.http.put(fullPath, body3);
386
+ return this.http.put(fullPath, body4);
387
387
  case "PATCH":
388
- return this.http.patch(fullPath, body3);
388
+ return this.http.patch(fullPath, body4);
389
389
  case "DELETE":
390
- return this.http.delete(fullPath, body3);
390
+ return this.http.delete(fullPath, body4);
391
391
  }
392
392
  }
393
393
  // ── Overview ────────────────────────────────────────────────
@@ -601,14 +601,109 @@ var Admin = class {
601
601
  }
602
602
  };
603
603
 
604
- // src/resources/agent-runtime-profiles.ts
604
+ // src/resources/agent-run-groups.ts
605
605
  function unwrap(payload) {
606
- if (payload !== null && typeof payload === "object" && "data" in payload && payload.data !== void 0) {
606
+ if (payload && typeof payload === "object" && "data" in payload) {
607
607
  return payload.data;
608
608
  }
609
609
  return payload;
610
610
  }
611
+ function stripUndefined(input) {
612
+ return Object.fromEntries(
613
+ Object.entries(input).filter(([, value]) => value !== void 0)
614
+ );
615
+ }
611
616
  function body(params) {
617
+ return stripUndefined({
618
+ name: params.name,
619
+ description: params.description,
620
+ workspace_id: params.workspaceId,
621
+ project_id: params.projectId,
622
+ concurrency_limit: params.concurrencyLimit,
623
+ expected_runs: params.expectedRuns,
624
+ metadata: params.metadata
625
+ });
626
+ }
627
+ function runBody(entry) {
628
+ return stripUndefined({
629
+ prompt: entry.prompt,
630
+ target_kind: entry.targetKind,
631
+ target_id: entry.targetId,
632
+ sandbox_id: entry.sandboxId,
633
+ computer_id: entry.computerId,
634
+ provider: entry.provider,
635
+ model: entry.model,
636
+ command: entry.command,
637
+ runtime_command: entry.runtimeCommand,
638
+ cwd: entry.cwd,
639
+ timeout: entry.timeout,
640
+ env: entry.env,
641
+ agent_runtime_profile_id: entry.agentRuntimeProfileId,
642
+ agent_profile_id: entry.agentProfileId,
643
+ parent_agent_run_id: entry.parentAgentRunId,
644
+ orchestration_role: entry.orchestrationRole,
645
+ skip_agent_runtime_profile: entry.skipAgentRuntimeProfile,
646
+ metadata: entry.metadata
647
+ });
648
+ }
649
+ var AgentRunGroups = class {
650
+ constructor(http) {
651
+ this.http = http;
652
+ }
653
+ http;
654
+ async list(params = {}) {
655
+ const response = await this.http.get(
656
+ "/agent-run-groups",
657
+ stripUndefined({
658
+ workspace_id: params.workspaceId,
659
+ project_id: params.projectId,
660
+ status: params.status,
661
+ limit: params.limit
662
+ })
663
+ );
664
+ const data = unwrap(
665
+ response
666
+ );
667
+ if (Array.isArray(data)) return data;
668
+ return data.groups ?? data.items ?? [];
669
+ }
670
+ async create(params) {
671
+ return unwrap(
672
+ await this.http.post("/agent-run-groups", body(params))
673
+ );
674
+ }
675
+ async get(id, options = {}) {
676
+ const query2 = options.includeRuns ? "?include=runs" : "";
677
+ return unwrap(
678
+ await this.http.get(`/agent-run-groups/${encodeURIComponent(id)}${query2}`)
679
+ );
680
+ }
681
+ async dispatch(id, runs, options = {}) {
682
+ return unwrap(
683
+ await this.http.post(
684
+ `/agent-run-groups/${encodeURIComponent(id)}/dispatch`,
685
+ stripUndefined({ runs: runs.map(runBody), async: options.async })
686
+ )
687
+ );
688
+ }
689
+ async cancel(id) {
690
+ return unwrap(
691
+ await this.http.post(
692
+ `/agent-run-groups/${encodeURIComponent(id)}/cancel`,
693
+ {}
694
+ )
695
+ );
696
+ }
697
+ };
698
+
699
+ // src/resources/agent-runtime-profiles.ts
700
+ function unwrap2(payload) {
701
+ if (payload !== null && typeof payload === "object" && "data" in payload && payload.data !== void 0) {
702
+ return payload.data;
703
+ }
704
+ return payload;
705
+ }
706
+ function body2(params) {
612
707
  return Object.fromEntries(
613
708
  Object.entries({
614
709
  workspace_id: params.workspaceId ?? params.workspace_id,
@@ -659,11 +754,11 @@ var AgentRuntimeProfiles = class {
659
754
  project_id: params.projectId ?? params.project_id
660
755
  }
661
756
  );
662
- return unwrap(response).map(normalize);
757
+ return unwrap2(response).map(normalize);
663
758
  }
664
759
  async get(id) {
665
760
  return normalize(
666
- unwrap(
761
+ unwrap2(
667
762
  await this.http.get(
668
763
  `/agent-runtime-profiles/${encodeURIComponent(id)}`
669
764
  )
@@ -672,20 +767,20 @@ var AgentRuntimeProfiles = class {
672
767
  }
673
768
  async create(params) {
674
769
  return normalize(
675
- unwrap(
770
+ unwrap2(
676
771
  await this.http.post(
677
772
  "/agent-runtime-profiles",
678
- body(params)
773
+ body2(params)
679
774
  )
680
775
  )
681
776
  );
682
777
  }
683
778
  async update(id, params) {
684
779
  return normalize(
685
- unwrap(
780
+ unwrap2(
686
781
  await this.http.put(
687
782
  `/agent-runtime-profiles/${encodeURIComponent(id)}`,
688
- body(params)
783
+ body2(params)
689
784
  )
690
785
  )
691
786
  );
@@ -698,13 +793,13 @@ var AgentRuntimeProfiles = class {
698
793
  };
699
794
 
700
795
  // src/resources/agent-runs.ts
701
- function unwrap2(payload) {
796
+ function unwrap3(payload) {
702
797
  if (payload && typeof payload === "object" && "data" in payload) {
703
798
  return payload.data;
704
799
  }
705
800
  return payload;
706
801
  }
707
- function stripUndefined(input) {
802
+ function stripUndefined2(input) {
708
803
  return Object.fromEntries(
709
804
  Object.entries(input).filter(([, value]) => value !== void 0)
710
805
  );
@@ -717,27 +812,45 @@ var AgentRuns = class {
717
812
  async list(params = {}) {
718
813
  const response = await this.http.get(
719
814
  "/agent-runs",
720
- stripUndefined({
815
+ stripUndefined2({
721
816
  target_kind: params.targetKind,
722
817
  target_id: params.targetId,
723
818
  sandbox_id: params.sandboxId,
724
819
  computer_id: params.computerId,
820
+ agent_run_group_id: params.agentRunGroupId,
725
821
  status: params.status
726
822
  })
727
823
  );
728
- const data = unwrap2(
824
+ const data = unwrap3(
729
825
  response
730
826
  );
731
827
  if (Array.isArray(data)) return data;
732
828
  return data.runs ?? data.items ?? [];
733
829
  }
734
830
  async get(id) {
735
- return unwrap2(
831
+ return unwrap3(
736
832
  await this.http.get(`/agent-runs/${encodeURIComponent(id)}`)
737
833
  );
738
834
  }
835
+ async artifacts(id) {
836
+ const data = unwrap3(
837
+ await this.http.get(
838
+ `/agent-runs/${encodeURIComponent(id)}/artifacts`
839
+ )
840
+ );
841
+ if (Array.isArray(data)) return data;
842
+ return data.artifacts ?? data.items ?? [];
843
+ }
844
+ async downloadArtifact(id, artifactId, options = {}) {
845
+ const query2 = options.inline ? "?disposition=inline" : "";
846
+ return this.http.getBinary(
847
+ `/agent-runs/${encodeURIComponent(id)}/artifacts/${encodeURIComponent(
848
+ artifactId
849
+ )}/download${query2}`
850
+ );
851
+ }
739
852
  async run(params) {
740
- const body3 = stripUndefined({
853
+ const body4 = stripUndefined2({
741
854
  prompt: params.prompt,
742
855
  target_kind: params.targetKind,
743
856
  target_id: params.targetId,
@@ -752,13 +865,16 @@ var AgentRuns = class {
752
865
  env: params.env,
753
866
  agent_runtime_profile_id: params.agentRuntimeProfileId,
754
867
  agent_profile_id: params.agentProfileId,
868
+ agent_run_group_id: params.agentRunGroupId,
869
+ parent_agent_run_id: params.parentAgentRunId,
870
+ orchestration_role: params.orchestrationRole,
755
871
  skip_agent_runtime_profile: params.skipAgentRuntimeProfile,
756
872
  metadata: params.metadata
757
873
  });
758
- return unwrap2(await this.http.post("/agent-runs", body3));
874
+ return unwrap3(await this.http.post("/agent-runs", body4));
759
875
  }
760
876
  async cancel(id) {
761
- return unwrap2(
877
+ return unwrap3(
762
878
  await this.http.post(
763
879
  `/agent-runs/${encodeURIComponent(id)}/cancel`,
764
880
  {}
@@ -768,7 +884,7 @@ var AgentRuns = class {
768
884
  };
769
885
 
770
886
  // src/resources/analytics.ts
771
- function unwrap3(payload) {
887
+ function unwrap4(payload) {
772
888
  if (payload && typeof payload === "object") {
773
889
  const p = payload;
774
890
  for (const k of ["data", "analytics", "series", "items"]) {
@@ -777,7 +893,7 @@ function unwrap3(payload) {
777
893
  }
778
894
  return payload;
779
895
  }
780
- function stripUndefined2(input) {
896
+ function stripUndefined3(input) {
781
897
  return Object.fromEntries(
782
898
  Object.entries(input).filter(([, v]) => v !== void 0)
783
899
  );
@@ -789,18 +905,18 @@ var Analytics = class {
789
905
  http;
790
906
  /** Get the platform analytics overview. */
791
907
  async overview(filters = {}) {
792
- const query2 = stripUndefined2(filters);
908
+ const query2 = stripUndefined3(filters);
793
909
  const data = await this.http.get("/analytics/overview", query2);
794
- return unwrap3(data);
910
+ return unwrap4(data);
795
911
  }
796
912
  /** Get a timeseries for a metric over a period. */
797
913
  async timeseries(params = {}) {
798
- const query2 = stripUndefined2(params);
914
+ const query2 = stripUndefined3(params);
799
915
  const data = await this.http.get("/analytics/timeseries", query2);
800
- return unwrap3(data);
916
+ return unwrap4(data);
801
917
  }
802
918
  };
803
- function unwrap4(payload) {
919
+ function unwrap5(payload) {
804
920
  if (payload && typeof payload === "object" && "data" in payload) {
805
921
  return payload.data;
806
922
  }
@@ -816,7 +932,7 @@ function listItems(payload, candidateKeys = ["data", "keys", "api_keys", "items"
816
932
  }
817
933
  return [];
818
934
  }
819
- function stripUndefined3(input) {
935
+ function stripUndefined4(input) {
820
936
  return Object.fromEntries(
821
937
  Object.entries(input).filter(([, v]) => v !== void 0)
822
938
  );
@@ -830,32 +946,32 @@ var ApiKeys = class {
830
946
  }
831
947
  http;
832
948
  async list(params = {}) {
833
- const query2 = stripUndefined3({ ...params });
949
+ const query2 = stripUndefined4({ ...params });
834
950
  const data = await this.http.get("/api-keys", query2);
835
951
  return listItems(data);
836
952
  }
837
953
  async create(params) {
838
954
  const { idempotencyKey: ikey, expiresAt, ...rest } = params;
839
- const body3 = stripUndefined3({
955
+ const body4 = stripUndefined4({
840
956
  ...rest,
841
957
  expires_at: expiresAt ?? rest.expires_at
842
958
  });
843
959
  const data = await this.http.request("/api-keys", {
844
960
  method: "POST",
845
- body: body3,
961
+ body: body4,
846
962
  headers: { "Idempotency-Key": idempotencyKey(ikey) }
847
963
  });
848
- return unwrap4(data);
964
+ return unwrap5(data);
849
965
  }
850
966
  /** POST /api/v1/api-keys/scoped — L2 delegation token bound to one external user. */
851
967
  async createScoped(params) {
852
- const body3 = stripUndefined3({
968
+ const body4 = stripUndefined4({
853
969
  external_user_id: params.externalUserId,
854
970
  scopes: params.scopes,
855
971
  expires_at: params.expiresAt
856
972
  });
857
- return unwrap4(
858
- await this.http.post("/api-keys/scoped", body3)
973
+ return unwrap5(
974
+ await this.http.post("/api-keys/scoped", body4)
859
975
  );
860
976
  }
861
977
  async delete(keyId) {
@@ -864,7 +980,7 @@ var ApiKeys = class {
864
980
  };
865
981
 
866
982
  // src/resources/audit-log.ts
867
- function unwrap5(payload) {
983
+ function unwrap6(payload) {
868
984
  if (payload && typeof payload === "object") {
869
985
  const p = payload;
870
986
  for (const k of ["data", "audit_log", "events", "items"]) {
@@ -873,7 +989,7 @@ function unwrap5(payload) {
873
989
  }
874
990
  return payload;
875
991
  }
876
- function stripUndefined4(input) {
992
+ function stripUndefined5(input) {
877
993
  return Object.fromEntries(
878
994
  Object.entries(input).filter(([, v]) => v !== void 0)
879
995
  );
@@ -885,16 +1001,16 @@ var AuditLog = class {
885
1001
  http;
886
1002
  /** List audit-log events with optional filters. */
887
1003
  async list(params = {}) {
888
- const query2 = stripUndefined4(params);
1004
+ const query2 = stripUndefined5(params);
889
1005
  const data = await this.http.get("/audit-log", query2);
890
- const result = unwrap5(data);
1006
+ const result = unwrap6(data);
891
1007
  if (Array.isArray(result)) return result;
892
1008
  return [];
893
1009
  }
894
1010
  };
895
1011
 
896
1012
  // src/resources/benchmarks.ts
897
- function unwrap6(data) {
1013
+ function unwrap7(data) {
898
1014
  if (data && typeof data === "object") {
899
1015
  const d = data;
900
1016
  for (const k of ["data", "benchmarks", "samples", "items"]) {
@@ -926,19 +1042,19 @@ var Benchmarks = class {
926
1042
  return unwrapList(data);
927
1043
  }
928
1044
  async get(benchmarkId) {
929
- return unwrap6(
1045
+ return unwrap7(
930
1046
  await this.http.get(`/admin/benchmarks/${benchmarkId}`)
931
1047
  );
932
1048
  }
933
1049
  /** Start a new benchmark run — pass kind and run-specific options. */
934
1050
  async create(params) {
935
- const body3 = Object.fromEntries(
1051
+ const body4 = Object.fromEntries(
936
1052
  Object.entries(params).filter(([, v]) => v !== void 0)
937
1053
  );
938
- return unwrap6(await this.http.post("/admin/benchmarks", body3));
1054
+ return unwrap7(await this.http.post("/admin/benchmarks", body4));
939
1055
  }
940
1056
  async cancel(benchmarkId) {
941
- return unwrap6(
1057
+ return unwrap7(
942
1058
  await this.http.post(`/admin/benchmarks/${benchmarkId}/cancel`)
943
1059
  );
944
1060
  }
@@ -955,17 +1071,17 @@ var Benchmarks = class {
955
1071
  }
956
1072
  /** Compare two benchmark runs. */
957
1073
  async compare(params) {
958
- const body3 = Object.fromEntries(
1074
+ const body4 = Object.fromEntries(
959
1075
  Object.entries(params).filter(([, v]) => v !== void 0)
960
1076
  );
961
- return unwrap6(
962
- await this.http.post("/admin/benchmarks/compare", body3)
1077
+ return unwrap7(
1078
+ await this.http.post("/admin/benchmarks/compare", body4)
963
1079
  );
964
1080
  }
965
1081
  };
966
1082
 
967
1083
  // src/resources/builder-sessions.ts
968
- function unwrap7(data) {
1084
+ function unwrap8(data) {
969
1085
  if (data && typeof data === "object") {
970
1086
  const d = data;
971
1087
  for (const k of ["data", "sessions", "items"]) {
@@ -1002,7 +1118,7 @@ var BuilderSessions = class {
1002
1118
  return all.find((s) => s.id === sessionId) ?? {};
1003
1119
  }
1004
1120
  async updateTitle(sessionId, title) {
1005
- return unwrap7(
1121
+ return unwrap8(
1006
1122
  await this.http.patch(`/builder/sessions/${sessionId}/title`, {
1007
1123
  title
1008
1124
  })
@@ -1014,7 +1130,7 @@ var BuilderSessions = class {
1014
1130
  };
1015
1131
 
1016
1132
  // src/resources/channels.ts
1017
- function unwrap8(payload) {
1133
+ function unwrap9(payload) {
1018
1134
  if (payload && typeof payload === "object") {
1019
1135
  const p = payload;
1020
1136
  for (const k of ["data", "channels", "notifications", "items"]) {
@@ -1023,7 +1139,7 @@ function unwrap8(payload) {
1023
1139
  }
1024
1140
  return payload;
1025
1141
  }
1026
- function stripUndefined5(input) {
1142
+ function stripUndefined6(input) {
1027
1143
  return Object.fromEntries(
1028
1144
  Object.entries(input).filter(([, v]) => v !== void 0)
1029
1145
  );
@@ -1040,28 +1156,28 @@ var Channels = class {
1040
1156
  http;
1041
1157
  /** List all channels for the tenant. */
1042
1158
  async list(params = {}) {
1043
- const query2 = stripUndefined5(params);
1159
+ const query2 = stripUndefined6(params);
1044
1160
  const data = await this.http.get("/channels", query2);
1045
- const result = unwrap8(data);
1161
+ const result = unwrap9(data);
1046
1162
  if (Array.isArray(result)) return result;
1047
1163
  return [];
1048
1164
  }
1049
1165
  /** Get a single channel. */
1050
1166
  async get(channelId) {
1051
1167
  const data = await this.http.get(`/channels/${channelId}`);
1052
- return unwrap8(data);
1168
+ return unwrap9(data);
1053
1169
  }
1054
1170
  /** Create a new channel. */
1055
1171
  async create(params) {
1056
- const body3 = stripUndefObj(params);
1057
- const data = await this.http.post("/channels", body3);
1058
- return unwrap8(data);
1172
+ const body4 = stripUndefObj(params);
1173
+ const data = await this.http.post("/channels", body4);
1174
+ return unwrap9(data);
1059
1175
  }
1060
1176
  /** Update a channel. */
1061
1177
  async update(channelId, params) {
1062
- const body3 = stripUndefObj(params);
1063
- const data = await this.http.patch(`/channels/${channelId}`, body3);
1064
- return unwrap8(data);
1178
+ const body4 = stripUndefObj(params);
1179
+ const data = await this.http.patch(`/channels/${channelId}`, body4);
1180
+ return unwrap9(data);
1065
1181
  }
1066
1182
  /** Delete a channel. */
1067
1183
  async delete(channelId) {
@@ -1071,30 +1187,30 @@ var Channels = class {
1071
1187
  /** Get notification preferences across all channels. */
1072
1188
  async listNotifications() {
1073
1189
  const data = await this.http.get("/channels/notifications");
1074
- return unwrap8(data);
1190
+ return unwrap9(data);
1075
1191
  }
1076
1192
  /** Update notification preferences. */
1077
1193
  async updateNotifications(params) {
1078
- const body3 = stripUndefObj(params);
1079
- const data = await this.http.put("/channels/notifications", body3);
1080
- return unwrap8(data);
1194
+ const body4 = stripUndefObj(params);
1195
+ const data = await this.http.put("/channels/notifications", body4);
1196
+ return unwrap9(data);
1081
1197
  }
1082
1198
  /** Enable a channel. */
1083
1199
  async enable(channelId) {
1084
1200
  const data = await this.http.post(`/channels/${channelId}/enable`);
1085
- return unwrap8(data);
1201
+ return unwrap9(data);
1086
1202
  }
1087
1203
  /** Disable a channel. */
1088
1204
  async disable(channelId) {
1089
1205
  const data = await this.http.post(
1090
1206
  `/channels/${channelId}/disable`
1091
1207
  );
1092
- return unwrap8(data);
1208
+ return unwrap9(data);
1093
1209
  }
1094
1210
  };
1095
1211
 
1096
1212
  // src/resources/command-center.ts
1097
- function unwrap9(data) {
1213
+ function unwrap10(data) {
1098
1214
  if (data && typeof data === "object") {
1099
1215
  const d = data;
1100
1216
  for (const k of [
@@ -1128,7 +1244,7 @@ var CommandCenter = class {
1128
1244
  http;
1129
1245
  /** Top-level snapshot (GET /command-center). */
1130
1246
  async overview() {
1131
- return unwrap9(await this.http.get("/command-center"));
1247
+ return unwrap10(await this.http.get("/command-center"));
1132
1248
  }
1133
1249
  async agents() {
1134
1250
  return unwrapList3(await this.http.get("/command-center/agents"));
@@ -1139,13 +1255,13 @@ var CommandCenter = class {
1139
1255
  );
1140
1256
  }
1141
1257
  async metrics() {
1142
- return unwrap9(await this.http.get("/command-center/metrics"));
1258
+ return unwrap10(await this.http.get("/command-center/metrics"));
1143
1259
  }
1144
1260
  async presets() {
1145
1261
  return unwrapList3(await this.http.get("/command-center/presets"));
1146
1262
  }
1147
1263
  async tiers() {
1148
- return unwrap9(await this.http.get("/command-center/tiers"));
1264
+ return unwrap10(await this.http.get("/command-center/tiers"));
1149
1265
  }
1150
1266
  /** Stream live command-center events via SSE. */
1151
1267
  events() {
@@ -1154,7 +1270,7 @@ var CommandCenter = class {
1154
1270
  };
1155
1271
 
1156
1272
  // src/resources/community.ts
1157
- function unwrap10(data) {
1273
+ function unwrap11(data) {
1158
1274
  if (data && typeof data === "object") {
1159
1275
  const d = data;
1160
1276
  for (const k of ["data", "templates", "agents", "items"]) {
@@ -1186,7 +1302,7 @@ var Community = class {
1186
1302
  return unwrapList4(await this.http.get("/community/agents", query2));
1187
1303
  }
1188
1304
  async getAgent(agentId) {
1189
- return unwrap10(await this.http.get(`/community/agents/${agentId}`));
1305
+ return unwrap11(await this.http.get(`/community/agents/${agentId}`));
1190
1306
  }
1191
1307
  // ── Templates ─────────────────────────────────────────────────────────
1192
1308
  async listTemplates(filters = {}) {
@@ -1198,41 +1314,41 @@ var Community = class {
1198
1314
  );
1199
1315
  }
1200
1316
  async getTemplate(templateId) {
1201
- return unwrap10(
1317
+ return unwrap11(
1202
1318
  await this.http.get(`/community/templates/${templateId}`)
1203
1319
  );
1204
1320
  }
1205
1321
  /** Install a community template into the caller's tenant. */
1206
1322
  async installTemplate(templateId, opts = {}) {
1207
- const body3 = Object.fromEntries(
1323
+ const body4 = Object.fromEntries(
1208
1324
  Object.entries(opts).filter(([, v]) => v !== void 0)
1209
1325
  );
1210
- return unwrap10(
1326
+ return unwrap11(
1211
1327
  await this.http.post(
1212
1328
  `/community/templates/${templateId}/install`,
1213
- body3
1329
+ body4
1214
1330
  )
1215
1331
  );
1216
1332
  }
1217
1333
  /** Rate a community template (1–5). */
1218
1334
  async rateTemplate(templateId, rating, opts = {}) {
1219
- const body3 = {
1335
+ const body4 = {
1220
1336
  rating,
1221
1337
  ...Object.fromEntries(
1222
1338
  Object.entries(opts).filter(([, v]) => v !== void 0)
1223
1339
  )
1224
1340
  };
1225
- return unwrap10(
1341
+ return unwrap11(
1226
1342
  await this.http.post(
1227
1343
  `/community/templates/${templateId}/rate`,
1228
- body3
1344
+ body4
1229
1345
  )
1230
1346
  );
1231
1347
  }
1232
1348
  };
1233
1349
 
1234
1350
  // src/resources/completions.ts
1235
- function unwrap11(data) {
1351
+ function unwrap12(data) {
1236
1352
  if (data && typeof data === "object") {
1237
1353
  const d = data;
1238
1354
  if (Array.isArray(d.choices)) return d;
@@ -1251,24 +1367,24 @@ var Completions = class {
1251
1367
  }
1252
1368
  http;
1253
1369
  create(params) {
1254
- const body3 = buildBody(params);
1370
+ const body4 = buildBody(params);
1255
1371
  if (params.stream === true) {
1256
1372
  return this.http.stream(
1257
1373
  "/intelligence/completions",
1258
- { method: "POST", body: body3 }
1374
+ { method: "POST", body: body4 }
1259
1375
  );
1260
1376
  }
1261
- return this.http.post("/intelligence/completions", body3).then(unwrap11);
1377
+ return this.http.post("/intelligence/completions", body4).then(unwrap12);
1262
1378
  }
1263
1379
  chat(params) {
1264
- const body3 = buildBody(params);
1380
+ const body4 = buildBody(params);
1265
1381
  if (params.stream === true) {
1266
1382
  return this.http.stream(
1267
1383
  "/intelligence/chat/completions",
1268
- { method: "POST", body: body3 }
1384
+ { method: "POST", body: body4 }
1269
1385
  );
1270
1386
  }
1271
- return this.http.post("/intelligence/chat/completions", body3).then(unwrap11);
1387
+ return this.http.post("/intelligence/chat/completions", body4).then(unwrap12);
1272
1388
  }
1273
1389
  };
1274
1390
 
@@ -1391,7 +1507,7 @@ var Checkpoints = class {
1391
1507
  };
1392
1508
 
1393
1509
  // src/resources/computer-auto-stop.ts
1394
- function unwrap12(data) {
1510
+ function unwrap13(data) {
1395
1511
  if (data && typeof data === "object") {
1396
1512
  const d = data;
1397
1513
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1409,13 +1525,13 @@ var ComputerAutoStop = class {
1409
1525
  computerId;
1410
1526
  /** Return the current auto-stop configuration. */
1411
1527
  async get() {
1412
- return unwrap12(
1528
+ return unwrap13(
1413
1529
  await this.http.get(`/computers/${this.computerId}/auto-stop`)
1414
1530
  );
1415
1531
  }
1416
1532
  /** Set the idle timeout in seconds (0 disables auto-stop). */
1417
1533
  async update(seconds) {
1418
- return unwrap12(
1534
+ return unwrap13(
1419
1535
  await this.http.patch(
1420
1536
  `/computers/${this.computerId}/auto-stop`,
1421
1537
  { seconds }
@@ -1425,7 +1541,7 @@ var ComputerAutoStop = class {
1425
1541
  };
1426
1542
 
1427
1543
  // src/resources/computer-env.ts
1428
- function unwrap13(data) {
1544
+ function unwrap14(data) {
1429
1545
  if (data && typeof data === "object") {
1430
1546
  const d = data;
1431
1547
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1460,11 +1576,11 @@ var ComputerEnv = class {
1460
1576
  }
1461
1577
  /** Create a new env var. Use update() to change an existing one. */
1462
1578
  async set(name, value) {
1463
- return unwrap13(await this.http.post(this.base(), { name, value }));
1579
+ return unwrap14(await this.http.post(this.base(), { name, value }));
1464
1580
  }
1465
1581
  /** Patch the value of an existing env var by name. */
1466
1582
  async update(name, value) {
1467
- return unwrap13(
1583
+ return unwrap14(
1468
1584
  await this.http.patch(`${this.base()}/${name}`, { value })
1469
1585
  );
1470
1586
  }
@@ -1481,7 +1597,7 @@ var ComputerEnv = class {
1481
1597
  };
1482
1598
 
1483
1599
  // src/resources/computer-logs.ts
1484
- function unwrap14(data) {
1600
+ function unwrap15(data) {
1485
1601
  if (data && typeof data === "object") {
1486
1602
  const d = data;
1487
1603
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1502,7 +1618,7 @@ var ComputerLogs = class {
1502
1618
  const query2 = Object.fromEntries(
1503
1619
  Object.entries(params).filter(([, v]) => v !== void 0)
1504
1620
  );
1505
- return unwrap14(
1621
+ return unwrap15(
1506
1622
  await this.http.get(`/computers/${this.computerId}/logs`, query2)
1507
1623
  );
1508
1624
  }
@@ -1515,7 +1631,7 @@ var ComputerLogs = class {
1515
1631
  };
1516
1632
 
1517
1633
  // src/resources/computer-osa.ts
1518
- function unwrap15(data) {
1634
+ function unwrap16(data) {
1519
1635
  if (data && typeof data === "object") {
1520
1636
  const d = data;
1521
1637
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1533,47 +1649,47 @@ var ComputerOsa = class {
1533
1649
  computerId;
1534
1650
  /** Submit a free-form task to the in-VM OSA agent. */
1535
1651
  async submitTask(task, params = {}) {
1536
- const body3 = {
1652
+ const body4 = {
1537
1653
  task,
1538
1654
  ...Object.fromEntries(
1539
1655
  Object.entries(params).filter(([, v]) => v !== void 0)
1540
1656
  )
1541
1657
  };
1542
- return unwrap15(
1658
+ return unwrap16(
1543
1659
  await this.http.post(
1544
1660
  `/computers/${this.computerId}/osa/task`,
1545
- body3
1661
+ body4
1546
1662
  )
1547
1663
  );
1548
1664
  }
1549
1665
  /** Cancel the currently-running OSA task, if any. */
1550
1666
  async cancelTask() {
1551
- return unwrap15(
1667
+ return unwrap16(
1552
1668
  await this.http.delete(`/computers/${this.computerId}/osa/task`)
1553
1669
  );
1554
1670
  }
1555
1671
  /** Return OSA's current task / configuration / health snapshot. */
1556
1672
  async status() {
1557
- return unwrap15(
1673
+ return unwrap16(
1558
1674
  await this.http.get(`/computers/${this.computerId}/osa/status`)
1559
1675
  );
1560
1676
  }
1561
1677
  /** Update OSA runtime configuration (model, tools, secrets, etc.). */
1562
1678
  async configure(config) {
1563
- const body3 = Object.fromEntries(
1679
+ const body4 = Object.fromEntries(
1564
1680
  Object.entries(config).filter(([, v]) => v !== void 0)
1565
1681
  );
1566
- return unwrap15(
1682
+ return unwrap16(
1567
1683
  await this.http.post(
1568
1684
  `/computers/${this.computerId}/osa/configure`,
1569
- body3
1685
+ body4
1570
1686
  )
1571
1687
  );
1572
1688
  }
1573
1689
  };
1574
1690
 
1575
1691
  // src/resources/computer-ports.ts
1576
- function unwrap16(data) {
1692
+ function unwrap17(data) {
1577
1693
  if (data && typeof data === "object") {
1578
1694
  const d = data;
1579
1695
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1612,21 +1728,21 @@ var ComputerPorts = class {
1612
1728
  }
1613
1729
  /** Expose port with the given visibility options. */
1614
1730
  async create(port, opts = {}) {
1615
- const body3 = {
1731
+ const body4 = {
1616
1732
  port,
1617
1733
  ...Object.fromEntries(
1618
1734
  Object.entries(opts).filter(([, v]) => v !== void 0)
1619
1735
  )
1620
1736
  };
1621
- return unwrap16(await this.http.post(this.base(), body3));
1737
+ return unwrap17(await this.http.post(this.base(), body4));
1622
1738
  }
1623
1739
  /** Patch visibility / auth options for port. */
1624
1740
  async update(port, opts) {
1625
- const body3 = Object.fromEntries(
1741
+ const body4 = Object.fromEntries(
1626
1742
  Object.entries(opts).filter(([, v]) => v !== void 0)
1627
1743
  );
1628
- return unwrap16(
1629
- await this.http.patch(`${this.base()}/${port}`, body3)
1744
+ return unwrap17(
1745
+ await this.http.patch(`${this.base()}/${port}`, body4)
1630
1746
  );
1631
1747
  }
1632
1748
  /** Stop exposing port. */
@@ -1645,14 +1761,14 @@ var ComputerTerminal = class {
1645
1761
  computerId;
1646
1762
  /** Open a new PTY session. Returns the server payload (session id, etc.). */
1647
1763
  async create(params = {}) {
1648
- const body3 = Object.fromEntries(
1764
+ const body4 = Object.fromEntries(
1649
1765
  Object.entries(params).filter(([, v]) => v !== void 0)
1650
1766
  );
1651
1767
  const raw = await this.http.post(
1652
1768
  `/computers/${this.computerId}/terminal`,
1653
- body3
1769
+ body4
1654
1770
  );
1655
- return unwrap17(raw);
1771
+ return unwrap18(raw);
1656
1772
  }
1657
1773
  /** Resize an existing PTY session. */
1658
1774
  async resize(sessionId, cols, rows) {
@@ -1660,10 +1776,10 @@ var ComputerTerminal = class {
1660
1776
  `/computers/${this.computerId}/pty/${sessionId}/resize`,
1661
1777
  { cols, rows }
1662
1778
  );
1663
- return unwrap17(raw);
1779
+ return unwrap18(raw);
1664
1780
  }
1665
1781
  };
1666
- function unwrap17(data) {
1782
+ function unwrap18(data) {
1667
1783
  if (data && typeof data === "object") {
1668
1784
  const d = data;
1669
1785
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1674,7 +1790,7 @@ function unwrap17(data) {
1674
1790
  }
1675
1791
 
1676
1792
  // src/resources/computer-volumes.ts
1677
- function unwrap18(data) {
1793
+ function unwrap19(data) {
1678
1794
  if (data && typeof data === "object") {
1679
1795
  const d = data;
1680
1796
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1708,7 +1824,7 @@ var ComputerVolumes = class {
1708
1824
  }
1709
1825
  /** Attach volumeId at mountPath inside the VM. */
1710
1826
  async attach(volumeId, mountPath) {
1711
- return unwrap18(
1827
+ return unwrap19(
1712
1828
  await this.http.post(this.base(), {
1713
1829
  volume_id: volumeId,
1714
1830
  mount_path: mountPath
@@ -1881,7 +1997,7 @@ var Desktop = class {
1881
1997
  };
1882
1998
 
1883
1999
  // src/resources/egressAudit.ts
1884
- function unwrap19(payload) {
2000
+ function unwrap20(payload) {
1885
2001
  if (payload && typeof payload === "object") {
1886
2002
  const p = payload;
1887
2003
  for (const k of ["data", "event", "items"]) {
@@ -1900,7 +2016,7 @@ function unwrapList8(payload) {
1900
2016
  }
1901
2017
  return [];
1902
2018
  }
1903
- function stripUndefined6(input) {
2019
+ function stripUndefined7(input) {
1904
2020
  return Object.fromEntries(
1905
2021
  Object.entries(input).filter(([, v]) => v !== void 0)
1906
2022
  );
@@ -1910,7 +2026,7 @@ function pickFirst(...values) {
1910
2026
  return void 0;
1911
2027
  }
1912
2028
  function listQuery(params) {
1913
- return stripUndefined6({
2029
+ return stripUndefined7({
1914
2030
  resource_id: pickFirst(params.resourceId, params.resource_id),
1915
2031
  resource_type: pickFirst(params.resourceType, params.resource_type),
1916
2032
  host: params.host,
@@ -1947,7 +2063,7 @@ var EgressAudit = class {
1947
2063
  const data = await this.http.get(
1948
2064
  `/egress/audit/${id}`
1949
2065
  );
1950
- return unwrap19(data);
2066
+ return unwrap20(data);
1951
2067
  }
1952
2068
  /**
1953
2069
  * Long-poll the audit endpoint and yield new events as they appear.
@@ -2023,7 +2139,7 @@ var ComputerAudit = class extends SandboxAudit {
2023
2139
  };
2024
2140
 
2025
2141
  // src/resources/egressNetwork.ts
2026
- function unwrap20(payload) {
2142
+ function unwrap21(payload) {
2027
2143
  if (payload && typeof payload === "object") {
2028
2144
  const p = payload;
2029
2145
  for (const k of ["data", "policy", "rule", "items"]) {
@@ -2049,7 +2165,7 @@ function unwrapList9(payload) {
2049
2165
  }
2050
2166
  return [];
2051
2167
  }
2052
- function stripUndefined7(input) {
2168
+ function stripUndefined8(input) {
2053
2169
  return Object.fromEntries(
2054
2170
  Object.entries(input).filter(([, v]) => v !== void 0)
2055
2171
  );
@@ -2059,7 +2175,7 @@ function pickFirst2(...values) {
2059
2175
  return void 0;
2060
2176
  }
2061
2177
  function ruleBody(host, params, effect) {
2062
- return stripUndefined7({
2178
+ return stripUndefined8({
2063
2179
  host,
2064
2180
  effect,
2065
2181
  methods: params.methods,
@@ -2082,7 +2198,7 @@ var EgressNetwork = class {
2082
2198
  "/egress/allowlist",
2083
2199
  ruleBody(host, params, "allow")
2084
2200
  );
2085
- return unwrap20(data);
2201
+ return unwrap21(data);
2086
2202
  }
2087
2203
  /** Add a `deny` rule for `host` to the allowlist. */
2088
2204
  async deny(host, params = {}) {
@@ -2090,11 +2206,11 @@ var EgressNetwork = class {
2090
2206
  "/egress/allowlist",
2091
2207
  ruleBody(host, params, "deny")
2092
2208
  );
2093
- return unwrap20(data);
2209
+ return unwrap21(data);
2094
2210
  }
2095
2211
  /** List allowlist rules. */
2096
2212
  async rules(params = {}) {
2097
- const query2 = stripUndefined7({
2213
+ const query2 = stripUndefined8({
2098
2214
  policy_id: pickFirst2(params.policyId, params.policy_id),
2099
2215
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2100
2216
  resource_type: pickFirst2(params.resourceType, params.resource_type)
@@ -2109,7 +2225,7 @@ var EgressNetwork = class {
2109
2225
  // ── policies ──────────────────────────────────────────────────────────────
2110
2226
  /** List egress policies. */
2111
2227
  async policies(params = {}) {
2112
- const query2 = stripUndefined7({
2228
+ const query2 = stripUndefined8({
2113
2229
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2114
2230
  resource_type: pickFirst2(params.resourceType, params.resource_type)
2115
2231
  });
@@ -2118,7 +2234,7 @@ var EgressNetwork = class {
2118
2234
  }
2119
2235
  /** Create an egress policy. */
2120
2236
  async createPolicy(params) {
2121
- const body3 = stripUndefined7({
2237
+ const body4 = stripUndefined8({
2122
2238
  name: params.name,
2123
2239
  mode: params.mode ?? "enforce",
2124
2240
  default_effect: pickFirst2(
@@ -2132,13 +2248,13 @@ var EgressNetwork = class {
2132
2248
  });
2133
2249
  const data = await this.http.post(
2134
2250
  "/egress/policies",
2135
- body3
2251
+ body4
2136
2252
  );
2137
- return unwrap20(data);
2253
+ return unwrap21(data);
2138
2254
  }
2139
2255
  /** Update an egress policy by id. */
2140
2256
  async updatePolicy(policyId, params) {
2141
- const body3 = stripUndefined7({
2257
+ const body4 = stripUndefined8({
2142
2258
  mode: params.mode,
2143
2259
  default_effect: pickFirst2(params.defaultEffect, params.default_effect),
2144
2260
  name: params.name,
@@ -2146,9 +2262,9 @@ var EgressNetwork = class {
2146
2262
  });
2147
2263
  const data = await this.http.patch(
2148
2264
  `/egress/policies/${policyId}`,
2149
- body3
2265
+ body4
2150
2266
  );
2151
- return unwrap20(data);
2267
+ return unwrap21(data);
2152
2268
  }
2153
2269
  // ── mode helpers ──────────────────────────────────────────────────────────
2154
2270
  /** Set the policy to `mode="enforce"` — denied egress is blocked. */
@@ -2166,21 +2282,21 @@ var EgressNetwork = class {
2166
2282
  if (policyId) {
2167
2283
  return this.updatePolicy(policyId, { mode });
2168
2284
  }
2169
- const body3 = resourceId !== void 0 && resourceType !== void 0 ? stripUndefined7({
2285
+ const body4 = resourceId !== void 0 && resourceType !== void 0 ? stripUndefined8({
2170
2286
  mode,
2171
2287
  resource_id: resourceId,
2172
2288
  resource_type: resourceType
2173
2289
  }) : { mode };
2174
2290
  const data = await this.http.patch(
2175
2291
  "/egress/policies",
2176
- body3
2292
+ body4
2177
2293
  );
2178
- return unwrap20(data);
2294
+ return unwrap21(data);
2179
2295
  }
2180
2296
  // ── suggestions ───────────────────────────────────────────────────────────
2181
2297
  /** AI-generated allowlist suggestions from recent denied egress. */
2182
2298
  async suggestions(params = {}) {
2183
- const query2 = stripUndefined7({
2299
+ const query2 = stripUndefined8({
2184
2300
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2185
2301
  resource_type: pickFirst2(params.resourceType, params.resource_type),
2186
2302
  since: params.since ?? "7d"
@@ -2231,28 +2347,28 @@ var SandboxNetwork = class {
2231
2347
  return this.delegate.removeRule(ruleId);
2232
2348
  }
2233
2349
  lockdown(params = {}) {
2234
- const body3 = {
2350
+ const body4 = {
2235
2351
  resource_id: this.resourceId,
2236
2352
  resource_type: this.resourceType
2237
2353
  };
2238
- if (params.policyId !== void 0) body3.policyId = params.policyId;
2239
- return this.delegate.lockdown(body3);
2354
+ if (params.policyId !== void 0) body4.policyId = params.policyId;
2355
+ return this.delegate.lockdown(body4);
2240
2356
  }
2241
2357
  observe(params = {}) {
2242
- const body3 = {
2358
+ const body4 = {
2243
2359
  resource_id: this.resourceId,
2244
2360
  resource_type: this.resourceType
2245
2361
  };
2246
- if (params.policyId !== void 0) body3.policyId = params.policyId;
2247
- return this.delegate.observe(body3);
2362
+ if (params.policyId !== void 0) body4.policyId = params.policyId;
2363
+ return this.delegate.observe(body4);
2248
2364
  }
2249
2365
  suggestions(params = {}) {
2250
- const body3 = {
2366
+ const body4 = {
2251
2367
  resource_id: this.resourceId,
2252
2368
  resource_type: this.resourceType
2253
2369
  };
2254
- if (params.since !== void 0) body3.since = params.since;
2255
- return this.delegate.suggestions(body3);
2370
+ if (params.since !== void 0) body4.since = params.since;
2371
+ return this.delegate.suggestions(body4);
2256
2372
  }
2257
2373
  policies() {
2258
2374
  return this.delegate.policies({
@@ -2266,7 +2382,7 @@ var ComputerNetwork = class extends SandboxNetwork {
2266
2382
  };
2267
2383
 
2268
2384
  // src/resources/egressSecrets.ts
2269
- function unwrap21(payload) {
2385
+ function unwrap22(payload) {
2270
2386
  if (payload && typeof payload === "object") {
2271
2387
  const p = payload;
2272
2388
  for (const k of ["data", "secret", "binding", "items"]) {
@@ -2285,7 +2401,7 @@ function unwrapList10(payload) {
2285
2401
  }
2286
2402
  return [];
2287
2403
  }
2288
- function stripUndefined8(input) {
2404
+ function stripUndefined9(input) {
2289
2405
  return Object.fromEntries(
2290
2406
  Object.entries(input).filter(([, v]) => v !== void 0)
2291
2407
  );
@@ -2295,7 +2411,7 @@ function pickFirst3(...values) {
2295
2411
  return void 0;
2296
2412
  }
2297
2413
  function setBody(params) {
2298
- return stripUndefined8({
2414
+ return stripUndefined9({
2299
2415
  name: params.name,
2300
2416
  value: params.value,
2301
2417
  type: params.type ?? "api_key",
@@ -2316,7 +2432,7 @@ function setBody(params) {
2316
2432
  });
2317
2433
  }
2318
2434
  function listQuery2(params) {
2319
- return stripUndefined8({
2435
+ return stripUndefined9({
2320
2436
  scope: params.scope,
2321
2437
  type: params.type,
2322
2438
  workspace_id: pickFirst3(params.workspaceId, params.workspace_id),
@@ -2331,14 +2447,14 @@ function listQuery2(params) {
2331
2447
  });
2332
2448
  }
2333
2449
  function rotateBody(params) {
2334
- return stripUndefined8({
2450
+ return stripUndefined9({
2335
2451
  value: pickFirst3(params.newValue, params.new_value, params.value),
2336
2452
  refresh_token: pickFirst3(params.refreshToken, params.refresh_token),
2337
2453
  expires_at: pickFirst3(params.expiresAt, params.expires_at)
2338
2454
  });
2339
2455
  }
2340
2456
  function bindingBody(params) {
2341
- return stripUndefined8({
2457
+ return stripUndefined9({
2342
2458
  secret_id: pickFirst3(params.secretId, params.secret_id),
2343
2459
  resource_id: pickFirst3(params.resourceId, params.resource_id),
2344
2460
  resource_type: pickFirst3(params.resourceType, params.resource_type),
@@ -2346,14 +2462,14 @@ function bindingBody(params) {
2346
2462
  });
2347
2463
  }
2348
2464
  function bindingQuery(params) {
2349
- return stripUndefined8({
2465
+ return stripUndefined9({
2350
2466
  resource_id: pickFirst3(params.resourceId, params.resource_id),
2351
2467
  resource_type: pickFirst3(params.resourceType, params.resource_type),
2352
2468
  secret_id: pickFirst3(params.secretId, params.secret_id)
2353
2469
  });
2354
2470
  }
2355
2471
  function oauthBody(params) {
2356
- return stripUndefined8({
2472
+ return stripUndefined9({
2357
2473
  provider: params.provider,
2358
2474
  expose_as_env: pickFirst3(params.exposeAsEnv, params.expose_as_env),
2359
2475
  scope: params.scope,
@@ -2402,7 +2518,7 @@ var OAuthFlow = class {
2402
2518
  const data = await this.http.get("/egress/oauth/status", {
2403
2519
  state: this.state
2404
2520
  });
2405
- const payload = unwrap21(data) ?? {};
2521
+ const payload = unwrap22(data) ?? {};
2406
2522
  const status = payload.status;
2407
2523
  if (status === "completed" || status === "ready" || status === "succeeded") {
2408
2524
  return payload;
@@ -2434,7 +2550,7 @@ var EgressSecrets = class {
2434
2550
  "/egress/secrets",
2435
2551
  setBody(params)
2436
2552
  );
2437
- return unwrap21(data);
2553
+ return unwrap22(data);
2438
2554
  }
2439
2555
  /** List secrets. */
2440
2556
  async list(params = {}) {
@@ -2449,16 +2565,16 @@ var EgressSecrets = class {
2449
2565
  const data = await this.http.get(
2450
2566
  `/egress/secrets/${id}`
2451
2567
  );
2452
- return unwrap21(data);
2568
+ return unwrap22(data);
2453
2569
  }
2454
2570
  /** Rotate the secret's value. */
2455
2571
  async rotate(id, params) {
2456
- const body3 = typeof params === "string" ? rotateBody({ newValue: params }) : rotateBody(params);
2572
+ const body4 = typeof params === "string" ? rotateBody({ newValue: params }) : rotateBody(params);
2457
2573
  const data = await this.http.patch(
2458
2574
  `/egress/secrets/${id}`,
2459
- body3
2575
+ body4
2460
2576
  );
2461
- return unwrap21(data);
2577
+ return unwrap22(data);
2462
2578
  }
2463
2579
  /** Delete a secret. */
2464
2580
  async delete(id) {
@@ -2471,7 +2587,7 @@ var EgressSecrets = class {
2471
2587
  "/egress/bindings",
2472
2588
  bindingBody(params)
2473
2589
  );
2474
- return unwrap21(data);
2590
+ return unwrap22(data);
2475
2591
  }
2476
2592
  /** List secret bindings. */
2477
2593
  async listBindings(params = {}) {
@@ -2504,7 +2620,7 @@ var EgressSecrets = class {
2504
2620
  "/egress/oauth/start",
2505
2621
  oauthBody(params)
2506
2622
  );
2507
- const payload = unwrap21(data) ?? {};
2623
+ const payload = unwrap22(data) ?? {};
2508
2624
  return new OAuthFlow(this.http, payload, params.provider);
2509
2625
  }
2510
2626
  };
@@ -3068,12 +3184,12 @@ var ComputerInbox = class {
3068
3184
  return unwrapData(raw);
3069
3185
  }
3070
3186
  async update(fields) {
3071
- const body3 = Object.fromEntries(
3187
+ const body4 = Object.fromEntries(
3072
3188
  Object.entries(fields).filter(([, v]) => v !== void 0)
3073
3189
  );
3074
3190
  const raw = await this.http.patch(
3075
3191
  `/computers/${this.computerId}/inbox`,
3076
- body3
3192
+ body4
3077
3193
  );
3078
3194
  return unwrapData(raw);
3079
3195
  }
@@ -3372,12 +3488,12 @@ var Computer = class _Computer {
3372
3488
  }
3373
3489
  /** Clone this computer into a new one. */
3374
3490
  async clone(opts = {}) {
3375
- const body3 = Object.fromEntries(
3491
+ const body4 = Object.fromEntries(
3376
3492
  Object.entries(opts).filter(([, v]) => v !== void 0)
3377
3493
  );
3378
3494
  const raw = await this.http.post(
3379
3495
  `/computers/${this.id}/clone`,
3380
- body3
3496
+ body4
3381
3497
  );
3382
3498
  const data = unwrapData(raw);
3383
3499
  return new _Computer(this.http, data);
@@ -3393,12 +3509,12 @@ var Computer = class _Computer {
3393
3509
  }
3394
3510
  /** Move the computer to a different region or host. */
3395
3511
  async move(opts) {
3396
- const body3 = Object.fromEntries(
3512
+ const body4 = Object.fromEntries(
3397
3513
  Object.entries(opts).filter(([, v]) => v !== void 0)
3398
3514
  );
3399
3515
  const updated = await this.http.post(
3400
3516
  `/computers/${this.id}/move`,
3401
- body3
3517
+ body4
3402
3518
  );
3403
3519
  this.data = updated;
3404
3520
  return this;
@@ -3480,12 +3596,12 @@ var Computers = class {
3480
3596
  agentRuntimeProfileId,
3481
3597
  agentProfileId,
3482
3598
  skipAgentRuntimeProfile,
3483
- ...body3
3599
+ ...body4
3484
3600
  } = params;
3485
3601
  const data = await this.http.post("/computers", {
3486
3602
  template_type: "miosa-desktop",
3487
3603
  size: "small",
3488
- ...body3,
3604
+ ...body4,
3489
3605
  agent_runtime_profile_id: agentRuntimeProfileId ?? params.agent_runtime_profile_id ?? agentProfileId ?? params.agent_profile_id,
3490
3606
  skip_agent_runtime_profile: skipAgentRuntimeProfile ?? params.skip_agent_runtime_profile
3491
3607
  });
@@ -3557,7 +3673,7 @@ var Credits = class {
3557
3673
  return this.http.get("/credits/usage");
3558
3674
  }
3559
3675
  };
3560
- function unwrap22(payload) {
3676
+ function unwrap23(payload) {
3561
3677
  if (payload && typeof payload === "object" && "data" in payload) {
3562
3678
  return payload.data;
3563
3679
  }
@@ -3573,7 +3689,7 @@ function listItems2(payload, candidateKeys = ["data", "cron_jobs", "executions",
3573
3689
  }
3574
3690
  return [];
3575
3691
  }
3576
- function stripUndefined9(input) {
3692
+ function stripUndefined10(input) {
3577
3693
  return Object.fromEntries(
3578
3694
  Object.entries(input).filter(([, v]) => v !== void 0)
3579
3695
  );
@@ -3587,28 +3703,28 @@ var CronJobs = class {
3587
3703
  }
3588
3704
  http;
3589
3705
  async list(params = {}) {
3590
- const query2 = stripUndefined9({ ...params });
3706
+ const query2 = stripUndefined10({ ...params });
3591
3707
  const data = await this.http.get("/cron-jobs", query2);
3592
3708
  return listItems2(data);
3593
3709
  }
3594
3710
  async get(jobId) {
3595
3711
  const data = await this.http.get(`/cron-jobs/${jobId}`);
3596
- return unwrap22(data);
3712
+ return unwrap23(data);
3597
3713
  }
3598
3714
  async create(params) {
3599
3715
  const { idempotencyKey: ikey, ...rest } = params;
3600
- const body3 = stripUndefined9(rest);
3716
+ const body4 = stripUndefined10(rest);
3601
3717
  const data = await this.http.request("/cron-jobs", {
3602
3718
  method: "POST",
3603
- body: body3,
3719
+ body: body4,
3604
3720
  headers: { "Idempotency-Key": idempotencyKey2(ikey) }
3605
3721
  });
3606
- return unwrap22(data);
3722
+ return unwrap23(data);
3607
3723
  }
3608
3724
  async update(jobId, params) {
3609
- const body3 = stripUndefined9(params);
3610
- const data = await this.http.patch(`/cron-jobs/${jobId}`, body3);
3611
- return unwrap22(data);
3725
+ const body4 = stripUndefined10(params);
3726
+ const data = await this.http.patch(`/cron-jobs/${jobId}`, body4);
3727
+ return unwrap23(data);
3612
3728
  }
3613
3729
  async delete(jobId) {
3614
3730
  await this.http.delete(`/cron-jobs/${jobId}`);
@@ -3616,11 +3732,11 @@ var CronJobs = class {
3616
3732
  // ── Control ────────────────────────────────────────────────────────────────
3617
3733
  async pause(jobId) {
3618
3734
  const data = await this.http.post(`/cron-jobs/${jobId}/pause`);
3619
- return unwrap22(data);
3735
+ return unwrap23(data);
3620
3736
  }
3621
3737
  async resume(jobId) {
3622
3738
  const data = await this.http.post(`/cron-jobs/${jobId}/resume`);
3623
- return unwrap22(data);
3739
+ return unwrap23(data);
3624
3740
  }
3625
3741
  async runNow(jobId, opts = {}) {
3626
3742
  const data = await this.http.request(
@@ -3630,7 +3746,7 @@ var CronJobs = class {
3630
3746
  headers: { "Idempotency-Key": idempotencyKey2(opts.idempotencyKey) }
3631
3747
  }
3632
3748
  );
3633
- return unwrap22(data);
3749
+ return unwrap23(data);
3634
3750
  }
3635
3751
  // ── Execution history ──────────────────────────────────────────────────────
3636
3752
  async listExecutions(jobId) {
@@ -3645,12 +3761,12 @@ var CronJobs = class {
3645
3761
  const data = await this.http.get(
3646
3762
  `/cron-jobs/${jobId}/executions/${executionId}`
3647
3763
  );
3648
- return unwrap22(data);
3764
+ return unwrap23(data);
3649
3765
  }
3650
3766
  };
3651
3767
 
3652
3768
  // src/resources/dashboard.ts
3653
- function unwrap23(payload) {
3769
+ function unwrap24(payload) {
3654
3770
  if (payload && typeof payload === "object") {
3655
3771
  const p = payload;
3656
3772
  for (const k of ["data", "dashboard", "overview", "items"]) {
@@ -3667,15 +3783,15 @@ var Dashboard = class {
3667
3783
  /** Aggregated user dashboard payload. */
3668
3784
  async summary() {
3669
3785
  const data = await this.http.get("/dashboard");
3670
- return unwrap23(data);
3786
+ return unwrap24(data);
3671
3787
  }
3672
3788
  /** Status / health overview (public endpoint). */
3673
3789
  async overview() {
3674
3790
  const data = await this.http.get("/overview");
3675
- return unwrap23(data);
3791
+ return unwrap24(data);
3676
3792
  }
3677
3793
  };
3678
- function unwrap24(payload) {
3794
+ function unwrap25(payload) {
3679
3795
  if (payload && typeof payload === "object" && "data" in payload) {
3680
3796
  return payload.data;
3681
3797
  }
@@ -3691,7 +3807,7 @@ function listItems3(payload, candidateKeys = ["data", "databases", "items"]) {
3691
3807
  }
3692
3808
  return [];
3693
3809
  }
3694
- function stripUndefined10(input) {
3810
+ function stripUndefined11(input) {
3695
3811
  return Object.fromEntries(
3696
3812
  Object.entries(input).filter(([, v]) => v !== void 0)
3697
3813
  );
@@ -3705,13 +3821,13 @@ var Databases = class {
3705
3821
  }
3706
3822
  http;
3707
3823
  async list(params = {}) {
3708
- const query2 = stripUndefined10({ ...params });
3824
+ const query2 = stripUndefined11({ ...params });
3709
3825
  const data = await this.http.get("/databases", query2);
3710
3826
  return listItems3(data);
3711
3827
  }
3712
3828
  async get(databaseId) {
3713
3829
  const data = await this.http.get(`/databases/${databaseId}`);
3714
- return unwrap24(data);
3830
+ return unwrap25(data);
3715
3831
  }
3716
3832
  async create(params) {
3717
3833
  const {
@@ -3722,20 +3838,20 @@ var Databases = class {
3722
3838
  size: _deprecatedSize,
3723
3839
  ...rest
3724
3840
  } = params;
3725
- const body3 = stripUndefined10({
3841
+ const body4 = stripUndefined11({
3726
3842
  ...rest,
3727
3843
  engine_version: engine_version ?? version
3728
3844
  });
3729
3845
  const data = await this.http.request("/databases", {
3730
3846
  method: "POST",
3731
- body: body3,
3847
+ body: body4,
3732
3848
  headers: {
3733
3849
  "Idempotency-Key": idempotencyKey3(
3734
3850
  camelIdempotencyKey ?? snakeIdempotencyKey
3735
3851
  )
3736
3852
  }
3737
3853
  });
3738
- return unwrap24(data);
3854
+ return unwrap25(data);
3739
3855
  }
3740
3856
  async delete(databaseId) {
3741
3857
  await this.http.delete(`/databases/${databaseId}`);
@@ -3745,27 +3861,27 @@ var Databases = class {
3745
3861
  const data = await this.http.post(
3746
3862
  `/databases/${databaseId}/start`
3747
3863
  );
3748
- return unwrap24(data);
3864
+ return unwrap25(data);
3749
3865
  }
3750
3866
  async stop(databaseId) {
3751
3867
  const data = await this.http.post(`/databases/${databaseId}/stop`);
3752
- return unwrap24(data);
3868
+ return unwrap25(data);
3753
3869
  }
3754
3870
  async restart(databaseId) {
3755
3871
  const data = await this.http.post(
3756
3872
  `/databases/${databaseId}/restart`
3757
3873
  );
3758
- return unwrap24(data);
3874
+ return unwrap25(data);
3759
3875
  }
3760
3876
  // ── Credentials + logs ────────────────────────────────────────────────────
3761
3877
  async credentials(databaseId) {
3762
3878
  const data = await this.http.get(
3763
3879
  `/databases/${databaseId}/credentials`
3764
3880
  );
3765
- return unwrap24(data);
3881
+ return unwrap25(data);
3766
3882
  }
3767
3883
  async logs(databaseId, params = {}) {
3768
- const query2 = stripUndefined10({
3884
+ const query2 = stripUndefined11({
3769
3885
  lines: params.lines,
3770
3886
  since: params.since
3771
3887
  });
@@ -3792,7 +3908,7 @@ function attributionBody(p) {
3792
3908
  function idempotencyKey4(key) {
3793
3909
  return key ?? randomUUID();
3794
3910
  }
3795
- function unwrap25(payload) {
3911
+ function unwrap26(payload) {
3796
3912
  if (payload && typeof payload === "object" && "data" in payload) {
3797
3913
  return payload.data;
3798
3914
  }
@@ -3808,7 +3924,7 @@ function listItems4(payload, candidateKeys = ["items", "deployments", "versions"
3808
3924
  }
3809
3925
  return [];
3810
3926
  }
3811
- function stripUndefined11(input) {
3927
+ function stripUndefined12(input) {
3812
3928
  return Object.fromEntries(
3813
3929
  Object.entries(input).filter(([, v]) => v !== void 0)
3814
3930
  );
@@ -3863,7 +3979,7 @@ var DeploymentVersions = class {
3863
3979
  http;
3864
3980
  deploymentId;
3865
3981
  async list(params = {}) {
3866
- const query2 = stripUndefined11({
3982
+ const query2 = stripUndefined12({
3867
3983
  state: params.state,
3868
3984
  limit: params.limit,
3869
3985
  cursor: params.cursor,
@@ -3879,19 +3995,19 @@ var DeploymentVersions = class {
3879
3995
  const data = await this.http.get(
3880
3996
  `/deployments/${this.deploymentId}/versions/${versionId}`
3881
3997
  );
3882
- return unwrap25(data);
3998
+ return unwrap26(data);
3883
3999
  }
3884
4000
  async promote(versionId, opts = {}) {
3885
- const body3 = stripUndefined11({ environment: opts.environment });
4001
+ const body4 = stripUndefined12({ environment: opts.environment });
3886
4002
  const data = await this.http.request(
3887
4003
  `/deployments/${this.deploymentId}/versions/${versionId}/promote`,
3888
4004
  {
3889
4005
  method: "POST",
3890
- body: body3,
4006
+ body: body4,
3891
4007
  headers: { "Idempotency-Key": idempotencyKey4(opts.idempotencyKey) }
3892
4008
  }
3893
4009
  );
3894
- return unwrap25(data);
4010
+ return unwrap26(data);
3895
4011
  }
3896
4012
  };
3897
4013
  var DeploymentReleases = class {
@@ -3911,7 +4027,7 @@ var DeploymentReleases = class {
3911
4027
  const data = await this.http.get(
3912
4028
  `/deployments/${this.deploymentId}/releases/${releaseId}`
3913
4029
  );
3914
- return unwrap25(data);
4030
+ return unwrap26(data);
3915
4031
  }
3916
4032
  };
3917
4033
  var DeploymentRuntimeInstances = class {
@@ -3931,14 +4047,14 @@ var DeploymentRuntimeInstances = class {
3931
4047
  const data = await this.http.get(
3932
4048
  `/deployments/${this.deploymentId}/runtime-instances/${instanceId}`
3933
4049
  );
3934
- return unwrap25(data);
4050
+ return unwrap26(data);
3935
4051
  }
3936
4052
  async logs(instanceId, lines = 100) {
3937
4053
  const data = await this.http.get(
3938
4054
  `/deployments/${this.deploymentId}/runtime-instances/${instanceId}/logs`,
3939
4055
  { lines }
3940
4056
  );
3941
- const unwrapped = unwrap25(data);
4057
+ const unwrapped = unwrap26(data);
3942
4058
  const result = { logs: String(unwrapped.logs ?? "") };
3943
4059
  if (typeof unwrapped.runtime_instance_id === "string") {
3944
4060
  result.runtime_instance_id = unwrapped.runtime_instance_id;
@@ -3960,7 +4076,7 @@ var DeploymentDomains = class {
3960
4076
  http;
3961
4077
  deploymentId;
3962
4078
  async add(domain, params = {}) {
3963
- const body3 = {
4079
+ const body4 = {
3964
4080
  domain,
3965
4081
  redirect_policy: params.redirectPolicy ?? params.redirect_policy,
3966
4082
  ...attributionBody(params)
@@ -3969,11 +4085,11 @@ var DeploymentDomains = class {
3969
4085
  `/deployments/${this.deploymentId}/domains`,
3970
4086
  {
3971
4087
  method: "POST",
3972
- body: stripUndefined11(body3),
4088
+ body: stripUndefined12(body4),
3973
4089
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
3974
4090
  }
3975
4091
  );
3976
- return unwrap25(data);
4092
+ return unwrap26(data);
3977
4093
  }
3978
4094
  async list(filters = {}) {
3979
4095
  const data = await this.http.get(
@@ -3986,7 +4102,7 @@ var DeploymentDomains = class {
3986
4102
  const data = await this.http.post(
3987
4103
  `/deployments/${this.deploymentId}/domains/${domainId}/verify`
3988
4104
  );
3989
- return unwrap25(data);
4105
+ return unwrap26(data);
3990
4106
  }
3991
4107
  async delete(domainId) {
3992
4108
  await this.http.delete(
@@ -4001,7 +4117,7 @@ var Deployments = class {
4001
4117
  http;
4002
4118
  async list(params = {}) {
4003
4119
  const projectId = params.projectId ?? params.project_id;
4004
- const query2 = stripUndefined11({
4120
+ const query2 = stripUndefined12({
4005
4121
  project_id: projectId,
4006
4122
  state: params.state,
4007
4123
  limit: params.limit,
@@ -4016,10 +4132,10 @@ var Deployments = class {
4016
4132
  }
4017
4133
  async get(deploymentId) {
4018
4134
  const data = await this.http.get(`/deployments/${deploymentId}`);
4019
- return unwrap25(data);
4135
+ return unwrap26(data);
4020
4136
  }
4021
4137
  async create(params) {
4022
- const body3 = stripUndefined11({
4138
+ const body4 = stripUndefined12({
4023
4139
  name: params.name,
4024
4140
  repo_url: params.repoUrl ?? params.repo_url,
4025
4141
  branch: params.branch,
@@ -4032,10 +4148,10 @@ var Deployments = class {
4032
4148
  });
4033
4149
  const data = await this.http.request("/deployments", {
4034
4150
  method: "POST",
4035
- body: body3,
4151
+ body: body4,
4036
4152
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4037
4153
  });
4038
- return unwrap25(data);
4154
+ return unwrap26(data);
4039
4155
  }
4040
4156
  /**
4041
4157
  * Create a deployment that runs on the workspace's dedicated Docker Deploy
@@ -4079,7 +4195,7 @@ var Deployments = class {
4079
4195
  const rawHost = await this.http.get(
4080
4196
  `/docker-deploy/hosts/${hostId}`
4081
4197
  );
4082
- host = unwrap25(
4198
+ host = unwrap26(
4083
4199
  rawHost
4084
4200
  );
4085
4201
  addDoctorCheck(
@@ -4182,7 +4298,7 @@ var Deployments = class {
4182
4298
  };
4183
4299
  }
4184
4300
  async update(deploymentId, params) {
4185
- const body3 = stripUndefined11({
4301
+ const body4 = stripUndefined12({
4186
4302
  name: params.name,
4187
4303
  branch: params.branch,
4188
4304
  build_command: params.buildCommand ?? params.build_command,
@@ -4191,15 +4307,15 @@ var Deployments = class {
4191
4307
  });
4192
4308
  const data = await this.http.patch(
4193
4309
  `/deployments/${deploymentId}`,
4194
- body3
4310
+ body4
4195
4311
  );
4196
- return unwrap25(data);
4312
+ return unwrap26(data);
4197
4313
  }
4198
4314
  async delete(deploymentId) {
4199
4315
  await this.http.delete(`/deployments/${deploymentId}`);
4200
4316
  }
4201
4317
  async publish(deploymentId, params) {
4202
- const body3 = stripUndefined11({
4318
+ const body4 = stripUndefined12({
4203
4319
  source_sandbox_id: params.sourceSandboxId ?? params.source_sandbox_id,
4204
4320
  output_path: params.outputPath ?? params.output_path,
4205
4321
  entrypoint: params.entrypoint,
@@ -4209,11 +4325,11 @@ var Deployments = class {
4209
4325
  `/deployments/${deploymentId}/publish`,
4210
4326
  {
4211
4327
  method: "POST",
4212
- body: body3,
4328
+ body: body4,
4213
4329
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4214
4330
  }
4215
4331
  );
4216
- return unwrap25(data);
4332
+ return unwrap26(data);
4217
4333
  }
4218
4334
  /**
4219
4335
  * Backward-compatible bridge: POST /sandboxes/:id/deploy. Works today;
@@ -4221,7 +4337,7 @@ var Deployments = class {
4221
4337
  * phase. Prefer `publish()` once Phase 2B/3 lands.
4222
4338
  */
4223
4339
  async publishFromSandbox(sandboxId, params = {}) {
4224
- const body3 = stripUndefined11({
4340
+ const body4 = stripUndefined12({
4225
4341
  name: params.name,
4226
4342
  deployment_id: params.deploymentId ?? params.deployment_id,
4227
4343
  output_path: params.outputPath ?? params.output_path,
@@ -4234,25 +4350,25 @@ var Deployments = class {
4234
4350
  `/sandboxes/${sandboxId}/deploy`,
4235
4351
  {
4236
4352
  method: "POST",
4237
- body: body3,
4353
+ body: body4,
4238
4354
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4239
4355
  }
4240
4356
  );
4241
- return unwrap25(data);
4357
+ return unwrap26(data);
4242
4358
  }
4243
4359
  async rollback(deploymentId, params = {}) {
4244
- const body3 = stripUndefined11({
4360
+ const body4 = stripUndefined12({
4245
4361
  version_id: params.versionId ?? params.version_id
4246
4362
  });
4247
4363
  const data = await this.http.request(
4248
4364
  `/deployments/${deploymentId}/rollback`,
4249
4365
  {
4250
4366
  method: "POST",
4251
- body: body3,
4367
+ body: body4,
4252
4368
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4253
4369
  }
4254
4370
  );
4255
- return unwrap25(data);
4371
+ return unwrap26(data);
4256
4372
  }
4257
4373
  async listBuilds(deploymentId) {
4258
4374
  const data = await this.http.get(
@@ -4264,7 +4380,7 @@ var Deployments = class {
4264
4380
  const data = await this.http.get(
4265
4381
  `/deployments/${deploymentId}/builds/${buildId}`
4266
4382
  );
4267
- return unwrap25(data);
4383
+ return unwrap26(data);
4268
4384
  }
4269
4385
  async listEnv(deploymentId) {
4270
4386
  const data = await this.http.get(
@@ -4273,10 +4389,10 @@ var Deployments = class {
4273
4389
  return listItems4(data);
4274
4390
  }
4275
4391
  async setEnv(deploymentId, vars, opts = {}) {
4276
- const body3 = stripUndefined11({ env: vars, environment: opts.environment });
4392
+ const body4 = stripUndefined12({ env: vars, environment: opts.environment });
4277
4393
  const data = await this.http.post(
4278
4394
  `/deployments/${deploymentId}/env`,
4279
- body3
4395
+ body4
4280
4396
  );
4281
4397
  return listItems4(data);
4282
4398
  }
@@ -4302,12 +4418,12 @@ function workspaceId(params) {
4302
4418
  return params?.workspace_id ?? params?.workspaceId;
4303
4419
  }
4304
4420
  function ensureBody(params) {
4305
- const body3 = {};
4421
+ const body4 = {};
4306
4422
  const id = params.workspace_id ?? params.workspaceId;
4307
4423
  const externalId = params.external_workspace_id ?? params.externalWorkspaceId;
4308
- if (id) body3.workspace_id = id;
4309
- if (externalId) body3.external_workspace_id = externalId;
4310
- return body3;
4424
+ if (id) body4.workspace_id = id;
4425
+ if (externalId) body4.external_workspace_id = externalId;
4426
+ return body4;
4311
4427
  }
4312
4428
  function unwrapHost(response) {
4313
4429
  const host = response.data ?? response.host;
@@ -4382,7 +4498,7 @@ var DockerDeploy = class {
4382
4498
  };
4383
4499
 
4384
4500
  // src/resources/email.ts
4385
- function unwrap26(data) {
4501
+ function unwrap27(data) {
4386
4502
  if (data && typeof data === "object") {
4387
4503
  const d = data;
4388
4504
  for (const k of [
@@ -4434,12 +4550,12 @@ var EmailCampaigns = class {
4434
4550
  );
4435
4551
  }
4436
4552
  async create(attrs) {
4437
- return unwrap26(
4553
+ return unwrap27(
4438
4554
  await this.http.post("/admin/email-campaigns", strip(attrs))
4439
4555
  );
4440
4556
  }
4441
4557
  async recipientCount(filters = {}) {
4442
- return unwrap26(
4558
+ return unwrap27(
4443
4559
  await this.http.get(
4444
4560
  "/admin/email-campaigns/recipient-count",
4445
4561
  filters
@@ -4447,7 +4563,7 @@ var EmailCampaigns = class {
4447
4563
  );
4448
4564
  }
4449
4565
  async send(campaignId, opts = {}) {
4450
- return unwrap26(
4566
+ return unwrap27(
4451
4567
  await this.http.post(
4452
4568
  `/admin/email-campaigns/${campaignId}/send`,
4453
4569
  strip(opts)
@@ -4455,7 +4571,7 @@ var EmailCampaigns = class {
4455
4571
  );
4456
4572
  }
4457
4573
  async cancel(campaignId) {
4458
- return unwrap26(
4574
+ return unwrap27(
4459
4575
  await this.http.post(
4460
4576
  `/admin/email-campaigns/${campaignId}/cancel`
4461
4577
  )
@@ -4481,7 +4597,7 @@ var EmailTemplates = class {
4481
4597
  );
4482
4598
  }
4483
4599
  async create(key, attrs = {}) {
4484
- return unwrap26(
4600
+ return unwrap27(
4485
4601
  await this.http.post("/admin/email-templates", {
4486
4602
  key,
4487
4603
  ...strip(attrs)
@@ -4489,7 +4605,7 @@ var EmailTemplates = class {
4489
4605
  );
4490
4606
  }
4491
4607
  async update(key, attrs) {
4492
- return unwrap26(
4608
+ return unwrap27(
4493
4609
  await this.http.put(
4494
4610
  `/admin/email-templates/${key}`,
4495
4611
  strip(attrs)
@@ -4497,7 +4613,7 @@ var EmailTemplates = class {
4497
4613
  );
4498
4614
  }
4499
4615
  async reset(key) {
4500
- return unwrap26(
4616
+ return unwrap27(
4501
4617
  await this.http.post(`/admin/email-templates/${key}/reset`)
4502
4618
  );
4503
4619
  }
@@ -4513,17 +4629,17 @@ var EmailInbox = class {
4513
4629
  );
4514
4630
  }
4515
4631
  async send(attrs) {
4516
- return unwrap26(
4632
+ return unwrap27(
4517
4633
  await this.http.post("/admin/email-inbox/send", strip(attrs))
4518
4634
  );
4519
4635
  }
4520
4636
  async markRead(messageId) {
4521
- return unwrap26(
4637
+ return unwrap27(
4522
4638
  await this.http.post(`/admin/email-inbox/${messageId}/read`)
4523
4639
  );
4524
4640
  }
4525
4641
  async archive(messageId) {
4526
- return unwrap26(
4642
+ return unwrap27(
4527
4643
  await this.http.post(`/admin/email-inbox/${messageId}/archive`)
4528
4644
  );
4529
4645
  }
@@ -4552,18 +4668,18 @@ var Embeddings = class {
4552
4668
  * `{ object: "list", data: [...], model, usage }`.
4553
4669
  */
4554
4670
  async create(params) {
4555
- const body3 = Object.fromEntries(
4671
+ const body4 = Object.fromEntries(
4556
4672
  Object.entries(params).filter(([, v]) => v !== void 0)
4557
4673
  );
4558
4674
  return this.http.post(
4559
4675
  "/intelligence/embeddings",
4560
- body3
4676
+ body4
4561
4677
  );
4562
4678
  }
4563
4679
  };
4564
4680
 
4565
4681
  // src/resources/external-keys.ts
4566
- function unwrap27(payload) {
4682
+ function unwrap28(payload) {
4567
4683
  if (payload && typeof payload === "object") {
4568
4684
  const p = payload;
4569
4685
  for (const k of ["data", "external_keys", "items"]) {
@@ -4572,7 +4688,7 @@ function unwrap27(payload) {
4572
4688
  }
4573
4689
  return payload;
4574
4690
  }
4575
- function stripUndefined12(input) {
4691
+ function stripUndefined13(input) {
4576
4692
  return Object.fromEntries(
4577
4693
  Object.entries(input).filter(([, v]) => v !== void 0)
4578
4694
  );
@@ -4585,22 +4701,22 @@ var ExternalKeys = class {
4585
4701
  /** List configured external keys. */
4586
4702
  async list() {
4587
4703
  const data = await this.http.get("/external-keys");
4588
- const result = unwrap27(data);
4704
+ const result = unwrap28(data);
4589
4705
  if (Array.isArray(result)) return result;
4590
4706
  return [];
4591
4707
  }
4592
4708
  /** Create / register an external provider key. */
4593
4709
  async create(params) {
4594
- const body3 = stripUndefined12(params);
4595
- const data = await this.http.post("/external-keys", body3);
4596
- return unwrap27(data);
4710
+ const body4 = stripUndefined13(params);
4711
+ const data = await this.http.post("/external-keys", body4);
4712
+ return unwrap28(data);
4597
4713
  }
4598
4714
  /** Resolve (preview) the stored key for a provider. */
4599
4715
  async resolve(provider) {
4600
4716
  const data = await this.http.get(
4601
4717
  `/external-keys/${provider}/resolve`
4602
4718
  );
4603
- return unwrap27(data);
4719
+ return unwrap28(data);
4604
4720
  }
4605
4721
  /**
4606
4722
  * Delete the stored key for a provider.
@@ -4610,7 +4726,7 @@ var ExternalKeys = class {
4610
4726
  await this.http.delete(`/external-keys/${provider}`);
4611
4727
  }
4612
4728
  };
4613
- function unwrap28(payload) {
4729
+ function unwrap29(payload) {
4614
4730
  if (payload && typeof payload === "object" && "data" in payload) {
4615
4731
  return payload.data;
4616
4732
  }
@@ -4626,7 +4742,7 @@ function listItems5(payload, candidateKeys = ["data", "domains", "items"]) {
4626
4742
  }
4627
4743
  return [];
4628
4744
  }
4629
- function stripUndefined13(input) {
4745
+ function stripUndefined14(input) {
4630
4746
  return Object.fromEntries(
4631
4747
  Object.entries(input).filter(([, v]) => v !== void 0)
4632
4748
  );
@@ -4640,7 +4756,7 @@ var FlatCustomDomains = class {
4640
4756
  }
4641
4757
  http;
4642
4758
  async list(params = {}) {
4643
- const query2 = stripUndefined13({ ...params });
4759
+ const query2 = stripUndefined14({ ...params });
4644
4760
  const data = await this.http.get("/custom-domains", query2);
4645
4761
  return listItems5(data);
4646
4762
  }
@@ -4652,7 +4768,7 @@ var FlatCustomDomains = class {
4652
4768
  redirectPolicy,
4653
4769
  ...rest
4654
4770
  } = params;
4655
- const body3 = stripUndefined13({
4771
+ const body4 = stripUndefined14({
4656
4772
  ...rest,
4657
4773
  resource_type: resourceType ?? rest.resource_type,
4658
4774
  resource_id: resourceId ?? rest.resource_id,
@@ -4660,16 +4776,16 @@ var FlatCustomDomains = class {
4660
4776
  });
4661
4777
  const data = await this.http.request("/custom-domains", {
4662
4778
  method: "POST",
4663
- body: body3,
4779
+ body: body4,
4664
4780
  headers: { "Idempotency-Key": idempotencyKey5(ikey) }
4665
4781
  });
4666
- return unwrap28(data);
4782
+ return unwrap29(data);
4667
4783
  }
4668
4784
  async delete(domainId) {
4669
4785
  await this.http.delete(`/custom-domains/${domainId}`);
4670
4786
  }
4671
4787
  };
4672
- function unwrap29(payload) {
4788
+ function unwrap30(payload) {
4673
4789
  if (payload && typeof payload === "object" && "data" in payload) {
4674
4790
  return payload.data;
4675
4791
  }
@@ -4685,7 +4801,7 @@ function listItems6(payload, candidateKeys = ["data", "functions", "items"]) {
4685
4801
  }
4686
4802
  return [];
4687
4803
  }
4688
- function stripUndefined14(input) {
4804
+ function stripUndefined15(input) {
4689
4805
  return Object.fromEntries(
4690
4806
  Object.entries(input).filter(([, v]) => v !== void 0)
4691
4807
  );
@@ -4699,40 +4815,40 @@ var Functions = class {
4699
4815
  }
4700
4816
  http;
4701
4817
  async list(params = {}) {
4702
- const query2 = stripUndefined14({ ...params });
4818
+ const query2 = stripUndefined15({ ...params });
4703
4819
  const data = await this.http.get("/functions", query2);
4704
4820
  return listItems6(data);
4705
4821
  }
4706
4822
  async get(functionId) {
4707
4823
  const data = await this.http.get(`/functions/${functionId}`);
4708
- return unwrap29(data);
4824
+ return unwrap30(data);
4709
4825
  }
4710
4826
  async create(params) {
4711
4827
  const { idempotencyKey: ikey, memoryMb, timeoutSec, ...rest } = params;
4712
- const body3 = stripUndefined14({
4828
+ const body4 = stripUndefined15({
4713
4829
  ...rest,
4714
4830
  memory_mb: memoryMb ?? rest.memory_mb,
4715
4831
  timeout_sec: timeoutSec ?? rest.timeout_sec
4716
4832
  });
4717
4833
  const data = await this.http.request("/functions", {
4718
4834
  method: "POST",
4719
- body: body3,
4835
+ body: body4,
4720
4836
  headers: { "Idempotency-Key": idempotencyKey6(ikey) }
4721
4837
  });
4722
- return unwrap29(data);
4838
+ return unwrap30(data);
4723
4839
  }
4724
4840
  async update(functionId, params) {
4725
4841
  const { memoryMb, timeoutSec, ...rest } = params;
4726
- const body3 = stripUndefined14({
4842
+ const body4 = stripUndefined15({
4727
4843
  ...rest,
4728
4844
  memory_mb: memoryMb ?? rest.memory_mb,
4729
4845
  timeout_sec: timeoutSec ?? rest.timeout_sec
4730
4846
  });
4731
4847
  const data = await this.http.patch(
4732
4848
  `/functions/${functionId}`,
4733
- body3
4849
+ body4
4734
4850
  );
4735
- return unwrap29(data);
4851
+ return unwrap30(data);
4736
4852
  }
4737
4853
  async delete(functionId) {
4738
4854
  await this.http.delete(`/functions/${functionId}`);
@@ -4753,7 +4869,7 @@ var Functions = class {
4753
4869
  return data ?? {};
4754
4870
  }
4755
4871
  };
4756
- function unwrap30(payload) {
4872
+ function unwrap31(payload) {
4757
4873
  if (payload && typeof payload === "object" && "data" in payload) {
4758
4874
  return payload.data;
4759
4875
  }
@@ -4769,7 +4885,7 @@ function listItems7(payload, candidateKeys = ["data", "health_checks", "items"])
4769
4885
  }
4770
4886
  return [];
4771
4887
  }
4772
- function stripUndefined15(input) {
4888
+ function stripUndefined16(input) {
4773
4889
  return Object.fromEntries(
4774
4890
  Object.entries(input).filter(([, v]) => v !== void 0)
4775
4891
  );
@@ -4783,13 +4899,13 @@ var HealthChecks = class {
4783
4899
  }
4784
4900
  http;
4785
4901
  async list(params = {}) {
4786
- const query2 = stripUndefined15({ ...params });
4902
+ const query2 = stripUndefined16({ ...params });
4787
4903
  const data = await this.http.get("/health-checks", query2);
4788
4904
  return listItems7(data);
4789
4905
  }
4790
4906
  async get(checkId) {
4791
4907
  const data = await this.http.get(`/health-checks/${checkId}`);
4792
- return unwrap30(data);
4908
+ return unwrap31(data);
4793
4909
  }
4794
4910
  async create(params) {
4795
4911
  const {
@@ -4799,7 +4915,7 @@ var HealthChecks = class {
4799
4915
  expectedStatus,
4800
4916
  ...rest
4801
4917
  } = params;
4802
- const body3 = stripUndefined15({
4918
+ const body4 = stripUndefined16({
4803
4919
  ...rest,
4804
4920
  interval_sec: intervalSec ?? rest.interval_sec,
4805
4921
  timeout_sec: timeoutSec ?? rest.timeout_sec,
@@ -4807,14 +4923,14 @@ var HealthChecks = class {
4807
4923
  });
4808
4924
  const data = await this.http.request("/health-checks", {
4809
4925
  method: "POST",
4810
- body: body3,
4926
+ body: body4,
4811
4927
  headers: { "Idempotency-Key": idempotencyKey7(ikey) }
4812
4928
  });
4813
- return unwrap30(data);
4929
+ return unwrap31(data);
4814
4930
  }
4815
4931
  async update(checkId, params) {
4816
4932
  const { intervalSec, timeoutSec, expectedStatus, ...rest } = params;
4817
- const body3 = stripUndefined15({
4933
+ const body4 = stripUndefined16({
4818
4934
  ...rest,
4819
4935
  interval_sec: intervalSec ?? rest.interval_sec,
4820
4936
  timeout_sec: timeoutSec ?? rest.timeout_sec,
@@ -4822,9 +4938,9 @@ var HealthChecks = class {
4822
4938
  });
4823
4939
  const data = await this.http.patch(
4824
4940
  `/health-checks/${checkId}`,
4825
- body3
4941
+ body4
4826
4942
  );
4827
- return unwrap30(data);
4943
+ return unwrap31(data);
4828
4944
  }
4829
4945
  async delete(checkId) {
4830
4946
  await this.http.delete(`/health-checks/${checkId}`);
@@ -4832,7 +4948,7 @@ var HealthChecks = class {
4832
4948
  };
4833
4949
 
4834
4950
  // src/resources/integrations.ts
4835
- function unwrap31(payload) {
4951
+ function unwrap32(payload) {
4836
4952
  if (payload && typeof payload === "object") {
4837
4953
  const p = payload;
4838
4954
  for (const k of ["data", "integrations", "catalog", "items"]) {
@@ -4842,11 +4958,11 @@ function unwrap31(payload) {
4842
4958
  return payload;
4843
4959
  }
4844
4960
  function listItems8(payload) {
4845
- const result = unwrap31(payload);
4961
+ const result = unwrap32(payload);
4846
4962
  if (Array.isArray(result)) return result;
4847
4963
  return [];
4848
4964
  }
4849
- function stripUndefined16(input) {
4965
+ function stripUndefined17(input) {
4850
4966
  return Object.fromEntries(
4851
4967
  Object.entries(input).filter(([, v]) => v !== void 0)
4852
4968
  );
@@ -4871,14 +4987,14 @@ var Integrations = class {
4871
4987
  const data = await this.http.get(
4872
4988
  `/integrations/${provider}/start`
4873
4989
  );
4874
- return unwrap31(data);
4990
+ return unwrap32(data);
4875
4991
  }
4876
4992
  /** Force-refresh the access token for a provider. */
4877
4993
  async refresh(provider) {
4878
4994
  const data = await this.http.post(
4879
4995
  `/integrations/${provider}/refresh`
4880
4996
  );
4881
- return unwrap31(data);
4997
+ return unwrap32(data);
4882
4998
  }
4883
4999
  /** Disconnect (revoke) an integration. */
4884
5000
  async disconnect(provider) {
@@ -4898,41 +5014,41 @@ var Integrations = class {
4898
5014
  // ── Test hooks ─────────────────────────────────────────────────────────────
4899
5015
  /** Send a test message to the connected Slack channel. */
4900
5016
  async slackSendTest(params = {}) {
4901
- const body3 = stripUndefined16(params);
5017
+ const body4 = stripUndefined17(params);
4902
5018
  const data = await this.http.post(
4903
5019
  "/integrations/slack/send-test",
4904
- body3
5020
+ body4
4905
5021
  );
4906
- return unwrap31(data);
5022
+ return unwrap32(data);
4907
5023
  }
4908
5024
  /** Send a test message to the connected Discord channel. */
4909
5025
  async discordSendTest(params = {}) {
4910
- const body3 = stripUndefined16(params);
5026
+ const body4 = stripUndefined17(params);
4911
5027
  const data = await this.http.post(
4912
5028
  "/integrations/discord/send-test",
4913
- body3
5029
+ body4
4914
5030
  );
4915
- return unwrap31(data);
5031
+ return unwrap32(data);
4916
5032
  }
4917
5033
  // ── Linear dedicated controller ────────────────────────────────────────────
4918
5034
  /** Begin Linear OAuth — Linear has provider-specific error shapes. */
4919
5035
  async linearStart() {
4920
5036
  const data = await this.http.get("/integrations/linear/start");
4921
- return unwrap31(data);
5037
+ return unwrap32(data);
4922
5038
  }
4923
5039
  /** Create a Linear issue via the connected workspace. */
4924
5040
  async linearCreateIssue(params = {}) {
4925
- const body3 = stripUndefined16(params);
5041
+ const body4 = stripUndefined17(params);
4926
5042
  const data = await this.http.post(
4927
5043
  "/integrations/linear/create-issue",
4928
- body3
5044
+ body4
4929
5045
  );
4930
- return unwrap31(data);
5046
+ return unwrap32(data);
4931
5047
  }
4932
5048
  };
4933
5049
 
4934
5050
  // src/resources/mcp.ts
4935
- function unwrap32(payload) {
5051
+ function unwrap33(payload) {
4936
5052
  if (payload && typeof payload === "object") {
4937
5053
  const p = payload;
4938
5054
  for (const k of ["data", "mcp", "result", "items"]) {
@@ -4941,7 +5057,7 @@ function unwrap32(payload) {
4941
5057
  }
4942
5058
  return payload;
4943
5059
  }
4944
- function stripUndefined17(input) {
5060
+ function stripUndefined18(input) {
4945
5061
  return Object.fromEntries(
4946
5062
  Object.entries(input).filter(([, v]) => v !== void 0)
4947
5063
  );
@@ -4953,12 +5069,12 @@ var Mcp = class {
4953
5069
  http;
4954
5070
  /** Send a JSON-RPC request to the MCP endpoint. */
4955
5071
  async dispatch(params = {}) {
4956
- const body3 = stripUndefined17(params);
5072
+ const body4 = stripUndefined18(params);
4957
5073
  const data = await this.http.post(
4958
5074
  "/mcp",
4959
- Object.keys(body3).length > 0 ? body3 : void 0
5075
+ Object.keys(body4).length > 0 ? body4 : void 0
4960
5076
  );
4961
- return unwrap32(data);
5077
+ return unwrap33(data);
4962
5078
  }
4963
5079
  /**
4964
5080
  * Open the MCP listen channel (GET).
@@ -4968,7 +5084,7 @@ var Mcp = class {
4968
5084
  */
4969
5085
  async listen() {
4970
5086
  const data = await this.http.get("/mcp");
4971
- return unwrap32(data);
5087
+ return unwrap33(data);
4972
5088
  }
4973
5089
  /** Close (terminate) the MCP session. */
4974
5090
  async close() {
@@ -4977,7 +5093,7 @@ var Mcp = class {
4977
5093
  };
4978
5094
 
4979
5095
  // src/resources/models.ts
4980
- function unwrap33(data) {
5096
+ function unwrap34(data) {
4981
5097
  if (Array.isArray(data)) return data;
4982
5098
  if (data && typeof data === "object") {
4983
5099
  const d = data;
@@ -4998,7 +5114,7 @@ var Models = class {
4998
5114
  Object.entries(filters).filter(([, v]) => v !== void 0)
4999
5115
  );
5000
5116
  const data = await this.http.get("/intelligence/models", query2);
5001
- return unwrap33(data);
5117
+ return unwrap34(data);
5002
5118
  }
5003
5119
  /**
5004
5120
  * Get a single model by id.
@@ -5641,7 +5757,7 @@ function resourcePayload(params) {
5641
5757
  return { resource_type, resource_id };
5642
5758
  }
5643
5759
  function authConfig(params) {
5644
- return stripUndefined18({
5760
+ return stripUndefined19({
5645
5761
  ...params.config ?? {},
5646
5762
  signup_enabled: params.signup_enabled ?? params.signupEnabled,
5647
5763
  email_confirm_required: params.email_confirm_required ?? params.emailConfirmRequired,
@@ -5649,12 +5765,12 @@ function authConfig(params) {
5649
5765
  });
5650
5766
  }
5651
5767
  function requestBody(params) {
5652
- return stripUndefined18({
5768
+ return stripUndefined19({
5653
5769
  ...resourcePayload(params),
5654
5770
  config: authConfig(params)
5655
5771
  });
5656
5772
  }
5657
- function unwrap34(payload) {
5773
+ function unwrap35(payload) {
5658
5774
  if (payload && typeof payload === "object") {
5659
5775
  const p = payload;
5660
5776
  for (const k of ["data", "project_auth", "config", "items"]) {
@@ -5663,7 +5779,7 @@ function unwrap34(payload) {
5663
5779
  }
5664
5780
  return payload;
5665
5781
  }
5666
- function stripUndefined18(input) {
5782
+ function stripUndefined19(input) {
5667
5783
  return Object.fromEntries(
5668
5784
  Object.entries(input).filter(([, v]) => v !== void 0)
5669
5785
  );
@@ -5679,13 +5795,13 @@ var ProjectAuth = class {
5679
5795
  "/project-auth/status",
5680
5796
  resourcePayload(params)
5681
5797
  );
5682
- return unwrap34(data);
5798
+ return unwrap35(data);
5683
5799
  }
5684
5800
  /** Enable project auth. */
5685
5801
  async enable(params) {
5686
- const body3 = requestBody(params);
5687
- const data = await this.http.post("/project-auth/enable", body3);
5688
- return unwrap34(data);
5802
+ const body4 = requestBody(params);
5803
+ const data = await this.http.post("/project-auth/enable", body4);
5804
+ return unwrap35(data);
5689
5805
  }
5690
5806
  /** Disable project auth. */
5691
5807
  async disable(params) {
@@ -5693,18 +5809,18 @@ var ProjectAuth = class {
5693
5809
  "/project-auth/disable",
5694
5810
  resourcePayload(params)
5695
5811
  );
5696
- return unwrap34(data);
5812
+ return unwrap35(data);
5697
5813
  }
5698
5814
  /** Update project-auth configuration. */
5699
5815
  async update(params) {
5700
- const body3 = requestBody(params);
5701
- const data = await this.http.patch("/project-auth/config", body3);
5702
- return unwrap34(data);
5816
+ const body4 = requestBody(params);
5817
+ const data = await this.http.patch("/project-auth/config", body4);
5818
+ return unwrap35(data);
5703
5819
  }
5704
5820
  };
5705
5821
 
5706
5822
  // src/resources/project-integrations.ts
5707
- function unwrap35(payload) {
5823
+ function unwrap36(payload) {
5708
5824
  if (payload && typeof payload === "object") {
5709
5825
  const p = payload;
5710
5826
  for (const k of ["data", "project_integrations", "catalog", "items"]) {
@@ -5714,11 +5830,11 @@ function unwrap35(payload) {
5714
5830
  return payload;
5715
5831
  }
5716
5832
  function listItems9(payload) {
5717
- const result = unwrap35(payload);
5833
+ const result = unwrap36(payload);
5718
5834
  if (Array.isArray(result)) return result;
5719
5835
  return [];
5720
5836
  }
5721
- function stripUndefined19(input) {
5837
+ function stripUndefined20(input) {
5722
5838
  return Object.fromEntries(
5723
5839
  Object.entries(input).filter(([, v]) => v !== void 0)
5724
5840
  );
@@ -5735,7 +5851,7 @@ var ProjectIntegrations = class {
5735
5851
  http;
5736
5852
  /** List project integrations. */
5737
5853
  async list(params = {}) {
5738
- const query2 = stripUndefined19(params);
5854
+ const query2 = stripUndefined20(params);
5739
5855
  const data = await this.http.get("/project-integrations", query2);
5740
5856
  return listItems9(data);
5741
5857
  }
@@ -5749,22 +5865,22 @@ var ProjectIntegrations = class {
5749
5865
  const data = await this.http.get(
5750
5866
  `/project-integrations/${integrationId}`
5751
5867
  );
5752
- return unwrap35(data);
5868
+ return unwrap36(data);
5753
5869
  }
5754
5870
  /** Create a project integration. */
5755
5871
  async create(params) {
5756
- const body3 = stripUndefObj2(params);
5757
- const data = await this.http.post("/project-integrations", body3);
5758
- return unwrap35(data);
5872
+ const body4 = stripUndefObj2(params);
5873
+ const data = await this.http.post("/project-integrations", body4);
5874
+ return unwrap36(data);
5759
5875
  }
5760
5876
  /** Update a project integration. */
5761
5877
  async update(integrationId, params) {
5762
- const body3 = stripUndefObj2(params);
5878
+ const body4 = stripUndefObj2(params);
5763
5879
  const data = await this.http.patch(
5764
5880
  `/project-integrations/${integrationId}`,
5765
- body3
5881
+ body4
5766
5882
  );
5767
- return unwrap35(data);
5883
+ return unwrap36(data);
5768
5884
  }
5769
5885
  /** Delete a project integration. */
5770
5886
  async delete(integrationId) {
@@ -5773,7 +5889,7 @@ var ProjectIntegrations = class {
5773
5889
  };
5774
5890
 
5775
5891
  // src/resources/provider-defaults.ts
5776
- function unwrap36(data) {
5892
+ function unwrap37(data) {
5777
5893
  if (data && typeof data === "object") {
5778
5894
  const d = data;
5779
5895
  for (const k of ["data", "defaults", "provider_defaults", "config"]) {
@@ -5789,7 +5905,7 @@ var ProviderDefaults = class {
5789
5905
  http;
5790
5906
  /** Get the current fleet-wide provider defaults. */
5791
5907
  async list() {
5792
- return unwrap36(await this.http.get("/admin/provider-defaults"));
5908
+ return unwrap37(await this.http.get("/admin/provider-defaults"));
5793
5909
  }
5794
5910
  /** Return the defaults entry for a single provider, or {} if missing. */
5795
5911
  async get(provider) {
@@ -5802,29 +5918,29 @@ var ProviderDefaults = class {
5802
5918
  }
5803
5919
  /** Replace the fleet-wide defaults (PUT /admin/provider-defaults). */
5804
5920
  async update(opts) {
5805
- const body3 = Object.fromEntries(
5921
+ const body4 = Object.fromEntries(
5806
5922
  Object.entries(opts).filter(([, v]) => v !== void 0)
5807
5923
  );
5808
- return unwrap36(
5809
- await this.http.put("/admin/provider-defaults", body3)
5924
+ return unwrap37(
5925
+ await this.http.put("/admin/provider-defaults", body4)
5810
5926
  );
5811
5927
  }
5812
5928
  // ── Per-tenant overrides ────────────────────────────────────────────────
5813
5929
  async getTenant(tenantId) {
5814
- return unwrap36(
5930
+ return unwrap37(
5815
5931
  await this.http.get(
5816
5932
  `/admin/tenants/${tenantId}/provider-config`
5817
5933
  )
5818
5934
  );
5819
5935
  }
5820
5936
  async setTenant(tenantId, opts) {
5821
- const body3 = Object.fromEntries(
5937
+ const body4 = Object.fromEntries(
5822
5938
  Object.entries(opts).filter(([, v]) => v !== void 0)
5823
5939
  );
5824
- return unwrap36(
5940
+ return unwrap37(
5825
5941
  await this.http.put(
5826
5942
  `/admin/tenants/${tenantId}/provider-config`,
5827
- body3
5943
+ body4
5828
5944
  )
5829
5945
  );
5830
5946
  }
@@ -5834,7 +5950,7 @@ var ProviderDefaults = class {
5834
5950
  };
5835
5951
 
5836
5952
  // src/resources/regions.ts
5837
- function unwrap37(payload) {
5953
+ function unwrap38(payload) {
5838
5954
  if (payload && typeof payload === "object") {
5839
5955
  const p = payload;
5840
5956
  for (const k of [
@@ -5851,7 +5967,7 @@ function unwrap37(payload) {
5851
5967
  return payload;
5852
5968
  }
5853
5969
  function listItems10(payload) {
5854
- const result = unwrap37(payload);
5970
+ const result = unwrap38(payload);
5855
5971
  if (Array.isArray(result)) return result;
5856
5972
  return [];
5857
5973
  }
@@ -5873,7 +5989,7 @@ var Regions = class {
5873
5989
  /** Get static compute pricing data. */
5874
5990
  async pricing() {
5875
5991
  const data = await this.http.get("/compute/pricing");
5876
- return unwrap37(data);
5992
+ return unwrap38(data);
5877
5993
  }
5878
5994
  /** List community computer templates. */
5879
5995
  async listTemplates() {
@@ -5885,18 +6001,18 @@ var Regions = class {
5885
6001
  const data = await this.http.get(
5886
6002
  `/compute/templates/${templateId}`
5887
6003
  );
5888
- return unwrap37(data);
6004
+ return unwrap38(data);
5889
6005
  }
5890
6006
  };
5891
6007
 
5892
6008
  // src/resources/runtime-env.ts
5893
- function unwrap38(payload) {
6009
+ function unwrap39(payload) {
5894
6010
  if (payload !== null && typeof payload === "object" && "data" in payload && payload.data !== void 0) {
5895
6011
  return payload.data;
5896
6012
  }
5897
6013
  return payload;
5898
6014
  }
5899
- function body2(params) {
6015
+ function body3(params) {
5900
6016
  return Object.fromEntries(
5901
6017
  Object.entries({
5902
6018
  scope: params.scope,
@@ -5943,11 +6059,11 @@ var RuntimeEnv = class {
5943
6059
  "/runtime-env",
5944
6060
  query(params)
5945
6061
  );
5946
- return unwrap38(response).map(normalize2);
6062
+ return unwrap39(response).map(normalize2);
5947
6063
  }
5948
6064
  async get(id) {
5949
6065
  return normalize2(
5950
- unwrap38(
6066
+ unwrap39(
5951
6067
  await this.http.get(
5952
6068
  `/runtime-env/${encodeURIComponent(id)}`
5953
6069
  )
@@ -5956,10 +6072,10 @@ var RuntimeEnv = class {
5956
6072
  }
5957
6073
  async set(params) {
5958
6074
  return normalize2(
5959
- unwrap38(
6075
+ unwrap39(
5960
6076
  await this.http.post(
5961
6077
  "/runtime-env",
5962
- body2(params)
6078
+ body3(params)
5963
6079
  )
5964
6080
  )
5965
6081
  );
@@ -5983,7 +6099,7 @@ var AGENT_WORKSPACE_TIMEOUT_SEC = 86400;
5983
6099
  var AGENT_WORKSPACE_IDLE_TIMEOUT_SEC = 1800;
5984
6100
  var AGENT_WORKSPACE_SNAPSHOT_EXPIRATION_DAYS = 30;
5985
6101
  var AGENT_WORKSPACE_KEEP_LAST_SNAPSHOTS = 1;
5986
- function unwrap39(payload) {
6102
+ function unwrap40(payload) {
5987
6103
  if (payload !== null && typeof payload === "object" && "data" in payload && payload.data !== void 0) {
5988
6104
  return payload.data;
5989
6105
  }
@@ -6030,7 +6146,7 @@ function createBody(params = {}) {
6030
6146
  if (keepLastSnapshots !== void 0) {
6031
6147
  metadata.keep_last_snapshots = keepLastSnapshots;
6032
6148
  }
6033
- return stripUndefined20({
6149
+ return stripUndefined21({
6034
6150
  template_id: templateId,
6035
6151
  cpu_count: params.cpuCount ?? params.cpu_count,
6036
6152
  memory_mb: params.memoryMb ?? params.memory_mb,
@@ -6060,14 +6176,14 @@ function createBody(params = {}) {
6060
6176
  });
6061
6177
  }
6062
6178
  function execBody(command, options = {}) {
6063
- return stripUndefined20({
6179
+ return stripUndefined21({
6064
6180
  command,
6065
6181
  cwd: options.cwd ?? options.workingDir ?? options.working_dir,
6066
6182
  env: options.env,
6067
6183
  timeout: options.timeout ?? options.timeoutSec ?? options.timeout_sec
6068
6184
  });
6069
6185
  }
6070
- function stripUndefined20(input) {
6186
+ function stripUndefined21(input) {
6071
6187
  return Object.fromEntries(
6072
6188
  Object.entries(input).filter(([, value]) => value !== void 0)
6073
6189
  );
@@ -6206,11 +6322,11 @@ var SandboxTerminal = class {
6206
6322
  }
6207
6323
  sandbox;
6208
6324
  async create(params = {}) {
6209
- const body3 = Object.fromEntries(
6325
+ const body4 = Object.fromEntries(
6210
6326
  Object.entries(params).filter(([, v]) => v !== void 0)
6211
6327
  );
6212
- const response = unwrap39(
6213
- await this.sandbox.http.post(`/sandboxes/${this.sandbox.id}/terminal`, body3)
6328
+ const response = unwrap40(
6329
+ await this.sandbox.http.post(`/sandboxes/${this.sandbox.id}/terminal`, body4)
6214
6330
  );
6215
6331
  return response;
6216
6332
  }
@@ -6252,21 +6368,21 @@ var SandboxPreviews = class {
6252
6368
  return [];
6253
6369
  }
6254
6370
  async create(port, opts = {}) {
6255
- const body3 = {
6371
+ const body4 = {
6256
6372
  port,
6257
6373
  ...Object.fromEntries(
6258
6374
  Object.entries(opts).filter(([, v]) => v !== void 0)
6259
6375
  )
6260
6376
  };
6261
- return unwrap39(
6377
+ return unwrap40(
6262
6378
  await this.http.post(
6263
6379
  `/sandboxes/${this.sandbox.id}/previews`,
6264
- body3
6380
+ body4
6265
6381
  )
6266
6382
  );
6267
6383
  }
6268
6384
  async get(previewId) {
6269
- return unwrap39(
6385
+ return unwrap40(
6270
6386
  await this.http.get(
6271
6387
  `/sandboxes/${this.sandbox.id}/previews/${previewId}`
6272
6388
  )
@@ -6279,7 +6395,7 @@ var SandboxPreviews = class {
6279
6395
  }
6280
6396
  /** Mint a share token for previewId. */
6281
6397
  async share(previewId, opts = {}) {
6282
- return unwrap39(
6398
+ return unwrap40(
6283
6399
  await this.http.post(
6284
6400
  `/sandboxes/${this.sandbox.id}/previews/${previewId}/share`,
6285
6401
  { ttl_seconds: opts.ttl_seconds ?? opts.expires_in_sec ?? 3600 }
@@ -6348,7 +6464,7 @@ var SandboxTags = class {
6348
6464
  sandbox;
6349
6465
  /** Replace the full tag list with tags. */
6350
6466
  async set(tags) {
6351
- return unwrap39(
6467
+ return unwrap40(
6352
6468
  await this.sandbox.http.patch(`/sandboxes/${this.sandbox.id}/tags`, { tags })
6353
6469
  );
6354
6470
  }
@@ -6416,14 +6532,14 @@ var Sandbox = class _Sandbox {
6416
6532
  return this.data.template_id ?? this.data.image_id ?? "";
6417
6533
  }
6418
6534
  async refresh() {
6419
- this.data = unwrap39(
6535
+ this.data = unwrap40(
6420
6536
  await this.http.get(`/sandboxes/${this.id}`)
6421
6537
  );
6422
6538
  return this;
6423
6539
  }
6424
6540
  async runExec(command, options) {
6425
6541
  this.assertRunning("exec");
6426
- const response = unwrap39(
6542
+ const response = unwrap40(
6427
6543
  await this.http.post(
6428
6544
  `/sandboxes/${this.id}/exec`,
6429
6545
  execBody(command, options)
@@ -6467,11 +6583,11 @@ var Sandbox = class _Sandbox {
6467
6583
  );
6468
6584
  }
6469
6585
  async createExport(params) {
6470
- const body3 = typeof params === "string" ? { path: params } : Array.isArray(params) ? { paths: params } : params;
6471
- const response = unwrap39(
6586
+ const body4 = typeof params === "string" ? { path: params } : Array.isArray(params) ? { paths: params } : params;
6587
+ const response = unwrap40(
6472
6588
  await this.http.post(
6473
6589
  `/sandboxes/${this.id}/exports`,
6474
- body3
6590
+ body4
6475
6591
  )
6476
6592
  );
6477
6593
  return normalizeExport(response);
@@ -6493,7 +6609,7 @@ var Sandbox = class _Sandbox {
6493
6609
  }
6494
6610
  async listFiles(path = "/workspace") {
6495
6611
  this.assertRunning("files.list");
6496
- const response = unwrap39(
6612
+ const response = unwrap40(
6497
6613
  await this.http.get(
6498
6614
  `/sandboxes/${this.id}/files`,
6499
6615
  { path }
@@ -6503,7 +6619,7 @@ var Sandbox = class _Sandbox {
6503
6619
  }
6504
6620
  async statFile(path) {
6505
6621
  this.assertRunning("files.stat");
6506
- return unwrap39(
6622
+ return unwrap40(
6507
6623
  await this.http.post(
6508
6624
  `/sandboxes/${this.id}/files/stat`,
6509
6625
  { path }
@@ -6512,7 +6628,7 @@ var Sandbox = class _Sandbox {
6512
6628
  }
6513
6629
  async expose(port) {
6514
6630
  this.assertRunning("expose");
6515
- const response = unwrap39(
6631
+ const response = unwrap40(
6516
6632
  await this.http.post(
6517
6633
  `/sandboxes/${this.id}/expose`,
6518
6634
  port === void 0 ? {} : { port }
@@ -6522,7 +6638,7 @@ var Sandbox = class _Sandbox {
6522
6638
  }
6523
6639
  async startTemplate(options = {}) {
6524
6640
  this.assertRunning("startTemplate");
6525
- return unwrap39(
6641
+ return unwrap40(
6526
6642
  await this.http.post(
6527
6643
  `/sandboxes/${this.id}/template/start`,
6528
6644
  options
@@ -6530,7 +6646,7 @@ var Sandbox = class _Sandbox {
6530
6646
  );
6531
6647
  }
6532
6648
  async getArtifacts() {
6533
- return unwrap39(
6649
+ return unwrap40(
6534
6650
  await this.http.get(
6535
6651
  `/sandboxes/${this.id}/artifacts`
6536
6652
  )
@@ -6541,7 +6657,7 @@ var Sandbox = class _Sandbox {
6541
6657
  `/sandboxes/${this.id}/logs`,
6542
6658
  { lines }
6543
6659
  );
6544
- return unwrap39(response);
6660
+ return unwrap40(response);
6545
6661
  }
6546
6662
  streamLogs() {
6547
6663
  return this.http.stream(
@@ -6550,7 +6666,7 @@ var Sandbox = class _Sandbox {
6550
6666
  }
6551
6667
  async createSnapshot(comment) {
6552
6668
  this.assertRunning("snapshots.create");
6553
- return unwrap39(
6669
+ return unwrap40(
6554
6670
  await this.http.post(
6555
6671
  `/sandboxes/${this.id}/snapshots`,
6556
6672
  comment ? { comment } : {}
@@ -6558,14 +6674,14 @@ var Sandbox = class _Sandbox {
6558
6674
  );
6559
6675
  }
6560
6676
  async listSnapshots() {
6561
- return unwrap39(
6677
+ return unwrap40(
6562
6678
  await this.http.get(
6563
6679
  `/sandboxes/${this.id}/snapshots`
6564
6680
  )
6565
6681
  );
6566
6682
  }
6567
6683
  async restoreSnapshot(snapshotId) {
6568
- const data = unwrap39(
6684
+ const data = unwrap40(
6569
6685
  await this.http.post(
6570
6686
  `/sandboxes/${this.id}/restore/${snapshotId}`,
6571
6687
  {}
@@ -6582,13 +6698,13 @@ var Sandbox = class _Sandbox {
6582
6698
  */
6583
6699
  async fork(opts = {}) {
6584
6700
  this.assertRunning("fork");
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(
6701
+ const body4 = {};
6702
+ if (opts.name !== void 0) body4.name = opts.name;
6703
+ if (opts.metadata !== void 0) body4.metadata = opts.metadata;
6704
+ const data = unwrap40(
6589
6705
  await this.http.post(
6590
6706
  `/sandboxes/${this.id}/fork`,
6591
- body3
6707
+ body4
6592
6708
  )
6593
6709
  );
6594
6710
  return new _Sandbox(this.http, data);
@@ -6607,7 +6723,7 @@ var Sandbox = class _Sandbox {
6607
6723
  if (keepLastSnapshots !== void 0) {
6608
6724
  metadata.keep_last_snapshots = keepLastSnapshots;
6609
6725
  }
6610
- const body3 = stripUndefined20({
6726
+ const body4 = stripUndefined21({
6611
6727
  name: params.name,
6612
6728
  slug: params.slug,
6613
6729
  tags: params.tags,
@@ -6616,17 +6732,17 @@ var Sandbox = class _Sandbox {
6616
6732
  timeout_sec: params.timeout_sec ?? params.timeoutSec,
6617
6733
  idle_timeout_sec: params.idle_timeout_sec ?? params.idleTimeoutSec
6618
6734
  });
6619
- const data = unwrap39(
6735
+ const data = unwrap40(
6620
6736
  await this.http.patch(
6621
6737
  `/sandboxes/${this.id}`,
6622
- body3
6738
+ body4
6623
6739
  )
6624
6740
  );
6625
6741
  this.data = data;
6626
6742
  return this;
6627
6743
  }
6628
6744
  async extend(timeoutSec) {
6629
- const data = unwrap39(
6745
+ const data = unwrap40(
6630
6746
  await this.http.post(
6631
6747
  `/sandboxes/${this.id}/extend`,
6632
6748
  { timeout_sec: timeoutSec }
@@ -6649,7 +6765,7 @@ var Sandbox = class _Sandbox {
6649
6765
  return raw;
6650
6766
  }
6651
6767
  async pause() {
6652
- const data = unwrap39(
6768
+ const data = unwrap40(
6653
6769
  await this.http.post(
6654
6770
  `/sandboxes/${this.id}/pause`,
6655
6771
  {}
@@ -6659,7 +6775,7 @@ var Sandbox = class _Sandbox {
6659
6775
  return this;
6660
6776
  }
6661
6777
  async resume() {
6662
- const data = unwrap39(
6778
+ const data = unwrap40(
6663
6779
  await this.http.post(
6664
6780
  `/sandboxes/${this.id}/resume`,
6665
6781
  {}
@@ -6672,7 +6788,7 @@ var Sandbox = class _Sandbox {
6672
6788
  const idempotencyKey11 = params.idempotencyKey ?? params.idempotency_key;
6673
6789
  const requestOptions = {
6674
6790
  method: "POST",
6675
- body: stripUndefined20({
6791
+ body: stripUndefined21({
6676
6792
  name: params.name,
6677
6793
  deployment_id: params.deploymentId ?? params.deployment_id,
6678
6794
  output_path: params.outputPath ?? params.output_path ?? params.path ?? params.sourcePath ?? params.source_path,
@@ -6695,7 +6811,7 @@ var Sandbox = class _Sandbox {
6695
6811
  if (idempotencyKey11) {
6696
6812
  requestOptions.headers = { "Idempotency-Key": idempotencyKey11 };
6697
6813
  }
6698
- return unwrap39(
6814
+ return unwrap40(
6699
6815
  await this.http.request(
6700
6816
  `/sandboxes/${this.id}/deploy`,
6701
6817
  requestOptions
@@ -6707,7 +6823,7 @@ var Sandbox = class _Sandbox {
6707
6823
  }
6708
6824
  /** Check readiness of the sandbox (GET /sandboxes/:id/readiness). */
6709
6825
  async readiness() {
6710
- return unwrap39(
6826
+ return unwrap40(
6711
6827
  await this.http.get(
6712
6828
  `/sandboxes/${this.id}/readiness`
6713
6829
  )
@@ -6875,7 +6991,7 @@ var Sandboxes = class {
6875
6991
  if (idempotencyKey11) {
6876
6992
  requestOptions.headers = { "Idempotency-Key": idempotencyKey11 };
6877
6993
  }
6878
- const data = unwrap39(
6994
+ const data = unwrap40(
6879
6995
  await this.http.request(
6880
6996
  "/sandboxes",
6881
6997
  requestOptions
@@ -6894,7 +7010,7 @@ var Sandboxes = class {
6894
7010
  return listItems11(data).map((item) => new Sandbox(this.http, item));
6895
7011
  }
6896
7012
  async get(id) {
6897
- const data = unwrap39(
7013
+ const data = unwrap40(
6898
7014
  await this.http.get(`/sandboxes/${id}`)
6899
7015
  );
6900
7016
  return new Sandbox(this.http, data);
@@ -6903,7 +7019,7 @@ var Sandboxes = class {
6903
7019
  return this.get(id);
6904
7020
  }
6905
7021
  async getByName(name) {
6906
- const data = unwrap39(
7022
+ const data = unwrap40(
6907
7023
  await this.http.get(
6908
7024
  `/sandboxes/by-name/${encodeURIComponent(name)}`
6909
7025
  )
@@ -6960,7 +7076,7 @@ var Sandboxes = class {
6960
7076
  async createTemplate(params) {
6961
7077
  const response = await this.http.post(
6962
7078
  "/sandbox-templates",
6963
- stripUndefined20({
7079
+ stripUndefined21({
6964
7080
  name: params.name,
6965
7081
  slug: params.slug,
6966
7082
  description: params.description,
@@ -6968,29 +7084,29 @@ var Sandboxes = class {
6968
7084
  metadata: params.metadata
6969
7085
  })
6970
7086
  );
6971
- return unwrap39(response);
7087
+ return unwrap40(response);
6972
7088
  }
6973
7089
  async createTemplateBuild(templateId, params = {}) {
6974
7090
  const response = await this.http.post(
6975
7091
  `/sandbox-templates/${templateId}/builds`,
6976
- stripUndefined20({
7092
+ stripUndefined21({
6977
7093
  build_spec: params.buildSpec ?? params.build_spec,
6978
7094
  metadata: params.metadata
6979
7095
  })
6980
7096
  );
6981
- return unwrap39(response);
7097
+ return unwrap40(response);
6982
7098
  }
6983
7099
  async listTemplateBuilds(templateId) {
6984
7100
  const response = await this.http.get(
6985
7101
  `/sandbox-templates/${templateId}/builds`
6986
7102
  );
6987
- return unwrap39(response);
7103
+ return unwrap40(response);
6988
7104
  }
6989
7105
  async getTemplateBuild(buildId) {
6990
7106
  const response = await this.http.get(
6991
7107
  `/sandbox-template-builds/${buildId}`
6992
7108
  );
6993
- return unwrap39(response);
7109
+ return unwrap40(response);
6994
7110
  }
6995
7111
  };
6996
7112
  function toBase642(bytes) {
@@ -7002,7 +7118,7 @@ function toBase642(bytes) {
7002
7118
  }
7003
7119
  return btoa(binary);
7004
7120
  }
7005
- function unwrap40(payload) {
7121
+ function unwrap41(payload) {
7006
7122
  if (payload && typeof payload === "object" && "data" in payload) {
7007
7123
  return payload.data;
7008
7124
  }
@@ -7018,7 +7134,7 @@ function listItems12(payload, candidateKeys = ["data", "templates", "builds", "i
7018
7134
  }
7019
7135
  return [];
7020
7136
  }
7021
- function stripUndefined21(input) {
7137
+ function stripUndefined22(input) {
7022
7138
  return Object.fromEntries(
7023
7139
  Object.entries(input).filter(([, v]) => v !== void 0)
7024
7140
  );
@@ -7045,7 +7161,7 @@ var SandboxTemplates = class {
7045
7161
  const data = await this.http.get(
7046
7162
  `/sandbox-templates/${templateId}`
7047
7163
  );
7048
- return unwrap40(data);
7164
+ return unwrap41(data);
7049
7165
  }
7050
7166
  async create(params) {
7051
7167
  const {
@@ -7055,17 +7171,17 @@ var SandboxTemplates = class {
7055
7171
  name,
7056
7172
  ...rest
7057
7173
  } = params;
7058
- const body3 = stripUndefined21({
7174
+ const body4 = stripUndefined22({
7059
7175
  name,
7060
7176
  build_spec: buildSpec ?? build_spec,
7061
7177
  ...rest
7062
7178
  });
7063
7179
  const data = await this.http.request("/sandbox-templates", {
7064
7180
  method: "POST",
7065
- body: body3,
7181
+ body: body4,
7066
7182
  headers: { "Idempotency-Key": idempotencyKey8(ikey) }
7067
7183
  });
7068
- return unwrap40(data);
7184
+ return unwrap41(data);
7069
7185
  }
7070
7186
  async buildSpecSchema() {
7071
7187
  const data = await this.http.get("/sandbox-templates/build-spec");
@@ -7089,21 +7205,21 @@ var SandboxTemplates = class {
7089
7205
  }
7090
7206
  async createBuild(templateId, params = {}) {
7091
7207
  const { idempotencyKey: ikey, ...rest } = params;
7092
- const body3 = stripUndefined21(rest);
7208
+ const body4 = stripUndefined22(rest);
7093
7209
  const data = await this.http.request(
7094
7210
  `/sandbox-templates/${templateId}/builds`,
7095
7211
  {
7096
7212
  method: "POST",
7097
- body: body3,
7213
+ body: body4,
7098
7214
  headers: { "Idempotency-Key": idempotencyKey8(ikey) }
7099
7215
  }
7100
7216
  );
7101
- return unwrap40(data);
7217
+ return unwrap41(data);
7102
7218
  }
7103
7219
  };
7104
7220
 
7105
7221
  // src/resources/settings.ts
7106
- function unwrap41(payload) {
7222
+ function unwrap42(payload) {
7107
7223
  if (payload && typeof payload === "object") {
7108
7224
  const p = payload;
7109
7225
  for (const k of [
@@ -7119,11 +7235,11 @@ function unwrap41(payload) {
7119
7235
  return payload;
7120
7236
  }
7121
7237
  function listItems13(payload) {
7122
- const result = unwrap41(payload);
7238
+ const result = unwrap42(payload);
7123
7239
  if (Array.isArray(result)) return result;
7124
7240
  return [];
7125
7241
  }
7126
- function stripUndefined22(input) {
7242
+ function stripUndefined23(input) {
7127
7243
  return Object.fromEntries(
7128
7244
  Object.entries(input).filter(([, v]) => v !== void 0)
7129
7245
  );
@@ -7136,46 +7252,46 @@ var Settings = class {
7136
7252
  /** Get the current tenant settings. */
7137
7253
  async get() {
7138
7254
  const data = await this.http.get("/settings");
7139
- return unwrap41(data);
7255
+ return unwrap42(data);
7140
7256
  }
7141
7257
  /** Update tenant settings. */
7142
7258
  async update(params) {
7143
- const body3 = stripUndefined22(params);
7144
- const data = await this.http.put("/settings", body3);
7145
- return unwrap41(data);
7259
+ const body4 = stripUndefined23(params);
7260
+ const data = await this.http.put("/settings", body4);
7261
+ return unwrap42(data);
7146
7262
  }
7147
7263
  // ── Branding ──────────────────────────────────────────────────────────────
7148
7264
  /** Get tenant branding (logo, colors, custom wordmark). */
7149
7265
  async getBranding() {
7150
7266
  const data = await this.http.get("/settings/branding");
7151
- return unwrap41(data);
7267
+ return unwrap42(data);
7152
7268
  }
7153
7269
  /** Update tenant branding. */
7154
7270
  async updateBranding(params) {
7155
- const body3 = stripUndefined22(params);
7156
- const data = await this.http.put("/settings/branding", body3);
7157
- return unwrap41(data);
7271
+ const body4 = stripUndefined23(params);
7272
+ const data = await this.http.put("/settings/branding", body4);
7273
+ return unwrap42(data);
7158
7274
  }
7159
7275
  // ── Read-only reference data ───────────────────────────────────────────────
7160
7276
  /** Get tenant-scoped compute pricing. */
7161
7277
  async computePricing() {
7162
7278
  const data = await this.http.get("/settings/compute-pricing");
7163
- return unwrap41(data);
7279
+ return unwrap42(data);
7164
7280
  }
7165
7281
  /** Get tenant-scoped GPU pricing. */
7166
7282
  async gpuPricing() {
7167
7283
  const data = await this.http.get("/settings/gpu-pricing");
7168
- return unwrap41(data);
7284
+ return unwrap42(data);
7169
7285
  }
7170
7286
  /** List models available to this tenant. */
7171
7287
  async availableModels() {
7172
7288
  const data = await this.http.get("/settings/available-models");
7173
- return unwrap41(data);
7289
+ return unwrap42(data);
7174
7290
  }
7175
7291
  /** List regions enabled for this tenant. */
7176
7292
  async regions() {
7177
7293
  const data = await this.http.get("/settings/regions");
7178
- return unwrap41(data);
7294
+ return unwrap42(data);
7179
7295
  }
7180
7296
  // ── BYOK provider keys ────────────────────────────────────────────────────
7181
7297
  /** List tenant-level BYOK provider keys (Anthropic, OpenAI, etc.). */
@@ -7185,12 +7301,12 @@ var Settings = class {
7185
7301
  }
7186
7302
  /** Create or update a BYOK provider key. */
7187
7303
  async upsertProviderKey(provider, params) {
7188
- const body3 = stripUndefined22(params);
7304
+ const body4 = stripUndefined23(params);
7189
7305
  const data = await this.http.put(
7190
7306
  `/settings/provider-keys/${provider}`,
7191
- body3
7307
+ body4
7192
7308
  );
7193
- return unwrap41(data);
7309
+ return unwrap42(data);
7194
7310
  }
7195
7311
  /** Delete a BYOK provider key. */
7196
7312
  async deleteProviderKey(provider) {
@@ -7199,7 +7315,7 @@ var Settings = class {
7199
7315
  };
7200
7316
 
7201
7317
  // src/resources/snapshots-standalone.ts
7202
- function unwrap42(data) {
7318
+ function unwrap43(data) {
7203
7319
  if (data && typeof data === "object") {
7204
7320
  const d = data;
7205
7321
  for (const k of ["data", "snapshots", "items"]) {
@@ -7230,14 +7346,14 @@ var SnapshotsStandalone = class {
7230
7346
  return unwrapList12(await this.http.get("/admin/snapshots", query2));
7231
7347
  }
7232
7348
  async get(snapshotId) {
7233
- return unwrap42(
7349
+ return unwrap43(
7234
7350
  await this.http.get(`/admin/snapshots/${snapshotId}`)
7235
7351
  );
7236
7352
  }
7237
7353
  };
7238
7354
 
7239
7355
  // src/resources/storage.ts
7240
- function unwrap43(payload) {
7356
+ function unwrap44(payload) {
7241
7357
  if (payload && typeof payload === "object" && "data" in payload) {
7242
7358
  return payload.data;
7243
7359
  }
@@ -7253,7 +7369,7 @@ function listItems14(payload, candidateKeys = ["data", "buckets", "objects", "it
7253
7369
  }
7254
7370
  return [];
7255
7371
  }
7256
- function stripUndefined23(input) {
7372
+ function stripUndefined24(input) {
7257
7373
  return Object.fromEntries(
7258
7374
  Object.entries(input).filter(([, v]) => v !== void 0)
7259
7375
  );
@@ -7270,24 +7386,24 @@ var Storage = class {
7270
7386
  }
7271
7387
  async createBucket(params) {
7272
7388
  const { name, public: isPublic, visibility, ...rest } = params;
7273
- const body3 = stripUndefined23({
7389
+ const body4 = stripUndefined24({
7274
7390
  name,
7275
7391
  visibility: visibility ?? (isPublic === void 0 ? void 0 : isPublic ? "public" : "private"),
7276
7392
  ...rest
7277
7393
  });
7278
- const data = await this.http.post("/storage/buckets", body3);
7279
- return unwrap43(data);
7394
+ const data = await this.http.post("/storage/buckets", body4);
7395
+ return unwrap44(data);
7280
7396
  }
7281
7397
  async getBucket(bucketId) {
7282
7398
  const data = await this.http.get(`/storage/buckets/${bucketId}`);
7283
- return unwrap43(data);
7399
+ return unwrap44(data);
7284
7400
  }
7285
7401
  async deleteBucket(bucketId) {
7286
7402
  await this.http.delete(`/storage/buckets/${bucketId}`);
7287
7403
  }
7288
7404
  // ── Objects ────────────────────────────────────────────────────────────────
7289
7405
  async listObjects(bucketId, params = {}) {
7290
- const query2 = stripUndefined23({
7406
+ const query2 = stripUndefined24({
7291
7407
  prefix: params.prefix,
7292
7408
  max_keys: params.max_keys ?? params.maxKeys ?? params.limit,
7293
7409
  marker: params.marker ?? params.cursor
@@ -7321,16 +7437,16 @@ var Storage = class {
7321
7437
  // ── Presigned URLs ─────────────────────────────────────────────────────────
7322
7438
  async presign(bucketId, params) {
7323
7439
  const operationMethod = params.operation === "put" ? "PUT" : params.operation === "get" ? "GET" : void 0;
7324
- const body3 = stripUndefined23({
7440
+ const body4 = stripUndefined24({
7325
7441
  key: params.key,
7326
7442
  method: params.method ?? operationMethod ?? "GET",
7327
7443
  expires_in: params.expiresIn ?? params.expires_in ?? params.expiresInSec ?? params.expires_in_sec ?? 3600
7328
7444
  });
7329
7445
  const data = await this.http.post(
7330
7446
  `/storage/buckets/${bucketId}/presign`,
7331
- body3
7447
+ body4
7332
7448
  );
7333
- return unwrap43(data);
7449
+ return unwrap44(data);
7334
7450
  }
7335
7451
  };
7336
7452
 
@@ -7420,7 +7536,7 @@ var OrgInvites = class {
7420
7536
  };
7421
7537
 
7422
7538
  // src/resources/tenant.ts
7423
- function unwrap44(payload) {
7539
+ function unwrap45(payload) {
7424
7540
  if (payload && typeof payload === "object") {
7425
7541
  const p = payload;
7426
7542
  for (const k of ["data", "tenant", "branding", "items"]) {
@@ -7429,7 +7545,7 @@ function unwrap44(payload) {
7429
7545
  }
7430
7546
  return payload;
7431
7547
  }
7432
- function stripUndefined24(input) {
7548
+ function stripUndefined25(input) {
7433
7549
  return Object.fromEntries(
7434
7550
  Object.entries(input).filter(([, v]) => v !== void 0)
7435
7551
  );
@@ -7442,14 +7558,14 @@ var PreviewDomain = class {
7442
7558
  /** Get the tenant's white-label preview domain settings. */
7443
7559
  async get() {
7444
7560
  const data = await this.http.get("/tenant/preview-domain");
7445
- return unwrap44(data);
7561
+ return unwrap45(data);
7446
7562
  }
7447
7563
  /** Set the tenant's white-label preview domain. */
7448
7564
  async set(domain) {
7449
7565
  const data = await this.http.put("/tenant/preview-domain", {
7450
7566
  preview_domain: domain
7451
7567
  });
7452
- return unwrap44(data);
7568
+ return unwrap45(data);
7453
7569
  }
7454
7570
  /** Re-run DNS verification for the configured preview domain. */
7455
7571
  async verify() {
@@ -7457,7 +7573,7 @@ var PreviewDomain = class {
7457
7573
  "/tenant/preview-domain/verify",
7458
7574
  {}
7459
7575
  );
7460
- return unwrap44(data);
7576
+ return unwrap45(data);
7461
7577
  }
7462
7578
  /** Remove the tenant's custom preview domain. */
7463
7579
  async delete() {
@@ -7472,14 +7588,14 @@ var Branding = class {
7472
7588
  /** Get tenant branding used by white-label hosted surfaces. */
7473
7589
  async get() {
7474
7590
  const data = await this.http.get("/tenant/branding");
7475
- return unwrap44(data);
7591
+ return unwrap45(data);
7476
7592
  }
7477
7593
  /** Update tenant branding used by white-label hosted surfaces. */
7478
7594
  async set(params) {
7479
7595
  const data = await this.http.put("/tenant/branding", {
7480
- branding: stripUndefined24(params)
7596
+ branding: stripUndefined25(params)
7481
7597
  });
7482
- return unwrap44(data);
7598
+ return unwrap45(data);
7483
7599
  }
7484
7600
  /** Reset tenant branding to platform defaults. */
7485
7601
  async delete() {
@@ -7501,7 +7617,7 @@ var Tenant = class {
7501
7617
  /** Get the current tenant's plan, limits, and live usage counters. */
7502
7618
  async current() {
7503
7619
  const data = await this.http.get("/tenant/plan");
7504
- return unwrap44(data);
7620
+ return unwrap45(data);
7505
7621
  }
7506
7622
  /** Convenience alias for `tenant.branding.get()`. */
7507
7623
  async getBranding() {
@@ -7518,7 +7634,7 @@ var Tenant = class {
7518
7634
  };
7519
7635
 
7520
7636
  // src/resources/usage.ts
7521
- function unwrap45(payload) {
7637
+ function unwrap46(payload) {
7522
7638
  if (payload && typeof payload === "object") {
7523
7639
  const p = payload;
7524
7640
  for (const k of ["data", "usage", "sessions", "summary", "items"]) {
@@ -7527,7 +7643,7 @@ function unwrap45(payload) {
7527
7643
  }
7528
7644
  return payload;
7529
7645
  }
7530
- function stripUndefined25(input) {
7646
+ function stripUndefined26(input) {
7531
7647
  return Object.fromEntries(
7532
7648
  Object.entries(input).filter(([, v]) => v !== void 0)
7533
7649
  );
@@ -7540,24 +7656,24 @@ var Usage = class {
7540
7656
  /** Get the current period usage summary. */
7541
7657
  async current() {
7542
7658
  const data = await this.http.get("/usage/summary");
7543
- return unwrap45(data);
7659
+ return unwrap46(data);
7544
7660
  }
7545
7661
  /** List per-session metering events. */
7546
7662
  async sessions(params = {}) {
7547
- const query2 = stripUndefined25(params);
7663
+ const query2 = stripUndefined26(params);
7548
7664
  const data = await this.http.get("/usage/sessions", query2);
7549
- const result = unwrap45(data);
7665
+ const result = unwrap46(data);
7550
7666
  if (Array.isArray(result)) return result;
7551
7667
  return [];
7552
7668
  }
7553
7669
  /** Get a usage report for a period. */
7554
7670
  async report(params = {}) {
7555
- const query2 = stripUndefined25(params);
7671
+ const query2 = stripUndefined26(params);
7556
7672
  const data = await this.http.get("/usage/summary", query2);
7557
- return unwrap45(data);
7673
+ return unwrap46(data);
7558
7674
  }
7559
7675
  };
7560
- function unwrap46(payload) {
7676
+ function unwrap47(payload) {
7561
7677
  if (payload && typeof payload === "object" && "data" in payload) {
7562
7678
  return payload.data;
7563
7679
  }
@@ -7573,7 +7689,7 @@ function listItems15(payload, candidateKeys = ["data", "volumes", "items"]) {
7573
7689
  }
7574
7690
  return [];
7575
7691
  }
7576
- function stripUndefined26(input) {
7692
+ function stripUndefined27(input) {
7577
7693
  return Object.fromEntries(
7578
7694
  Object.entries(input).filter(([, v]) => v !== void 0)
7579
7695
  );
@@ -7587,32 +7703,32 @@ var Volumes = class {
7587
7703
  }
7588
7704
  http;
7589
7705
  async list(params = {}) {
7590
- const query2 = stripUndefined26({ ...params });
7706
+ const query2 = stripUndefined27({ ...params });
7591
7707
  const data = await this.http.get("/volumes", query2);
7592
7708
  return listItems15(data);
7593
7709
  }
7594
7710
  async get(volumeId) {
7595
7711
  const data = await this.http.get(`/volumes/${volumeId}`);
7596
- return unwrap46(data);
7712
+ return unwrap47(data);
7597
7713
  }
7598
7714
  async create(params) {
7599
7715
  const { idempotencyKey: ikey, sizeGb, ...rest } = params;
7600
- const body3 = stripUndefined26({
7716
+ const body4 = stripUndefined27({
7601
7717
  ...rest,
7602
7718
  size_gb: sizeGb ?? rest.size_gb
7603
7719
  });
7604
7720
  const data = await this.http.request("/volumes", {
7605
7721
  method: "POST",
7606
- body: body3,
7722
+ body: body4,
7607
7723
  headers: { "Idempotency-Key": idempotencyKey9(ikey) }
7608
7724
  });
7609
- return unwrap46(data);
7725
+ return unwrap47(data);
7610
7726
  }
7611
7727
  async delete(volumeId) {
7612
7728
  await this.http.delete(`/volumes/${volumeId}`);
7613
7729
  }
7614
7730
  };
7615
- function unwrap47(payload) {
7731
+ function unwrap48(payload) {
7616
7732
  if (payload && typeof payload === "object" && "data" in payload) {
7617
7733
  return payload.data;
7618
7734
  }
@@ -7628,7 +7744,7 @@ function listItems16(payload, candidateKeys = ["data", "webhooks", "deliveries",
7628
7744
  }
7629
7745
  return [];
7630
7746
  }
7631
- function stripUndefined27(input) {
7747
+ function stripUndefined28(input) {
7632
7748
  return Object.fromEntries(
7633
7749
  Object.entries(input).filter(([, v]) => v !== void 0)
7634
7750
  );
@@ -7636,12 +7752,12 @@ function stripUndefined27(input) {
7636
7752
  function idempotencyKey10(key) {
7637
7753
  return key ?? randomUUID();
7638
7754
  }
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);
7755
+ function bodyBuffer(body4) {
7756
+ if (Buffer.isBuffer(body4)) return body4;
7757
+ if (typeof body4 === "string") return Buffer.from(body4, "utf8");
7758
+ return Buffer.from(body4);
7643
7759
  }
7644
- function verifySignature(body3, header, secret, toleranceSec = 300) {
7760
+ function verifySignature(body4, header, secret, toleranceSec = 300) {
7645
7761
  const parts = Object.fromEntries(
7646
7762
  header.split(",").map((chunk) => chunk.split("=", 2)).filter(([key, value]) => key && value)
7647
7763
  );
@@ -7654,7 +7770,7 @@ function verifySignature(body3, header, secret, toleranceSec = 300) {
7654
7770
  if (ageSec > toleranceSec) {
7655
7771
  throw new Error("webhook timestamp too old");
7656
7772
  }
7657
- const rawBody = bodyBuffer(body3);
7773
+ const rawBody = bodyBuffer(body4);
7658
7774
  const signed = Buffer.concat([Buffer.from(`${timestamp}.`), rawBody]);
7659
7775
  const expected = createHmac("sha256", secret).update(signed).digest("hex");
7660
7776
  try {
@@ -7673,28 +7789,28 @@ var Webhooks = class {
7673
7789
  http;
7674
7790
  static verifySignature = verifySignature;
7675
7791
  async list(params = {}) {
7676
- const query2 = stripUndefined27({ ...params });
7792
+ const query2 = stripUndefined28({ ...params });
7677
7793
  const data = await this.http.get("/webhooks", query2);
7678
7794
  return listItems16(data);
7679
7795
  }
7680
7796
  async get(webhookId) {
7681
7797
  const data = await this.http.get(`/webhooks/${webhookId}`);
7682
- return unwrap47(data);
7798
+ return unwrap48(data);
7683
7799
  }
7684
7800
  async create(params) {
7685
7801
  const { idempotencyKey: ikey, ...rest } = params;
7686
- const body3 = stripUndefined27(rest);
7802
+ const body4 = stripUndefined28(rest);
7687
7803
  const data = await this.http.request("/webhooks", {
7688
7804
  method: "POST",
7689
- body: body3,
7805
+ body: body4,
7690
7806
  headers: { "Idempotency-Key": idempotencyKey10(ikey) }
7691
7807
  });
7692
- return unwrap47(data);
7808
+ return unwrap48(data);
7693
7809
  }
7694
7810
  async update(webhookId, params) {
7695
- const body3 = stripUndefined27(params);
7696
- const data = await this.http.patch(`/webhooks/${webhookId}`, body3);
7697
- return unwrap47(data);
7811
+ const body4 = stripUndefined28(params);
7812
+ const data = await this.http.patch(`/webhooks/${webhookId}`, body4);
7813
+ return unwrap48(data);
7698
7814
  }
7699
7815
  async delete(webhookId) {
7700
7816
  await this.http.delete(`/webhooks/${webhookId}`);
@@ -7707,7 +7823,7 @@ var Webhooks = class {
7707
7823
  headers: { "Idempotency-Key": idempotencyKey10(opts.idempotencyKey) }
7708
7824
  }
7709
7825
  );
7710
- return unwrap47(data);
7826
+ return unwrap48(data);
7711
7827
  }
7712
7828
  async deliveries(webhookId) {
7713
7829
  const data = await this.http.get(
@@ -7916,6 +8032,8 @@ var Miosa = class {
7916
8032
  mcp;
7917
8033
  /** Agent Runs — prompt dispatch into sandbox targets. */
7918
8034
  agentRuns;
8035
+ /** Agent Run Groups — durable multi-agent orchestration groups. */
8036
+ agentRunGroups;
7919
8037
  /** Agent runtime profiles — tenant/workspace defaults for sandbox/computer agents. */
7920
8038
  agentRuntimeProfiles;
7921
8039
  /** Inherited runtime env — tenant/workspace/project defaults for agent runtimes. */
@@ -8023,6 +8141,7 @@ var Miosa = class {
8023
8141
  this.externalKeys = new ExternalKeys(this.http);
8024
8142
  this.mcp = new Mcp(this.http);
8025
8143
  this.agentRuns = new AgentRuns(this.http);
8144
+ this.agentRunGroups = new AgentRunGroups(this.http);
8026
8145
  this.agentRuntimeProfiles = new AgentRuntimeProfiles(this.http);
8027
8146
  this.runtimeEnv = new RuntimeEnv(this.http);
8028
8147
  this.computers = new Computers(this.http);
@@ -8146,8 +8265,8 @@ var AppAuth = class {
8146
8265
  }
8147
8266
  });
8148
8267
  if (!resp.ok) {
8149
- const body3 = await resp.text();
8150
- throw new Error(`AppAuth me failed (${resp.status}): ${body3}`);
8268
+ const body4 = await resp.text();
8269
+ throw new Error(`AppAuth me failed (${resp.status}): ${body4}`);
8151
8270
  }
8152
8271
  return unwrapSession(await resp.json());
8153
8272
  }
@@ -8199,12 +8318,12 @@ var AppAuth = class {
8199
8318
  return payload;
8200
8319
  }
8201
8320
  // ── Private ──────────────────────────────────────────────────────────────────
8202
- async _post(action, body3) {
8321
+ async _post(action, body4) {
8203
8322
  const url = `${this.baseUrl}/app-auth/${this.resourceType}/${this.resourceId}/${action}`;
8204
8323
  const resp = await fetch(url, {
8205
8324
  method: "POST",
8206
8325
  headers: { "Content-Type": "application/json" },
8207
- body: JSON.stringify(body3)
8326
+ body: JSON.stringify(body4)
8208
8327
  });
8209
8328
  if (!resp.ok) {
8210
8329
  const text = await resp.text();
@@ -8214,6 +8333,6 @@ var AppAuth = class {
8214
8333
  }
8215
8334
  };
8216
8335
 
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 };
8336
+ export { Admin, AgentRunGroups, 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 };
8218
8337
  //# sourceMappingURL=index.js.map
8219
8338
  //# sourceMappingURL=index.js.map