@miosa/sdk 1.2.11 → 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,28 @@ 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
  }
739
835
  async artifacts(id) {
740
- const data = unwrap2(
836
+ const data = unwrap3(
741
837
  await this.http.get(
742
838
  `/agent-runs/${encodeURIComponent(id)}/artifacts`
743
839
  )
@@ -754,7 +850,7 @@ var AgentRuns = class {
754
850
  );
755
851
  }
756
852
  async run(params) {
757
- const body3 = stripUndefined({
853
+ const body4 = stripUndefined2({
758
854
  prompt: params.prompt,
759
855
  target_kind: params.targetKind,
760
856
  target_id: params.targetId,
@@ -769,13 +865,16 @@ var AgentRuns = class {
769
865
  env: params.env,
770
866
  agent_runtime_profile_id: params.agentRuntimeProfileId,
771
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,
772
871
  skip_agent_runtime_profile: params.skipAgentRuntimeProfile,
773
872
  metadata: params.metadata
774
873
  });
775
- return unwrap2(await this.http.post("/agent-runs", body3));
874
+ return unwrap3(await this.http.post("/agent-runs", body4));
776
875
  }
777
876
  async cancel(id) {
778
- return unwrap2(
877
+ return unwrap3(
779
878
  await this.http.post(
780
879
  `/agent-runs/${encodeURIComponent(id)}/cancel`,
781
880
  {}
@@ -785,7 +884,7 @@ var AgentRuns = class {
785
884
  };
786
885
 
787
886
  // src/resources/analytics.ts
788
- function unwrap3(payload) {
887
+ function unwrap4(payload) {
789
888
  if (payload && typeof payload === "object") {
790
889
  const p = payload;
791
890
  for (const k of ["data", "analytics", "series", "items"]) {
@@ -794,7 +893,7 @@ function unwrap3(payload) {
794
893
  }
795
894
  return payload;
796
895
  }
797
- function stripUndefined2(input) {
896
+ function stripUndefined3(input) {
798
897
  return Object.fromEntries(
799
898
  Object.entries(input).filter(([, v]) => v !== void 0)
800
899
  );
@@ -806,18 +905,18 @@ var Analytics = class {
806
905
  http;
807
906
  /** Get the platform analytics overview. */
808
907
  async overview(filters = {}) {
809
- const query2 = stripUndefined2(filters);
908
+ const query2 = stripUndefined3(filters);
810
909
  const data = await this.http.get("/analytics/overview", query2);
811
- return unwrap3(data);
910
+ return unwrap4(data);
812
911
  }
813
912
  /** Get a timeseries for a metric over a period. */
814
913
  async timeseries(params = {}) {
815
- const query2 = stripUndefined2(params);
914
+ const query2 = stripUndefined3(params);
816
915
  const data = await this.http.get("/analytics/timeseries", query2);
817
- return unwrap3(data);
916
+ return unwrap4(data);
818
917
  }
819
918
  };
820
- function unwrap4(payload) {
919
+ function unwrap5(payload) {
821
920
  if (payload && typeof payload === "object" && "data" in payload) {
822
921
  return payload.data;
823
922
  }
@@ -833,7 +932,7 @@ function listItems(payload, candidateKeys = ["data", "keys", "api_keys", "items"
833
932
  }
834
933
  return [];
835
934
  }
836
- function stripUndefined3(input) {
935
+ function stripUndefined4(input) {
837
936
  return Object.fromEntries(
838
937
  Object.entries(input).filter(([, v]) => v !== void 0)
839
938
  );
@@ -847,32 +946,32 @@ var ApiKeys = class {
847
946
  }
848
947
  http;
849
948
  async list(params = {}) {
850
- const query2 = stripUndefined3({ ...params });
949
+ const query2 = stripUndefined4({ ...params });
851
950
  const data = await this.http.get("/api-keys", query2);
852
951
  return listItems(data);
853
952
  }
854
953
  async create(params) {
855
954
  const { idempotencyKey: ikey, expiresAt, ...rest } = params;
856
- const body3 = stripUndefined3({
955
+ const body4 = stripUndefined4({
857
956
  ...rest,
858
957
  expires_at: expiresAt ?? rest.expires_at
859
958
  });
860
959
  const data = await this.http.request("/api-keys", {
861
960
  method: "POST",
862
- body: body3,
961
+ body: body4,
863
962
  headers: { "Idempotency-Key": idempotencyKey(ikey) }
864
963
  });
865
- return unwrap4(data);
964
+ return unwrap5(data);
866
965
  }
867
966
  /** POST /api/v1/api-keys/scoped — L2 delegation token bound to one external user. */
868
967
  async createScoped(params) {
869
- const body3 = stripUndefined3({
968
+ const body4 = stripUndefined4({
870
969
  external_user_id: params.externalUserId,
871
970
  scopes: params.scopes,
872
971
  expires_at: params.expiresAt
873
972
  });
874
- return unwrap4(
875
- await this.http.post("/api-keys/scoped", body3)
973
+ return unwrap5(
974
+ await this.http.post("/api-keys/scoped", body4)
876
975
  );
877
976
  }
878
977
  async delete(keyId) {
@@ -881,7 +980,7 @@ var ApiKeys = class {
881
980
  };
882
981
 
883
982
  // src/resources/audit-log.ts
884
- function unwrap5(payload) {
983
+ function unwrap6(payload) {
885
984
  if (payload && typeof payload === "object") {
886
985
  const p = payload;
887
986
  for (const k of ["data", "audit_log", "events", "items"]) {
@@ -890,7 +989,7 @@ function unwrap5(payload) {
890
989
  }
891
990
  return payload;
892
991
  }
893
- function stripUndefined4(input) {
992
+ function stripUndefined5(input) {
894
993
  return Object.fromEntries(
895
994
  Object.entries(input).filter(([, v]) => v !== void 0)
896
995
  );
@@ -902,16 +1001,16 @@ var AuditLog = class {
902
1001
  http;
903
1002
  /** List audit-log events with optional filters. */
904
1003
  async list(params = {}) {
905
- const query2 = stripUndefined4(params);
1004
+ const query2 = stripUndefined5(params);
906
1005
  const data = await this.http.get("/audit-log", query2);
907
- const result = unwrap5(data);
1006
+ const result = unwrap6(data);
908
1007
  if (Array.isArray(result)) return result;
909
1008
  return [];
910
1009
  }
911
1010
  };
912
1011
 
913
1012
  // src/resources/benchmarks.ts
914
- function unwrap6(data) {
1013
+ function unwrap7(data) {
915
1014
  if (data && typeof data === "object") {
916
1015
  const d = data;
917
1016
  for (const k of ["data", "benchmarks", "samples", "items"]) {
@@ -943,19 +1042,19 @@ var Benchmarks = class {
943
1042
  return unwrapList(data);
944
1043
  }
945
1044
  async get(benchmarkId) {
946
- return unwrap6(
1045
+ return unwrap7(
947
1046
  await this.http.get(`/admin/benchmarks/${benchmarkId}`)
948
1047
  );
949
1048
  }
950
1049
  /** Start a new benchmark run — pass kind and run-specific options. */
951
1050
  async create(params) {
952
- const body3 = Object.fromEntries(
1051
+ const body4 = Object.fromEntries(
953
1052
  Object.entries(params).filter(([, v]) => v !== void 0)
954
1053
  );
955
- return unwrap6(await this.http.post("/admin/benchmarks", body3));
1054
+ return unwrap7(await this.http.post("/admin/benchmarks", body4));
956
1055
  }
957
1056
  async cancel(benchmarkId) {
958
- return unwrap6(
1057
+ return unwrap7(
959
1058
  await this.http.post(`/admin/benchmarks/${benchmarkId}/cancel`)
960
1059
  );
961
1060
  }
@@ -972,17 +1071,17 @@ var Benchmarks = class {
972
1071
  }
973
1072
  /** Compare two benchmark runs. */
974
1073
  async compare(params) {
975
- const body3 = Object.fromEntries(
1074
+ const body4 = Object.fromEntries(
976
1075
  Object.entries(params).filter(([, v]) => v !== void 0)
977
1076
  );
978
- return unwrap6(
979
- await this.http.post("/admin/benchmarks/compare", body3)
1077
+ return unwrap7(
1078
+ await this.http.post("/admin/benchmarks/compare", body4)
980
1079
  );
981
1080
  }
982
1081
  };
983
1082
 
984
1083
  // src/resources/builder-sessions.ts
985
- function unwrap7(data) {
1084
+ function unwrap8(data) {
986
1085
  if (data && typeof data === "object") {
987
1086
  const d = data;
988
1087
  for (const k of ["data", "sessions", "items"]) {
@@ -1019,7 +1118,7 @@ var BuilderSessions = class {
1019
1118
  return all.find((s) => s.id === sessionId) ?? {};
1020
1119
  }
1021
1120
  async updateTitle(sessionId, title) {
1022
- return unwrap7(
1121
+ return unwrap8(
1023
1122
  await this.http.patch(`/builder/sessions/${sessionId}/title`, {
1024
1123
  title
1025
1124
  })
@@ -1031,7 +1130,7 @@ var BuilderSessions = class {
1031
1130
  };
1032
1131
 
1033
1132
  // src/resources/channels.ts
1034
- function unwrap8(payload) {
1133
+ function unwrap9(payload) {
1035
1134
  if (payload && typeof payload === "object") {
1036
1135
  const p = payload;
1037
1136
  for (const k of ["data", "channels", "notifications", "items"]) {
@@ -1040,7 +1139,7 @@ function unwrap8(payload) {
1040
1139
  }
1041
1140
  return payload;
1042
1141
  }
1043
- function stripUndefined5(input) {
1142
+ function stripUndefined6(input) {
1044
1143
  return Object.fromEntries(
1045
1144
  Object.entries(input).filter(([, v]) => v !== void 0)
1046
1145
  );
@@ -1057,28 +1156,28 @@ var Channels = class {
1057
1156
  http;
1058
1157
  /** List all channels for the tenant. */
1059
1158
  async list(params = {}) {
1060
- const query2 = stripUndefined5(params);
1159
+ const query2 = stripUndefined6(params);
1061
1160
  const data = await this.http.get("/channels", query2);
1062
- const result = unwrap8(data);
1161
+ const result = unwrap9(data);
1063
1162
  if (Array.isArray(result)) return result;
1064
1163
  return [];
1065
1164
  }
1066
1165
  /** Get a single channel. */
1067
1166
  async get(channelId) {
1068
1167
  const data = await this.http.get(`/channels/${channelId}`);
1069
- return unwrap8(data);
1168
+ return unwrap9(data);
1070
1169
  }
1071
1170
  /** Create a new channel. */
1072
1171
  async create(params) {
1073
- const body3 = stripUndefObj(params);
1074
- const data = await this.http.post("/channels", body3);
1075
- return unwrap8(data);
1172
+ const body4 = stripUndefObj(params);
1173
+ const data = await this.http.post("/channels", body4);
1174
+ return unwrap9(data);
1076
1175
  }
1077
1176
  /** Update a channel. */
1078
1177
  async update(channelId, params) {
1079
- const body3 = stripUndefObj(params);
1080
- const data = await this.http.patch(`/channels/${channelId}`, body3);
1081
- return unwrap8(data);
1178
+ const body4 = stripUndefObj(params);
1179
+ const data = await this.http.patch(`/channels/${channelId}`, body4);
1180
+ return unwrap9(data);
1082
1181
  }
1083
1182
  /** Delete a channel. */
1084
1183
  async delete(channelId) {
@@ -1088,30 +1187,30 @@ var Channels = class {
1088
1187
  /** Get notification preferences across all channels. */
1089
1188
  async listNotifications() {
1090
1189
  const data = await this.http.get("/channels/notifications");
1091
- return unwrap8(data);
1190
+ return unwrap9(data);
1092
1191
  }
1093
1192
  /** Update notification preferences. */
1094
1193
  async updateNotifications(params) {
1095
- const body3 = stripUndefObj(params);
1096
- const data = await this.http.put("/channels/notifications", body3);
1097
- return unwrap8(data);
1194
+ const body4 = stripUndefObj(params);
1195
+ const data = await this.http.put("/channels/notifications", body4);
1196
+ return unwrap9(data);
1098
1197
  }
1099
1198
  /** Enable a channel. */
1100
1199
  async enable(channelId) {
1101
1200
  const data = await this.http.post(`/channels/${channelId}/enable`);
1102
- return unwrap8(data);
1201
+ return unwrap9(data);
1103
1202
  }
1104
1203
  /** Disable a channel. */
1105
1204
  async disable(channelId) {
1106
1205
  const data = await this.http.post(
1107
1206
  `/channels/${channelId}/disable`
1108
1207
  );
1109
- return unwrap8(data);
1208
+ return unwrap9(data);
1110
1209
  }
1111
1210
  };
1112
1211
 
1113
1212
  // src/resources/command-center.ts
1114
- function unwrap9(data) {
1213
+ function unwrap10(data) {
1115
1214
  if (data && typeof data === "object") {
1116
1215
  const d = data;
1117
1216
  for (const k of [
@@ -1145,7 +1244,7 @@ var CommandCenter = class {
1145
1244
  http;
1146
1245
  /** Top-level snapshot (GET /command-center). */
1147
1246
  async overview() {
1148
- return unwrap9(await this.http.get("/command-center"));
1247
+ return unwrap10(await this.http.get("/command-center"));
1149
1248
  }
1150
1249
  async agents() {
1151
1250
  return unwrapList3(await this.http.get("/command-center/agents"));
@@ -1156,13 +1255,13 @@ var CommandCenter = class {
1156
1255
  );
1157
1256
  }
1158
1257
  async metrics() {
1159
- return unwrap9(await this.http.get("/command-center/metrics"));
1258
+ return unwrap10(await this.http.get("/command-center/metrics"));
1160
1259
  }
1161
1260
  async presets() {
1162
1261
  return unwrapList3(await this.http.get("/command-center/presets"));
1163
1262
  }
1164
1263
  async tiers() {
1165
- return unwrap9(await this.http.get("/command-center/tiers"));
1264
+ return unwrap10(await this.http.get("/command-center/tiers"));
1166
1265
  }
1167
1266
  /** Stream live command-center events via SSE. */
1168
1267
  events() {
@@ -1171,7 +1270,7 @@ var CommandCenter = class {
1171
1270
  };
1172
1271
 
1173
1272
  // src/resources/community.ts
1174
- function unwrap10(data) {
1273
+ function unwrap11(data) {
1175
1274
  if (data && typeof data === "object") {
1176
1275
  const d = data;
1177
1276
  for (const k of ["data", "templates", "agents", "items"]) {
@@ -1203,7 +1302,7 @@ var Community = class {
1203
1302
  return unwrapList4(await this.http.get("/community/agents", query2));
1204
1303
  }
1205
1304
  async getAgent(agentId) {
1206
- return unwrap10(await this.http.get(`/community/agents/${agentId}`));
1305
+ return unwrap11(await this.http.get(`/community/agents/${agentId}`));
1207
1306
  }
1208
1307
  // ── Templates ─────────────────────────────────────────────────────────
1209
1308
  async listTemplates(filters = {}) {
@@ -1215,41 +1314,41 @@ var Community = class {
1215
1314
  );
1216
1315
  }
1217
1316
  async getTemplate(templateId) {
1218
- return unwrap10(
1317
+ return unwrap11(
1219
1318
  await this.http.get(`/community/templates/${templateId}`)
1220
1319
  );
1221
1320
  }
1222
1321
  /** Install a community template into the caller's tenant. */
1223
1322
  async installTemplate(templateId, opts = {}) {
1224
- const body3 = Object.fromEntries(
1323
+ const body4 = Object.fromEntries(
1225
1324
  Object.entries(opts).filter(([, v]) => v !== void 0)
1226
1325
  );
1227
- return unwrap10(
1326
+ return unwrap11(
1228
1327
  await this.http.post(
1229
1328
  `/community/templates/${templateId}/install`,
1230
- body3
1329
+ body4
1231
1330
  )
1232
1331
  );
1233
1332
  }
1234
1333
  /** Rate a community template (1–5). */
1235
1334
  async rateTemplate(templateId, rating, opts = {}) {
1236
- const body3 = {
1335
+ const body4 = {
1237
1336
  rating,
1238
1337
  ...Object.fromEntries(
1239
1338
  Object.entries(opts).filter(([, v]) => v !== void 0)
1240
1339
  )
1241
1340
  };
1242
- return unwrap10(
1341
+ return unwrap11(
1243
1342
  await this.http.post(
1244
1343
  `/community/templates/${templateId}/rate`,
1245
- body3
1344
+ body4
1246
1345
  )
1247
1346
  );
1248
1347
  }
1249
1348
  };
1250
1349
 
1251
1350
  // src/resources/completions.ts
1252
- function unwrap11(data) {
1351
+ function unwrap12(data) {
1253
1352
  if (data && typeof data === "object") {
1254
1353
  const d = data;
1255
1354
  if (Array.isArray(d.choices)) return d;
@@ -1268,24 +1367,24 @@ var Completions = class {
1268
1367
  }
1269
1368
  http;
1270
1369
  create(params) {
1271
- const body3 = buildBody(params);
1370
+ const body4 = buildBody(params);
1272
1371
  if (params.stream === true) {
1273
1372
  return this.http.stream(
1274
1373
  "/intelligence/completions",
1275
- { method: "POST", body: body3 }
1374
+ { method: "POST", body: body4 }
1276
1375
  );
1277
1376
  }
1278
- return this.http.post("/intelligence/completions", body3).then(unwrap11);
1377
+ return this.http.post("/intelligence/completions", body4).then(unwrap12);
1279
1378
  }
1280
1379
  chat(params) {
1281
- const body3 = buildBody(params);
1380
+ const body4 = buildBody(params);
1282
1381
  if (params.stream === true) {
1283
1382
  return this.http.stream(
1284
1383
  "/intelligence/chat/completions",
1285
- { method: "POST", body: body3 }
1384
+ { method: "POST", body: body4 }
1286
1385
  );
1287
1386
  }
1288
- return this.http.post("/intelligence/chat/completions", body3).then(unwrap11);
1387
+ return this.http.post("/intelligence/chat/completions", body4).then(unwrap12);
1289
1388
  }
1290
1389
  };
1291
1390
 
@@ -1408,7 +1507,7 @@ var Checkpoints = class {
1408
1507
  };
1409
1508
 
1410
1509
  // src/resources/computer-auto-stop.ts
1411
- function unwrap12(data) {
1510
+ function unwrap13(data) {
1412
1511
  if (data && typeof data === "object") {
1413
1512
  const d = data;
1414
1513
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1426,13 +1525,13 @@ var ComputerAutoStop = class {
1426
1525
  computerId;
1427
1526
  /** Return the current auto-stop configuration. */
1428
1527
  async get() {
1429
- return unwrap12(
1528
+ return unwrap13(
1430
1529
  await this.http.get(`/computers/${this.computerId}/auto-stop`)
1431
1530
  );
1432
1531
  }
1433
1532
  /** Set the idle timeout in seconds (0 disables auto-stop). */
1434
1533
  async update(seconds) {
1435
- return unwrap12(
1534
+ return unwrap13(
1436
1535
  await this.http.patch(
1437
1536
  `/computers/${this.computerId}/auto-stop`,
1438
1537
  { seconds }
@@ -1442,7 +1541,7 @@ var ComputerAutoStop = class {
1442
1541
  };
1443
1542
 
1444
1543
  // src/resources/computer-env.ts
1445
- function unwrap13(data) {
1544
+ function unwrap14(data) {
1446
1545
  if (data && typeof data === "object") {
1447
1546
  const d = data;
1448
1547
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1477,11 +1576,11 @@ var ComputerEnv = class {
1477
1576
  }
1478
1577
  /** Create a new env var. Use update() to change an existing one. */
1479
1578
  async set(name, value) {
1480
- return unwrap13(await this.http.post(this.base(), { name, value }));
1579
+ return unwrap14(await this.http.post(this.base(), { name, value }));
1481
1580
  }
1482
1581
  /** Patch the value of an existing env var by name. */
1483
1582
  async update(name, value) {
1484
- return unwrap13(
1583
+ return unwrap14(
1485
1584
  await this.http.patch(`${this.base()}/${name}`, { value })
1486
1585
  );
1487
1586
  }
@@ -1498,7 +1597,7 @@ var ComputerEnv = class {
1498
1597
  };
1499
1598
 
1500
1599
  // src/resources/computer-logs.ts
1501
- function unwrap14(data) {
1600
+ function unwrap15(data) {
1502
1601
  if (data && typeof data === "object") {
1503
1602
  const d = data;
1504
1603
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1519,7 +1618,7 @@ var ComputerLogs = class {
1519
1618
  const query2 = Object.fromEntries(
1520
1619
  Object.entries(params).filter(([, v]) => v !== void 0)
1521
1620
  );
1522
- return unwrap14(
1621
+ return unwrap15(
1523
1622
  await this.http.get(`/computers/${this.computerId}/logs`, query2)
1524
1623
  );
1525
1624
  }
@@ -1532,7 +1631,7 @@ var ComputerLogs = class {
1532
1631
  };
1533
1632
 
1534
1633
  // src/resources/computer-osa.ts
1535
- function unwrap15(data) {
1634
+ function unwrap16(data) {
1536
1635
  if (data && typeof data === "object") {
1537
1636
  const d = data;
1538
1637
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1550,47 +1649,47 @@ var ComputerOsa = class {
1550
1649
  computerId;
1551
1650
  /** Submit a free-form task to the in-VM OSA agent. */
1552
1651
  async submitTask(task, params = {}) {
1553
- const body3 = {
1652
+ const body4 = {
1554
1653
  task,
1555
1654
  ...Object.fromEntries(
1556
1655
  Object.entries(params).filter(([, v]) => v !== void 0)
1557
1656
  )
1558
1657
  };
1559
- return unwrap15(
1658
+ return unwrap16(
1560
1659
  await this.http.post(
1561
1660
  `/computers/${this.computerId}/osa/task`,
1562
- body3
1661
+ body4
1563
1662
  )
1564
1663
  );
1565
1664
  }
1566
1665
  /** Cancel the currently-running OSA task, if any. */
1567
1666
  async cancelTask() {
1568
- return unwrap15(
1667
+ return unwrap16(
1569
1668
  await this.http.delete(`/computers/${this.computerId}/osa/task`)
1570
1669
  );
1571
1670
  }
1572
1671
  /** Return OSA's current task / configuration / health snapshot. */
1573
1672
  async status() {
1574
- return unwrap15(
1673
+ return unwrap16(
1575
1674
  await this.http.get(`/computers/${this.computerId}/osa/status`)
1576
1675
  );
1577
1676
  }
1578
1677
  /** Update OSA runtime configuration (model, tools, secrets, etc.). */
1579
1678
  async configure(config) {
1580
- const body3 = Object.fromEntries(
1679
+ const body4 = Object.fromEntries(
1581
1680
  Object.entries(config).filter(([, v]) => v !== void 0)
1582
1681
  );
1583
- return unwrap15(
1682
+ return unwrap16(
1584
1683
  await this.http.post(
1585
1684
  `/computers/${this.computerId}/osa/configure`,
1586
- body3
1685
+ body4
1587
1686
  )
1588
1687
  );
1589
1688
  }
1590
1689
  };
1591
1690
 
1592
1691
  // src/resources/computer-ports.ts
1593
- function unwrap16(data) {
1692
+ function unwrap17(data) {
1594
1693
  if (data && typeof data === "object") {
1595
1694
  const d = data;
1596
1695
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1629,21 +1728,21 @@ var ComputerPorts = class {
1629
1728
  }
1630
1729
  /** Expose port with the given visibility options. */
1631
1730
  async create(port, opts = {}) {
1632
- const body3 = {
1731
+ const body4 = {
1633
1732
  port,
1634
1733
  ...Object.fromEntries(
1635
1734
  Object.entries(opts).filter(([, v]) => v !== void 0)
1636
1735
  )
1637
1736
  };
1638
- return unwrap16(await this.http.post(this.base(), body3));
1737
+ return unwrap17(await this.http.post(this.base(), body4));
1639
1738
  }
1640
1739
  /** Patch visibility / auth options for port. */
1641
1740
  async update(port, opts) {
1642
- const body3 = Object.fromEntries(
1741
+ const body4 = Object.fromEntries(
1643
1742
  Object.entries(opts).filter(([, v]) => v !== void 0)
1644
1743
  );
1645
- return unwrap16(
1646
- await this.http.patch(`${this.base()}/${port}`, body3)
1744
+ return unwrap17(
1745
+ await this.http.patch(`${this.base()}/${port}`, body4)
1647
1746
  );
1648
1747
  }
1649
1748
  /** Stop exposing port. */
@@ -1662,14 +1761,14 @@ var ComputerTerminal = class {
1662
1761
  computerId;
1663
1762
  /** Open a new PTY session. Returns the server payload (session id, etc.). */
1664
1763
  async create(params = {}) {
1665
- const body3 = Object.fromEntries(
1764
+ const body4 = Object.fromEntries(
1666
1765
  Object.entries(params).filter(([, v]) => v !== void 0)
1667
1766
  );
1668
1767
  const raw = await this.http.post(
1669
1768
  `/computers/${this.computerId}/terminal`,
1670
- body3
1769
+ body4
1671
1770
  );
1672
- return unwrap17(raw);
1771
+ return unwrap18(raw);
1673
1772
  }
1674
1773
  /** Resize an existing PTY session. */
1675
1774
  async resize(sessionId, cols, rows) {
@@ -1677,10 +1776,10 @@ var ComputerTerminal = class {
1677
1776
  `/computers/${this.computerId}/pty/${sessionId}/resize`,
1678
1777
  { cols, rows }
1679
1778
  );
1680
- return unwrap17(raw);
1779
+ return unwrap18(raw);
1681
1780
  }
1682
1781
  };
1683
- function unwrap17(data) {
1782
+ function unwrap18(data) {
1684
1783
  if (data && typeof data === "object") {
1685
1784
  const d = data;
1686
1785
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1691,7 +1790,7 @@ function unwrap17(data) {
1691
1790
  }
1692
1791
 
1693
1792
  // src/resources/computer-volumes.ts
1694
- function unwrap18(data) {
1793
+ function unwrap19(data) {
1695
1794
  if (data && typeof data === "object") {
1696
1795
  const d = data;
1697
1796
  if ("data" in d && Object.keys(d).length <= 2) {
@@ -1725,7 +1824,7 @@ var ComputerVolumes = class {
1725
1824
  }
1726
1825
  /** Attach volumeId at mountPath inside the VM. */
1727
1826
  async attach(volumeId, mountPath) {
1728
- return unwrap18(
1827
+ return unwrap19(
1729
1828
  await this.http.post(this.base(), {
1730
1829
  volume_id: volumeId,
1731
1830
  mount_path: mountPath
@@ -1898,7 +1997,7 @@ var Desktop = class {
1898
1997
  };
1899
1998
 
1900
1999
  // src/resources/egressAudit.ts
1901
- function unwrap19(payload) {
2000
+ function unwrap20(payload) {
1902
2001
  if (payload && typeof payload === "object") {
1903
2002
  const p = payload;
1904
2003
  for (const k of ["data", "event", "items"]) {
@@ -1917,7 +2016,7 @@ function unwrapList8(payload) {
1917
2016
  }
1918
2017
  return [];
1919
2018
  }
1920
- function stripUndefined6(input) {
2019
+ function stripUndefined7(input) {
1921
2020
  return Object.fromEntries(
1922
2021
  Object.entries(input).filter(([, v]) => v !== void 0)
1923
2022
  );
@@ -1927,7 +2026,7 @@ function pickFirst(...values) {
1927
2026
  return void 0;
1928
2027
  }
1929
2028
  function listQuery(params) {
1930
- return stripUndefined6({
2029
+ return stripUndefined7({
1931
2030
  resource_id: pickFirst(params.resourceId, params.resource_id),
1932
2031
  resource_type: pickFirst(params.resourceType, params.resource_type),
1933
2032
  host: params.host,
@@ -1964,7 +2063,7 @@ var EgressAudit = class {
1964
2063
  const data = await this.http.get(
1965
2064
  `/egress/audit/${id}`
1966
2065
  );
1967
- return unwrap19(data);
2066
+ return unwrap20(data);
1968
2067
  }
1969
2068
  /**
1970
2069
  * Long-poll the audit endpoint and yield new events as they appear.
@@ -2040,7 +2139,7 @@ var ComputerAudit = class extends SandboxAudit {
2040
2139
  };
2041
2140
 
2042
2141
  // src/resources/egressNetwork.ts
2043
- function unwrap20(payload) {
2142
+ function unwrap21(payload) {
2044
2143
  if (payload && typeof payload === "object") {
2045
2144
  const p = payload;
2046
2145
  for (const k of ["data", "policy", "rule", "items"]) {
@@ -2066,7 +2165,7 @@ function unwrapList9(payload) {
2066
2165
  }
2067
2166
  return [];
2068
2167
  }
2069
- function stripUndefined7(input) {
2168
+ function stripUndefined8(input) {
2070
2169
  return Object.fromEntries(
2071
2170
  Object.entries(input).filter(([, v]) => v !== void 0)
2072
2171
  );
@@ -2076,7 +2175,7 @@ function pickFirst2(...values) {
2076
2175
  return void 0;
2077
2176
  }
2078
2177
  function ruleBody(host, params, effect) {
2079
- return stripUndefined7({
2178
+ return stripUndefined8({
2080
2179
  host,
2081
2180
  effect,
2082
2181
  methods: params.methods,
@@ -2099,7 +2198,7 @@ var EgressNetwork = class {
2099
2198
  "/egress/allowlist",
2100
2199
  ruleBody(host, params, "allow")
2101
2200
  );
2102
- return unwrap20(data);
2201
+ return unwrap21(data);
2103
2202
  }
2104
2203
  /** Add a `deny` rule for `host` to the allowlist. */
2105
2204
  async deny(host, params = {}) {
@@ -2107,11 +2206,11 @@ var EgressNetwork = class {
2107
2206
  "/egress/allowlist",
2108
2207
  ruleBody(host, params, "deny")
2109
2208
  );
2110
- return unwrap20(data);
2209
+ return unwrap21(data);
2111
2210
  }
2112
2211
  /** List allowlist rules. */
2113
2212
  async rules(params = {}) {
2114
- const query2 = stripUndefined7({
2213
+ const query2 = stripUndefined8({
2115
2214
  policy_id: pickFirst2(params.policyId, params.policy_id),
2116
2215
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2117
2216
  resource_type: pickFirst2(params.resourceType, params.resource_type)
@@ -2126,7 +2225,7 @@ var EgressNetwork = class {
2126
2225
  // ── policies ──────────────────────────────────────────────────────────────
2127
2226
  /** List egress policies. */
2128
2227
  async policies(params = {}) {
2129
- const query2 = stripUndefined7({
2228
+ const query2 = stripUndefined8({
2130
2229
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2131
2230
  resource_type: pickFirst2(params.resourceType, params.resource_type)
2132
2231
  });
@@ -2135,7 +2234,7 @@ var EgressNetwork = class {
2135
2234
  }
2136
2235
  /** Create an egress policy. */
2137
2236
  async createPolicy(params) {
2138
- const body3 = stripUndefined7({
2237
+ const body4 = stripUndefined8({
2139
2238
  name: params.name,
2140
2239
  mode: params.mode ?? "enforce",
2141
2240
  default_effect: pickFirst2(
@@ -2149,13 +2248,13 @@ var EgressNetwork = class {
2149
2248
  });
2150
2249
  const data = await this.http.post(
2151
2250
  "/egress/policies",
2152
- body3
2251
+ body4
2153
2252
  );
2154
- return unwrap20(data);
2253
+ return unwrap21(data);
2155
2254
  }
2156
2255
  /** Update an egress policy by id. */
2157
2256
  async updatePolicy(policyId, params) {
2158
- const body3 = stripUndefined7({
2257
+ const body4 = stripUndefined8({
2159
2258
  mode: params.mode,
2160
2259
  default_effect: pickFirst2(params.defaultEffect, params.default_effect),
2161
2260
  name: params.name,
@@ -2163,9 +2262,9 @@ var EgressNetwork = class {
2163
2262
  });
2164
2263
  const data = await this.http.patch(
2165
2264
  `/egress/policies/${policyId}`,
2166
- body3
2265
+ body4
2167
2266
  );
2168
- return unwrap20(data);
2267
+ return unwrap21(data);
2169
2268
  }
2170
2269
  // ── mode helpers ──────────────────────────────────────────────────────────
2171
2270
  /** Set the policy to `mode="enforce"` — denied egress is blocked. */
@@ -2183,21 +2282,21 @@ var EgressNetwork = class {
2183
2282
  if (policyId) {
2184
2283
  return this.updatePolicy(policyId, { mode });
2185
2284
  }
2186
- const body3 = resourceId !== void 0 && resourceType !== void 0 ? stripUndefined7({
2285
+ const body4 = resourceId !== void 0 && resourceType !== void 0 ? stripUndefined8({
2187
2286
  mode,
2188
2287
  resource_id: resourceId,
2189
2288
  resource_type: resourceType
2190
2289
  }) : { mode };
2191
2290
  const data = await this.http.patch(
2192
2291
  "/egress/policies",
2193
- body3
2292
+ body4
2194
2293
  );
2195
- return unwrap20(data);
2294
+ return unwrap21(data);
2196
2295
  }
2197
2296
  // ── suggestions ───────────────────────────────────────────────────────────
2198
2297
  /** AI-generated allowlist suggestions from recent denied egress. */
2199
2298
  async suggestions(params = {}) {
2200
- const query2 = stripUndefined7({
2299
+ const query2 = stripUndefined8({
2201
2300
  resource_id: pickFirst2(params.resourceId, params.resource_id),
2202
2301
  resource_type: pickFirst2(params.resourceType, params.resource_type),
2203
2302
  since: params.since ?? "7d"
@@ -2248,28 +2347,28 @@ var SandboxNetwork = class {
2248
2347
  return this.delegate.removeRule(ruleId);
2249
2348
  }
2250
2349
  lockdown(params = {}) {
2251
- const body3 = {
2350
+ const body4 = {
2252
2351
  resource_id: this.resourceId,
2253
2352
  resource_type: this.resourceType
2254
2353
  };
2255
- if (params.policyId !== void 0) body3.policyId = params.policyId;
2256
- return this.delegate.lockdown(body3);
2354
+ if (params.policyId !== void 0) body4.policyId = params.policyId;
2355
+ return this.delegate.lockdown(body4);
2257
2356
  }
2258
2357
  observe(params = {}) {
2259
- const body3 = {
2358
+ const body4 = {
2260
2359
  resource_id: this.resourceId,
2261
2360
  resource_type: this.resourceType
2262
2361
  };
2263
- if (params.policyId !== void 0) body3.policyId = params.policyId;
2264
- return this.delegate.observe(body3);
2362
+ if (params.policyId !== void 0) body4.policyId = params.policyId;
2363
+ return this.delegate.observe(body4);
2265
2364
  }
2266
2365
  suggestions(params = {}) {
2267
- const body3 = {
2366
+ const body4 = {
2268
2367
  resource_id: this.resourceId,
2269
2368
  resource_type: this.resourceType
2270
2369
  };
2271
- if (params.since !== void 0) body3.since = params.since;
2272
- return this.delegate.suggestions(body3);
2370
+ if (params.since !== void 0) body4.since = params.since;
2371
+ return this.delegate.suggestions(body4);
2273
2372
  }
2274
2373
  policies() {
2275
2374
  return this.delegate.policies({
@@ -2283,7 +2382,7 @@ var ComputerNetwork = class extends SandboxNetwork {
2283
2382
  };
2284
2383
 
2285
2384
  // src/resources/egressSecrets.ts
2286
- function unwrap21(payload) {
2385
+ function unwrap22(payload) {
2287
2386
  if (payload && typeof payload === "object") {
2288
2387
  const p = payload;
2289
2388
  for (const k of ["data", "secret", "binding", "items"]) {
@@ -2302,7 +2401,7 @@ function unwrapList10(payload) {
2302
2401
  }
2303
2402
  return [];
2304
2403
  }
2305
- function stripUndefined8(input) {
2404
+ function stripUndefined9(input) {
2306
2405
  return Object.fromEntries(
2307
2406
  Object.entries(input).filter(([, v]) => v !== void 0)
2308
2407
  );
@@ -2312,7 +2411,7 @@ function pickFirst3(...values) {
2312
2411
  return void 0;
2313
2412
  }
2314
2413
  function setBody(params) {
2315
- return stripUndefined8({
2414
+ return stripUndefined9({
2316
2415
  name: params.name,
2317
2416
  value: params.value,
2318
2417
  type: params.type ?? "api_key",
@@ -2333,7 +2432,7 @@ function setBody(params) {
2333
2432
  });
2334
2433
  }
2335
2434
  function listQuery2(params) {
2336
- return stripUndefined8({
2435
+ return stripUndefined9({
2337
2436
  scope: params.scope,
2338
2437
  type: params.type,
2339
2438
  workspace_id: pickFirst3(params.workspaceId, params.workspace_id),
@@ -2348,14 +2447,14 @@ function listQuery2(params) {
2348
2447
  });
2349
2448
  }
2350
2449
  function rotateBody(params) {
2351
- return stripUndefined8({
2450
+ return stripUndefined9({
2352
2451
  value: pickFirst3(params.newValue, params.new_value, params.value),
2353
2452
  refresh_token: pickFirst3(params.refreshToken, params.refresh_token),
2354
2453
  expires_at: pickFirst3(params.expiresAt, params.expires_at)
2355
2454
  });
2356
2455
  }
2357
2456
  function bindingBody(params) {
2358
- return stripUndefined8({
2457
+ return stripUndefined9({
2359
2458
  secret_id: pickFirst3(params.secretId, params.secret_id),
2360
2459
  resource_id: pickFirst3(params.resourceId, params.resource_id),
2361
2460
  resource_type: pickFirst3(params.resourceType, params.resource_type),
@@ -2363,14 +2462,14 @@ function bindingBody(params) {
2363
2462
  });
2364
2463
  }
2365
2464
  function bindingQuery(params) {
2366
- return stripUndefined8({
2465
+ return stripUndefined9({
2367
2466
  resource_id: pickFirst3(params.resourceId, params.resource_id),
2368
2467
  resource_type: pickFirst3(params.resourceType, params.resource_type),
2369
2468
  secret_id: pickFirst3(params.secretId, params.secret_id)
2370
2469
  });
2371
2470
  }
2372
2471
  function oauthBody(params) {
2373
- return stripUndefined8({
2472
+ return stripUndefined9({
2374
2473
  provider: params.provider,
2375
2474
  expose_as_env: pickFirst3(params.exposeAsEnv, params.expose_as_env),
2376
2475
  scope: params.scope,
@@ -2419,7 +2518,7 @@ var OAuthFlow = class {
2419
2518
  const data = await this.http.get("/egress/oauth/status", {
2420
2519
  state: this.state
2421
2520
  });
2422
- const payload = unwrap21(data) ?? {};
2521
+ const payload = unwrap22(data) ?? {};
2423
2522
  const status = payload.status;
2424
2523
  if (status === "completed" || status === "ready" || status === "succeeded") {
2425
2524
  return payload;
@@ -2451,7 +2550,7 @@ var EgressSecrets = class {
2451
2550
  "/egress/secrets",
2452
2551
  setBody(params)
2453
2552
  );
2454
- return unwrap21(data);
2553
+ return unwrap22(data);
2455
2554
  }
2456
2555
  /** List secrets. */
2457
2556
  async list(params = {}) {
@@ -2466,16 +2565,16 @@ var EgressSecrets = class {
2466
2565
  const data = await this.http.get(
2467
2566
  `/egress/secrets/${id}`
2468
2567
  );
2469
- return unwrap21(data);
2568
+ return unwrap22(data);
2470
2569
  }
2471
2570
  /** Rotate the secret's value. */
2472
2571
  async rotate(id, params) {
2473
- const body3 = typeof params === "string" ? rotateBody({ newValue: params }) : rotateBody(params);
2572
+ const body4 = typeof params === "string" ? rotateBody({ newValue: params }) : rotateBody(params);
2474
2573
  const data = await this.http.patch(
2475
2574
  `/egress/secrets/${id}`,
2476
- body3
2575
+ body4
2477
2576
  );
2478
- return unwrap21(data);
2577
+ return unwrap22(data);
2479
2578
  }
2480
2579
  /** Delete a secret. */
2481
2580
  async delete(id) {
@@ -2488,7 +2587,7 @@ var EgressSecrets = class {
2488
2587
  "/egress/bindings",
2489
2588
  bindingBody(params)
2490
2589
  );
2491
- return unwrap21(data);
2590
+ return unwrap22(data);
2492
2591
  }
2493
2592
  /** List secret bindings. */
2494
2593
  async listBindings(params = {}) {
@@ -2521,7 +2620,7 @@ var EgressSecrets = class {
2521
2620
  "/egress/oauth/start",
2522
2621
  oauthBody(params)
2523
2622
  );
2524
- const payload = unwrap21(data) ?? {};
2623
+ const payload = unwrap22(data) ?? {};
2525
2624
  return new OAuthFlow(this.http, payload, params.provider);
2526
2625
  }
2527
2626
  };
@@ -3085,12 +3184,12 @@ var ComputerInbox = class {
3085
3184
  return unwrapData(raw);
3086
3185
  }
3087
3186
  async update(fields) {
3088
- const body3 = Object.fromEntries(
3187
+ const body4 = Object.fromEntries(
3089
3188
  Object.entries(fields).filter(([, v]) => v !== void 0)
3090
3189
  );
3091
3190
  const raw = await this.http.patch(
3092
3191
  `/computers/${this.computerId}/inbox`,
3093
- body3
3192
+ body4
3094
3193
  );
3095
3194
  return unwrapData(raw);
3096
3195
  }
@@ -3389,12 +3488,12 @@ var Computer = class _Computer {
3389
3488
  }
3390
3489
  /** Clone this computer into a new one. */
3391
3490
  async clone(opts = {}) {
3392
- const body3 = Object.fromEntries(
3491
+ const body4 = Object.fromEntries(
3393
3492
  Object.entries(opts).filter(([, v]) => v !== void 0)
3394
3493
  );
3395
3494
  const raw = await this.http.post(
3396
3495
  `/computers/${this.id}/clone`,
3397
- body3
3496
+ body4
3398
3497
  );
3399
3498
  const data = unwrapData(raw);
3400
3499
  return new _Computer(this.http, data);
@@ -3410,12 +3509,12 @@ var Computer = class _Computer {
3410
3509
  }
3411
3510
  /** Move the computer to a different region or host. */
3412
3511
  async move(opts) {
3413
- const body3 = Object.fromEntries(
3512
+ const body4 = Object.fromEntries(
3414
3513
  Object.entries(opts).filter(([, v]) => v !== void 0)
3415
3514
  );
3416
3515
  const updated = await this.http.post(
3417
3516
  `/computers/${this.id}/move`,
3418
- body3
3517
+ body4
3419
3518
  );
3420
3519
  this.data = updated;
3421
3520
  return this;
@@ -3497,12 +3596,12 @@ var Computers = class {
3497
3596
  agentRuntimeProfileId,
3498
3597
  agentProfileId,
3499
3598
  skipAgentRuntimeProfile,
3500
- ...body3
3599
+ ...body4
3501
3600
  } = params;
3502
3601
  const data = await this.http.post("/computers", {
3503
3602
  template_type: "miosa-desktop",
3504
3603
  size: "small",
3505
- ...body3,
3604
+ ...body4,
3506
3605
  agent_runtime_profile_id: agentRuntimeProfileId ?? params.agent_runtime_profile_id ?? agentProfileId ?? params.agent_profile_id,
3507
3606
  skip_agent_runtime_profile: skipAgentRuntimeProfile ?? params.skip_agent_runtime_profile
3508
3607
  });
@@ -3574,7 +3673,7 @@ var Credits = class {
3574
3673
  return this.http.get("/credits/usage");
3575
3674
  }
3576
3675
  };
3577
- function unwrap22(payload) {
3676
+ function unwrap23(payload) {
3578
3677
  if (payload && typeof payload === "object" && "data" in payload) {
3579
3678
  return payload.data;
3580
3679
  }
@@ -3590,7 +3689,7 @@ function listItems2(payload, candidateKeys = ["data", "cron_jobs", "executions",
3590
3689
  }
3591
3690
  return [];
3592
3691
  }
3593
- function stripUndefined9(input) {
3692
+ function stripUndefined10(input) {
3594
3693
  return Object.fromEntries(
3595
3694
  Object.entries(input).filter(([, v]) => v !== void 0)
3596
3695
  );
@@ -3604,28 +3703,28 @@ var CronJobs = class {
3604
3703
  }
3605
3704
  http;
3606
3705
  async list(params = {}) {
3607
- const query2 = stripUndefined9({ ...params });
3706
+ const query2 = stripUndefined10({ ...params });
3608
3707
  const data = await this.http.get("/cron-jobs", query2);
3609
3708
  return listItems2(data);
3610
3709
  }
3611
3710
  async get(jobId) {
3612
3711
  const data = await this.http.get(`/cron-jobs/${jobId}`);
3613
- return unwrap22(data);
3712
+ return unwrap23(data);
3614
3713
  }
3615
3714
  async create(params) {
3616
3715
  const { idempotencyKey: ikey, ...rest } = params;
3617
- const body3 = stripUndefined9(rest);
3716
+ const body4 = stripUndefined10(rest);
3618
3717
  const data = await this.http.request("/cron-jobs", {
3619
3718
  method: "POST",
3620
- body: body3,
3719
+ body: body4,
3621
3720
  headers: { "Idempotency-Key": idempotencyKey2(ikey) }
3622
3721
  });
3623
- return unwrap22(data);
3722
+ return unwrap23(data);
3624
3723
  }
3625
3724
  async update(jobId, params) {
3626
- const body3 = stripUndefined9(params);
3627
- const data = await this.http.patch(`/cron-jobs/${jobId}`, body3);
3628
- return unwrap22(data);
3725
+ const body4 = stripUndefined10(params);
3726
+ const data = await this.http.patch(`/cron-jobs/${jobId}`, body4);
3727
+ return unwrap23(data);
3629
3728
  }
3630
3729
  async delete(jobId) {
3631
3730
  await this.http.delete(`/cron-jobs/${jobId}`);
@@ -3633,11 +3732,11 @@ var CronJobs = class {
3633
3732
  // ── Control ────────────────────────────────────────────────────────────────
3634
3733
  async pause(jobId) {
3635
3734
  const data = await this.http.post(`/cron-jobs/${jobId}/pause`);
3636
- return unwrap22(data);
3735
+ return unwrap23(data);
3637
3736
  }
3638
3737
  async resume(jobId) {
3639
3738
  const data = await this.http.post(`/cron-jobs/${jobId}/resume`);
3640
- return unwrap22(data);
3739
+ return unwrap23(data);
3641
3740
  }
3642
3741
  async runNow(jobId, opts = {}) {
3643
3742
  const data = await this.http.request(
@@ -3647,7 +3746,7 @@ var CronJobs = class {
3647
3746
  headers: { "Idempotency-Key": idempotencyKey2(opts.idempotencyKey) }
3648
3747
  }
3649
3748
  );
3650
- return unwrap22(data);
3749
+ return unwrap23(data);
3651
3750
  }
3652
3751
  // ── Execution history ──────────────────────────────────────────────────────
3653
3752
  async listExecutions(jobId) {
@@ -3662,12 +3761,12 @@ var CronJobs = class {
3662
3761
  const data = await this.http.get(
3663
3762
  `/cron-jobs/${jobId}/executions/${executionId}`
3664
3763
  );
3665
- return unwrap22(data);
3764
+ return unwrap23(data);
3666
3765
  }
3667
3766
  };
3668
3767
 
3669
3768
  // src/resources/dashboard.ts
3670
- function unwrap23(payload) {
3769
+ function unwrap24(payload) {
3671
3770
  if (payload && typeof payload === "object") {
3672
3771
  const p = payload;
3673
3772
  for (const k of ["data", "dashboard", "overview", "items"]) {
@@ -3684,15 +3783,15 @@ var Dashboard = class {
3684
3783
  /** Aggregated user dashboard payload. */
3685
3784
  async summary() {
3686
3785
  const data = await this.http.get("/dashboard");
3687
- return unwrap23(data);
3786
+ return unwrap24(data);
3688
3787
  }
3689
3788
  /** Status / health overview (public endpoint). */
3690
3789
  async overview() {
3691
3790
  const data = await this.http.get("/overview");
3692
- return unwrap23(data);
3791
+ return unwrap24(data);
3693
3792
  }
3694
3793
  };
3695
- function unwrap24(payload) {
3794
+ function unwrap25(payload) {
3696
3795
  if (payload && typeof payload === "object" && "data" in payload) {
3697
3796
  return payload.data;
3698
3797
  }
@@ -3708,7 +3807,7 @@ function listItems3(payload, candidateKeys = ["data", "databases", "items"]) {
3708
3807
  }
3709
3808
  return [];
3710
3809
  }
3711
- function stripUndefined10(input) {
3810
+ function stripUndefined11(input) {
3712
3811
  return Object.fromEntries(
3713
3812
  Object.entries(input).filter(([, v]) => v !== void 0)
3714
3813
  );
@@ -3722,13 +3821,13 @@ var Databases = class {
3722
3821
  }
3723
3822
  http;
3724
3823
  async list(params = {}) {
3725
- const query2 = stripUndefined10({ ...params });
3824
+ const query2 = stripUndefined11({ ...params });
3726
3825
  const data = await this.http.get("/databases", query2);
3727
3826
  return listItems3(data);
3728
3827
  }
3729
3828
  async get(databaseId) {
3730
3829
  const data = await this.http.get(`/databases/${databaseId}`);
3731
- return unwrap24(data);
3830
+ return unwrap25(data);
3732
3831
  }
3733
3832
  async create(params) {
3734
3833
  const {
@@ -3739,20 +3838,20 @@ var Databases = class {
3739
3838
  size: _deprecatedSize,
3740
3839
  ...rest
3741
3840
  } = params;
3742
- const body3 = stripUndefined10({
3841
+ const body4 = stripUndefined11({
3743
3842
  ...rest,
3744
3843
  engine_version: engine_version ?? version
3745
3844
  });
3746
3845
  const data = await this.http.request("/databases", {
3747
3846
  method: "POST",
3748
- body: body3,
3847
+ body: body4,
3749
3848
  headers: {
3750
3849
  "Idempotency-Key": idempotencyKey3(
3751
3850
  camelIdempotencyKey ?? snakeIdempotencyKey
3752
3851
  )
3753
3852
  }
3754
3853
  });
3755
- return unwrap24(data);
3854
+ return unwrap25(data);
3756
3855
  }
3757
3856
  async delete(databaseId) {
3758
3857
  await this.http.delete(`/databases/${databaseId}`);
@@ -3762,27 +3861,27 @@ var Databases = class {
3762
3861
  const data = await this.http.post(
3763
3862
  `/databases/${databaseId}/start`
3764
3863
  );
3765
- return unwrap24(data);
3864
+ return unwrap25(data);
3766
3865
  }
3767
3866
  async stop(databaseId) {
3768
3867
  const data = await this.http.post(`/databases/${databaseId}/stop`);
3769
- return unwrap24(data);
3868
+ return unwrap25(data);
3770
3869
  }
3771
3870
  async restart(databaseId) {
3772
3871
  const data = await this.http.post(
3773
3872
  `/databases/${databaseId}/restart`
3774
3873
  );
3775
- return unwrap24(data);
3874
+ return unwrap25(data);
3776
3875
  }
3777
3876
  // ── Credentials + logs ────────────────────────────────────────────────────
3778
3877
  async credentials(databaseId) {
3779
3878
  const data = await this.http.get(
3780
3879
  `/databases/${databaseId}/credentials`
3781
3880
  );
3782
- return unwrap24(data);
3881
+ return unwrap25(data);
3783
3882
  }
3784
3883
  async logs(databaseId, params = {}) {
3785
- const query2 = stripUndefined10({
3884
+ const query2 = stripUndefined11({
3786
3885
  lines: params.lines,
3787
3886
  since: params.since
3788
3887
  });
@@ -3809,7 +3908,7 @@ function attributionBody(p) {
3809
3908
  function idempotencyKey4(key) {
3810
3909
  return key ?? randomUUID();
3811
3910
  }
3812
- function unwrap25(payload) {
3911
+ function unwrap26(payload) {
3813
3912
  if (payload && typeof payload === "object" && "data" in payload) {
3814
3913
  return payload.data;
3815
3914
  }
@@ -3825,7 +3924,7 @@ function listItems4(payload, candidateKeys = ["items", "deployments", "versions"
3825
3924
  }
3826
3925
  return [];
3827
3926
  }
3828
- function stripUndefined11(input) {
3927
+ function stripUndefined12(input) {
3829
3928
  return Object.fromEntries(
3830
3929
  Object.entries(input).filter(([, v]) => v !== void 0)
3831
3930
  );
@@ -3880,7 +3979,7 @@ var DeploymentVersions = class {
3880
3979
  http;
3881
3980
  deploymentId;
3882
3981
  async list(params = {}) {
3883
- const query2 = stripUndefined11({
3982
+ const query2 = stripUndefined12({
3884
3983
  state: params.state,
3885
3984
  limit: params.limit,
3886
3985
  cursor: params.cursor,
@@ -3896,19 +3995,19 @@ var DeploymentVersions = class {
3896
3995
  const data = await this.http.get(
3897
3996
  `/deployments/${this.deploymentId}/versions/${versionId}`
3898
3997
  );
3899
- return unwrap25(data);
3998
+ return unwrap26(data);
3900
3999
  }
3901
4000
  async promote(versionId, opts = {}) {
3902
- const body3 = stripUndefined11({ environment: opts.environment });
4001
+ const body4 = stripUndefined12({ environment: opts.environment });
3903
4002
  const data = await this.http.request(
3904
4003
  `/deployments/${this.deploymentId}/versions/${versionId}/promote`,
3905
4004
  {
3906
4005
  method: "POST",
3907
- body: body3,
4006
+ body: body4,
3908
4007
  headers: { "Idempotency-Key": idempotencyKey4(opts.idempotencyKey) }
3909
4008
  }
3910
4009
  );
3911
- return unwrap25(data);
4010
+ return unwrap26(data);
3912
4011
  }
3913
4012
  };
3914
4013
  var DeploymentReleases = class {
@@ -3928,7 +4027,7 @@ var DeploymentReleases = class {
3928
4027
  const data = await this.http.get(
3929
4028
  `/deployments/${this.deploymentId}/releases/${releaseId}`
3930
4029
  );
3931
- return unwrap25(data);
4030
+ return unwrap26(data);
3932
4031
  }
3933
4032
  };
3934
4033
  var DeploymentRuntimeInstances = class {
@@ -3948,14 +4047,14 @@ var DeploymentRuntimeInstances = class {
3948
4047
  const data = await this.http.get(
3949
4048
  `/deployments/${this.deploymentId}/runtime-instances/${instanceId}`
3950
4049
  );
3951
- return unwrap25(data);
4050
+ return unwrap26(data);
3952
4051
  }
3953
4052
  async logs(instanceId, lines = 100) {
3954
4053
  const data = await this.http.get(
3955
4054
  `/deployments/${this.deploymentId}/runtime-instances/${instanceId}/logs`,
3956
4055
  { lines }
3957
4056
  );
3958
- const unwrapped = unwrap25(data);
4057
+ const unwrapped = unwrap26(data);
3959
4058
  const result = { logs: String(unwrapped.logs ?? "") };
3960
4059
  if (typeof unwrapped.runtime_instance_id === "string") {
3961
4060
  result.runtime_instance_id = unwrapped.runtime_instance_id;
@@ -3977,7 +4076,7 @@ var DeploymentDomains = class {
3977
4076
  http;
3978
4077
  deploymentId;
3979
4078
  async add(domain, params = {}) {
3980
- const body3 = {
4079
+ const body4 = {
3981
4080
  domain,
3982
4081
  redirect_policy: params.redirectPolicy ?? params.redirect_policy,
3983
4082
  ...attributionBody(params)
@@ -3986,11 +4085,11 @@ var DeploymentDomains = class {
3986
4085
  `/deployments/${this.deploymentId}/domains`,
3987
4086
  {
3988
4087
  method: "POST",
3989
- body: stripUndefined11(body3),
4088
+ body: stripUndefined12(body4),
3990
4089
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
3991
4090
  }
3992
4091
  );
3993
- return unwrap25(data);
4092
+ return unwrap26(data);
3994
4093
  }
3995
4094
  async list(filters = {}) {
3996
4095
  const data = await this.http.get(
@@ -4003,7 +4102,7 @@ var DeploymentDomains = class {
4003
4102
  const data = await this.http.post(
4004
4103
  `/deployments/${this.deploymentId}/domains/${domainId}/verify`
4005
4104
  );
4006
- return unwrap25(data);
4105
+ return unwrap26(data);
4007
4106
  }
4008
4107
  async delete(domainId) {
4009
4108
  await this.http.delete(
@@ -4018,7 +4117,7 @@ var Deployments = class {
4018
4117
  http;
4019
4118
  async list(params = {}) {
4020
4119
  const projectId = params.projectId ?? params.project_id;
4021
- const query2 = stripUndefined11({
4120
+ const query2 = stripUndefined12({
4022
4121
  project_id: projectId,
4023
4122
  state: params.state,
4024
4123
  limit: params.limit,
@@ -4033,10 +4132,10 @@ var Deployments = class {
4033
4132
  }
4034
4133
  async get(deploymentId) {
4035
4134
  const data = await this.http.get(`/deployments/${deploymentId}`);
4036
- return unwrap25(data);
4135
+ return unwrap26(data);
4037
4136
  }
4038
4137
  async create(params) {
4039
- const body3 = stripUndefined11({
4138
+ const body4 = stripUndefined12({
4040
4139
  name: params.name,
4041
4140
  repo_url: params.repoUrl ?? params.repo_url,
4042
4141
  branch: params.branch,
@@ -4049,10 +4148,10 @@ var Deployments = class {
4049
4148
  });
4050
4149
  const data = await this.http.request("/deployments", {
4051
4150
  method: "POST",
4052
- body: body3,
4151
+ body: body4,
4053
4152
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4054
4153
  });
4055
- return unwrap25(data);
4154
+ return unwrap26(data);
4056
4155
  }
4057
4156
  /**
4058
4157
  * Create a deployment that runs on the workspace's dedicated Docker Deploy
@@ -4096,7 +4195,7 @@ var Deployments = class {
4096
4195
  const rawHost = await this.http.get(
4097
4196
  `/docker-deploy/hosts/${hostId}`
4098
4197
  );
4099
- host = unwrap25(
4198
+ host = unwrap26(
4100
4199
  rawHost
4101
4200
  );
4102
4201
  addDoctorCheck(
@@ -4199,7 +4298,7 @@ var Deployments = class {
4199
4298
  };
4200
4299
  }
4201
4300
  async update(deploymentId, params) {
4202
- const body3 = stripUndefined11({
4301
+ const body4 = stripUndefined12({
4203
4302
  name: params.name,
4204
4303
  branch: params.branch,
4205
4304
  build_command: params.buildCommand ?? params.build_command,
@@ -4208,15 +4307,15 @@ var Deployments = class {
4208
4307
  });
4209
4308
  const data = await this.http.patch(
4210
4309
  `/deployments/${deploymentId}`,
4211
- body3
4310
+ body4
4212
4311
  );
4213
- return unwrap25(data);
4312
+ return unwrap26(data);
4214
4313
  }
4215
4314
  async delete(deploymentId) {
4216
4315
  await this.http.delete(`/deployments/${deploymentId}`);
4217
4316
  }
4218
4317
  async publish(deploymentId, params) {
4219
- const body3 = stripUndefined11({
4318
+ const body4 = stripUndefined12({
4220
4319
  source_sandbox_id: params.sourceSandboxId ?? params.source_sandbox_id,
4221
4320
  output_path: params.outputPath ?? params.output_path,
4222
4321
  entrypoint: params.entrypoint,
@@ -4226,11 +4325,11 @@ var Deployments = class {
4226
4325
  `/deployments/${deploymentId}/publish`,
4227
4326
  {
4228
4327
  method: "POST",
4229
- body: body3,
4328
+ body: body4,
4230
4329
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4231
4330
  }
4232
4331
  );
4233
- return unwrap25(data);
4332
+ return unwrap26(data);
4234
4333
  }
4235
4334
  /**
4236
4335
  * Backward-compatible bridge: POST /sandboxes/:id/deploy. Works today;
@@ -4238,7 +4337,7 @@ var Deployments = class {
4238
4337
  * phase. Prefer `publish()` once Phase 2B/3 lands.
4239
4338
  */
4240
4339
  async publishFromSandbox(sandboxId, params = {}) {
4241
- const body3 = stripUndefined11({
4340
+ const body4 = stripUndefined12({
4242
4341
  name: params.name,
4243
4342
  deployment_id: params.deploymentId ?? params.deployment_id,
4244
4343
  output_path: params.outputPath ?? params.output_path,
@@ -4251,25 +4350,25 @@ var Deployments = class {
4251
4350
  `/sandboxes/${sandboxId}/deploy`,
4252
4351
  {
4253
4352
  method: "POST",
4254
- body: body3,
4353
+ body: body4,
4255
4354
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4256
4355
  }
4257
4356
  );
4258
- return unwrap25(data);
4357
+ return unwrap26(data);
4259
4358
  }
4260
4359
  async rollback(deploymentId, params = {}) {
4261
- const body3 = stripUndefined11({
4360
+ const body4 = stripUndefined12({
4262
4361
  version_id: params.versionId ?? params.version_id
4263
4362
  });
4264
4363
  const data = await this.http.request(
4265
4364
  `/deployments/${deploymentId}/rollback`,
4266
4365
  {
4267
4366
  method: "POST",
4268
- body: body3,
4367
+ body: body4,
4269
4368
  headers: { "Idempotency-Key": idempotencyKey4(params.idempotencyKey) }
4270
4369
  }
4271
4370
  );
4272
- return unwrap25(data);
4371
+ return unwrap26(data);
4273
4372
  }
4274
4373
  async listBuilds(deploymentId) {
4275
4374
  const data = await this.http.get(
@@ -4281,7 +4380,7 @@ var Deployments = class {
4281
4380
  const data = await this.http.get(
4282
4381
  `/deployments/${deploymentId}/builds/${buildId}`
4283
4382
  );
4284
- return unwrap25(data);
4383
+ return unwrap26(data);
4285
4384
  }
4286
4385
  async listEnv(deploymentId) {
4287
4386
  const data = await this.http.get(
@@ -4290,10 +4389,10 @@ var Deployments = class {
4290
4389
  return listItems4(data);
4291
4390
  }
4292
4391
  async setEnv(deploymentId, vars, opts = {}) {
4293
- const body3 = stripUndefined11({ env: vars, environment: opts.environment });
4392
+ const body4 = stripUndefined12({ env: vars, environment: opts.environment });
4294
4393
  const data = await this.http.post(
4295
4394
  `/deployments/${deploymentId}/env`,
4296
- body3
4395
+ body4
4297
4396
  );
4298
4397
  return listItems4(data);
4299
4398
  }
@@ -4319,12 +4418,12 @@ function workspaceId(params) {
4319
4418
  return params?.workspace_id ?? params?.workspaceId;
4320
4419
  }
4321
4420
  function ensureBody(params) {
4322
- const body3 = {};
4421
+ const body4 = {};
4323
4422
  const id = params.workspace_id ?? params.workspaceId;
4324
4423
  const externalId = params.external_workspace_id ?? params.externalWorkspaceId;
4325
- if (id) body3.workspace_id = id;
4326
- if (externalId) body3.external_workspace_id = externalId;
4327
- return body3;
4424
+ if (id) body4.workspace_id = id;
4425
+ if (externalId) body4.external_workspace_id = externalId;
4426
+ return body4;
4328
4427
  }
4329
4428
  function unwrapHost(response) {
4330
4429
  const host = response.data ?? response.host;
@@ -4399,7 +4498,7 @@ var DockerDeploy = class {
4399
4498
  };
4400
4499
 
4401
4500
  // src/resources/email.ts
4402
- function unwrap26(data) {
4501
+ function unwrap27(data) {
4403
4502
  if (data && typeof data === "object") {
4404
4503
  const d = data;
4405
4504
  for (const k of [
@@ -4451,12 +4550,12 @@ var EmailCampaigns = class {
4451
4550
  );
4452
4551
  }
4453
4552
  async create(attrs) {
4454
- return unwrap26(
4553
+ return unwrap27(
4455
4554
  await this.http.post("/admin/email-campaigns", strip(attrs))
4456
4555
  );
4457
4556
  }
4458
4557
  async recipientCount(filters = {}) {
4459
- return unwrap26(
4558
+ return unwrap27(
4460
4559
  await this.http.get(
4461
4560
  "/admin/email-campaigns/recipient-count",
4462
4561
  filters
@@ -4464,7 +4563,7 @@ var EmailCampaigns = class {
4464
4563
  );
4465
4564
  }
4466
4565
  async send(campaignId, opts = {}) {
4467
- return unwrap26(
4566
+ return unwrap27(
4468
4567
  await this.http.post(
4469
4568
  `/admin/email-campaigns/${campaignId}/send`,
4470
4569
  strip(opts)
@@ -4472,7 +4571,7 @@ var EmailCampaigns = class {
4472
4571
  );
4473
4572
  }
4474
4573
  async cancel(campaignId) {
4475
- return unwrap26(
4574
+ return unwrap27(
4476
4575
  await this.http.post(
4477
4576
  `/admin/email-campaigns/${campaignId}/cancel`
4478
4577
  )
@@ -4498,7 +4597,7 @@ var EmailTemplates = class {
4498
4597
  );
4499
4598
  }
4500
4599
  async create(key, attrs = {}) {
4501
- return unwrap26(
4600
+ return unwrap27(
4502
4601
  await this.http.post("/admin/email-templates", {
4503
4602
  key,
4504
4603
  ...strip(attrs)
@@ -4506,7 +4605,7 @@ var EmailTemplates = class {
4506
4605
  );
4507
4606
  }
4508
4607
  async update(key, attrs) {
4509
- return unwrap26(
4608
+ return unwrap27(
4510
4609
  await this.http.put(
4511
4610
  `/admin/email-templates/${key}`,
4512
4611
  strip(attrs)
@@ -4514,7 +4613,7 @@ var EmailTemplates = class {
4514
4613
  );
4515
4614
  }
4516
4615
  async reset(key) {
4517
- return unwrap26(
4616
+ return unwrap27(
4518
4617
  await this.http.post(`/admin/email-templates/${key}/reset`)
4519
4618
  );
4520
4619
  }
@@ -4530,17 +4629,17 @@ var EmailInbox = class {
4530
4629
  );
4531
4630
  }
4532
4631
  async send(attrs) {
4533
- return unwrap26(
4632
+ return unwrap27(
4534
4633
  await this.http.post("/admin/email-inbox/send", strip(attrs))
4535
4634
  );
4536
4635
  }
4537
4636
  async markRead(messageId) {
4538
- return unwrap26(
4637
+ return unwrap27(
4539
4638
  await this.http.post(`/admin/email-inbox/${messageId}/read`)
4540
4639
  );
4541
4640
  }
4542
4641
  async archive(messageId) {
4543
- return unwrap26(
4642
+ return unwrap27(
4544
4643
  await this.http.post(`/admin/email-inbox/${messageId}/archive`)
4545
4644
  );
4546
4645
  }
@@ -4569,18 +4668,18 @@ var Embeddings = class {
4569
4668
  * `{ object: "list", data: [...], model, usage }`.
4570
4669
  */
4571
4670
  async create(params) {
4572
- const body3 = Object.fromEntries(
4671
+ const body4 = Object.fromEntries(
4573
4672
  Object.entries(params).filter(([, v]) => v !== void 0)
4574
4673
  );
4575
4674
  return this.http.post(
4576
4675
  "/intelligence/embeddings",
4577
- body3
4676
+ body4
4578
4677
  );
4579
4678
  }
4580
4679
  };
4581
4680
 
4582
4681
  // src/resources/external-keys.ts
4583
- function unwrap27(payload) {
4682
+ function unwrap28(payload) {
4584
4683
  if (payload && typeof payload === "object") {
4585
4684
  const p = payload;
4586
4685
  for (const k of ["data", "external_keys", "items"]) {
@@ -4589,7 +4688,7 @@ function unwrap27(payload) {
4589
4688
  }
4590
4689
  return payload;
4591
4690
  }
4592
- function stripUndefined12(input) {
4691
+ function stripUndefined13(input) {
4593
4692
  return Object.fromEntries(
4594
4693
  Object.entries(input).filter(([, v]) => v !== void 0)
4595
4694
  );
@@ -4602,22 +4701,22 @@ var ExternalKeys = class {
4602
4701
  /** List configured external keys. */
4603
4702
  async list() {
4604
4703
  const data = await this.http.get("/external-keys");
4605
- const result = unwrap27(data);
4704
+ const result = unwrap28(data);
4606
4705
  if (Array.isArray(result)) return result;
4607
4706
  return [];
4608
4707
  }
4609
4708
  /** Create / register an external provider key. */
4610
4709
  async create(params) {
4611
- const body3 = stripUndefined12(params);
4612
- const data = await this.http.post("/external-keys", body3);
4613
- return unwrap27(data);
4710
+ const body4 = stripUndefined13(params);
4711
+ const data = await this.http.post("/external-keys", body4);
4712
+ return unwrap28(data);
4614
4713
  }
4615
4714
  /** Resolve (preview) the stored key for a provider. */
4616
4715
  async resolve(provider) {
4617
4716
  const data = await this.http.get(
4618
4717
  `/external-keys/${provider}/resolve`
4619
4718
  );
4620
- return unwrap27(data);
4719
+ return unwrap28(data);
4621
4720
  }
4622
4721
  /**
4623
4722
  * Delete the stored key for a provider.
@@ -4627,7 +4726,7 @@ var ExternalKeys = class {
4627
4726
  await this.http.delete(`/external-keys/${provider}`);
4628
4727
  }
4629
4728
  };
4630
- function unwrap28(payload) {
4729
+ function unwrap29(payload) {
4631
4730
  if (payload && typeof payload === "object" && "data" in payload) {
4632
4731
  return payload.data;
4633
4732
  }
@@ -4643,7 +4742,7 @@ function listItems5(payload, candidateKeys = ["data", "domains", "items"]) {
4643
4742
  }
4644
4743
  return [];
4645
4744
  }
4646
- function stripUndefined13(input) {
4745
+ function stripUndefined14(input) {
4647
4746
  return Object.fromEntries(
4648
4747
  Object.entries(input).filter(([, v]) => v !== void 0)
4649
4748
  );
@@ -4657,7 +4756,7 @@ var FlatCustomDomains = class {
4657
4756
  }
4658
4757
  http;
4659
4758
  async list(params = {}) {
4660
- const query2 = stripUndefined13({ ...params });
4759
+ const query2 = stripUndefined14({ ...params });
4661
4760
  const data = await this.http.get("/custom-domains", query2);
4662
4761
  return listItems5(data);
4663
4762
  }
@@ -4669,7 +4768,7 @@ var FlatCustomDomains = class {
4669
4768
  redirectPolicy,
4670
4769
  ...rest
4671
4770
  } = params;
4672
- const body3 = stripUndefined13({
4771
+ const body4 = stripUndefined14({
4673
4772
  ...rest,
4674
4773
  resource_type: resourceType ?? rest.resource_type,
4675
4774
  resource_id: resourceId ?? rest.resource_id,
@@ -4677,16 +4776,16 @@ var FlatCustomDomains = class {
4677
4776
  });
4678
4777
  const data = await this.http.request("/custom-domains", {
4679
4778
  method: "POST",
4680
- body: body3,
4779
+ body: body4,
4681
4780
  headers: { "Idempotency-Key": idempotencyKey5(ikey) }
4682
4781
  });
4683
- return unwrap28(data);
4782
+ return unwrap29(data);
4684
4783
  }
4685
4784
  async delete(domainId) {
4686
4785
  await this.http.delete(`/custom-domains/${domainId}`);
4687
4786
  }
4688
4787
  };
4689
- function unwrap29(payload) {
4788
+ function unwrap30(payload) {
4690
4789
  if (payload && typeof payload === "object" && "data" in payload) {
4691
4790
  return payload.data;
4692
4791
  }
@@ -4702,7 +4801,7 @@ function listItems6(payload, candidateKeys = ["data", "functions", "items"]) {
4702
4801
  }
4703
4802
  return [];
4704
4803
  }
4705
- function stripUndefined14(input) {
4804
+ function stripUndefined15(input) {
4706
4805
  return Object.fromEntries(
4707
4806
  Object.entries(input).filter(([, v]) => v !== void 0)
4708
4807
  );
@@ -4716,40 +4815,40 @@ var Functions = class {
4716
4815
  }
4717
4816
  http;
4718
4817
  async list(params = {}) {
4719
- const query2 = stripUndefined14({ ...params });
4818
+ const query2 = stripUndefined15({ ...params });
4720
4819
  const data = await this.http.get("/functions", query2);
4721
4820
  return listItems6(data);
4722
4821
  }
4723
4822
  async get(functionId) {
4724
4823
  const data = await this.http.get(`/functions/${functionId}`);
4725
- return unwrap29(data);
4824
+ return unwrap30(data);
4726
4825
  }
4727
4826
  async create(params) {
4728
4827
  const { idempotencyKey: ikey, memoryMb, timeoutSec, ...rest } = params;
4729
- const body3 = stripUndefined14({
4828
+ const body4 = stripUndefined15({
4730
4829
  ...rest,
4731
4830
  memory_mb: memoryMb ?? rest.memory_mb,
4732
4831
  timeout_sec: timeoutSec ?? rest.timeout_sec
4733
4832
  });
4734
4833
  const data = await this.http.request("/functions", {
4735
4834
  method: "POST",
4736
- body: body3,
4835
+ body: body4,
4737
4836
  headers: { "Idempotency-Key": idempotencyKey6(ikey) }
4738
4837
  });
4739
- return unwrap29(data);
4838
+ return unwrap30(data);
4740
4839
  }
4741
4840
  async update(functionId, params) {
4742
4841
  const { memoryMb, timeoutSec, ...rest } = params;
4743
- const body3 = stripUndefined14({
4842
+ const body4 = stripUndefined15({
4744
4843
  ...rest,
4745
4844
  memory_mb: memoryMb ?? rest.memory_mb,
4746
4845
  timeout_sec: timeoutSec ?? rest.timeout_sec
4747
4846
  });
4748
4847
  const data = await this.http.patch(
4749
4848
  `/functions/${functionId}`,
4750
- body3
4849
+ body4
4751
4850
  );
4752
- return unwrap29(data);
4851
+ return unwrap30(data);
4753
4852
  }
4754
4853
  async delete(functionId) {
4755
4854
  await this.http.delete(`/functions/${functionId}`);
@@ -4770,7 +4869,7 @@ var Functions = class {
4770
4869
  return data ?? {};
4771
4870
  }
4772
4871
  };
4773
- function unwrap30(payload) {
4872
+ function unwrap31(payload) {
4774
4873
  if (payload && typeof payload === "object" && "data" in payload) {
4775
4874
  return payload.data;
4776
4875
  }
@@ -4786,7 +4885,7 @@ function listItems7(payload, candidateKeys = ["data", "health_checks", "items"])
4786
4885
  }
4787
4886
  return [];
4788
4887
  }
4789
- function stripUndefined15(input) {
4888
+ function stripUndefined16(input) {
4790
4889
  return Object.fromEntries(
4791
4890
  Object.entries(input).filter(([, v]) => v !== void 0)
4792
4891
  );
@@ -4800,13 +4899,13 @@ var HealthChecks = class {
4800
4899
  }
4801
4900
  http;
4802
4901
  async list(params = {}) {
4803
- const query2 = stripUndefined15({ ...params });
4902
+ const query2 = stripUndefined16({ ...params });
4804
4903
  const data = await this.http.get("/health-checks", query2);
4805
4904
  return listItems7(data);
4806
4905
  }
4807
4906
  async get(checkId) {
4808
4907
  const data = await this.http.get(`/health-checks/${checkId}`);
4809
- return unwrap30(data);
4908
+ return unwrap31(data);
4810
4909
  }
4811
4910
  async create(params) {
4812
4911
  const {
@@ -4816,7 +4915,7 @@ var HealthChecks = class {
4816
4915
  expectedStatus,
4817
4916
  ...rest
4818
4917
  } = params;
4819
- const body3 = stripUndefined15({
4918
+ const body4 = stripUndefined16({
4820
4919
  ...rest,
4821
4920
  interval_sec: intervalSec ?? rest.interval_sec,
4822
4921
  timeout_sec: timeoutSec ?? rest.timeout_sec,
@@ -4824,14 +4923,14 @@ var HealthChecks = class {
4824
4923
  });
4825
4924
  const data = await this.http.request("/health-checks", {
4826
4925
  method: "POST",
4827
- body: body3,
4926
+ body: body4,
4828
4927
  headers: { "Idempotency-Key": idempotencyKey7(ikey) }
4829
4928
  });
4830
- return unwrap30(data);
4929
+ return unwrap31(data);
4831
4930
  }
4832
4931
  async update(checkId, params) {
4833
4932
  const { intervalSec, timeoutSec, expectedStatus, ...rest } = params;
4834
- const body3 = stripUndefined15({
4933
+ const body4 = stripUndefined16({
4835
4934
  ...rest,
4836
4935
  interval_sec: intervalSec ?? rest.interval_sec,
4837
4936
  timeout_sec: timeoutSec ?? rest.timeout_sec,
@@ -4839,9 +4938,9 @@ var HealthChecks = class {
4839
4938
  });
4840
4939
  const data = await this.http.patch(
4841
4940
  `/health-checks/${checkId}`,
4842
- body3
4941
+ body4
4843
4942
  );
4844
- return unwrap30(data);
4943
+ return unwrap31(data);
4845
4944
  }
4846
4945
  async delete(checkId) {
4847
4946
  await this.http.delete(`/health-checks/${checkId}`);
@@ -4849,7 +4948,7 @@ var HealthChecks = class {
4849
4948
  };
4850
4949
 
4851
4950
  // src/resources/integrations.ts
4852
- function unwrap31(payload) {
4951
+ function unwrap32(payload) {
4853
4952
  if (payload && typeof payload === "object") {
4854
4953
  const p = payload;
4855
4954
  for (const k of ["data", "integrations", "catalog", "items"]) {
@@ -4859,11 +4958,11 @@ function unwrap31(payload) {
4859
4958
  return payload;
4860
4959
  }
4861
4960
  function listItems8(payload) {
4862
- const result = unwrap31(payload);
4961
+ const result = unwrap32(payload);
4863
4962
  if (Array.isArray(result)) return result;
4864
4963
  return [];
4865
4964
  }
4866
- function stripUndefined16(input) {
4965
+ function stripUndefined17(input) {
4867
4966
  return Object.fromEntries(
4868
4967
  Object.entries(input).filter(([, v]) => v !== void 0)
4869
4968
  );
@@ -4888,14 +4987,14 @@ var Integrations = class {
4888
4987
  const data = await this.http.get(
4889
4988
  `/integrations/${provider}/start`
4890
4989
  );
4891
- return unwrap31(data);
4990
+ return unwrap32(data);
4892
4991
  }
4893
4992
  /** Force-refresh the access token for a provider. */
4894
4993
  async refresh(provider) {
4895
4994
  const data = await this.http.post(
4896
4995
  `/integrations/${provider}/refresh`
4897
4996
  );
4898
- return unwrap31(data);
4997
+ return unwrap32(data);
4899
4998
  }
4900
4999
  /** Disconnect (revoke) an integration. */
4901
5000
  async disconnect(provider) {
@@ -4915,41 +5014,41 @@ var Integrations = class {
4915
5014
  // ── Test hooks ─────────────────────────────────────────────────────────────
4916
5015
  /** Send a test message to the connected Slack channel. */
4917
5016
  async slackSendTest(params = {}) {
4918
- const body3 = stripUndefined16(params);
5017
+ const body4 = stripUndefined17(params);
4919
5018
  const data = await this.http.post(
4920
5019
  "/integrations/slack/send-test",
4921
- body3
5020
+ body4
4922
5021
  );
4923
- return unwrap31(data);
5022
+ return unwrap32(data);
4924
5023
  }
4925
5024
  /** Send a test message to the connected Discord channel. */
4926
5025
  async discordSendTest(params = {}) {
4927
- const body3 = stripUndefined16(params);
5026
+ const body4 = stripUndefined17(params);
4928
5027
  const data = await this.http.post(
4929
5028
  "/integrations/discord/send-test",
4930
- body3
5029
+ body4
4931
5030
  );
4932
- return unwrap31(data);
5031
+ return unwrap32(data);
4933
5032
  }
4934
5033
  // ── Linear dedicated controller ────────────────────────────────────────────
4935
5034
  /** Begin Linear OAuth — Linear has provider-specific error shapes. */
4936
5035
  async linearStart() {
4937
5036
  const data = await this.http.get("/integrations/linear/start");
4938
- return unwrap31(data);
5037
+ return unwrap32(data);
4939
5038
  }
4940
5039
  /** Create a Linear issue via the connected workspace. */
4941
5040
  async linearCreateIssue(params = {}) {
4942
- const body3 = stripUndefined16(params);
5041
+ const body4 = stripUndefined17(params);
4943
5042
  const data = await this.http.post(
4944
5043
  "/integrations/linear/create-issue",
4945
- body3
5044
+ body4
4946
5045
  );
4947
- return unwrap31(data);
5046
+ return unwrap32(data);
4948
5047
  }
4949
5048
  };
4950
5049
 
4951
5050
  // src/resources/mcp.ts
4952
- function unwrap32(payload) {
5051
+ function unwrap33(payload) {
4953
5052
  if (payload && typeof payload === "object") {
4954
5053
  const p = payload;
4955
5054
  for (const k of ["data", "mcp", "result", "items"]) {
@@ -4958,7 +5057,7 @@ function unwrap32(payload) {
4958
5057
  }
4959
5058
  return payload;
4960
5059
  }
4961
- function stripUndefined17(input) {
5060
+ function stripUndefined18(input) {
4962
5061
  return Object.fromEntries(
4963
5062
  Object.entries(input).filter(([, v]) => v !== void 0)
4964
5063
  );
@@ -4970,12 +5069,12 @@ var Mcp = class {
4970
5069
  http;
4971
5070
  /** Send a JSON-RPC request to the MCP endpoint. */
4972
5071
  async dispatch(params = {}) {
4973
- const body3 = stripUndefined17(params);
5072
+ const body4 = stripUndefined18(params);
4974
5073
  const data = await this.http.post(
4975
5074
  "/mcp",
4976
- Object.keys(body3).length > 0 ? body3 : void 0
5075
+ Object.keys(body4).length > 0 ? body4 : void 0
4977
5076
  );
4978
- return unwrap32(data);
5077
+ return unwrap33(data);
4979
5078
  }
4980
5079
  /**
4981
5080
  * Open the MCP listen channel (GET).
@@ -4985,7 +5084,7 @@ var Mcp = class {
4985
5084
  */
4986
5085
  async listen() {
4987
5086
  const data = await this.http.get("/mcp");
4988
- return unwrap32(data);
5087
+ return unwrap33(data);
4989
5088
  }
4990
5089
  /** Close (terminate) the MCP session. */
4991
5090
  async close() {
@@ -4994,7 +5093,7 @@ var Mcp = class {
4994
5093
  };
4995
5094
 
4996
5095
  // src/resources/models.ts
4997
- function unwrap33(data) {
5096
+ function unwrap34(data) {
4998
5097
  if (Array.isArray(data)) return data;
4999
5098
  if (data && typeof data === "object") {
5000
5099
  const d = data;
@@ -5015,7 +5114,7 @@ var Models = class {
5015
5114
  Object.entries(filters).filter(([, v]) => v !== void 0)
5016
5115
  );
5017
5116
  const data = await this.http.get("/intelligence/models", query2);
5018
- return unwrap33(data);
5117
+ return unwrap34(data);
5019
5118
  }
5020
5119
  /**
5021
5120
  * Get a single model by id.
@@ -5658,7 +5757,7 @@ function resourcePayload(params) {
5658
5757
  return { resource_type, resource_id };
5659
5758
  }
5660
5759
  function authConfig(params) {
5661
- return stripUndefined18({
5760
+ return stripUndefined19({
5662
5761
  ...params.config ?? {},
5663
5762
  signup_enabled: params.signup_enabled ?? params.signupEnabled,
5664
5763
  email_confirm_required: params.email_confirm_required ?? params.emailConfirmRequired,
@@ -5666,12 +5765,12 @@ function authConfig(params) {
5666
5765
  });
5667
5766
  }
5668
5767
  function requestBody(params) {
5669
- return stripUndefined18({
5768
+ return stripUndefined19({
5670
5769
  ...resourcePayload(params),
5671
5770
  config: authConfig(params)
5672
5771
  });
5673
5772
  }
5674
- function unwrap34(payload) {
5773
+ function unwrap35(payload) {
5675
5774
  if (payload && typeof payload === "object") {
5676
5775
  const p = payload;
5677
5776
  for (const k of ["data", "project_auth", "config", "items"]) {
@@ -5680,7 +5779,7 @@ function unwrap34(payload) {
5680
5779
  }
5681
5780
  return payload;
5682
5781
  }
5683
- function stripUndefined18(input) {
5782
+ function stripUndefined19(input) {
5684
5783
  return Object.fromEntries(
5685
5784
  Object.entries(input).filter(([, v]) => v !== void 0)
5686
5785
  );
@@ -5696,13 +5795,13 @@ var ProjectAuth = class {
5696
5795
  "/project-auth/status",
5697
5796
  resourcePayload(params)
5698
5797
  );
5699
- return unwrap34(data);
5798
+ return unwrap35(data);
5700
5799
  }
5701
5800
  /** Enable project auth. */
5702
5801
  async enable(params) {
5703
- const body3 = requestBody(params);
5704
- const data = await this.http.post("/project-auth/enable", body3);
5705
- return unwrap34(data);
5802
+ const body4 = requestBody(params);
5803
+ const data = await this.http.post("/project-auth/enable", body4);
5804
+ return unwrap35(data);
5706
5805
  }
5707
5806
  /** Disable project auth. */
5708
5807
  async disable(params) {
@@ -5710,18 +5809,18 @@ var ProjectAuth = class {
5710
5809
  "/project-auth/disable",
5711
5810
  resourcePayload(params)
5712
5811
  );
5713
- return unwrap34(data);
5812
+ return unwrap35(data);
5714
5813
  }
5715
5814
  /** Update project-auth configuration. */
5716
5815
  async update(params) {
5717
- const body3 = requestBody(params);
5718
- const data = await this.http.patch("/project-auth/config", body3);
5719
- return unwrap34(data);
5816
+ const body4 = requestBody(params);
5817
+ const data = await this.http.patch("/project-auth/config", body4);
5818
+ return unwrap35(data);
5720
5819
  }
5721
5820
  };
5722
5821
 
5723
5822
  // src/resources/project-integrations.ts
5724
- function unwrap35(payload) {
5823
+ function unwrap36(payload) {
5725
5824
  if (payload && typeof payload === "object") {
5726
5825
  const p = payload;
5727
5826
  for (const k of ["data", "project_integrations", "catalog", "items"]) {
@@ -5731,11 +5830,11 @@ function unwrap35(payload) {
5731
5830
  return payload;
5732
5831
  }
5733
5832
  function listItems9(payload) {
5734
- const result = unwrap35(payload);
5833
+ const result = unwrap36(payload);
5735
5834
  if (Array.isArray(result)) return result;
5736
5835
  return [];
5737
5836
  }
5738
- function stripUndefined19(input) {
5837
+ function stripUndefined20(input) {
5739
5838
  return Object.fromEntries(
5740
5839
  Object.entries(input).filter(([, v]) => v !== void 0)
5741
5840
  );
@@ -5752,7 +5851,7 @@ var ProjectIntegrations = class {
5752
5851
  http;
5753
5852
  /** List project integrations. */
5754
5853
  async list(params = {}) {
5755
- const query2 = stripUndefined19(params);
5854
+ const query2 = stripUndefined20(params);
5756
5855
  const data = await this.http.get("/project-integrations", query2);
5757
5856
  return listItems9(data);
5758
5857
  }
@@ -5766,22 +5865,22 @@ var ProjectIntegrations = class {
5766
5865
  const data = await this.http.get(
5767
5866
  `/project-integrations/${integrationId}`
5768
5867
  );
5769
- return unwrap35(data);
5868
+ return unwrap36(data);
5770
5869
  }
5771
5870
  /** Create a project integration. */
5772
5871
  async create(params) {
5773
- const body3 = stripUndefObj2(params);
5774
- const data = await this.http.post("/project-integrations", body3);
5775
- return unwrap35(data);
5872
+ const body4 = stripUndefObj2(params);
5873
+ const data = await this.http.post("/project-integrations", body4);
5874
+ return unwrap36(data);
5776
5875
  }
5777
5876
  /** Update a project integration. */
5778
5877
  async update(integrationId, params) {
5779
- const body3 = stripUndefObj2(params);
5878
+ const body4 = stripUndefObj2(params);
5780
5879
  const data = await this.http.patch(
5781
5880
  `/project-integrations/${integrationId}`,
5782
- body3
5881
+ body4
5783
5882
  );
5784
- return unwrap35(data);
5883
+ return unwrap36(data);
5785
5884
  }
5786
5885
  /** Delete a project integration. */
5787
5886
  async delete(integrationId) {
@@ -5790,7 +5889,7 @@ var ProjectIntegrations = class {
5790
5889
  };
5791
5890
 
5792
5891
  // src/resources/provider-defaults.ts
5793
- function unwrap36(data) {
5892
+ function unwrap37(data) {
5794
5893
  if (data && typeof data === "object") {
5795
5894
  const d = data;
5796
5895
  for (const k of ["data", "defaults", "provider_defaults", "config"]) {
@@ -5806,7 +5905,7 @@ var ProviderDefaults = class {
5806
5905
  http;
5807
5906
  /** Get the current fleet-wide provider defaults. */
5808
5907
  async list() {
5809
- return unwrap36(await this.http.get("/admin/provider-defaults"));
5908
+ return unwrap37(await this.http.get("/admin/provider-defaults"));
5810
5909
  }
5811
5910
  /** Return the defaults entry for a single provider, or {} if missing. */
5812
5911
  async get(provider) {
@@ -5819,29 +5918,29 @@ var ProviderDefaults = class {
5819
5918
  }
5820
5919
  /** Replace the fleet-wide defaults (PUT /admin/provider-defaults). */
5821
5920
  async update(opts) {
5822
- const body3 = Object.fromEntries(
5921
+ const body4 = Object.fromEntries(
5823
5922
  Object.entries(opts).filter(([, v]) => v !== void 0)
5824
5923
  );
5825
- return unwrap36(
5826
- await this.http.put("/admin/provider-defaults", body3)
5924
+ return unwrap37(
5925
+ await this.http.put("/admin/provider-defaults", body4)
5827
5926
  );
5828
5927
  }
5829
5928
  // ── Per-tenant overrides ────────────────────────────────────────────────
5830
5929
  async getTenant(tenantId) {
5831
- return unwrap36(
5930
+ return unwrap37(
5832
5931
  await this.http.get(
5833
5932
  `/admin/tenants/${tenantId}/provider-config`
5834
5933
  )
5835
5934
  );
5836
5935
  }
5837
5936
  async setTenant(tenantId, opts) {
5838
- const body3 = Object.fromEntries(
5937
+ const body4 = Object.fromEntries(
5839
5938
  Object.entries(opts).filter(([, v]) => v !== void 0)
5840
5939
  );
5841
- return unwrap36(
5940
+ return unwrap37(
5842
5941
  await this.http.put(
5843
5942
  `/admin/tenants/${tenantId}/provider-config`,
5844
- body3
5943
+ body4
5845
5944
  )
5846
5945
  );
5847
5946
  }
@@ -5851,7 +5950,7 @@ var ProviderDefaults = class {
5851
5950
  };
5852
5951
 
5853
5952
  // src/resources/regions.ts
5854
- function unwrap37(payload) {
5953
+ function unwrap38(payload) {
5855
5954
  if (payload && typeof payload === "object") {
5856
5955
  const p = payload;
5857
5956
  for (const k of [
@@ -5868,7 +5967,7 @@ function unwrap37(payload) {
5868
5967
  return payload;
5869
5968
  }
5870
5969
  function listItems10(payload) {
5871
- const result = unwrap37(payload);
5970
+ const result = unwrap38(payload);
5872
5971
  if (Array.isArray(result)) return result;
5873
5972
  return [];
5874
5973
  }
@@ -5890,7 +5989,7 @@ var Regions = class {
5890
5989
  /** Get static compute pricing data. */
5891
5990
  async pricing() {
5892
5991
  const data = await this.http.get("/compute/pricing");
5893
- return unwrap37(data);
5992
+ return unwrap38(data);
5894
5993
  }
5895
5994
  /** List community computer templates. */
5896
5995
  async listTemplates() {
@@ -5902,18 +6001,18 @@ var Regions = class {
5902
6001
  const data = await this.http.get(
5903
6002
  `/compute/templates/${templateId}`
5904
6003
  );
5905
- return unwrap37(data);
6004
+ return unwrap38(data);
5906
6005
  }
5907
6006
  };
5908
6007
 
5909
6008
  // src/resources/runtime-env.ts
5910
- function unwrap38(payload) {
6009
+ function unwrap39(payload) {
5911
6010
  if (payload !== null && typeof payload === "object" && "data" in payload && payload.data !== void 0) {
5912
6011
  return payload.data;
5913
6012
  }
5914
6013
  return payload;
5915
6014
  }
5916
- function body2(params) {
6015
+ function body3(params) {
5917
6016
  return Object.fromEntries(
5918
6017
  Object.entries({
5919
6018
  scope: params.scope,
@@ -5960,11 +6059,11 @@ var RuntimeEnv = class {
5960
6059
  "/runtime-env",
5961
6060
  query(params)
5962
6061
  );
5963
- return unwrap38(response).map(normalize2);
6062
+ return unwrap39(response).map(normalize2);
5964
6063
  }
5965
6064
  async get(id) {
5966
6065
  return normalize2(
5967
- unwrap38(
6066
+ unwrap39(
5968
6067
  await this.http.get(
5969
6068
  `/runtime-env/${encodeURIComponent(id)}`
5970
6069
  )
@@ -5973,10 +6072,10 @@ var RuntimeEnv = class {
5973
6072
  }
5974
6073
  async set(params) {
5975
6074
  return normalize2(
5976
- unwrap38(
6075
+ unwrap39(
5977
6076
  await this.http.post(
5978
6077
  "/runtime-env",
5979
- body2(params)
6078
+ body3(params)
5980
6079
  )
5981
6080
  )
5982
6081
  );
@@ -6000,7 +6099,7 @@ var AGENT_WORKSPACE_TIMEOUT_SEC = 86400;
6000
6099
  var AGENT_WORKSPACE_IDLE_TIMEOUT_SEC = 1800;
6001
6100
  var AGENT_WORKSPACE_SNAPSHOT_EXPIRATION_DAYS = 30;
6002
6101
  var AGENT_WORKSPACE_KEEP_LAST_SNAPSHOTS = 1;
6003
- function unwrap39(payload) {
6102
+ function unwrap40(payload) {
6004
6103
  if (payload !== null && typeof payload === "object" && "data" in payload && payload.data !== void 0) {
6005
6104
  return payload.data;
6006
6105
  }
@@ -6047,7 +6146,7 @@ function createBody(params = {}) {
6047
6146
  if (keepLastSnapshots !== void 0) {
6048
6147
  metadata.keep_last_snapshots = keepLastSnapshots;
6049
6148
  }
6050
- return stripUndefined20({
6149
+ return stripUndefined21({
6051
6150
  template_id: templateId,
6052
6151
  cpu_count: params.cpuCount ?? params.cpu_count,
6053
6152
  memory_mb: params.memoryMb ?? params.memory_mb,
@@ -6077,14 +6176,14 @@ function createBody(params = {}) {
6077
6176
  });
6078
6177
  }
6079
6178
  function execBody(command, options = {}) {
6080
- return stripUndefined20({
6179
+ return stripUndefined21({
6081
6180
  command,
6082
6181
  cwd: options.cwd ?? options.workingDir ?? options.working_dir,
6083
6182
  env: options.env,
6084
6183
  timeout: options.timeout ?? options.timeoutSec ?? options.timeout_sec
6085
6184
  });
6086
6185
  }
6087
- function stripUndefined20(input) {
6186
+ function stripUndefined21(input) {
6088
6187
  return Object.fromEntries(
6089
6188
  Object.entries(input).filter(([, value]) => value !== void 0)
6090
6189
  );
@@ -6223,11 +6322,11 @@ var SandboxTerminal = class {
6223
6322
  }
6224
6323
  sandbox;
6225
6324
  async create(params = {}) {
6226
- const body3 = Object.fromEntries(
6325
+ const body4 = Object.fromEntries(
6227
6326
  Object.entries(params).filter(([, v]) => v !== void 0)
6228
6327
  );
6229
- const response = unwrap39(
6230
- 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)
6231
6330
  );
6232
6331
  return response;
6233
6332
  }
@@ -6269,21 +6368,21 @@ var SandboxPreviews = class {
6269
6368
  return [];
6270
6369
  }
6271
6370
  async create(port, opts = {}) {
6272
- const body3 = {
6371
+ const body4 = {
6273
6372
  port,
6274
6373
  ...Object.fromEntries(
6275
6374
  Object.entries(opts).filter(([, v]) => v !== void 0)
6276
6375
  )
6277
6376
  };
6278
- return unwrap39(
6377
+ return unwrap40(
6279
6378
  await this.http.post(
6280
6379
  `/sandboxes/${this.sandbox.id}/previews`,
6281
- body3
6380
+ body4
6282
6381
  )
6283
6382
  );
6284
6383
  }
6285
6384
  async get(previewId) {
6286
- return unwrap39(
6385
+ return unwrap40(
6287
6386
  await this.http.get(
6288
6387
  `/sandboxes/${this.sandbox.id}/previews/${previewId}`
6289
6388
  )
@@ -6296,7 +6395,7 @@ var SandboxPreviews = class {
6296
6395
  }
6297
6396
  /** Mint a share token for previewId. */
6298
6397
  async share(previewId, opts = {}) {
6299
- return unwrap39(
6398
+ return unwrap40(
6300
6399
  await this.http.post(
6301
6400
  `/sandboxes/${this.sandbox.id}/previews/${previewId}/share`,
6302
6401
  { ttl_seconds: opts.ttl_seconds ?? opts.expires_in_sec ?? 3600 }
@@ -6365,7 +6464,7 @@ var SandboxTags = class {
6365
6464
  sandbox;
6366
6465
  /** Replace the full tag list with tags. */
6367
6466
  async set(tags) {
6368
- return unwrap39(
6467
+ return unwrap40(
6369
6468
  await this.sandbox.http.patch(`/sandboxes/${this.sandbox.id}/tags`, { tags })
6370
6469
  );
6371
6470
  }
@@ -6433,14 +6532,14 @@ var Sandbox = class _Sandbox {
6433
6532
  return this.data.template_id ?? this.data.image_id ?? "";
6434
6533
  }
6435
6534
  async refresh() {
6436
- this.data = unwrap39(
6535
+ this.data = unwrap40(
6437
6536
  await this.http.get(`/sandboxes/${this.id}`)
6438
6537
  );
6439
6538
  return this;
6440
6539
  }
6441
6540
  async runExec(command, options) {
6442
6541
  this.assertRunning("exec");
6443
- const response = unwrap39(
6542
+ const response = unwrap40(
6444
6543
  await this.http.post(
6445
6544
  `/sandboxes/${this.id}/exec`,
6446
6545
  execBody(command, options)
@@ -6484,11 +6583,11 @@ var Sandbox = class _Sandbox {
6484
6583
  );
6485
6584
  }
6486
6585
  async createExport(params) {
6487
- const body3 = typeof params === "string" ? { path: params } : Array.isArray(params) ? { paths: params } : params;
6488
- const response = unwrap39(
6586
+ const body4 = typeof params === "string" ? { path: params } : Array.isArray(params) ? { paths: params } : params;
6587
+ const response = unwrap40(
6489
6588
  await this.http.post(
6490
6589
  `/sandboxes/${this.id}/exports`,
6491
- body3
6590
+ body4
6492
6591
  )
6493
6592
  );
6494
6593
  return normalizeExport(response);
@@ -6510,7 +6609,7 @@ var Sandbox = class _Sandbox {
6510
6609
  }
6511
6610
  async listFiles(path = "/workspace") {
6512
6611
  this.assertRunning("files.list");
6513
- const response = unwrap39(
6612
+ const response = unwrap40(
6514
6613
  await this.http.get(
6515
6614
  `/sandboxes/${this.id}/files`,
6516
6615
  { path }
@@ -6520,7 +6619,7 @@ var Sandbox = class _Sandbox {
6520
6619
  }
6521
6620
  async statFile(path) {
6522
6621
  this.assertRunning("files.stat");
6523
- return unwrap39(
6622
+ return unwrap40(
6524
6623
  await this.http.post(
6525
6624
  `/sandboxes/${this.id}/files/stat`,
6526
6625
  { path }
@@ -6529,7 +6628,7 @@ var Sandbox = class _Sandbox {
6529
6628
  }
6530
6629
  async expose(port) {
6531
6630
  this.assertRunning("expose");
6532
- const response = unwrap39(
6631
+ const response = unwrap40(
6533
6632
  await this.http.post(
6534
6633
  `/sandboxes/${this.id}/expose`,
6535
6634
  port === void 0 ? {} : { port }
@@ -6539,7 +6638,7 @@ var Sandbox = class _Sandbox {
6539
6638
  }
6540
6639
  async startTemplate(options = {}) {
6541
6640
  this.assertRunning("startTemplate");
6542
- return unwrap39(
6641
+ return unwrap40(
6543
6642
  await this.http.post(
6544
6643
  `/sandboxes/${this.id}/template/start`,
6545
6644
  options
@@ -6547,7 +6646,7 @@ var Sandbox = class _Sandbox {
6547
6646
  );
6548
6647
  }
6549
6648
  async getArtifacts() {
6550
- return unwrap39(
6649
+ return unwrap40(
6551
6650
  await this.http.get(
6552
6651
  `/sandboxes/${this.id}/artifacts`
6553
6652
  )
@@ -6558,7 +6657,7 @@ var Sandbox = class _Sandbox {
6558
6657
  `/sandboxes/${this.id}/logs`,
6559
6658
  { lines }
6560
6659
  );
6561
- return unwrap39(response);
6660
+ return unwrap40(response);
6562
6661
  }
6563
6662
  streamLogs() {
6564
6663
  return this.http.stream(
@@ -6567,7 +6666,7 @@ var Sandbox = class _Sandbox {
6567
6666
  }
6568
6667
  async createSnapshot(comment) {
6569
6668
  this.assertRunning("snapshots.create");
6570
- return unwrap39(
6669
+ return unwrap40(
6571
6670
  await this.http.post(
6572
6671
  `/sandboxes/${this.id}/snapshots`,
6573
6672
  comment ? { comment } : {}
@@ -6575,14 +6674,14 @@ var Sandbox = class _Sandbox {
6575
6674
  );
6576
6675
  }
6577
6676
  async listSnapshots() {
6578
- return unwrap39(
6677
+ return unwrap40(
6579
6678
  await this.http.get(
6580
6679
  `/sandboxes/${this.id}/snapshots`
6581
6680
  )
6582
6681
  );
6583
6682
  }
6584
6683
  async restoreSnapshot(snapshotId) {
6585
- const data = unwrap39(
6684
+ const data = unwrap40(
6586
6685
  await this.http.post(
6587
6686
  `/sandboxes/${this.id}/restore/${snapshotId}`,
6588
6687
  {}
@@ -6599,13 +6698,13 @@ var Sandbox = class _Sandbox {
6599
6698
  */
6600
6699
  async fork(opts = {}) {
6601
6700
  this.assertRunning("fork");
6602
- const body3 = {};
6603
- if (opts.name !== void 0) body3.name = opts.name;
6604
- if (opts.metadata !== void 0) body3.metadata = opts.metadata;
6605
- 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(
6606
6705
  await this.http.post(
6607
6706
  `/sandboxes/${this.id}/fork`,
6608
- body3
6707
+ body4
6609
6708
  )
6610
6709
  );
6611
6710
  return new _Sandbox(this.http, data);
@@ -6624,7 +6723,7 @@ var Sandbox = class _Sandbox {
6624
6723
  if (keepLastSnapshots !== void 0) {
6625
6724
  metadata.keep_last_snapshots = keepLastSnapshots;
6626
6725
  }
6627
- const body3 = stripUndefined20({
6726
+ const body4 = stripUndefined21({
6628
6727
  name: params.name,
6629
6728
  slug: params.slug,
6630
6729
  tags: params.tags,
@@ -6633,17 +6732,17 @@ var Sandbox = class _Sandbox {
6633
6732
  timeout_sec: params.timeout_sec ?? params.timeoutSec,
6634
6733
  idle_timeout_sec: params.idle_timeout_sec ?? params.idleTimeoutSec
6635
6734
  });
6636
- const data = unwrap39(
6735
+ const data = unwrap40(
6637
6736
  await this.http.patch(
6638
6737
  `/sandboxes/${this.id}`,
6639
- body3
6738
+ body4
6640
6739
  )
6641
6740
  );
6642
6741
  this.data = data;
6643
6742
  return this;
6644
6743
  }
6645
6744
  async extend(timeoutSec) {
6646
- const data = unwrap39(
6745
+ const data = unwrap40(
6647
6746
  await this.http.post(
6648
6747
  `/sandboxes/${this.id}/extend`,
6649
6748
  { timeout_sec: timeoutSec }
@@ -6666,7 +6765,7 @@ var Sandbox = class _Sandbox {
6666
6765
  return raw;
6667
6766
  }
6668
6767
  async pause() {
6669
- const data = unwrap39(
6768
+ const data = unwrap40(
6670
6769
  await this.http.post(
6671
6770
  `/sandboxes/${this.id}/pause`,
6672
6771
  {}
@@ -6676,7 +6775,7 @@ var Sandbox = class _Sandbox {
6676
6775
  return this;
6677
6776
  }
6678
6777
  async resume() {
6679
- const data = unwrap39(
6778
+ const data = unwrap40(
6680
6779
  await this.http.post(
6681
6780
  `/sandboxes/${this.id}/resume`,
6682
6781
  {}
@@ -6689,7 +6788,7 @@ var Sandbox = class _Sandbox {
6689
6788
  const idempotencyKey11 = params.idempotencyKey ?? params.idempotency_key;
6690
6789
  const requestOptions = {
6691
6790
  method: "POST",
6692
- body: stripUndefined20({
6791
+ body: stripUndefined21({
6693
6792
  name: params.name,
6694
6793
  deployment_id: params.deploymentId ?? params.deployment_id,
6695
6794
  output_path: params.outputPath ?? params.output_path ?? params.path ?? params.sourcePath ?? params.source_path,
@@ -6712,7 +6811,7 @@ var Sandbox = class _Sandbox {
6712
6811
  if (idempotencyKey11) {
6713
6812
  requestOptions.headers = { "Idempotency-Key": idempotencyKey11 };
6714
6813
  }
6715
- return unwrap39(
6814
+ return unwrap40(
6716
6815
  await this.http.request(
6717
6816
  `/sandboxes/${this.id}/deploy`,
6718
6817
  requestOptions
@@ -6724,7 +6823,7 @@ var Sandbox = class _Sandbox {
6724
6823
  }
6725
6824
  /** Check readiness of the sandbox (GET /sandboxes/:id/readiness). */
6726
6825
  async readiness() {
6727
- return unwrap39(
6826
+ return unwrap40(
6728
6827
  await this.http.get(
6729
6828
  `/sandboxes/${this.id}/readiness`
6730
6829
  )
@@ -6892,7 +6991,7 @@ var Sandboxes = class {
6892
6991
  if (idempotencyKey11) {
6893
6992
  requestOptions.headers = { "Idempotency-Key": idempotencyKey11 };
6894
6993
  }
6895
- const data = unwrap39(
6994
+ const data = unwrap40(
6896
6995
  await this.http.request(
6897
6996
  "/sandboxes",
6898
6997
  requestOptions
@@ -6911,7 +7010,7 @@ var Sandboxes = class {
6911
7010
  return listItems11(data).map((item) => new Sandbox(this.http, item));
6912
7011
  }
6913
7012
  async get(id) {
6914
- const data = unwrap39(
7013
+ const data = unwrap40(
6915
7014
  await this.http.get(`/sandboxes/${id}`)
6916
7015
  );
6917
7016
  return new Sandbox(this.http, data);
@@ -6920,7 +7019,7 @@ var Sandboxes = class {
6920
7019
  return this.get(id);
6921
7020
  }
6922
7021
  async getByName(name) {
6923
- const data = unwrap39(
7022
+ const data = unwrap40(
6924
7023
  await this.http.get(
6925
7024
  `/sandboxes/by-name/${encodeURIComponent(name)}`
6926
7025
  )
@@ -6977,7 +7076,7 @@ var Sandboxes = class {
6977
7076
  async createTemplate(params) {
6978
7077
  const response = await this.http.post(
6979
7078
  "/sandbox-templates",
6980
- stripUndefined20({
7079
+ stripUndefined21({
6981
7080
  name: params.name,
6982
7081
  slug: params.slug,
6983
7082
  description: params.description,
@@ -6985,29 +7084,29 @@ var Sandboxes = class {
6985
7084
  metadata: params.metadata
6986
7085
  })
6987
7086
  );
6988
- return unwrap39(response);
7087
+ return unwrap40(response);
6989
7088
  }
6990
7089
  async createTemplateBuild(templateId, params = {}) {
6991
7090
  const response = await this.http.post(
6992
7091
  `/sandbox-templates/${templateId}/builds`,
6993
- stripUndefined20({
7092
+ stripUndefined21({
6994
7093
  build_spec: params.buildSpec ?? params.build_spec,
6995
7094
  metadata: params.metadata
6996
7095
  })
6997
7096
  );
6998
- return unwrap39(response);
7097
+ return unwrap40(response);
6999
7098
  }
7000
7099
  async listTemplateBuilds(templateId) {
7001
7100
  const response = await this.http.get(
7002
7101
  `/sandbox-templates/${templateId}/builds`
7003
7102
  );
7004
- return unwrap39(response);
7103
+ return unwrap40(response);
7005
7104
  }
7006
7105
  async getTemplateBuild(buildId) {
7007
7106
  const response = await this.http.get(
7008
7107
  `/sandbox-template-builds/${buildId}`
7009
7108
  );
7010
- return unwrap39(response);
7109
+ return unwrap40(response);
7011
7110
  }
7012
7111
  };
7013
7112
  function toBase642(bytes) {
@@ -7019,7 +7118,7 @@ function toBase642(bytes) {
7019
7118
  }
7020
7119
  return btoa(binary);
7021
7120
  }
7022
- function unwrap40(payload) {
7121
+ function unwrap41(payload) {
7023
7122
  if (payload && typeof payload === "object" && "data" in payload) {
7024
7123
  return payload.data;
7025
7124
  }
@@ -7035,7 +7134,7 @@ function listItems12(payload, candidateKeys = ["data", "templates", "builds", "i
7035
7134
  }
7036
7135
  return [];
7037
7136
  }
7038
- function stripUndefined21(input) {
7137
+ function stripUndefined22(input) {
7039
7138
  return Object.fromEntries(
7040
7139
  Object.entries(input).filter(([, v]) => v !== void 0)
7041
7140
  );
@@ -7062,7 +7161,7 @@ var SandboxTemplates = class {
7062
7161
  const data = await this.http.get(
7063
7162
  `/sandbox-templates/${templateId}`
7064
7163
  );
7065
- return unwrap40(data);
7164
+ return unwrap41(data);
7066
7165
  }
7067
7166
  async create(params) {
7068
7167
  const {
@@ -7072,17 +7171,17 @@ var SandboxTemplates = class {
7072
7171
  name,
7073
7172
  ...rest
7074
7173
  } = params;
7075
- const body3 = stripUndefined21({
7174
+ const body4 = stripUndefined22({
7076
7175
  name,
7077
7176
  build_spec: buildSpec ?? build_spec,
7078
7177
  ...rest
7079
7178
  });
7080
7179
  const data = await this.http.request("/sandbox-templates", {
7081
7180
  method: "POST",
7082
- body: body3,
7181
+ body: body4,
7083
7182
  headers: { "Idempotency-Key": idempotencyKey8(ikey) }
7084
7183
  });
7085
- return unwrap40(data);
7184
+ return unwrap41(data);
7086
7185
  }
7087
7186
  async buildSpecSchema() {
7088
7187
  const data = await this.http.get("/sandbox-templates/build-spec");
@@ -7106,21 +7205,21 @@ var SandboxTemplates = class {
7106
7205
  }
7107
7206
  async createBuild(templateId, params = {}) {
7108
7207
  const { idempotencyKey: ikey, ...rest } = params;
7109
- const body3 = stripUndefined21(rest);
7208
+ const body4 = stripUndefined22(rest);
7110
7209
  const data = await this.http.request(
7111
7210
  `/sandbox-templates/${templateId}/builds`,
7112
7211
  {
7113
7212
  method: "POST",
7114
- body: body3,
7213
+ body: body4,
7115
7214
  headers: { "Idempotency-Key": idempotencyKey8(ikey) }
7116
7215
  }
7117
7216
  );
7118
- return unwrap40(data);
7217
+ return unwrap41(data);
7119
7218
  }
7120
7219
  };
7121
7220
 
7122
7221
  // src/resources/settings.ts
7123
- function unwrap41(payload) {
7222
+ function unwrap42(payload) {
7124
7223
  if (payload && typeof payload === "object") {
7125
7224
  const p = payload;
7126
7225
  for (const k of [
@@ -7136,11 +7235,11 @@ function unwrap41(payload) {
7136
7235
  return payload;
7137
7236
  }
7138
7237
  function listItems13(payload) {
7139
- const result = unwrap41(payload);
7238
+ const result = unwrap42(payload);
7140
7239
  if (Array.isArray(result)) return result;
7141
7240
  return [];
7142
7241
  }
7143
- function stripUndefined22(input) {
7242
+ function stripUndefined23(input) {
7144
7243
  return Object.fromEntries(
7145
7244
  Object.entries(input).filter(([, v]) => v !== void 0)
7146
7245
  );
@@ -7153,46 +7252,46 @@ var Settings = class {
7153
7252
  /** Get the current tenant settings. */
7154
7253
  async get() {
7155
7254
  const data = await this.http.get("/settings");
7156
- return unwrap41(data);
7255
+ return unwrap42(data);
7157
7256
  }
7158
7257
  /** Update tenant settings. */
7159
7258
  async update(params) {
7160
- const body3 = stripUndefined22(params);
7161
- const data = await this.http.put("/settings", body3);
7162
- return unwrap41(data);
7259
+ const body4 = stripUndefined23(params);
7260
+ const data = await this.http.put("/settings", body4);
7261
+ return unwrap42(data);
7163
7262
  }
7164
7263
  // ── Branding ──────────────────────────────────────────────────────────────
7165
7264
  /** Get tenant branding (logo, colors, custom wordmark). */
7166
7265
  async getBranding() {
7167
7266
  const data = await this.http.get("/settings/branding");
7168
- return unwrap41(data);
7267
+ return unwrap42(data);
7169
7268
  }
7170
7269
  /** Update tenant branding. */
7171
7270
  async updateBranding(params) {
7172
- const body3 = stripUndefined22(params);
7173
- const data = await this.http.put("/settings/branding", body3);
7174
- return unwrap41(data);
7271
+ const body4 = stripUndefined23(params);
7272
+ const data = await this.http.put("/settings/branding", body4);
7273
+ return unwrap42(data);
7175
7274
  }
7176
7275
  // ── Read-only reference data ───────────────────────────────────────────────
7177
7276
  /** Get tenant-scoped compute pricing. */
7178
7277
  async computePricing() {
7179
7278
  const data = await this.http.get("/settings/compute-pricing");
7180
- return unwrap41(data);
7279
+ return unwrap42(data);
7181
7280
  }
7182
7281
  /** Get tenant-scoped GPU pricing. */
7183
7282
  async gpuPricing() {
7184
7283
  const data = await this.http.get("/settings/gpu-pricing");
7185
- return unwrap41(data);
7284
+ return unwrap42(data);
7186
7285
  }
7187
7286
  /** List models available to this tenant. */
7188
7287
  async availableModels() {
7189
7288
  const data = await this.http.get("/settings/available-models");
7190
- return unwrap41(data);
7289
+ return unwrap42(data);
7191
7290
  }
7192
7291
  /** List regions enabled for this tenant. */
7193
7292
  async regions() {
7194
7293
  const data = await this.http.get("/settings/regions");
7195
- return unwrap41(data);
7294
+ return unwrap42(data);
7196
7295
  }
7197
7296
  // ── BYOK provider keys ────────────────────────────────────────────────────
7198
7297
  /** List tenant-level BYOK provider keys (Anthropic, OpenAI, etc.). */
@@ -7202,12 +7301,12 @@ var Settings = class {
7202
7301
  }
7203
7302
  /** Create or update a BYOK provider key. */
7204
7303
  async upsertProviderKey(provider, params) {
7205
- const body3 = stripUndefined22(params);
7304
+ const body4 = stripUndefined23(params);
7206
7305
  const data = await this.http.put(
7207
7306
  `/settings/provider-keys/${provider}`,
7208
- body3
7307
+ body4
7209
7308
  );
7210
- return unwrap41(data);
7309
+ return unwrap42(data);
7211
7310
  }
7212
7311
  /** Delete a BYOK provider key. */
7213
7312
  async deleteProviderKey(provider) {
@@ -7216,7 +7315,7 @@ var Settings = class {
7216
7315
  };
7217
7316
 
7218
7317
  // src/resources/snapshots-standalone.ts
7219
- function unwrap42(data) {
7318
+ function unwrap43(data) {
7220
7319
  if (data && typeof data === "object") {
7221
7320
  const d = data;
7222
7321
  for (const k of ["data", "snapshots", "items"]) {
@@ -7247,14 +7346,14 @@ var SnapshotsStandalone = class {
7247
7346
  return unwrapList12(await this.http.get("/admin/snapshots", query2));
7248
7347
  }
7249
7348
  async get(snapshotId) {
7250
- return unwrap42(
7349
+ return unwrap43(
7251
7350
  await this.http.get(`/admin/snapshots/${snapshotId}`)
7252
7351
  );
7253
7352
  }
7254
7353
  };
7255
7354
 
7256
7355
  // src/resources/storage.ts
7257
- function unwrap43(payload) {
7356
+ function unwrap44(payload) {
7258
7357
  if (payload && typeof payload === "object" && "data" in payload) {
7259
7358
  return payload.data;
7260
7359
  }
@@ -7270,7 +7369,7 @@ function listItems14(payload, candidateKeys = ["data", "buckets", "objects", "it
7270
7369
  }
7271
7370
  return [];
7272
7371
  }
7273
- function stripUndefined23(input) {
7372
+ function stripUndefined24(input) {
7274
7373
  return Object.fromEntries(
7275
7374
  Object.entries(input).filter(([, v]) => v !== void 0)
7276
7375
  );
@@ -7287,24 +7386,24 @@ var Storage = class {
7287
7386
  }
7288
7387
  async createBucket(params) {
7289
7388
  const { name, public: isPublic, visibility, ...rest } = params;
7290
- const body3 = stripUndefined23({
7389
+ const body4 = stripUndefined24({
7291
7390
  name,
7292
7391
  visibility: visibility ?? (isPublic === void 0 ? void 0 : isPublic ? "public" : "private"),
7293
7392
  ...rest
7294
7393
  });
7295
- const data = await this.http.post("/storage/buckets", body3);
7296
- return unwrap43(data);
7394
+ const data = await this.http.post("/storage/buckets", body4);
7395
+ return unwrap44(data);
7297
7396
  }
7298
7397
  async getBucket(bucketId) {
7299
7398
  const data = await this.http.get(`/storage/buckets/${bucketId}`);
7300
- return unwrap43(data);
7399
+ return unwrap44(data);
7301
7400
  }
7302
7401
  async deleteBucket(bucketId) {
7303
7402
  await this.http.delete(`/storage/buckets/${bucketId}`);
7304
7403
  }
7305
7404
  // ── Objects ────────────────────────────────────────────────────────────────
7306
7405
  async listObjects(bucketId, params = {}) {
7307
- const query2 = stripUndefined23({
7406
+ const query2 = stripUndefined24({
7308
7407
  prefix: params.prefix,
7309
7408
  max_keys: params.max_keys ?? params.maxKeys ?? params.limit,
7310
7409
  marker: params.marker ?? params.cursor
@@ -7338,16 +7437,16 @@ var Storage = class {
7338
7437
  // ── Presigned URLs ─────────────────────────────────────────────────────────
7339
7438
  async presign(bucketId, params) {
7340
7439
  const operationMethod = params.operation === "put" ? "PUT" : params.operation === "get" ? "GET" : void 0;
7341
- const body3 = stripUndefined23({
7440
+ const body4 = stripUndefined24({
7342
7441
  key: params.key,
7343
7442
  method: params.method ?? operationMethod ?? "GET",
7344
7443
  expires_in: params.expiresIn ?? params.expires_in ?? params.expiresInSec ?? params.expires_in_sec ?? 3600
7345
7444
  });
7346
7445
  const data = await this.http.post(
7347
7446
  `/storage/buckets/${bucketId}/presign`,
7348
- body3
7447
+ body4
7349
7448
  );
7350
- return unwrap43(data);
7449
+ return unwrap44(data);
7351
7450
  }
7352
7451
  };
7353
7452
 
@@ -7437,7 +7536,7 @@ var OrgInvites = class {
7437
7536
  };
7438
7537
 
7439
7538
  // src/resources/tenant.ts
7440
- function unwrap44(payload) {
7539
+ function unwrap45(payload) {
7441
7540
  if (payload && typeof payload === "object") {
7442
7541
  const p = payload;
7443
7542
  for (const k of ["data", "tenant", "branding", "items"]) {
@@ -7446,7 +7545,7 @@ function unwrap44(payload) {
7446
7545
  }
7447
7546
  return payload;
7448
7547
  }
7449
- function stripUndefined24(input) {
7548
+ function stripUndefined25(input) {
7450
7549
  return Object.fromEntries(
7451
7550
  Object.entries(input).filter(([, v]) => v !== void 0)
7452
7551
  );
@@ -7459,14 +7558,14 @@ var PreviewDomain = class {
7459
7558
  /** Get the tenant's white-label preview domain settings. */
7460
7559
  async get() {
7461
7560
  const data = await this.http.get("/tenant/preview-domain");
7462
- return unwrap44(data);
7561
+ return unwrap45(data);
7463
7562
  }
7464
7563
  /** Set the tenant's white-label preview domain. */
7465
7564
  async set(domain) {
7466
7565
  const data = await this.http.put("/tenant/preview-domain", {
7467
7566
  preview_domain: domain
7468
7567
  });
7469
- return unwrap44(data);
7568
+ return unwrap45(data);
7470
7569
  }
7471
7570
  /** Re-run DNS verification for the configured preview domain. */
7472
7571
  async verify() {
@@ -7474,7 +7573,7 @@ var PreviewDomain = class {
7474
7573
  "/tenant/preview-domain/verify",
7475
7574
  {}
7476
7575
  );
7477
- return unwrap44(data);
7576
+ return unwrap45(data);
7478
7577
  }
7479
7578
  /** Remove the tenant's custom preview domain. */
7480
7579
  async delete() {
@@ -7489,14 +7588,14 @@ var Branding = class {
7489
7588
  /** Get tenant branding used by white-label hosted surfaces. */
7490
7589
  async get() {
7491
7590
  const data = await this.http.get("/tenant/branding");
7492
- return unwrap44(data);
7591
+ return unwrap45(data);
7493
7592
  }
7494
7593
  /** Update tenant branding used by white-label hosted surfaces. */
7495
7594
  async set(params) {
7496
7595
  const data = await this.http.put("/tenant/branding", {
7497
- branding: stripUndefined24(params)
7596
+ branding: stripUndefined25(params)
7498
7597
  });
7499
- return unwrap44(data);
7598
+ return unwrap45(data);
7500
7599
  }
7501
7600
  /** Reset tenant branding to platform defaults. */
7502
7601
  async delete() {
@@ -7518,7 +7617,7 @@ var Tenant = class {
7518
7617
  /** Get the current tenant's plan, limits, and live usage counters. */
7519
7618
  async current() {
7520
7619
  const data = await this.http.get("/tenant/plan");
7521
- return unwrap44(data);
7620
+ return unwrap45(data);
7522
7621
  }
7523
7622
  /** Convenience alias for `tenant.branding.get()`. */
7524
7623
  async getBranding() {
@@ -7535,7 +7634,7 @@ var Tenant = class {
7535
7634
  };
7536
7635
 
7537
7636
  // src/resources/usage.ts
7538
- function unwrap45(payload) {
7637
+ function unwrap46(payload) {
7539
7638
  if (payload && typeof payload === "object") {
7540
7639
  const p = payload;
7541
7640
  for (const k of ["data", "usage", "sessions", "summary", "items"]) {
@@ -7544,7 +7643,7 @@ function unwrap45(payload) {
7544
7643
  }
7545
7644
  return payload;
7546
7645
  }
7547
- function stripUndefined25(input) {
7646
+ function stripUndefined26(input) {
7548
7647
  return Object.fromEntries(
7549
7648
  Object.entries(input).filter(([, v]) => v !== void 0)
7550
7649
  );
@@ -7557,24 +7656,24 @@ var Usage = class {
7557
7656
  /** Get the current period usage summary. */
7558
7657
  async current() {
7559
7658
  const data = await this.http.get("/usage/summary");
7560
- return unwrap45(data);
7659
+ return unwrap46(data);
7561
7660
  }
7562
7661
  /** List per-session metering events. */
7563
7662
  async sessions(params = {}) {
7564
- const query2 = stripUndefined25(params);
7663
+ const query2 = stripUndefined26(params);
7565
7664
  const data = await this.http.get("/usage/sessions", query2);
7566
- const result = unwrap45(data);
7665
+ const result = unwrap46(data);
7567
7666
  if (Array.isArray(result)) return result;
7568
7667
  return [];
7569
7668
  }
7570
7669
  /** Get a usage report for a period. */
7571
7670
  async report(params = {}) {
7572
- const query2 = stripUndefined25(params);
7671
+ const query2 = stripUndefined26(params);
7573
7672
  const data = await this.http.get("/usage/summary", query2);
7574
- return unwrap45(data);
7673
+ return unwrap46(data);
7575
7674
  }
7576
7675
  };
7577
- function unwrap46(payload) {
7676
+ function unwrap47(payload) {
7578
7677
  if (payload && typeof payload === "object" && "data" in payload) {
7579
7678
  return payload.data;
7580
7679
  }
@@ -7590,7 +7689,7 @@ function listItems15(payload, candidateKeys = ["data", "volumes", "items"]) {
7590
7689
  }
7591
7690
  return [];
7592
7691
  }
7593
- function stripUndefined26(input) {
7692
+ function stripUndefined27(input) {
7594
7693
  return Object.fromEntries(
7595
7694
  Object.entries(input).filter(([, v]) => v !== void 0)
7596
7695
  );
@@ -7604,32 +7703,32 @@ var Volumes = class {
7604
7703
  }
7605
7704
  http;
7606
7705
  async list(params = {}) {
7607
- const query2 = stripUndefined26({ ...params });
7706
+ const query2 = stripUndefined27({ ...params });
7608
7707
  const data = await this.http.get("/volumes", query2);
7609
7708
  return listItems15(data);
7610
7709
  }
7611
7710
  async get(volumeId) {
7612
7711
  const data = await this.http.get(`/volumes/${volumeId}`);
7613
- return unwrap46(data);
7712
+ return unwrap47(data);
7614
7713
  }
7615
7714
  async create(params) {
7616
7715
  const { idempotencyKey: ikey, sizeGb, ...rest } = params;
7617
- const body3 = stripUndefined26({
7716
+ const body4 = stripUndefined27({
7618
7717
  ...rest,
7619
7718
  size_gb: sizeGb ?? rest.size_gb
7620
7719
  });
7621
7720
  const data = await this.http.request("/volumes", {
7622
7721
  method: "POST",
7623
- body: body3,
7722
+ body: body4,
7624
7723
  headers: { "Idempotency-Key": idempotencyKey9(ikey) }
7625
7724
  });
7626
- return unwrap46(data);
7725
+ return unwrap47(data);
7627
7726
  }
7628
7727
  async delete(volumeId) {
7629
7728
  await this.http.delete(`/volumes/${volumeId}`);
7630
7729
  }
7631
7730
  };
7632
- function unwrap47(payload) {
7731
+ function unwrap48(payload) {
7633
7732
  if (payload && typeof payload === "object" && "data" in payload) {
7634
7733
  return payload.data;
7635
7734
  }
@@ -7645,7 +7744,7 @@ function listItems16(payload, candidateKeys = ["data", "webhooks", "deliveries",
7645
7744
  }
7646
7745
  return [];
7647
7746
  }
7648
- function stripUndefined27(input) {
7747
+ function stripUndefined28(input) {
7649
7748
  return Object.fromEntries(
7650
7749
  Object.entries(input).filter(([, v]) => v !== void 0)
7651
7750
  );
@@ -7653,12 +7752,12 @@ function stripUndefined27(input) {
7653
7752
  function idempotencyKey10(key) {
7654
7753
  return key ?? randomUUID();
7655
7754
  }
7656
- function bodyBuffer(body3) {
7657
- if (Buffer.isBuffer(body3)) return body3;
7658
- if (typeof body3 === "string") return Buffer.from(body3, "utf8");
7659
- 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);
7660
7759
  }
7661
- function verifySignature(body3, header, secret, toleranceSec = 300) {
7760
+ function verifySignature(body4, header, secret, toleranceSec = 300) {
7662
7761
  const parts = Object.fromEntries(
7663
7762
  header.split(",").map((chunk) => chunk.split("=", 2)).filter(([key, value]) => key && value)
7664
7763
  );
@@ -7671,7 +7770,7 @@ function verifySignature(body3, header, secret, toleranceSec = 300) {
7671
7770
  if (ageSec > toleranceSec) {
7672
7771
  throw new Error("webhook timestamp too old");
7673
7772
  }
7674
- const rawBody = bodyBuffer(body3);
7773
+ const rawBody = bodyBuffer(body4);
7675
7774
  const signed = Buffer.concat([Buffer.from(`${timestamp}.`), rawBody]);
7676
7775
  const expected = createHmac("sha256", secret).update(signed).digest("hex");
7677
7776
  try {
@@ -7690,28 +7789,28 @@ var Webhooks = class {
7690
7789
  http;
7691
7790
  static verifySignature = verifySignature;
7692
7791
  async list(params = {}) {
7693
- const query2 = stripUndefined27({ ...params });
7792
+ const query2 = stripUndefined28({ ...params });
7694
7793
  const data = await this.http.get("/webhooks", query2);
7695
7794
  return listItems16(data);
7696
7795
  }
7697
7796
  async get(webhookId) {
7698
7797
  const data = await this.http.get(`/webhooks/${webhookId}`);
7699
- return unwrap47(data);
7798
+ return unwrap48(data);
7700
7799
  }
7701
7800
  async create(params) {
7702
7801
  const { idempotencyKey: ikey, ...rest } = params;
7703
- const body3 = stripUndefined27(rest);
7802
+ const body4 = stripUndefined28(rest);
7704
7803
  const data = await this.http.request("/webhooks", {
7705
7804
  method: "POST",
7706
- body: body3,
7805
+ body: body4,
7707
7806
  headers: { "Idempotency-Key": idempotencyKey10(ikey) }
7708
7807
  });
7709
- return unwrap47(data);
7808
+ return unwrap48(data);
7710
7809
  }
7711
7810
  async update(webhookId, params) {
7712
- const body3 = stripUndefined27(params);
7713
- const data = await this.http.patch(`/webhooks/${webhookId}`, body3);
7714
- return unwrap47(data);
7811
+ const body4 = stripUndefined28(params);
7812
+ const data = await this.http.patch(`/webhooks/${webhookId}`, body4);
7813
+ return unwrap48(data);
7715
7814
  }
7716
7815
  async delete(webhookId) {
7717
7816
  await this.http.delete(`/webhooks/${webhookId}`);
@@ -7724,7 +7823,7 @@ var Webhooks = class {
7724
7823
  headers: { "Idempotency-Key": idempotencyKey10(opts.idempotencyKey) }
7725
7824
  }
7726
7825
  );
7727
- return unwrap47(data);
7826
+ return unwrap48(data);
7728
7827
  }
7729
7828
  async deliveries(webhookId) {
7730
7829
  const data = await this.http.get(
@@ -7933,6 +8032,8 @@ var Miosa = class {
7933
8032
  mcp;
7934
8033
  /** Agent Runs — prompt dispatch into sandbox targets. */
7935
8034
  agentRuns;
8035
+ /** Agent Run Groups — durable multi-agent orchestration groups. */
8036
+ agentRunGroups;
7936
8037
  /** Agent runtime profiles — tenant/workspace defaults for sandbox/computer agents. */
7937
8038
  agentRuntimeProfiles;
7938
8039
  /** Inherited runtime env — tenant/workspace/project defaults for agent runtimes. */
@@ -8040,6 +8141,7 @@ var Miosa = class {
8040
8141
  this.externalKeys = new ExternalKeys(this.http);
8041
8142
  this.mcp = new Mcp(this.http);
8042
8143
  this.agentRuns = new AgentRuns(this.http);
8144
+ this.agentRunGroups = new AgentRunGroups(this.http);
8043
8145
  this.agentRuntimeProfiles = new AgentRuntimeProfiles(this.http);
8044
8146
  this.runtimeEnv = new RuntimeEnv(this.http);
8045
8147
  this.computers = new Computers(this.http);
@@ -8163,8 +8265,8 @@ var AppAuth = class {
8163
8265
  }
8164
8266
  });
8165
8267
  if (!resp.ok) {
8166
- const body3 = await resp.text();
8167
- 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}`);
8168
8270
  }
8169
8271
  return unwrapSession(await resp.json());
8170
8272
  }
@@ -8216,12 +8318,12 @@ var AppAuth = class {
8216
8318
  return payload;
8217
8319
  }
8218
8320
  // ── Private ──────────────────────────────────────────────────────────────────
8219
- async _post(action, body3) {
8321
+ async _post(action, body4) {
8220
8322
  const url = `${this.baseUrl}/app-auth/${this.resourceType}/${this.resourceId}/${action}`;
8221
8323
  const resp = await fetch(url, {
8222
8324
  method: "POST",
8223
8325
  headers: { "Content-Type": "application/json" },
8224
- body: JSON.stringify(body3)
8326
+ body: JSON.stringify(body4)
8225
8327
  });
8226
8328
  if (!resp.ok) {
8227
8329
  const text = await resp.text();
@@ -8231,6 +8333,6 @@ var AppAuth = class {
8231
8333
  }
8232
8334
  };
8233
8335
 
8234
- 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 };
8235
8337
  //# sourceMappingURL=index.js.map
8236
8338
  //# sourceMappingURL=index.js.map