@sepveneto/dnde-agent 0.2.0-beta.3 → 0.2.0-beta.4

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.
@@ -2722,7 +2722,7 @@ function Y9(e, t) {
2722
2722
  te,
2723
2723
  de,
2724
2724
  le
2725
- ) : L(M, D, le);
2725
+ ) : z(M, D, le);
2726
2726
  }, N = (M, D, G, X, Y, te, de) => {
2727
2727
  const ae = M.component = i5(
2728
2728
  M,
@@ -2744,7 +2744,7 @@ function Y9(e, t) {
2744
2744
  te,
2745
2745
  de
2746
2746
  );
2747
- }, L = (M, D, G) => {
2747
+ }, z = (M, D, G) => {
2748
2748
  const X = D.component = M.component;
2749
2749
  if (U9(M, D, G))
2750
2750
  if (X.asyncDep && !X.asyncResolved) {
@@ -5251,22 +5251,22 @@ function OL() {
5251
5251
  const ve = n.createElement("template");
5252
5252
  ve.content && ve.content.ownerDocument && (n = ve.content.ownerDocument);
5253
5253
  }
5254
- let j, P = "", q, N = !1, L = 0;
5254
+ let j, P = "", q, N = !1, z = 0;
5255
5255
  const F = function() {
5256
- if (L > 0) throw ji('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
5256
+ if (z > 0) throw ji('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
5257
5257
  }, V = function($) {
5258
- F(), L++;
5258
+ F(), z++;
5259
5259
  try {
5260
5260
  return j.createHTML($);
5261
5261
  } finally {
5262
- L--;
5262
+ z--;
5263
5263
  }
5264
5264
  }, K = function($) {
5265
- F(), L++;
5265
+ F(), z++;
5266
5266
  try {
5267
5267
  return j.createScriptURL($);
5268
5268
  } finally {
5269
- L--;
5269
+ z--;
5270
5270
  }
5271
5271
  }, U = function() {
5272
5272
  return N || (q = OJ(l, o), N = !0), q;
@@ -7417,22 +7417,22 @@ const M8 = ["innerHTML"], j0 = /* @__PURE__ */ Dg({
7417
7417
  const n = e, r = t, o = al(() => n.runtime.config);
7418
7418
  function s() {
7419
7419
  try {
7420
- const L = localStorage.getItem(
7420
+ const z = localStorage.getItem(
7421
7421
  `${n.storageNamespace}:${n.mode}:${n.sessionId}`
7422
7422
  );
7423
- if (!L)
7423
+ if (!z)
7424
7424
  return [];
7425
- const F = JSON.parse(L);
7425
+ const F = JSON.parse(z);
7426
7426
  return Array.isArray(F) ? F : [];
7427
- } catch (L) {
7427
+ } catch (z) {
7428
7428
  return [];
7429
7429
  }
7430
7430
  }
7431
- function i(L) {
7431
+ function i(z) {
7432
7432
  try {
7433
7433
  localStorage.setItem(
7434
7434
  `${n.storageNamespace}:${n.mode}:${n.sessionId}`,
7435
- JSON.stringify(L)
7435
+ JSON.stringify(z)
7436
7436
  );
7437
7437
  } catch (F) {
7438
7438
  }
@@ -7451,9 +7451,9 @@ const M8 = ["innerHTML"], j0 = /* @__PURE__ */ Dg({
7451
7451
  let S = 0, I = 0, A;
7452
7452
  Bh(
7453
7453
  a,
7454
- (L) => i(L),
7454
+ (z) => i(z),
7455
7455
  { deep: !0 }
7456
- ), Bh(u, (L) => r("running", L));
7456
+ ), Bh(u, (z) => r("running", z));
7457
7457
  function R() {
7458
7458
  cancelAnimationFrame(I), I = requestAnimationFrame(() => {
7459
7459
  f.value && (f.value.scrollTop = f.value.scrollHeight);
@@ -7462,13 +7462,13 @@ const M8 = ["innerHTML"], j0 = /* @__PURE__ */ Dg({
7462
7462
  function E() {
7463
7463
  A == null || A.abort(), S += 1, u.value = !1;
7464
7464
  }
7465
- function j(L) {
7466
- T.value || (c.value = L);
7465
+ function j(z) {
7466
+ T.value || (c.value = z);
7467
7467
  }
7468
7468
  async function P() {
7469
7469
  var xe;
7470
- const L = c.value.trim(), F = y.value[0];
7471
- if (!L && !F || T.value)
7470
+ const z = c.value.trim(), F = y.value[0];
7471
+ if (!z && !F || T.value)
7472
7472
  return;
7473
7473
  l.value = !0, d.value = "";
7474
7474
  let V;
@@ -7489,7 +7489,7 @@ const M8 = ["innerHTML"], j0 = /* @__PURE__ */ Dg({
7489
7489
  }
7490
7490
  const K = [
7491
7491
  V ? bL(V) : "",
7492
- L
7492
+ z
7493
7493
  ].filter(Boolean).join(`
7494
7494
 
7495
7495
  `);
@@ -7504,7 +7504,7 @@ const M8 = ["innerHTML"], j0 = /* @__PURE__ */ Dg({
7504
7504
  role: "user",
7505
7505
  parts: [
7506
7506
  ...V ? [V] : [],
7507
- ...L ? [{ type: "text", text: L }] : []
7507
+ ...z ? [{ type: "text", text: z }] : []
7508
7508
  ]
7509
7509
  };
7510
7510
  a.value.push(ye);
@@ -7532,15 +7532,15 @@ const M8 = ["innerHTML"], j0 = /* @__PURE__ */ Dg({
7532
7532
  U === S && (u.value = !1, A = void 0, R());
7533
7533
  }
7534
7534
  }
7535
- function q(L) {
7536
- L.key === "Enter" && !L.shiftKey && !T.value && (L.preventDefault(), P());
7535
+ function q(z) {
7536
+ z.key === "Enter" && !z.shiftKey && !T.value && (z.preventDefault(), P());
7537
7537
  }
7538
- function N(L) {
7539
- return L === void 0 ? "" : L < 1024 ? `${L} B` : L < 1024 * 1024 ? `${(L / 1024).toFixed(1)} KB` : `${(L / 1024 / 1024).toFixed(1)} MB`;
7538
+ function N(z) {
7539
+ return z === void 0 ? "" : z < 1024 ? `${z} B` : z < 1024 * 1024 ? `${(z / 1024).toFixed(1)} KB` : `${(z / 1024 / 1024).toFixed(1)} MB`;
7540
7540
  }
7541
7541
  return Kz(() => {
7542
7542
  A == null || A.abort(), S += 1, cancelAnimationFrame(I);
7543
- }), (L, F) => (Ot(), Mt("main", {
7543
+ }), (z, F) => (Ot(), Mt("main", {
7544
7544
  class: yl(["chat-view", [{ embedded: e.embedded }]])
7545
7545
  }, [
7546
7546
  Re("header", H8, [
@@ -9726,14 +9726,14 @@ const QQ = /* @__PURE__ */ ue("$ZodObject", (e, t) => {
9726
9726
  continue;
9727
9727
  const A = w[I], R = typeof I == "symbol" ? `syms[${y.indexOf(I)}]` : EV(I), E = `${R} in input`, j = p[I], P = (T = j == null ? void 0 : j._zod) == null ? void 0 : T.optin, q = P !== void 0, N = ((S = j == null ? void 0 : j._zod) == null ? void 0 : S.optout) === "optional";
9728
9728
  if (g.write(`const ${A} = ${_(R)};`), q && N) {
9729
- const L = P === "optional" ? `${A}_present` : `${A}.value !== undefined || ${A}_present`;
9729
+ const z = P === "optional" ? `${A}_present` : `${A}.value !== undefined || ${A}_present`;
9730
9730
  g.write(`
9731
9731
  const ${A}_present = ${E};
9732
9732
  if (!${A}.issues.length || ${A}_present) {
9733
9733
  if (${A}.issues.length) {${m(A, R)}
9734
9734
  }
9735
9735
 
9736
- if (${L}) {
9736
+ if (${z}) {
9737
9737
  newResult[${R}] = ${A}.value;
9738
9738
  }
9739
9739
  }
@@ -18459,11 +18459,11 @@ function dE(e, t, n, r = /* @__PURE__ */ new Set()) {
18459
18459
  const N = c[P];
18460
18460
  if (N === void 0)
18461
18461
  return l();
18462
- const L = N.schema;
18463
- gA(L) ? d.push({
18464
- schema: L,
18465
- sourcePath: L === q ? [...t, "allOf", String(P)] : void 0
18466
- }) : $oe(L) || l();
18462
+ const z = N.schema;
18463
+ gA(z) ? d.push({
18464
+ schema: z,
18465
+ sourcePath: z === q ? [...t, "allOf", String(P)] : void 0
18466
+ }) : $oe(z) || l();
18467
18467
  }
18468
18468
  const f = {};
18469
18469
  for (const P of ["$defs", "definitions"])
@@ -18487,10 +18487,10 @@ function dE(e, t, n, r = /* @__PURE__ */ new Set()) {
18487
18487
  N === "allOf" && P === e || (N === "$defs" || N === "definitions") && lt(P[N]) || P === e && t.length === 0 && dl.has(N) || e$.has(N) || l();
18488
18488
  if (P.type !== void 0 && (PK(P.type) || l(), P.type === "object" ? w = !0 : b = !0), P.properties !== void 0) {
18489
18489
  lt(P.properties) || l(), _ = !0;
18490
- for (const [N, L] of Object.entries(P.properties))
18490
+ for (const [N, z] of Object.entries(P.properties))
18491
18491
  g.push({
18492
18492
  key: N,
18493
- propertySchema: L,
18493
+ propertySchema: z,
18494
18494
  sourcePath: q === void 0 ? void 0 : [...q, "properties", N]
18495
18495
  });
18496
18496
  }
@@ -20612,7 +20612,7 @@ async function eie({ runContext: e }) {
20612
20612
  JS(ne, "Failed to dispose computer for run context:", o);
20613
20613
  }
20614
20614
  }
20615
- function UTe(e) {
20615
+ function HTe(e) {
20616
20616
  var o;
20617
20617
  const t = (o = e.name) != null ? o : "apply_patch", n = mq(e.allowedCallers, t), r = typeof e.needsApproval == "function" ? e.needsApproval : async () => typeof e.needsApproval == "boolean" ? e.needsApproval : !1;
20618
20618
  return {
@@ -20801,9 +20801,9 @@ function fl(e) {
20801
20801
  });
20802
20802
  throw U.redacted || ne.dontLogToolData ? (Vn(U), ne.debug(`Invalid JSON input for tool ${t}`)) : ne.debug(`Invalid JSON input for tool ${t}: ${E}`), U.error;
20803
20803
  }
20804
- const L = N.value;
20805
- ne.dontLogToolData ? ne.debug(`Invoking tool ${t}`) : ne.debug(`Invoking tool ${t} with input ${E}`), (K = j == null ? void 0 : j[gq]) == null || K.call(j, L);
20806
- const F = h(await e.execute(L, R, j), R, j), V = Ai(F);
20804
+ const z = N.value;
20805
+ ne.dontLogToolData ? ne.debug(`Invoking tool ${t}`) : ne.debug(`Invoking tool ${t} with input ${E}`), (K = j == null ? void 0 : j[gq]) == null || K.call(j, z);
20806
+ const F = h(await e.execute(z, R, j), R, j), V = Ai(F);
20807
20807
  return ne.dontLogToolData ? ne.debug(`Tool ${t} completed`) : ne.debug(`Tool ${t} returned: ${V}`), F;
20808
20808
  }
20809
20809
  async function _(R, E, j) {
@@ -20819,7 +20819,7 @@ function fl(e) {
20819
20819
  const P = Oc(E);
20820
20820
  if (P && ((ie = j == null ? void 0 : j[_b]) == null || ie.call(j, P)), !o)
20821
20821
  throw P && Vi(P) ? P.error : E;
20822
- const q = c$(E), N = q ? Vn(q) : bE(E), L = P ? Vi(P) : cq(E), F = N || L, V = (ge = (ye = q == null ? void 0 : q.error) != null ? ye : P == null ? void 0 : P.error) != null ? ge : E, K = F ? void 0 : j, U = Dm(), B = o !== h$ && !F && jse(j);
20822
+ const q = c$(E), N = q ? Vn(q) : bE(E), z = P ? Vi(P) : cq(E), F = N || z, V = (ge = (ye = q == null ? void 0 : q.error) != null ? ye : P == null ? void 0 : P.error) != null ? ge : E, K = F ? void 0 : j, U = Dm(), B = o !== h$ && !F && jse(j);
20823
20823
  U == null || U.setError({
20824
20824
  message: "Error running tool (non-fatal)",
20825
20825
  data: {
@@ -20831,12 +20831,12 @@ function fl(e) {
20831
20831
  const xe = await o(R, V, K);
20832
20832
  if (q && !N && Vn(q))
20833
20833
  throw q.error;
20834
- if (P && !L && Vi(P))
20834
+ if (P && !z && Vi(P))
20835
20835
  throw P.error;
20836
20836
  const oe = h(xe, R, K);
20837
20837
  if (q && !N && Vn(q))
20838
20838
  throw q.error;
20839
- if (P && !L && Vi(P))
20839
+ if (P && !z && Vi(P))
20840
20840
  throw P.error;
20841
20841
  return oe;
20842
20842
  } catch (xe) {
@@ -21416,10 +21416,10 @@ function Rie(e, t, n, r = {}) {
21416
21416
  N && (N.spanData.mcp_data = {
21417
21417
  server: Fo(t.name)
21418
21418
  });
21419
- const L = j ? await xie(t, j, o, q) : void 0, F = P != null && P.signal ? { signal: P.signal } : void 0, V = (t.useStructuredContent === !0 || t.customDataExtractor !== void 0) && t.callToolResult !== void 0;
21419
+ const z = j ? await xie(t, j, o, q) : void 0, F = P != null && P.signal ? { signal: P.signal } : void 0, V = (t.useStructuredContent === !0 || t.customDataExtractor !== void 0) && t.callToolResult !== void 0;
21420
21420
  let K;
21421
- V ? K = F ? await t.callToolResult(o, q, L, F) : L === void 0 ? await t.callToolResult(o, q) : await t.callToolResult(o, q, L) : K = {
21422
- content: F ? await t.callTool(o, q, L, F) : L === void 0 ? await t.callTool(o, q) : await t.callTool(o, q, L)
21421
+ V ? K = F ? await t.callToolResult(o, q, z, F) : z === void 0 ? await t.callToolResult(o, q) : await t.callToolResult(o, q, z) : K = {
21422
+ content: F ? await t.callTool(o, q, z, F) : z === void 0 ? await t.callTool(o, q) : await t.callTool(o, q, z)
21423
21423
  };
21424
21424
  const U = K.content, B = (xe = K._meta) != null ? xe : U._meta, ie = (oe = K.structuredContent) != null ? oe : U.structuredContent, ye = (Ce = K.isError) != null ? Ce : U.isError, ge = t.useStructuredContent === !0 && ye !== !0 && ie !== void 0 ? JSON.stringify(ie) : U.length === 1 ? U[0] : U;
21425
21425
  if (j && ((Ee = P == null ? void 0 : P.toolCall) != null && Ee.callId) && t.customDataExtractor) {
@@ -28521,7 +28521,7 @@ function kle(e, t) {
28521
28521
  return n;
28522
28522
  }
28523
28523
  function WE(e) {
28524
- var c, u, l, d, f, p, h, y, g, _, m, w, b, T, S, I, A, R, E, j, P, q, N, L, F, V, K;
28524
+ var c, u, l, d, f, p, h, y, g, _, m, w, b, T, S, I, A, R, E, j, P, q, N, z, F, V, K;
28525
28525
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
28526
28526
  for (const U of e) {
28527
28527
  if (U instanceof _t) {
@@ -28612,7 +28612,7 @@ function WE(e) {
28612
28612
  if (!B)
28613
28613
  throw new O("RunState contains a local tool output without a non-empty call ID.");
28614
28614
  const ie = (q = n.get(U.agent)) == null ? void 0 : q.get(B);
28615
- (!ie || !ie.identityResolved || !zb(ie.toolCall, U.rawItem)) && (Au(i, U.agent).add(B), (N = o.get(U.agent)) == null || N.delete(B)), (L = n.get(U.agent)) == null || L.delete(B);
28615
+ (!ie || !ie.identityResolved || !zb(ie.toolCall, U.rawItem)) && (Au(i, U.agent).add(B), (N = o.get(U.agent)) == null || N.delete(B)), (z = n.get(U.agent)) == null || z.delete(B);
28616
28616
  const ye = B ? (F = o.get(U.agent)) == null ? void 0 : F.get(B) : void 0;
28617
28617
  B && ye !== void 0 && !((V = i.get(U.agent)) != null && V.has(B)) && (Hn(s, U.agent).set(B, ye), Hn(a, U.agent).set(B, [
28618
28618
  ...(K = ie == null ? void 0 : ie.evidence) != null ? K : [],
@@ -30767,7 +30767,7 @@ function zde(e, t, n) {
30767
30767
  }) : n;
30768
30768
  }
30769
30769
  async function Lde(e, t, n = {}) {
30770
- var I, A, R, E, j, P, q, N, L, F, V, K, U, B, ie, ye, ge, ee, xe, oe, Ce, Ee, me, Pe, ke, M, D, G, X, Y, te, de, ae, le, fe, Me, Ie, Ae, Te, je, Le, Fe, rt, Oe, Ke, Ve, At, St, We, gt;
30770
+ var I, A, R, E, j, P, q, N, z, F, V, K, U, B, ie, ye, ge, ee, xe, oe, Ce, Ee, me, Pe, ke, M, D, G, X, Y, te, de, ae, le, fe, Me, Ie, Ae, Te, je, Le, Fe, rt, Oe, Ke, Ve, At, St, We, gt;
30771
30771
  const r = t.$schemaVersion, o = t.context.approvals;
30772
30772
  if (on(r) && (t.context.approvalInvocations === void 0 || t.completedToolInvocations === void 0 || t.completedToolInvocationEvidence === void 0 || t.ambiguousToolInvocationCallIds === void 0))
30773
30773
  throw new O(`RunState schema ${r} requires explicit approval, completed, completion-evidence, and ambiguous invocation records.`);
@@ -30775,7 +30775,7 @@ async function Lde(e, t, n = {}) {
30775
30775
  const s = ade(r) ? Id(e).byIdentity : Ude(e), i = t.generatedItems.map(($e) => ey($e, s)), a = n.contextOverride, c = (I = n.contextStrategy) != null ? I : "merge";
30776
30776
  let u;
30777
30777
  const l = a ? a._cloneForRunStateDeserialization() : new Fr(t.context.context);
30778
- l._validateFunctionApprovalOwners((A = t.context.functionApprovals) != null ? A : [], s), on(r) && l._validateApprovalInvocations((R = t.context.approvalInvocations) != null ? R : [], s), a ? c === "merge" && (gi(r) ? (l._mergeApprovals(o), on(r) && l._mergeHostedMcpApprovals((E = t.context.hostedMcpApprovals) != null ? E : {}), l._mergeFunctionApprovals((j = t.context.functionApprovals) != null ? j : [], s), l._mergeLegacyFunctionApprovals((P = t.context.legacyFunctionApprovals) != null ? P : {}), on(r) && l._mergeApprovalInvocations((q = t.context.approvalInvocations) != null ? q : [], s)) : (u = new Fr(t.context.context), u._rebuildApprovals(o), u._rebuildLegacyFunctionApprovals(o))) : (l._rebuildApprovals(o), l._rebuildHostedMcpApprovals(on(r) ? (N = t.context.hostedMcpApprovals) != null ? N : {} : {}), l._rebuildFunctionApprovals((L = t.context.functionApprovals) != null ? L : [], s), l._rebuildLegacyFunctionApprovals(gi(r) ? (F = t.context.legacyFunctionApprovals) != null ? F : {} : o), l._rebuildApprovalInvocations(on(r) ? (V = t.context.approvalInvocations) != null ? V : [] : [], s));
30778
+ l._validateFunctionApprovalOwners((A = t.context.functionApprovals) != null ? A : [], s), on(r) && l._validateApprovalInvocations((R = t.context.approvalInvocations) != null ? R : [], s), a ? c === "merge" && (gi(r) ? (l._mergeApprovals(o), on(r) && l._mergeHostedMcpApprovals((E = t.context.hostedMcpApprovals) != null ? E : {}), l._mergeFunctionApprovals((j = t.context.functionApprovals) != null ? j : [], s), l._mergeLegacyFunctionApprovals((P = t.context.legacyFunctionApprovals) != null ? P : {}), on(r) && l._mergeApprovalInvocations((q = t.context.approvalInvocations) != null ? q : [], s)) : (u = new Fr(t.context.context), u._rebuildApprovals(o), u._rebuildLegacyFunctionApprovals(o))) : (l._rebuildApprovals(o), l._rebuildHostedMcpApprovals(on(r) ? (N = t.context.hostedMcpApprovals) != null ? N : {} : {}), l._rebuildFunctionApprovals((z = t.context.functionApprovals) != null ? z : [], s), l._rebuildLegacyFunctionApprovals(gi(r) ? (F = t.context.legacyFunctionApprovals) != null ? F : {} : o), l._rebuildApprovalInvocations(on(r) ? (V = t.context.approvalInvocations) != null ? V : [] : [], s));
30779
30779
  const d = !a || c === "merge";
30780
30780
  d && typeof t.context.toolInput != "undefined" && typeof l.toolInput == "undefined" && (l.toolInput = t.context.toolInput), a || (l.usage = new On(t.context.usage));
30781
30781
  const f = An(t.currentAgent, s), p = new fn(l, "", e, t.maxTurns);
@@ -31314,13 +31314,13 @@ async function D2(e, t, n, r = {}) {
31314
31314
  };
31315
31315
  }),
31316
31316
  functions: await Promise.all(n.functions.map(async (S) => {
31317
- var j, P, q, N, L, F, V, K;
31317
+ var j, P, q, N, z, F, V, K;
31318
31318
  const I = (j = Kse(S.toolCall)) != null ? j : S.tool.name, A = (P = r.executionFunctionToolsByCallId) == null ? void 0 : P.get(S.toolCall.callId);
31319
31319
  A && !gv(S.toolCall, A) && io(o, S.toolCall.callId, [
31320
31320
  (q = Xn(A)) != null ? q : A.name,
31321
31321
  (N = Rn(S.toolCall)) != null ? N : S.tool.name
31322
31322
  ]);
31323
- const R = S.mcpToolBinding === void 0 ? "unknown" : S.mcpToolBinding, E = (V = (L = A != null ? A : Gg(S.toolCall, c)) != null ? L : Fce({
31323
+ const R = S.mcpToolBinding === void 0 ? "unknown" : S.mcpToolBinding, E = (V = (z = A != null ? A : Gg(S.toolCall, c)) != null ? z : Fce({
31324
31324
  agent: o,
31325
31325
  baseAgentTools: i,
31326
31326
  serializedTool: S.tool,
@@ -34651,7 +34651,7 @@ class zpe {
34651
34651
  const r = Nn(this.memory.layout.sessionsDir, `${t}.jsonl`), o = await this.storage.readText(r);
34652
34652
  if (!o)
34653
34653
  throw new O(`Memory rollout transcript was not found: ${r}`);
34654
- const { SandboxAgent: s } = await import("./agent-B2u2g_gS.js"), i = new s({
34654
+ const { SandboxAgent: s } = await import("./agent--M87gUL-.js"), i = new s({
34655
34655
  name: "sandbox-memory-phase-one",
34656
34656
  instructions: Lfe(n.extraPrompt),
34657
34657
  model: n.phaseOneModel,
@@ -34703,7 +34703,7 @@ class zpe {
34703
34703
  selectedItems: n.selected
34704
34704
  }))
34705
34705
  return;
34706
- const { SandboxAgent: r } = await import("./agent-B2u2g_gS.js"), o = new r({
34706
+ const { SandboxAgent: r } = await import("./agent--M87gUL-.js"), o = new r({
34707
34707
  name: "sandbox-memory-phase-two",
34708
34708
  model: t.phaseTwoModel,
34709
34709
  modelSettings: t.phaseTwoModelSettings,
@@ -36939,7 +36939,7 @@ function xH(e) {
36939
36939
  return typeof t != "string" ? !1 : nP(t);
36940
36940
  }
36941
36941
  function jhe(e, t, n, r, o = [], s = "raise_error", i = {}) {
36942
- var P, q, N, L, F, V;
36942
+ var P, q, N, z, F, V;
36943
36943
  Ks(e.output);
36944
36944
  const a = [], c = [], u = [], l = [], d = [], f = [];
36945
36945
  let p = !1;
@@ -37054,7 +37054,7 @@ function jhe(e, t, n, r, o = [], s = "raise_error", i = {}) {
37054
37054
  else if (U.type === "handoff")
37055
37055
  ao(K, void 0, U.handoff.toolName, t), wH(K, U.handoff, t, a, g, c);
37056
37056
  else {
37057
- if (ao(K, U.tool.allowedCallers, (L = kn(U.tool)) != null ? L : U.tool.name, t), !OH(K, U.tool, R.loadedToolNames, t, s)) {
37057
+ if (ao(K, U.tool.allowedCallers, (z = kn(U.tool)) != null ? z : U.tool.name, t), !OH(K, U.tool, R.loadedToolNames, t, s)) {
37058
37058
  Jb(Vb(K, U.tool), (F = kn(U.tool)) != null ? F : U.tool.name, t, a, g, l, "not_loaded");
37059
37059
  continue;
37060
37060
  }
@@ -37106,7 +37106,7 @@ async function SN(e, t, n, r, o, s = [], i = "raise_error", a = {}) {
37106
37106
  runContext: o._context,
37107
37107
  tools: n
37108
37108
  });
37109
- let L = !1;
37109
+ let z = !1;
37110
37110
  const F = [...n];
37111
37111
  for (const ee of e.output) {
37112
37112
  if (ee.type === "message")
@@ -37127,7 +37127,7 @@ async function SN(e, t, n, r, o, s = [], i = "raise_error", a = {}) {
37127
37127
  replacedRuntimeTools: Ce,
37128
37128
  runtimeTools: oe.runtimeTools
37129
37129
  });
37130
- o.recordToolSearchRuntimeTools(t, oe.output, Ee), L = !0;
37130
+ o.recordToolSearchRuntimeTools(t, oe.output, Ee), z = !0;
37131
37131
  }
37132
37132
  } else if (ee.type === "tool_search_output")
37133
37133
  d.push(new lo(Um(ee, a.toolSearchAgentName), t)), Yb(q, ee), Of(ee, E, {
@@ -37243,7 +37243,7 @@ async function SN(e, t, n, r, o, s = [], i = "raise_error", a = {}) {
37243
37243
  mcpApprovalRequests: w,
37244
37244
  toolsUsed: b,
37245
37245
  hasToolsOrApprovalsToRun() {
37246
- return f.length > 0 || p.length > 0 || h.length > 0 || w.length > 0 || y.length > 0 || g.length > 0 || _ || m.length > 0 || L;
37246
+ return f.length > 0 || p.length > 0 || h.length > 0 || w.length > 0 || y.length > 0 || g.length > 0 || _ || m.length > 0 || z;
37247
37247
  }
37248
37248
  };
37249
37249
  }
@@ -37807,70 +37807,70 @@ function Vhe(e, t) {
37807
37807
  }
37808
37808
  function Mx(e, t, n, r = {}) {
37809
37809
  var S, I, A, R, E, j, P, q;
37810
- const o = new Map(n.map(({ preparedIndex: N, ownerIndex: L }) => [
37810
+ const o = new Map(n.map(({ preparedIndex: N, ownerIndex: z }) => [
37811
37811
  N,
37812
- L
37812
+ z
37813
37813
  ])), s = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
37814
- for (const [N, L] of e.entries()) {
37815
- const F = (S = s.get(L)) != null ? S : [];
37816
- F.push(N), s.set(L, F);
37817
- const V = Jn(L), K = (I = i.get(V)) != null ? I : [];
37814
+ for (const [N, z] of e.entries()) {
37815
+ const F = (S = s.get(z)) != null ? S : [];
37816
+ F.push(N), s.set(z, F);
37817
+ const V = Jn(z), K = (I = i.get(V)) != null ? I : [];
37818
37818
  K.push(N), i.set(V, K);
37819
37819
  }
37820
- const a = new Array(t.length), c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), d = (N, L) => {
37820
+ const a = new Array(t.length), c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), d = (N, z) => {
37821
37821
  var F;
37822
37822
  for (const [V, K] of N) {
37823
- const U = ((F = L.get(V)) != null ? F : []).filter((ie) => !c.has(ie)), B = K.filter((ie) => a[ie] === void 0);
37823
+ const U = ((F = z.get(V)) != null ? F : []).filter((ie) => !c.has(ie)), B = K.filter((ie) => a[ie] === void 0);
37824
37824
  for (let ie = 0; ie < Math.min(B.length, U.length); ie++) {
37825
37825
  const ye = B[ie], ge = U[ie];
37826
37826
  ye === void 0 || ge === void 0 || (a[ye] = ge, c.add(ge));
37827
37827
  }
37828
37828
  }
37829
37829
  }, f = /* @__PURE__ */ new Map();
37830
- for (const [N, L] of t.entries()) {
37831
- const F = (A = f.get(L)) != null ? A : [];
37832
- F.push(N), f.set(L, F);
37830
+ for (const [N, z] of t.entries()) {
37831
+ const F = (A = f.get(z)) != null ? A : [];
37832
+ F.push(N), f.set(z, F);
37833
37833
  }
37834
37834
  d(f, s);
37835
37835
  const p = new Set(c);
37836
- for (const [N, L] of f) {
37836
+ for (const [N, z] of f) {
37837
37837
  const F = s.get(N);
37838
37838
  if (F === void 0)
37839
37839
  continue;
37840
37840
  const V = F.length;
37841
- for (const K of L.slice(V))
37841
+ for (const K of z.slice(V))
37842
37842
  u.add(Jn(N)), l.add(K);
37843
37843
  }
37844
37844
  const h = /* @__PURE__ */ new Map();
37845
- for (const [N, L] of t.entries()) {
37845
+ for (const [N, z] of t.entries()) {
37846
37846
  if (a[N] !== void 0 || l.has(N))
37847
37847
  continue;
37848
- const F = Jn(L), V = (R = h.get(F)) != null ? R : [];
37848
+ const F = Jn(z), V = (R = h.get(F)) != null ? R : [];
37849
37849
  V.push(N), h.set(F, V);
37850
37850
  }
37851
37851
  const y = /* @__PURE__ */ new Map();
37852
- for (const [N, L] of i)
37853
- y.set(N, L.filter((F) => !c.has(F)).length);
37854
- for (const [N, L] of h) {
37852
+ for (const [N, z] of i)
37853
+ y.set(N, z.filter((F) => !c.has(F)).length);
37854
+ for (const [N, z] of h) {
37855
37855
  const F = (E = y.get(N)) != null ? E : 0;
37856
- i.has(N) && L.length > F && (u.add(N), L.forEach((V) => l.add(V)));
37856
+ i.has(N) && z.length > F && (u.add(N), z.forEach((V) => l.add(V)));
37857
37857
  }
37858
- for (const [N, L] of t.entries()) {
37859
- const F = e[N], V = Jn(L);
37858
+ for (const [N, z] of t.entries()) {
37859
+ const F = e[N], V = Jn(z);
37860
37860
  a[N] !== void 0 || l.has(N) || F === void 0 || c.has(N) || V !== Jn(F) || ((P = (j = h.get(V)) == null ? void 0 : j.length) != null ? P : 0) >= ((q = y.get(V)) != null ? q : 0) || (a[N] = N, c.add(N));
37861
37861
  }
37862
- const g = new Map([...h].filter(([, N]) => N.every((L) => !l.has(L))));
37862
+ const g = new Map([...h].filter(([, N]) => N.every((z) => !l.has(z))));
37863
37863
  d(g, i);
37864
- const _ = t.map((N, L) => L).filter((N) => a[N] === void 0 && !l.has(N)), m = e.map((N, L) => L).filter((N) => !c.has(N) && !u.has(Jn(e[N])));
37864
+ const _ = t.map((N, z) => z).filter((N) => a[N] === void 0 && !l.has(N)), m = e.map((N, z) => z).filter((N) => !c.has(N) && !u.has(Jn(e[N])));
37865
37865
  if (r.validateReplacements !== !1 && e.length === 1 && t.length === 1 && _.length === 1 && m.length === 1) {
37866
- const N = _[0], L = m[0];
37867
- N !== void 0 && L !== void 0 && (a[N] = L, c.add(L));
37866
+ const N = _[0], z = m[0];
37867
+ N !== void 0 && z !== void 0 && (a[N] = z, c.add(z));
37868
37868
  }
37869
- const w = _.some((N) => a[N] === void 0), b = m.some((N) => !c.has(N) && o.has(N)), T = [...i.values()].some((N) => N.some((L) => o.has(L)) && N.some((L) => !o.has(L)) && N.some((L) => o.has(L) && c.has(L) && !p.has(L)) && N.some((L) => !c.has(L)));
37869
+ const w = _.some((N) => a[N] === void 0), b = m.some((N) => !c.has(N) && o.has(N)), T = [...i.values()].some((N) => N.some((z) => o.has(z)) && N.some((z) => !o.has(z)) && N.some((z) => o.has(z) && c.has(z) && !p.has(z)) && N.some((z) => !c.has(z)));
37870
37870
  if (r.validateReplacements !== !1 && w && (b || T))
37871
37871
  throw new O("Capability.processContext() cannot replace Session-owned input without preserving its identity. Use callModelInputFilter for persistence-aware input replacement.");
37872
- return t.flatMap((N, L) => {
37873
- const F = a[L], V = F === void 0 ? void 0 : o.get(F);
37872
+ return t.flatMap((N, z) => {
37873
+ const F = a[z], V = F === void 0 ? void 0 : o.get(F);
37874
37874
  return V === void 0 ? [] : [{ item: N, ownerIndex: V }];
37875
37875
  });
37876
37876
  }
@@ -38054,7 +38054,7 @@ async function tme(e, t, n, r, o, s) {
38054
38054
  const P = d.map((N) => sP(t, N, u));
38055
38055
  return {
38056
38056
  preparedInput: a ? pO([...P, ...i], {
38057
- pruningIndexes: new Set(d.map((N, L) => L))
38057
+ pruningIndexes: new Set(d.map((N, z) => z))
38058
38058
  }) : i,
38059
38059
  sessionItems: i
38060
38060
  };
@@ -38069,13 +38069,13 @@ async function tme(e, t, n, r, o, s) {
38069
38069
  reasoningItemIdPolicy: u
38070
38070
  }), _ = kN(p), m = dO(f), w = dO(p), b = /* @__PURE__ */ new Set(), T = [];
38071
38071
  for (const [P, q] of y.entries()) {
38072
- const N = jH(t, q, u), L = Jn(q);
38072
+ const N = jH(t, q, u), z = Jn(q);
38073
38073
  if (h.has(q)) {
38074
- Sd(m, q) && e_(g, N), Sd(w, q) && e_(_, L), b.add(P);
38074
+ Sd(m, q) && e_(g, N), Sd(w, q) && e_(_, z), b.add(P);
38075
38075
  continue;
38076
38076
  }
38077
38077
  if (Sd(w, q)) {
38078
- e_(_, L), T.push(q);
38078
+ e_(_, z), T.push(q);
38079
38079
  continue;
38080
38080
  }
38081
38081
  if (Sd(m, q)) {
@@ -38087,9 +38087,9 @@ async function tme(e, t, n, r, o, s) {
38087
38087
  g.set(N, F - 1), b.add(P);
38088
38088
  continue;
38089
38089
  }
38090
- const V = (j = _.get(L)) != null ? j : 0;
38090
+ const V = (j = _.get(z)) != null ? j : 0;
38091
38091
  if (V > 0) {
38092
- _.set(L, V - 1), T.push(q);
38092
+ _.set(z, V - 1), T.push(q);
38093
38093
  continue;
38094
38094
  }
38095
38095
  T.push(q);
@@ -38167,8 +38167,8 @@ async function iP(e) {
38167
38167
  if (a) {
38168
38168
  if (!zl(t) || c === void 0 || n._currentTurnSessionHistoryTransactionSessionId === void 0 || n._currentTurnSessionReasoningItemIdPolicy === void 0)
38169
38169
  throw new O("Session history transaction capability was lost while persisting run items.");
38170
- const N = qo(u), L = n._currentTurnSessionHistoryTransactionInputItems;
38171
- if (L === void 0 || L.length !== N.length || !Ra(N, L, 0))
38170
+ const N = qo(u), z = n._currentTurnSessionHistoryTransactionInputItems;
38171
+ if (z === void 0 || z.length !== N.length || !Ra(N, z, 0))
38172
38172
  throw new O("Session history transaction input no longer matches the pre-execution snapshot.");
38173
38173
  const F = d + s;
38174
38174
  (j = n._currentTurnSessionHistoryTransactionCanReplaceAcceptedOutput) != null || (n._currentTurnSessionHistoryTransactionCanReplaceAcceptedOutput = n._serializedCurrentStep === void 0 || n._currentStep !== n._serializedCurrentStep);
@@ -38980,9 +38980,9 @@ async function qH(e, t, n, r, o, s, i, a) {
38980
38980
  const E = Wf(m.tool);
38981
38981
  if (!A.success) {
38982
38982
  if (A.preparedInput) {
38983
- const L = await UA(b, m, A, !1, R);
38984
- if (L !== "approved")
38985
- return L;
38983
+ const z = await UA(b, m, A, !1, R);
38984
+ if (z !== "approved")
38985
+ return z;
38986
38986
  if (w != null && w.aborted)
38987
38987
  return $o(b, m);
38988
38988
  try {
@@ -38993,9 +38993,9 @@ async function qH(e, t, n, r, o, s, i, a) {
38993
38993
  throw F;
38994
38994
  }
38995
38995
  } else if (E) {
38996
- const L = await UA(b, m, A, !0, R);
38997
- if (L !== "approved")
38998
- return L;
38996
+ const z = await UA(b, m, A, !0, R);
38997
+ if (z !== "approved")
38998
+ return z;
38999
38999
  if (w != null && w.aborted)
39000
39000
  return $o(b, m);
39001
39001
  }
@@ -39008,10 +39008,10 @@ async function qH(e, t, n, r, o, s, i, a) {
39008
39008
  return $o(b, m);
39009
39009
  try {
39010
39010
  return await CN(b, m, A.approvalArgs, A.preparedInput, void 0, l);
39011
- } catch (L) {
39012
- if (d(L), w != null && w.aborted && (L === w.reason || Pm(L)))
39011
+ } catch (z) {
39012
+ if (d(z), w != null && w.aborted && (z === w.reason || Pm(z)))
39013
39013
  return $o(b, m);
39014
- throw L;
39014
+ throw z;
39015
39015
  }
39016
39016
  }, h = async (m, w = i) => {
39017
39017
  var T;
@@ -39351,11 +39351,11 @@ async function CN(e, t, n, r, o, s) {
39351
39351
  return $o(e, t);
39352
39352
  if (P)
39353
39353
  throw !R && N && o ? o.error : q;
39354
- const L = g();
39354
+ const z = g();
39355
39355
  try {
39356
39356
  Lme(a, c._context, i, t.tool, t.toolCall, g);
39357
39357
  } catch (ke) {
39358
- throw !L && g() && o ? o.error : ke;
39358
+ throw !z && g() && o ? o.error : ke;
39359
39359
  }
39360
39360
  g(), m = !0;
39361
39361
  let F, V = n, K = { toolCall: t.toolCall }, U = !1, B;
@@ -39989,7 +39989,7 @@ async function ZH(e, t, n, r, o = void 0, s, i, a) {
39989
39989
  R && R.length > 0 && (P.providerData = {
39990
39990
  acknowledgedSafetyChecks: R
39991
39991
  });
39992
- let q, N = !1, L;
39992
+ let q, N = !1, z;
39993
39993
  try {
39994
39994
  q = await wv(f.customDataExtractor, {
39995
39995
  runContext: r,
@@ -39999,12 +39999,12 @@ async function ZH(e, t, n, r, o = void 0, s, i, a) {
39999
39999
  rawItem: ua(P)
40000
40000
  });
40001
40001
  } catch (F) {
40002
- N = !0, L = F;
40002
+ N = !0, z = F;
40003
40003
  }
40004
40004
  if (ir(i))
40005
40005
  return A();
40006
40006
  if (N)
40007
- throw L;
40007
+ throw z;
40008
40008
  return cm(n, r, e, f, E, d), S && n.config.traceIncludeSensitiveData && (S.spanData.output = j), new ct(P, e, j, q, "executed");
40009
40009
  });
40010
40010
  u.push(...Array.isArray(T) ? T : [T]);
@@ -40769,7 +40769,7 @@ async function sge(e, t, n, r, o, s, i, a, c, u, l, d) {
40769
40769
  signal: u
40770
40770
  }) : [], P = r_(((Ce = o.functionToolsNotFound) != null ? Ce : []).filter((me) => !f.has(me.toolCall)), {
40771
40771
  completedCallIds: y
40772
- }), q = await oG(e, i, P, a), N = [], L = SP(n), F = (me) => vP(me, N, L);
40772
+ }), q = await oG(e, i, P, a), N = [], z = SP(n), F = (me) => vP(me, N, z);
40773
40773
  for (const me of R)
40774
40774
  me.type === "function_output" && Array.isArray(me.interruptions) && me.interruptions.length > 0 || F(me.runItem);
40775
40775
  for (const me of q)
@@ -40910,7 +40910,7 @@ async function Ux(e, t, n, r, o, s, i, a, c, u, l, d, f, p) {
40910
40910
  return q;
40911
40911
  if (o.hasToolsOrApprovalsToRun())
40912
40912
  return new oo(t, r, y, g, { type: "next_step_run_again" });
40913
- const N = g.filter((B) => B instanceof kc), L = N.length > 0 ? Dx(N[N.length - 1].rawItem) : void 0, F = typeof L == "undefined" ? void 0 : LH(r) || L, V = I.some((B) => B.runItem instanceof _t) || j.length > 0;
40913
+ const N = g.filter((B) => B instanceof kc), z = N.length > 0 ? Dx(N[N.length - 1].rawItem) : void 0, F = typeof z == "undefined" ? void 0 : LH(r) || z, V = I.some((B) => B.runItem instanceof _t) || j.length > 0;
40914
40914
  if (!V && N.length > 0) {
40915
40915
  const B = sme(N[N.length - 1].rawItem);
40916
40916
  if (B && typeof F == "undefined") {
@@ -41398,7 +41398,7 @@ function rj(e, t, n) {
41398
41398
  if (!(e._pendingInput.length === 0 || !r || kv(t, n)))
41399
41399
  throw new O("Pending RunState input requires exactly one server-managed conversation owner", e);
41400
41400
  }
41401
- async function KTe(e, t, n) {
41401
+ async function GTe(e, t, n) {
41402
41402
  const r = _ge();
41403
41403
  return n != null && n.stream ? await r.run(e, t, n) : await r.run(e, t, n);
41404
41404
  }
@@ -41471,7 +41471,7 @@ class AP extends Qne {
41471
41471
  toolNotFoundBehavior: _,
41472
41472
  toolNameCollisionPolicy: m,
41473
41473
  tracing: b
41474
- }, A = !this.config.tracingDisabled && $y(b), R = r instanceof fn, E = R && (r._currentTurnInProgress === !0 || r._currentTurnPersistedItemCount > 0), j = R ? r._conversationId : void 0, P = R ? r._previousResponseId : void 0, q = !!((ke = I.conversationId) != null ? ke : j) || !!((M = I.previousResponseId) != null ? M : P), N = I.session, L = kl(N, r instanceof fn ? r : void 0), F = R ? r : void 0;
41474
+ }, A = !this.config.tracingDisabled && $y(b), R = r instanceof fn, E = R && (r._currentTurnInProgress === !0 || r._currentTurnPersistedItemCount > 0), j = R ? r._conversationId : void 0, P = R ? r._previousResponseId : void 0, q = !!((ke = I.conversationId) != null ? ke : j) || !!((M = I.previousResponseId) != null ? M : P), N = I.session, z = kl(N, r instanceof fn ? r : void 0), F = R ? r : void 0;
41475
41475
  if (F != null && F._resumedSessionWriteInProgress)
41476
41476
  throw new O("The same RunState cannot resume or reconcile a Session write concurrently.");
41477
41477
  const V = F !== void 0 && Xh(F);
@@ -41497,7 +41497,7 @@ class AP extends Qne {
41497
41497
  const ae = Zhe({
41498
41498
  session: N,
41499
41499
  runContext: T,
41500
- compactionState: L,
41500
+ compactionState: z,
41501
41501
  hasCallModelInputFilter: w,
41502
41502
  persistInput: NH,
41503
41503
  resumingFromState: R,
@@ -41511,7 +41511,7 @@ class AP extends Qne {
41511
41511
  includeHistoryInPreparedInput: !q,
41512
41512
  preserveDroppedNewItems: q,
41513
41513
  reasoningItemIdPolicy: y
41514
- }, T, L);
41514
+ }, T, z);
41515
41515
  if (q && N) {
41516
41516
  const Te = Ae.sessionItems;
41517
41517
  Te && Te.length > 0 ? le = Te : le = Ae.preparedInput;
@@ -41524,7 +41524,7 @@ class AP extends Qne {
41524
41524
  const je = await W(this, Ge, hG).call(this, n, le, s, I, fe, ae == null ? void 0 : ae.setPreparedTurnItems, ae == null ? void 0 : ae.recordTurnItems, ae == null ? void 0 : ae.getItemsForPersistence, E, Y, te, {
41525
41525
  sdkSessionId: async () => await (N == null ? void 0 : N.getSessionId()),
41526
41526
  inputOverride: () => N ? ae == null ? void 0 : ae.getItemsForPersistence() : void 0
41527
- }, Ae, de, L);
41527
+ }, Ae, de, z);
41528
41528
  return K && (U = !1, je.completed.then(K, K)), je;
41529
41529
  }
41530
41530
  return await W(this, Ge, fG).call(this, n, le, I, s, ae == null ? void 0 : ae.setPreparedTurnItems, ae == null ? void 0 : ae.recordTurnItems, ae == null ? void 0 : ae.getItemsForPersistence, E, Y, te, {
@@ -41532,7 +41532,7 @@ class AP extends Qne {
41532
41532
  inputOverride: () => N ? ae == null ? void 0 : ae.getItemsForPersistence() : void 0
41533
41533
  }, Ae, N && ae && !q ? async (je, Le) => {
41534
41534
  await $x(N, ae.getItemsForPersistence(), je, Le);
41535
- } : void 0, de, L);
41535
+ } : void 0, de, z);
41536
41536
  };
41537
41537
  if (this.config.tracingDisabled) {
41538
41538
  const Ae = new Jh();
@@ -41626,7 +41626,7 @@ dG = function(n) {
41626
41626
  restoredAgentSpan: _ ? m._currentAgentSpan : void 0,
41627
41627
  resumeInterruptedTurn: q,
41628
41628
  parent: p
41629
- }) : void 0, L = N == null ? void 0 : N.taskSpan, F = q && !P ? Y$({
41629
+ }) : void 0, z = N == null ? void 0 : N.taskSpan, F = q && !P ? Y$({
41630
41630
  agent: m._currentAgent,
41631
41631
  restoredAgentSpan: _ ? m._currentAgentSpan : void 0,
41632
41632
  parent: (je = p != null ? p : js()) != null ? je : void 0
@@ -41636,7 +41636,7 @@ dG = function(n) {
41636
41636
  const U = /* @__PURE__ */ new WeakSet();
41637
41637
  let B, ie, ye = Fy();
41638
41638
  const ge = fN(this), ee = (Be) => {
41639
- zy(L, Be), zy(B, Be), ge == null || ge(Be);
41639
+ zy(z, Be), zy(B, Be), ge == null || ge(Be);
41640
41640
  };
41641
41641
  pN(m, ee);
41642
41642
  let xe, oe;
@@ -41671,7 +41671,7 @@ dG = function(n) {
41671
41671
  data: {
41672
41672
  error: QO(Be, this.config.traceIncludeSensitiveData)
41673
41673
  }
41674
- }), Qc(B, Be, this.config.traceIncludeSensitiveData), Qc(L, Be, this.config.traceIncludeSensitiveData), K = Be;
41674
+ }), Qc(B, Be, this.config.traceIncludeSensitiveData), Qc(z, Be, this.config.traceIncludeSensitiveData), K = Be;
41675
41675
  }, de = async (Be) => {
41676
41676
  const De = m._currentStep;
41677
41677
  if ((De == null ? void 0 : De.type) !== "next_step_final_output")
@@ -41815,7 +41815,7 @@ dG = function(n) {
41815
41815
  onAgentSpanReady: P ? (Cn, So) => {
41816
41816
  B = Ly(B, Cn, So, m._currentAgentSpan), Ho(m, B.span);
41817
41817
  } : void 0,
41818
- agentSpanParent: (Ke = L == null ? void 0 : L.span) != null ? Ke : p
41818
+ agentSpanParent: (Ke = z == null ? void 0 : z.span) != null ? Ke : p
41819
41819
  });
41820
41820
  u && m._currentTurn > Rt && yn <= _n && (m._currentTurnPersistedItemCount = yn);
41821
41821
  const Un = [...tn], _o = await w.prepareAgent({
@@ -41961,25 +41961,25 @@ dG = function(n) {
41961
41961
  state: m,
41962
41962
  sandboxRuntime: w,
41963
41963
  preserveSessionsForInterruption: Be,
41964
- finishAgentSpanForInterruption: !!L || K !== void 0,
41964
+ finishAgentSpanForInterruption: !!z || K !== void 0,
41965
41965
  runError: K,
41966
41966
  groupId: this.config.groupId,
41967
41967
  memoryContext: f,
41968
41968
  runAgent: async (Rt, yn, _n) => await this.run(Rt, yn, _n),
41969
- tracingParent: (Wo = (Hr = L == null ? void 0 : L.span) != null ? Hr : m._currentAgentSpan) != null ? Wo : p
41969
+ tracingParent: (Wo = (Hr = z == null ? void 0 : z.span) != null ? Hr : m._currentAgentSpan) != null ? Wo : p
41970
41970
  });
41971
41971
  } catch (Rt) {
41972
- Qc(L, Rt, this.config.traceIncludeSensitiveData), await Promise.reject(Rt);
41972
+ Qc(z, Rt, this.config.traceIncludeSensitiveData), await Promise.reject(Rt);
41973
41973
  }
41974
41974
  const De = xe != null ? xe : oe;
41975
41975
  if (De && !D)
41976
41976
  try {
41977
41977
  await X(De);
41978
41978
  } catch (Rt) {
41979
- Qc(L, Rt, this.config.traceIncludeSensitiveData), await Promise.reject(Rt);
41979
+ Qc(z, Rt, this.config.traceIncludeSensitiveData), await Promise.reject(Rt);
41980
41980
  }
41981
41981
  } finally {
41982
- Xs(L);
41982
+ Xs(z);
41983
41983
  }
41984
41984
  }
41985
41985
  });
@@ -42007,7 +42007,7 @@ dG = function(n) {
42007
42007
  generatedItems: n.state._generatedItems,
42008
42008
  modelResponses: n.state._modelResponses
42009
42009
  }), n.state.setConversationContext(S.conversationId, S.previousResponseId));
42010
- const P = (ae = s.toolErrorFormatter) != null ? ae : this.config.toolErrorFormatter, q = s.outputGuardrailBlockedMessage === void 0 ? this.config.outputGuardrailBlockedMessage : s.outputGuardrailBlockedMessage, N = W(this, Ge, Wx).call(this, s), L = !this.config.tracingDisabled && $y(s.tracing);
42010
+ const P = (ae = s.toolErrorFormatter) != null ? ae : this.config.toolErrorFormatter, q = s.outputGuardrailBlockedMessage === void 0 ? this.config.outputGuardrailBlockedMessage : s.outputGuardrailBlockedMessage, N = W(this, Ge, Wx).call(this, s), z = !this.config.tracingDisabled && $y(s.tracing);
42011
42011
  let F = !1, V;
42012
42012
  const K = /* @__PURE__ */ new WeakSet();
42013
42013
  let U = !1;
@@ -42133,7 +42133,7 @@ dG = function(n) {
42133
42133
  runConfigModel: await W(this, Ge, bh).call(this, n.state._currentAgent),
42134
42134
  toolNameCollisionPolicy: s.toolNameCollisionPolicy,
42135
42135
  tracingParent: (Ie = am(n.state)) != null ? Ie : n.state._currentAgentSpan
42136
- }), L && (oe = Ly(oe, n.state._currentTurn, n.state._currentAgent.name, n.state._currentAgentSpan), Ho(n.state, oe.span));
42136
+ }), z && (oe = Ly(oe, n.state._currentTurn, n.state._currentAgent.name, n.state._currentAgentSpan), Ho(n.state, oe.span));
42137
42137
  const Ve = await (async () => {
42138
42138
  let We;
42139
42139
  Gl(n.state, !1);
@@ -42205,7 +42205,7 @@ dG = function(n) {
42205
42205
  emitAgentStart: (yt, Kt, wt) => {
42206
42206
  this.emit("agent_start", yt, Kt, wt);
42207
42207
  },
42208
- onAgentSpanReady: L ? (yt, Kt) => {
42208
+ onAgentSpanReady: z ? (yt, Kt) => {
42209
42209
  oe = Ly(oe, yt, Kt, n.state._currentAgentSpan), Ho(n.state, oe.span);
42210
42210
  } : void 0,
42211
42211
  agentSpanParent: (Ae = y == null ? void 0 : y.span) != null ? Ae : g
@@ -42448,10 +42448,10 @@ dG = function(n) {
42448
42448
  }
42449
42449
  }, hG = async function(n, r, o, s, i, a, c, u, l, d, f, p, h, y = !1, g) {
42450
42450
  return s = s != null ? s : {}, mO(async () => {
42451
- var L, F, V, K, U, B, ie;
42451
+ var z, F, V, K, U, B, ie;
42452
42452
  const _ = r instanceof fn, m = _ ? r : new fn(s.context instanceof Fr ? s.context : new Fr(s.context), r, n, s.maxTurns === void 0 ? $D : s.maxTurns);
42453
42453
  vN(m, g), W(this, Ge, fr).call(this, m._currentAgent), _ && (m._agentToolInvocation = void 0, s.maxTurns !== void 0 && (m._maxTurns = s.maxTurns));
42454
- const w = (F = (L = s.reasoningItemIdPolicy) != null ? L : _ ? m._reasoningItemIdPolicy : void 0) != null ? F : this.config.reasoningItemIdPolicy;
42454
+ const w = (F = (z = s.reasoningItemIdPolicy) != null ? z : _ ? m._reasoningItemIdPolicy : void 0) != null ? F : this.config.reasoningItemIdPolicy;
42455
42455
  m.setReasoningItemIdPolicy(w);
42456
42456
  const b = (V = s.conversationId) != null ? V : _ ? m._conversationId : void 0, T = (K = s.previousResponseId) != null ? K : _ ? m._previousResponseId : void 0;
42457
42457
  _ || await rc(s.session, m, {
@@ -42501,11 +42501,11 @@ fr = function(n) {
42501
42501
  const r = n.hasExplicitModelSettings() ? n.modelSettings : void 0;
42502
42502
  Wb(ew(this.config.modelSettings, r));
42503
42503
  }, Hx = async function(n, r, o, s, i, a, c) {
42504
- var q, N, L, F, V, K;
42504
+ var q, N, z, F, V, K;
42505
42505
  const { model: u, explicitlyModelSet: l, resolvedModelName: d } = await W(this, Ge, qx).call(this, r), f = r.hasExplicitModelSettings(), p = f ? r.modelSettings : Object.prototype.hasOwnProperty.call(r.modelSettings, "store") ? { store: r.modelSettings.store } : void 0, h = u.supportsPromptModelSelection === !0 && r.prompt !== void 0 && !l, y = f || h ? void 0 : gge(l, d), g = {
42506
42506
  reasoningEffortImplicit: ((q = y == null ? void 0 : y.reasoning) == null ? void 0 : q.effort) !== void 0 && !oj(this.config.modelSettings) && !oj(p),
42507
42507
  tracingParent: (N = am(n)) != null ? N : n._currentAgentSpan,
42508
- toolNameCollisionPolicy: (L = o.toolNameCollisionPolicy) != null ? L : "warn"
42508
+ toolNameCollisionPolicy: (z = o.toolNameCollisionPolicy) != null ? z : "warn"
42509
42509
  };
42510
42510
  let _ = ew(y, this.config.modelSettings);
42511
42511
  _ = ew(_, p), _ = nfe(l, (F = p != null ? p : y) != null ? F : {}, _, d), _ = tfe(n._currentAgent, n._toolUseTracker, _), Wb(_), n._lastModelSettings = _;
@@ -43072,7 +43072,7 @@ const Eu = class Eu extends Yne {
43072
43072
  isEnabled: p,
43073
43073
  execute: async (E, j, P) => {
43074
43074
  var M, D, G, X, Y, te, de, ae, le, fe, Me, Ie, Ae;
43075
- const q = E, N = (d == null ? void 0 : d.context) instanceof Fr ? d.context : typeof (d == null ? void 0 : d.context) != "undefined" ? new Fr(d.context) : j instanceof Fr ? j : typeof j != "undefined" ? new Fr(j) : new Fr(), L = {
43075
+ const q = E, N = (d == null ? void 0 : d.context) instanceof Fr ? d.context : typeof (d == null ? void 0 : d.context) != "undefined" ? new Fr(d.context) : j instanceof Fr ? j : typeof j != "undefined" ? new Fr(j) : new Fr(), z = {
43076
43076
  toolName: (D = (M = P == null ? void 0 : P.toolCall) == null ? void 0 : M.name) != null ? D : A.name,
43077
43077
  toolCallId: (G = P == null ? void 0 : P.toolCall) == null ? void 0 : G.callId,
43078
43078
  toolArguments: (X = P == null ? void 0 : P.toolCall) == null ? void 0 : X.arguments
@@ -43120,7 +43120,7 @@ const Eu = class Eu extends Yne {
43120
43120
  }
43121
43121
  }
43122
43122
  const Le = Te;
43123
- Le.state instanceof fn && (Le.state._agentToolInvocation = L);
43123
+ Le.state instanceof fn && (Le.state._agentToolInvocation = z);
43124
43124
  const Fe = Le, rt = typeof this.toolUseBehavior == "object" && this.toolUseBehavior !== null && "stopAtToolNames" in this.toolUseBehavior;
43125
43125
  typeof s != "function" && rt && ne.debug(`You're passing the agent (name: ${this.name}) with toolUseBehavior.stopAtToolNames configured as a tool to a different agent; this may not work as you expect. You may want to have a wrapper function tool to consistently return the final output.`);
43126
43126
  let Oe;
@@ -46004,7 +46004,7 @@ ${i}
46004
46004
  ${h}`);
46005
46005
  }
46006
46006
  return i;
46007
- }, z = /* @__PURE__ */ A_e(JG);
46007
+ }, L = /* @__PURE__ */ A_e(JG);
46008
46008
  function T_e(e, t) {
46009
46009
  return Promise.resolve(e).then(t);
46010
46010
  }
@@ -46044,7 +46044,7 @@ function O_e(e, t, n) {
46044
46044
  let VG = class extends pe {
46045
46045
  list(t, n = {}, r) {
46046
46046
  const o = O_e(n, ["after", "limit", "order"], r);
46047
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/chat/completions/${t}/messages`, dt, T_e(r, (s) => ({
46047
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/chat/completions/${t}/messages`, dt, T_e(r, (s) => ({
46048
46048
  query: n,
46049
46049
  ...s,
46050
46050
  __security: { bearerAuth: !0 }
@@ -46898,9 +46898,9 @@ class EP {
46898
46898
  }
46899
46899
  if (typeof A == "object" && A !== null && tT.has(A)) {
46900
46900
  const N = A;
46901
- for (let L = 0; L < N.length; L += 1) {
46902
- const F = N[L];
46903
- typeof F == "string" && (N[L] = k_e(R_e(F)));
46901
+ for (let z = 0; z < N.length; z += 1) {
46902
+ const F = N[z];
46903
+ typeof F == "string" && (N[z] = k_e(R_e(F)));
46904
46904
  }
46905
46905
  }
46906
46906
  const P = { retention: j, active: !0, check: void 0 };
@@ -47206,18 +47206,18 @@ class PP extends EP {
47206
47206
  return { message: void 0, functionCalled: !1 };
47207
47207
  const R = I.id, { name: E, arguments: j } = I.function, P = g[E];
47208
47208
  if (!P) {
47209
- const L = `Invalid tool_call: ${JSON.stringify(E)}. Available options are: ${Object.keys(g).map((F) => JSON.stringify(F)).join(", ")}. Please try again`;
47210
- return { message: { role: s, tool_call_id: R, content: L }, functionCalled: !1 };
47209
+ const z = `Invalid tool_call: ${JSON.stringify(E)}. Available options are: ${Object.keys(g).map((F) => JSON.stringify(F)).join(", ")}. Please try again`;
47210
+ return { message: { role: s, tool_call_id: R, content: z }, functionCalled: !1 };
47211
47211
  }
47212
47212
  if (d && d !== E) {
47213
- const L = `Invalid tool_call: ${JSON.stringify(E)}. ${JSON.stringify(d)} requested. Please try again`;
47214
- return { message: { role: s, tool_call_id: R, content: L }, functionCalled: !1 };
47213
+ const z = `Invalid tool_call: ${JSON.stringify(E)}. ${JSON.stringify(d)} requested. Please try again`;
47214
+ return { message: { role: s, tool_call_id: R, content: z }, functionCalled: !1 };
47215
47215
  }
47216
47216
  let q;
47217
47217
  if (cwe(P)) {
47218
- let L;
47218
+ let z;
47219
47219
  try {
47220
- L = await P.parse(j);
47220
+ z = await P.parse(j);
47221
47221
  } catch (F) {
47222
47222
  if (this.controller.signal.aborted)
47223
47223
  throw this._userAbortError();
@@ -47227,7 +47227,7 @@ class PP extends EP {
47227
47227
  if (this.controller.signal.aborted)
47228
47228
  throw this._userAbortError();
47229
47229
  try {
47230
- q = await P.function(L, r, l);
47230
+ q = await P.function(z, r, l);
47231
47231
  } catch (F) {
47232
47232
  throw this.controller.signal.aborted && Object.is(F, this.controller.signal.reason) ? this._userAbortError() : F;
47233
47233
  }
@@ -47236,8 +47236,8 @@ class PP extends EP {
47236
47236
  throw this._userAbortError();
47237
47237
  try {
47238
47238
  q = await P.function(j, r, l);
47239
- } catch (L) {
47240
- throw this.controller.signal.aborted && Object.is(L, this.controller.signal.reason) ? this._userAbortError() : L;
47239
+ } catch (z) {
47240
+ throw this.controller.signal.aborted && Object.is(z, this.controller.signal.reason) ? this._userAbortError() : z;
47241
47241
  }
47242
47242
  }
47243
47243
  const N = v(_u, _u, "m", iZ).call(_u, q);
@@ -48066,9 +48066,9 @@ class tg extends PP {
48066
48066
  const N = (g = A.tool_calls) == null ? void 0 : g[q.index];
48067
48067
  if (N != null && N.type)
48068
48068
  if (N.type === "function") {
48069
- const L = P.tool_call_identities.get(q.index);
48069
+ const z = P.tool_call_identities.get(q.index);
48070
48070
  let F;
48071
- if (L != null && L.parseable) {
48071
+ if (z != null && z.parseable) {
48072
48072
  const V = Zo(N.function, "arguments");
48073
48073
  if (typeof V != "string")
48074
48074
  throw new H("Chat completion stream contains an unsafe structured JSON snapshot");
@@ -48200,7 +48200,7 @@ class tg extends PP {
48200
48200
  const r = v(this, Ht, "m", Ql).call(this, n), o = v(this, qa, "f");
48201
48201
  return ce(this, qa, /* @__PURE__ */ new Set()), ce(this, Tr, void 0), ce(this, ru, []), Rwe(n, v(this, Sn, "f"), o, r);
48202
48202
  }, $j = function(n, r) {
48203
- var y, g, _, m, w, b, T, S, I, A, R, E, j, P, q, N, L;
48203
+ var y, g, _, m, w, b, T, S, I, A, R, E, j, P, q, N, z;
48204
48204
  var o, s, i, a, c;
48205
48205
  let u = v(this, Tr, "f");
48206
48206
  const { choices: l, obfuscation: d, ...f } = n;
@@ -48269,7 +48269,7 @@ class tg extends PP {
48269
48269
  if (de) {
48270
48270
  const je = (q = Me.function) != null ? q : Me.function = { name: Ie != null ? Ie : "", arguments: "" };
48271
48271
  if (Ie && (je.name = Ie), Ae && !Te) {
48272
- const Fe = yS(Me), rt = Fe && ((L = (N = v(this, Sn, "f")) == null ? void 0 : N.tools) == null ? void 0 : L.find((Oe) => aa(Oe) && Oe.function.name === Fe.name));
48272
+ const Fe = yS(Me), rt = Fe && ((z = (N = v(this, Sn, "f")) == null ? void 0 : N.tools) == null ? void 0 : z.find((Oe) => aa(Oe) && Oe.function.name === Fe.name));
48273
48273
  if (Fe && (Te = {
48274
48274
  ...Fe,
48275
48275
  parseable: rt !== void 0 && wO(v(this, Sn, "f"), {
@@ -48320,12 +48320,12 @@ function Rwe(e, t, n, r) {
48320
48320
  if (!f)
48321
48321
  throw new H("Chat completion stream contains an unsafe structured JSON snapshot");
48322
48322
  const p = new Proxy(d, {
48323
- get(L, F, V) {
48324
- return F === "message" ? f.message : Reflect.get(L, F, V);
48323
+ get(z, F, V) {
48324
+ return F === "message" ? f.message : Reflect.get(z, F, V);
48325
48325
  }
48326
48326
  }), { message: h, finish_reason: y, index: g, logprobs: _, ...m } = p, w = new Proxy(h, {
48327
- get(L, F, V) {
48328
- return F === "content" ? f.content : F === "refusal" ? f.refusal : F === "tool_calls" ? f.toolCallCollection : Reflect.get(L, F, V);
48327
+ get(z, F, V) {
48328
+ return F === "content" ? f.content : F === "refusal" ? f.refusal : F === "tool_calls" ? f.toolCallCollection : Reflect.get(z, F, V);
48329
48329
  }
48330
48330
  }), { content: b = null, function_call: T, tool_calls: S, audio: I, ...A } = w, R = y != null ? y : n.has(g) && kwe(I) ? "stop" : null;
48331
48331
  if (!R)
@@ -48334,8 +48334,8 @@ function Rwe(e, t, n, r) {
48334
48334
  if (!j)
48335
48335
  throw new H(`missing role for choice ${g}`);
48336
48336
  if (T) {
48337
- const { arguments: L, name: F } = T;
48338
- if (L == null)
48337
+ const { arguments: z, name: F } = T;
48338
+ if (z == null)
48339
48339
  throw new H(`missing function_call.arguments for choice ${g}`);
48340
48340
  if (!F)
48341
48341
  throw new H(`missing function_call.name for choice ${g}`);
@@ -48344,7 +48344,7 @@ function Rwe(e, t, n, r) {
48344
48344
  message: {
48345
48345
  ...E,
48346
48346
  content: b,
48347
- function_call: { arguments: L, name: F },
48347
+ function_call: { arguments: z, name: F },
48348
48348
  role: j,
48349
48349
  refusal: (P = w.refusal) != null ? P : null
48350
48350
  },
@@ -48364,27 +48364,27 @@ function Rwe(e, t, n, r) {
48364
48364
  role: j,
48365
48365
  content: b,
48366
48366
  refusal: (q = w.refusal) != null ? q : null,
48367
- tool_calls: Fj(S, _c, "tool-call", (L, F) => {
48367
+ tool_calls: Fj(S, _c, "tool-call", (z, F) => {
48368
48368
  const V = f.toolCalls.get(F);
48369
48369
  if (!V) {
48370
- const Ce = yS(L);
48370
+ const Ce = yS(z);
48371
48371
  if (Ce && wO(t, {
48372
48372
  type: Ce.type,
48373
48373
  function: { name: Ce.name }
48374
48374
  }))
48375
48375
  throw new H("Chat completion stream contains an unsafe structured JSON snapshot");
48376
48376
  }
48377
- if (V && V.tool !== L)
48377
+ if (V && V.tool !== z)
48378
48378
  throw new H("Chat completion stream contains a changed tool call identity");
48379
48379
  const K = V && new Proxy(V.function, {
48380
48380
  get(Ce, Ee, me) {
48381
48381
  return Ee === "arguments" ? V.arguments : Ee === "name" ? V.name : Reflect.get(Ce, Ee, me);
48382
48382
  }
48383
- }), U = V && K ? new Proxy(L, {
48383
+ }), U = V && K ? new Proxy(z, {
48384
48384
  get(Ce, Ee, me) {
48385
48385
  return Ee === "type" ? V.type : Ee === "function" ? K : Reflect.get(Ce, Ee, me);
48386
48386
  }
48387
- }) : L;
48387
+ }) : z;
48388
48388
  if (U.type == null)
48389
48389
  throw new H(`missing choices[${g}].tool_calls[${F}].type`);
48390
48390
  if (U.type === "custom") {
@@ -48534,7 +48534,7 @@ let DP = class extends pe {
48534
48534
  * ```
48535
48535
  */
48536
48536
  retrieve(t, n) {
48537
- return this._client.get(z`/chat/completions/${t}`, Sp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
48537
+ return this._client.get(L`/chat/completions/${t}`, Sp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
48538
48538
  }
48539
48539
  /**
48540
48540
  * Modify a stored chat completion. Only Chat Completions that have been created
@@ -48550,7 +48550,7 @@ let DP = class extends pe {
48550
48550
  * ```
48551
48551
  */
48552
48552
  update(t, n, r) {
48553
- return this._client.post(z`/chat/completions/${t}`, Sp(r, (o) => ({
48553
+ return this._client.post(L`/chat/completions/${t}`, Sp(r, (o) => ({
48554
48554
  body: n,
48555
48555
  ...o,
48556
48556
  __security: { bearerAuth: !0 }
@@ -48575,7 +48575,7 @@ let DP = class extends pe {
48575
48575
  * ```
48576
48576
  */
48577
48577
  delete(t, n) {
48578
- return this._client.delete(z`/chat/completions/${t}`, Sp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
48578
+ return this._client.delete(L`/chat/completions/${t}`, Sp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
48579
48579
  }
48580
48580
  parse(t, n) {
48581
48581
  return ore(t.tools), this._client.chat.completions.create(t, {
@@ -48667,7 +48667,7 @@ class IZ extends pe {
48667
48667
  * ```
48668
48668
  */
48669
48669
  retrieve(t, n) {
48670
- return this._client.get(z`/organization/admin_api_keys/${t}`, h_(n, (r) => ({
48670
+ return this._client.get(L`/organization/admin_api_keys/${t}`, h_(n, (r) => ({
48671
48671
  ...r,
48672
48672
  __security: { adminAPIKeyAuth: !0 }
48673
48673
  })));
@@ -48692,7 +48692,7 @@ class IZ extends pe {
48692
48692
  * ```
48693
48693
  */
48694
48694
  delete(t, n) {
48695
- return this._client.delete(z`/organization/admin_api_keys/${t}`, h_(n, (r) => ({
48695
+ return this._client.delete(L`/organization/admin_api_keys/${t}`, h_(n, (r) => ({
48696
48696
  ...r,
48697
48697
  __security: { adminAPIKeyAuth: !0 }
48698
48698
  })));
@@ -48815,7 +48815,7 @@ let TZ = class extends pe {
48815
48815
  }
48816
48816
  retrieve(t, n = {}, r) {
48817
48817
  const o = Wj(n, ["include"], r);
48818
- return o !== void 0 && (r = o, n = {}), n = n, this._client.get(z`/organization/certificates/${t}`, su(r, (s) => ({
48818
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.get(L`/organization/certificates/${t}`, su(r, (s) => ({
48819
48819
  query: n,
48820
48820
  ...s,
48821
48821
  __security: { adminAPIKeyAuth: !0 }
@@ -48833,7 +48833,7 @@ let TZ = class extends pe {
48833
48833
  * ```
48834
48834
  */
48835
48835
  update(t, n, r) {
48836
- return this._client.post(z`/organization/certificates/${t}`, su(r, (o) => ({
48836
+ return this._client.post(L`/organization/certificates/${t}`, su(r, (o) => ({
48837
48837
  body: n,
48838
48838
  ...o,
48839
48839
  __security: { adminAPIKeyAuth: !0 }
@@ -48861,7 +48861,7 @@ let TZ = class extends pe {
48861
48861
  * ```
48862
48862
  */
48863
48863
  delete(t, n) {
48864
- return this._client.delete(z`/organization/certificates/${t}`, su(n, (r) => ({
48864
+ return this._client.delete(L`/organization/certificates/${t}`, su(n, (r) => ({
48865
48865
  ...r,
48866
48866
  __security: { adminAPIKeyAuth: !0 }
48867
48867
  })));
@@ -49023,7 +49023,7 @@ class xZ extends pe {
49023
49023
  * ```
49024
49024
  */
49025
49025
  retrieve(t, n) {
49026
- return this._client.get(z`/organization/external_storage/${t}`, vp(n, (r) => ({
49026
+ return this._client.get(L`/organization/external_storage/${t}`, vp(n, (r) => ({
49027
49027
  ...r,
49028
49028
  __security: { adminAPIKeyAuth: !0 }
49029
49029
  })));
@@ -49051,7 +49051,7 @@ class xZ extends pe {
49051
49051
  * ```
49052
49052
  */
49053
49053
  delete(t, n) {
49054
- return this._client.delete(z`/organization/external_storage/${t}`, vp(n, (r) => ({
49054
+ return this._client.delete(L`/organization/external_storage/${t}`, vp(n, (r) => ({
49055
49055
  ...r,
49056
49056
  __security: { adminAPIKeyAuth: !0 }
49057
49057
  })));
@@ -49068,7 +49068,7 @@ class xZ extends pe {
49068
49068
  * ```
49069
49069
  */
49070
49070
  validate(t, n) {
49071
- return this._client.post(z`/organization/external_storage/${t}/validate`, vp(n, (r) => ({
49071
+ return this._client.post(L`/organization/external_storage/${t}/validate`, vp(n, (r) => ({
49072
49072
  ...r,
49073
49073
  __security: { adminAPIKeyAuth: !0 }
49074
49074
  })));
@@ -49143,7 +49143,7 @@ class RZ extends pe {
49143
49143
  * ```
49144
49144
  */
49145
49145
  retrieve(t, n) {
49146
- return this._client.get(z`/organization/invites/${t}`, m_(n, (r) => ({
49146
+ return this._client.get(L`/organization/invites/${t}`, m_(n, (r) => ({
49147
49147
  ...r,
49148
49148
  __security: { adminAPIKeyAuth: !0 }
49149
49149
  })));
@@ -49168,7 +49168,7 @@ class RZ extends pe {
49168
49168
  * ```
49169
49169
  */
49170
49170
  delete(t, n) {
49171
- return this._client.delete(z`/organization/invites/${t}`, m_(n, (r) => ({
49171
+ return this._client.delete(L`/organization/invites/${t}`, m_(n, (r) => ({
49172
49172
  ...r,
49173
49173
  __security: { adminAPIKeyAuth: !0 }
49174
49174
  })));
@@ -49240,7 +49240,7 @@ let kZ = class extends pe {
49240
49240
  * ```
49241
49241
  */
49242
49242
  retrieve(t, n) {
49243
- return this._client.get(z`/organization/roles/${t}`, Ip(n, (r) => ({
49243
+ return this._client.get(L`/organization/roles/${t}`, Ip(n, (r) => ({
49244
49244
  ...r,
49245
49245
  __security: { adminAPIKeyAuth: !0 }
49246
49246
  })));
@@ -49256,7 +49256,7 @@ let kZ = class extends pe {
49256
49256
  * ```
49257
49257
  */
49258
49258
  update(t, n, r) {
49259
- return this._client.post(z`/organization/roles/${t}`, Ip(r, (o) => ({
49259
+ return this._client.post(L`/organization/roles/${t}`, Ip(r, (o) => ({
49260
49260
  body: n,
49261
49261
  ...o,
49262
49262
  __security: { adminAPIKeyAuth: !0 }
@@ -49281,7 +49281,7 @@ let kZ = class extends pe {
49281
49281
  * ```
49282
49282
  */
49283
49283
  delete(t, n) {
49284
- return this._client.delete(z`/organization/roles/${t}`, Ip(n, (r) => ({
49284
+ return this._client.delete(L`/organization/roles/${t}`, Ip(n, (r) => ({
49285
49285
  ...r,
49286
49286
  __security: { adminAPIKeyAuth: !0 }
49287
49287
  })));
@@ -49360,7 +49360,7 @@ let EZ = class extends pe {
49360
49360
  * ```
49361
49361
  */
49362
49362
  retrieve(t, n) {
49363
- return this._client.get(z`/organization/spend_alerts/${t}`, Ap(n, (r) => ({
49363
+ return this._client.get(L`/organization/spend_alerts/${t}`, Ap(n, (r) => ({
49364
49364
  ...r,
49365
49365
  __security: { adminAPIKeyAuth: !0 }
49366
49366
  })));
@@ -49386,7 +49386,7 @@ let EZ = class extends pe {
49386
49386
  * ```
49387
49387
  */
49388
49388
  update(t, n, r) {
49389
- return this._client.post(z`/organization/spend_alerts/${t}`, Ap(r, (o) => ({
49389
+ return this._client.post(L`/organization/spend_alerts/${t}`, Ap(r, (o) => ({
49390
49390
  body: n,
49391
49391
  ...o,
49392
49392
  __security: { adminAPIKeyAuth: !0 }
@@ -49412,7 +49412,7 @@ let EZ = class extends pe {
49412
49412
  * ```
49413
49413
  */
49414
49414
  delete(t, n) {
49415
- return this._client.delete(z`/organization/spend_alerts/${t}`, Ap(n, (r) => ({
49415
+ return this._client.delete(L`/organization/spend_alerts/${t}`, Ap(n, (r) => ({
49416
49416
  ...r,
49417
49417
  __security: { adminAPIKeyAuth: !0 }
49418
49418
  })));
@@ -49726,7 +49726,7 @@ let MZ = class extends pe {
49726
49726
  * ```
49727
49727
  */
49728
49728
  create(t, n, r) {
49729
- return this._client.post(z`/organization/groups/${t}/roles`, g_(r, (o) => ({
49729
+ return this._client.post(L`/organization/groups/${t}/roles`, g_(r, (o) => ({
49730
49730
  body: n,
49731
49731
  ...o,
49732
49732
  __security: { adminAPIKeyAuth: !0 }
@@ -49746,14 +49746,14 @@ let MZ = class extends pe {
49746
49746
  */
49747
49747
  retrieve(t, n, r) {
49748
49748
  const { group_id: o } = n;
49749
- return this._client.get(z`/organization/groups/${o}/roles/${t}`, g_(r, (s) => ({
49749
+ return this._client.get(L`/organization/groups/${o}/roles/${t}`, g_(r, (s) => ({
49750
49750
  ...s,
49751
49751
  __security: { adminAPIKeyAuth: !0 }
49752
49752
  })));
49753
49753
  }
49754
49754
  list(t, n = {}, r) {
49755
49755
  const o = Fwe(n, ["after", "limit", "order"], r);
49756
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/groups/${t}/roles`, Pi, g_(r, (s) => ({
49756
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/groups/${t}/roles`, Pi, g_(r, (s) => ({
49757
49757
  query: n,
49758
49758
  ...s,
49759
49759
  __security: { adminAPIKeyAuth: !0 }
@@ -49773,7 +49773,7 @@ let MZ = class extends pe {
49773
49773
  */
49774
49774
  delete(t, n, r) {
49775
49775
  const { group_id: o } = n;
49776
- return this._client.delete(z`/organization/groups/${o}/roles/${t}`, g_(r, (s) => ({
49776
+ return this._client.delete(L`/organization/groups/${o}/roles/${t}`, g_(r, (s) => ({
49777
49777
  ...s,
49778
49778
  __security: { adminAPIKeyAuth: !0 }
49779
49779
  })));
@@ -49829,7 +49829,7 @@ let $Z = class extends pe {
49829
49829
  * ```
49830
49830
  */
49831
49831
  create(t, n, r) {
49832
- return this._client.post(z`/organization/groups/${t}/users`, y_(r, (o) => ({
49832
+ return this._client.post(L`/organization/groups/${t}/users`, y_(r, (o) => ({
49833
49833
  body: n,
49834
49834
  ...o,
49835
49835
  __security: { adminAPIKeyAuth: !0 }
@@ -49849,14 +49849,14 @@ let $Z = class extends pe {
49849
49849
  */
49850
49850
  retrieve(t, n, r) {
49851
49851
  const { group_id: o } = n;
49852
- return this._client.get(z`/organization/groups/${o}/users/${t}`, y_(r, (s) => ({
49852
+ return this._client.get(L`/organization/groups/${o}/users/${t}`, y_(r, (s) => ({
49853
49853
  ...s,
49854
49854
  __security: { adminAPIKeyAuth: !0 }
49855
49855
  })));
49856
49856
  }
49857
49857
  list(t, n = {}, r) {
49858
49858
  const o = zwe(n, ["after", "limit", "order"], r);
49859
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/groups/${t}/users`, Pi, y_(r, (s) => ({
49859
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/groups/${t}/users`, Pi, y_(r, (s) => ({
49860
49860
  query: n,
49861
49861
  ...s,
49862
49862
  __security: { adminAPIKeyAuth: !0 }
@@ -49876,7 +49876,7 @@ let $Z = class extends pe {
49876
49876
  */
49877
49877
  delete(t, n, r) {
49878
49878
  const { group_id: o } = n;
49879
- return this._client.delete(z`/organization/groups/${o}/users/${t}`, y_(r, (s) => ({
49879
+ return this._client.delete(L`/organization/groups/${o}/users/${t}`, y_(r, (s) => ({
49880
49880
  ...s,
49881
49881
  __security: { adminAPIKeyAuth: !0 }
49882
49882
  })));
@@ -49951,7 +49951,7 @@ let aI = class extends pe {
49951
49951
  * ```
49952
49952
  */
49953
49953
  retrieve(t, n) {
49954
- return this._client.get(z`/organization/groups/${t}`, Tp(n, (r) => ({
49954
+ return this._client.get(L`/organization/groups/${t}`, Tp(n, (r) => ({
49955
49955
  ...r,
49956
49956
  __security: { adminAPIKeyAuth: !0 }
49957
49957
  })));
@@ -49968,7 +49968,7 @@ let aI = class extends pe {
49968
49968
  * ```
49969
49969
  */
49970
49970
  update(t, n, r) {
49971
- return this._client.post(z`/organization/groups/${t}`, Tp(r, (o) => ({
49971
+ return this._client.post(L`/organization/groups/${t}`, Tp(r, (o) => ({
49972
49972
  body: n,
49973
49973
  ...o,
49974
49974
  __security: { adminAPIKeyAuth: !0 }
@@ -49993,7 +49993,7 @@ let aI = class extends pe {
49993
49993
  * ```
49994
49994
  */
49995
49995
  delete(t, n) {
49996
- return this._client.delete(z`/organization/groups/${t}`, Tp(n, (r) => ({
49996
+ return this._client.delete(L`/organization/groups/${t}`, Tp(n, (r) => ({
49997
49997
  ...r,
49998
49998
  __security: { adminAPIKeyAuth: !0 }
49999
49999
  })));
@@ -50052,14 +50052,14 @@ let DZ = class extends pe {
50052
50052
  */
50053
50053
  retrieve(t, n, r) {
50054
50054
  const { project_id: o } = n;
50055
- return this._client.get(z`/organization/projects/${o}/api_keys/${t}`, ST(r, (s) => ({
50055
+ return this._client.get(L`/organization/projects/${o}/api_keys/${t}`, ST(r, (s) => ({
50056
50056
  ...s,
50057
50057
  __security: { adminAPIKeyAuth: !0 }
50058
50058
  })));
50059
50059
  }
50060
50060
  list(t, n = {}, r) {
50061
50061
  const o = Bwe(n, ["after", "limit", "owner_project_access"], r);
50062
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/projects/${t}/api_keys`, er, ST(r, (s) => ({
50062
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/api_keys`, er, ST(r, (s) => ({
50063
50063
  query: n,
50064
50064
  ...s,
50065
50065
  __security: { adminAPIKeyAuth: !0 }
@@ -50082,7 +50082,7 @@ let DZ = class extends pe {
50082
50082
  */
50083
50083
  delete(t, n, r) {
50084
50084
  const { project_id: o } = n;
50085
- return this._client.delete(z`/organization/projects/${o}/api_keys/${t}`, ST(r, (s) => ({
50085
+ return this._client.delete(L`/organization/projects/${o}/api_keys/${t}`, ST(r, (s) => ({
50086
50086
  ...s,
50087
50087
  __security: { adminAPIKeyAuth: !0 }
50088
50088
  })));
@@ -50127,7 +50127,7 @@ function Uwe(e, t, n) {
50127
50127
  class NZ extends pe {
50128
50128
  list(t, n = {}, r) {
50129
50129
  const o = Uwe(n, ["after", "limit", "order"], r);
50130
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/projects/${t}/certificates`, er, vT(r, (s) => ({
50130
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/certificates`, er, vT(r, (s) => ({
50131
50131
  query: n,
50132
50132
  ...s,
50133
50133
  __security: { adminAPIKeyAuth: !0 }
@@ -50150,7 +50150,7 @@ class NZ extends pe {
50150
50150
  * ```
50151
50151
  */
50152
50152
  activate(t, n, r) {
50153
- return this._client.getAPIList(z`/organization/projects/${t}/certificates/activate`, Ca, vT(r, (o) => ({
50153
+ return this._client.getAPIList(L`/organization/projects/${t}/certificates/activate`, Ca, vT(r, (o) => ({
50154
50154
  body: n,
50155
50155
  method: "post",
50156
50156
  ...o,
@@ -50173,7 +50173,7 @@ class NZ extends pe {
50173
50173
  * ```
50174
50174
  */
50175
50175
  deactivate(t, n, r) {
50176
- return this._client.getAPIList(z`/organization/projects/${t}/certificates/deactivate`, Ca, vT(r, (o) => ({
50176
+ return this._client.getAPIList(L`/organization/projects/${t}/certificates/deactivate`, Ca, vT(r, (o) => ({
50177
50177
  body: n,
50178
50178
  method: "post",
50179
50179
  ...o,
@@ -50197,7 +50197,7 @@ class jZ extends pe {
50197
50197
  * ```
50198
50198
  */
50199
50199
  retrieve(t, n) {
50200
- return this._client.get(z`/organization/projects/${t}/data_retention`, n1(n, (r) => ({
50200
+ return this._client.get(L`/organization/projects/${t}/data_retention`, n1(n, (r) => ({
50201
50201
  ...r,
50202
50202
  __security: { adminAPIKeyAuth: !0 }
50203
50203
  })));
@@ -50215,7 +50215,7 @@ class jZ extends pe {
50215
50215
  * ```
50216
50216
  */
50217
50217
  update(t, n, r) {
50218
- return this._client.post(z`/organization/projects/${t}/data_retention`, n1(r, (o) => ({
50218
+ return this._client.post(L`/organization/projects/${t}/data_retention`, n1(r, (o) => ({
50219
50219
  body: n,
50220
50220
  ...o,
50221
50221
  __security: { adminAPIKeyAuth: !0 }
@@ -50238,7 +50238,7 @@ class FZ extends pe {
50238
50238
  * ```
50239
50239
  */
50240
50240
  retrieve(t, n) {
50241
- return this._client.get(z`/organization/projects/${t}/hosted_tool_permissions`, r1(n, (r) => ({
50241
+ return this._client.get(L`/organization/projects/${t}/hosted_tool_permissions`, r1(n, (r) => ({
50242
50242
  ...r,
50243
50243
  __security: { adminAPIKeyAuth: !0 }
50244
50244
  })));
@@ -50255,7 +50255,7 @@ class FZ extends pe {
50255
50255
  * ```
50256
50256
  */
50257
50257
  update(t, n, r) {
50258
- return this._client.post(z`/organization/projects/${t}/hosted_tool_permissions`, r1(r, (o) => ({
50258
+ return this._client.post(L`/organization/projects/${t}/hosted_tool_permissions`, r1(r, (o) => ({
50259
50259
  body: n,
50260
50260
  ...o,
50261
50261
  __security: { adminAPIKeyAuth: !0 }
@@ -50278,7 +50278,7 @@ class zZ extends pe {
50278
50278
  * ```
50279
50279
  */
50280
50280
  retrieve(t, n) {
50281
- return this._client.get(z`/organization/projects/${t}/model_permissions`, IT(n, (r) => ({
50281
+ return this._client.get(L`/organization/projects/${t}/model_permissions`, IT(n, (r) => ({
50282
50282
  ...r,
50283
50283
  __security: { adminAPIKeyAuth: !0 }
50284
50284
  })));
@@ -50296,7 +50296,7 @@ class zZ extends pe {
50296
50296
  * ```
50297
50297
  */
50298
50298
  update(t, n, r) {
50299
- return this._client.post(z`/organization/projects/${t}/model_permissions`, IT(r, (o) => ({
50299
+ return this._client.post(L`/organization/projects/${t}/model_permissions`, IT(r, (o) => ({
50300
50300
  body: n,
50301
50301
  ...o,
50302
50302
  __security: { adminAPIKeyAuth: !0 }
@@ -50314,7 +50314,7 @@ class zZ extends pe {
50314
50314
  * ```
50315
50315
  */
50316
50316
  delete(t, n) {
50317
- return this._client.delete(z`/organization/projects/${t}/model_permissions`, IT(n, (r) => ({
50317
+ return this._client.delete(L`/organization/projects/${t}/model_permissions`, IT(n, (r) => ({
50318
50318
  ...r,
50319
50319
  __security: { adminAPIKeyAuth: !0 }
50320
50320
  })));
@@ -50359,7 +50359,7 @@ function Kwe(e, t, n) {
50359
50359
  class LZ extends pe {
50360
50360
  listRateLimits(t, n = {}, r) {
50361
50361
  const o = Kwe(n, ["after", "before", "limit"], r);
50362
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/projects/${t}/rate_limits`, er, o1(r, (s) => ({
50362
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/rate_limits`, er, o1(r, (s) => ({
50363
50363
  query: n,
50364
50364
  ...s,
50365
50365
  __security: { adminAPIKeyAuth: !0 }
@@ -50379,7 +50379,7 @@ class LZ extends pe {
50379
50379
  */
50380
50380
  updateRateLimit(t, n, r) {
50381
50381
  const { project_id: o, ...s } = n;
50382
- return this._client.post(z`/organization/projects/${o}/rate_limits/${t}`, o1(r, (i) => ({
50382
+ return this._client.post(L`/organization/projects/${o}/rate_limits/${t}`, o1(r, (i) => ({
50383
50383
  body: s,
50384
50384
  ...i,
50385
50385
  __security: { adminAPIKeyAuth: !0 }
@@ -50436,7 +50436,7 @@ let BZ = class extends pe {
50436
50436
  * ```
50437
50437
  */
50438
50438
  create(t, n, r) {
50439
- return this._client.post(z`/projects/${t}/roles`, Op(r, (o) => ({
50439
+ return this._client.post(L`/projects/${t}/roles`, Op(r, (o) => ({
50440
50440
  body: n,
50441
50441
  ...o,
50442
50442
  __security: { adminAPIKeyAuth: !0 }
@@ -50456,7 +50456,7 @@ let BZ = class extends pe {
50456
50456
  */
50457
50457
  retrieve(t, n, r) {
50458
50458
  const { project_id: o } = n;
50459
- return this._client.get(z`/projects/${o}/roles/${t}`, Op(r, (s) => ({
50459
+ return this._client.get(L`/projects/${o}/roles/${t}`, Op(r, (s) => ({
50460
50460
  ...s,
50461
50461
  __security: { adminAPIKeyAuth: !0 }
50462
50462
  })));
@@ -50475,7 +50475,7 @@ let BZ = class extends pe {
50475
50475
  */
50476
50476
  update(t, n, r) {
50477
50477
  const { project_id: o, ...s } = n;
50478
- return this._client.post(z`/projects/${o}/roles/${t}`, Op(r, (i) => ({
50478
+ return this._client.post(L`/projects/${o}/roles/${t}`, Op(r, (i) => ({
50479
50479
  body: s,
50480
50480
  ...i,
50481
50481
  __security: { adminAPIKeyAuth: !0 }
@@ -50483,7 +50483,7 @@ let BZ = class extends pe {
50483
50483
  }
50484
50484
  list(t, n = {}, r) {
50485
50485
  const o = qwe(n, ["after", "limit", "order"], r);
50486
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/projects/${t}/roles`, Pi, Op(r, (s) => ({
50486
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/projects/${t}/roles`, Pi, Op(r, (s) => ({
50487
50487
  query: n,
50488
50488
  ...s,
50489
50489
  __security: { adminAPIKeyAuth: !0 }
@@ -50503,7 +50503,7 @@ let BZ = class extends pe {
50503
50503
  */
50504
50504
  delete(t, n, r) {
50505
50505
  const { project_id: o } = n;
50506
- return this._client.delete(z`/projects/${o}/roles/${t}`, Op(r, (s) => ({
50506
+ return this._client.delete(L`/projects/${o}/roles/${t}`, Op(r, (s) => ({
50507
50507
  ...s,
50508
50508
  __security: { adminAPIKeyAuth: !0 }
50509
50509
  })));
@@ -50567,7 +50567,7 @@ class UZ extends pe {
50567
50567
  * ```
50568
50568
  */
50569
50569
  create(t, n, r) {
50570
- return this._client.post(z`/organization/projects/${t}/spend_alerts`, xp(r, (o) => ({
50570
+ return this._client.post(L`/organization/projects/${t}/spend_alerts`, xp(r, (o) => ({
50571
50571
  body: n,
50572
50572
  ...o,
50573
50573
  __security: { adminAPIKeyAuth: !0 }
@@ -50587,7 +50587,7 @@ class UZ extends pe {
50587
50587
  */
50588
50588
  retrieve(t, n, r) {
50589
50589
  const { project_id: o } = n;
50590
- return this._client.get(z`/organization/projects/${o}/spend_alerts/${t}`, xp(r, (s) => ({
50590
+ return this._client.get(L`/organization/projects/${o}/spend_alerts/${t}`, xp(r, (s) => ({
50591
50591
  ...s,
50592
50592
  __security: { adminAPIKeyAuth: !0 }
50593
50593
  })));
@@ -50615,7 +50615,7 @@ class UZ extends pe {
50615
50615
  */
50616
50616
  update(t, n, r) {
50617
50617
  const { project_id: o, ...s } = n;
50618
- return this._client.post(z`/organization/projects/${o}/spend_alerts/${t}`, xp(r, (i) => ({
50618
+ return this._client.post(L`/organization/projects/${o}/spend_alerts/${t}`, xp(r, (i) => ({
50619
50619
  body: s,
50620
50620
  ...i,
50621
50621
  __security: { adminAPIKeyAuth: !0 }
@@ -50623,7 +50623,7 @@ class UZ extends pe {
50623
50623
  }
50624
50624
  list(t, n = {}, r) {
50625
50625
  const o = Wwe(n, ["after", "before", "limit", "order"], r);
50626
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/projects/${t}/spend_alerts`, er, xp(r, (s) => ({
50626
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/spend_alerts`, er, xp(r, (s) => ({
50627
50627
  query: n,
50628
50628
  ...s,
50629
50629
  __security: { adminAPIKeyAuth: !0 }
@@ -50643,7 +50643,7 @@ class UZ extends pe {
50643
50643
  */
50644
50644
  delete(t, n, r) {
50645
50645
  const { project_id: o } = n;
50646
- return this._client.delete(z`/organization/projects/${o}/spend_alerts/${t}`, xp(r, (s) => ({
50646
+ return this._client.delete(L`/organization/projects/${o}/spend_alerts/${t}`, xp(r, (s) => ({
50647
50647
  ...s,
50648
50648
  __security: { adminAPIKeyAuth: !0 }
50649
50649
  })));
@@ -50665,7 +50665,7 @@ class KZ extends pe {
50665
50665
  * ```
50666
50666
  */
50667
50667
  retrieve(t, n) {
50668
- return this._client.get(z`/organization/projects/${t}/spend_limit`, AT(n, (r) => ({
50668
+ return this._client.get(L`/organization/projects/${t}/spend_limit`, AT(n, (r) => ({
50669
50669
  ...r,
50670
50670
  __security: { adminAPIKeyAuth: !0 }
50671
50671
  })));
@@ -50687,7 +50687,7 @@ class KZ extends pe {
50687
50687
  * ```
50688
50688
  */
50689
50689
  update(t, n, r) {
50690
- return this._client.post(z`/organization/projects/${t}/spend_limit`, AT(r, (o) => ({
50690
+ return this._client.post(L`/organization/projects/${t}/spend_limit`, AT(r, (o) => ({
50691
50691
  body: n,
50692
50692
  ...o,
50693
50693
  __security: { adminAPIKeyAuth: !0 }
@@ -50705,7 +50705,7 @@ class KZ extends pe {
50705
50705
  * ```
50706
50706
  */
50707
50707
  delete(t, n) {
50708
- return this._client.delete(z`/organization/projects/${t}/spend_limit`, AT(n, (r) => ({
50708
+ return this._client.delete(L`/organization/projects/${t}/spend_limit`, AT(n, (r) => ({
50709
50709
  ...r,
50710
50710
  __security: { adminAPIKeyAuth: !0 }
50711
50711
  })));
@@ -50729,7 +50729,7 @@ let qZ = class extends pe {
50729
50729
  */
50730
50730
  create(t, n, r) {
50731
50731
  const { project_id: o, ...s } = n;
50732
- return this._client.post(z`/projects/${o}/groups/${t}/roles`, __(r, (i) => ({
50732
+ return this._client.post(L`/projects/${o}/groups/${t}/roles`, __(r, (i) => ({
50733
50733
  body: s,
50734
50734
  ...i,
50735
50735
  __security: { adminAPIKeyAuth: !0 }
@@ -50749,7 +50749,7 @@ let qZ = class extends pe {
50749
50749
  */
50750
50750
  retrieve(t, n, r) {
50751
50751
  const { project_id: o, group_id: s } = n;
50752
- return this._client.get(z`/projects/${o}/groups/${s}/roles/${t}`, __(r, (i) => ({
50752
+ return this._client.get(L`/projects/${o}/groups/${s}/roles/${t}`, __(r, (i) => ({
50753
50753
  ...i,
50754
50754
  __security: { adminAPIKeyAuth: !0 }
50755
50755
  })));
@@ -50770,7 +50770,7 @@ let qZ = class extends pe {
50770
50770
  */
50771
50771
  list(t, n, r) {
50772
50772
  const { project_id: o, ...s } = n;
50773
- return this._client.getAPIList(z`/projects/${o}/groups/${t}/roles`, Pi, __(r, (i) => ({
50773
+ return this._client.getAPIList(L`/projects/${o}/groups/${t}/roles`, Pi, __(r, (i) => ({
50774
50774
  query: s,
50775
50775
  ...i,
50776
50776
  __security: { adminAPIKeyAuth: !0 }
@@ -50790,7 +50790,7 @@ let qZ = class extends pe {
50790
50790
  */
50791
50791
  delete(t, n, r) {
50792
50792
  const { project_id: o, group_id: s } = n;
50793
- return this._client.delete(z`/projects/${o}/groups/${s}/roles/${t}`, __(r, (i) => ({
50793
+ return this._client.delete(L`/projects/${o}/groups/${s}/roles/${t}`, __(r, (i) => ({
50794
50794
  ...i,
50795
50795
  __security: { adminAPIKeyAuth: !0 }
50796
50796
  })));
@@ -50849,7 +50849,7 @@ class jP extends pe {
50849
50849
  * ```
50850
50850
  */
50851
50851
  create(t, n, r) {
50852
- return this._client.post(z`/organization/projects/${t}/groups`, w_(r, (o) => ({
50852
+ return this._client.post(L`/organization/projects/${t}/groups`, w_(r, (o) => ({
50853
50853
  body: n,
50854
50854
  ...o,
50855
50855
  __security: { adminAPIKeyAuth: !0 }
@@ -50869,7 +50869,7 @@ class jP extends pe {
50869
50869
  */
50870
50870
  retrieve(t, n, r) {
50871
50871
  const { project_id: o, ...s } = n;
50872
- return this._client.get(z`/organization/projects/${o}/groups/${t}`, w_(r, (i) => ({
50872
+ return this._client.get(L`/organization/projects/${o}/groups/${t}`, w_(r, (i) => ({
50873
50873
  query: s,
50874
50874
  ...i,
50875
50875
  __security: { adminAPIKeyAuth: !0 }
@@ -50877,7 +50877,7 @@ class jP extends pe {
50877
50877
  }
50878
50878
  list(t, n = {}, r) {
50879
50879
  const o = Hwe(n, ["after", "limit", "order"], r);
50880
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/projects/${t}/groups`, Pi, w_(r, (s) => ({
50880
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/groups`, Pi, w_(r, (s) => ({
50881
50881
  query: n,
50882
50882
  ...s,
50883
50883
  __security: { adminAPIKeyAuth: !0 }
@@ -50897,7 +50897,7 @@ class jP extends pe {
50897
50897
  */
50898
50898
  delete(t, n, r) {
50899
50899
  const { project_id: o } = n;
50900
- return this._client.delete(z`/organization/projects/${o}/groups/${t}`, w_(r, (s) => ({
50900
+ return this._client.delete(L`/organization/projects/${o}/groups/${t}`, w_(r, (s) => ({
50901
50901
  ...s,
50902
50902
  __security: { adminAPIKeyAuth: !0 }
50903
50903
  })));
@@ -50922,7 +50922,7 @@ class WZ extends pe {
50922
50922
  */
50923
50923
  create(t, n, r) {
50924
50924
  const { project_id: o, ...s } = n;
50925
- return this._client.post(z`/organization/projects/${o}/service_accounts/${t}/api_keys`, Gwe(r, (i) => ({
50925
+ return this._client.post(L`/organization/projects/${o}/service_accounts/${t}/api_keys`, Gwe(r, (i) => ({
50926
50926
  body: s,
50927
50927
  ...i,
50928
50928
  __security: { adminAPIKeyAuth: !0 }
@@ -50983,7 +50983,7 @@ class FP extends pe {
50983
50983
  * ```
50984
50984
  */
50985
50985
  create(t, n, r) {
50986
- return this._client.post(z`/organization/projects/${t}/service_accounts`, Rp(r, (o) => ({
50986
+ return this._client.post(L`/organization/projects/${t}/service_accounts`, Rp(r, (o) => ({
50987
50987
  body: n,
50988
50988
  ...o,
50989
50989
  __security: { adminAPIKeyAuth: !0 }
@@ -51003,7 +51003,7 @@ class FP extends pe {
51003
51003
  */
51004
51004
  retrieve(t, n, r) {
51005
51005
  const { project_id: o } = n;
51006
- return this._client.get(z`/organization/projects/${o}/service_accounts/${t}`, Rp(r, (s) => ({
51006
+ return this._client.get(L`/organization/projects/${o}/service_accounts/${t}`, Rp(r, (s) => ({
51007
51007
  ...s,
51008
51008
  __security: { adminAPIKeyAuth: !0 }
51009
51009
  })));
@@ -51022,7 +51022,7 @@ class FP extends pe {
51022
51022
  */
51023
51023
  update(t, n, r) {
51024
51024
  const { project_id: o, ...s } = n;
51025
- return this._client.post(z`/organization/projects/${o}/service_accounts/${t}`, Rp(r, (i) => ({
51025
+ return this._client.post(L`/organization/projects/${o}/service_accounts/${t}`, Rp(r, (i) => ({
51026
51026
  body: s,
51027
51027
  ...i,
51028
51028
  __security: { adminAPIKeyAuth: !0 }
@@ -51030,7 +51030,7 @@ class FP extends pe {
51030
51030
  }
51031
51031
  list(t, n = {}, r) {
51032
51032
  const o = Zwe(n, ["after", "limit"], r);
51033
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/projects/${t}/service_accounts`, er, Rp(r, (s) => ({
51033
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/service_accounts`, er, Rp(r, (s) => ({
51034
51034
  query: n,
51035
51035
  ...s,
51036
51036
  __security: { adminAPIKeyAuth: !0 }
@@ -51053,7 +51053,7 @@ class FP extends pe {
51053
51053
  */
51054
51054
  delete(t, n, r) {
51055
51055
  const { project_id: o } = n;
51056
- return this._client.delete(z`/organization/projects/${o}/service_accounts/${t}`, Rp(r, (s) => ({
51056
+ return this._client.delete(L`/organization/projects/${o}/service_accounts/${t}`, Rp(r, (s) => ({
51057
51057
  ...s,
51058
51058
  __security: { adminAPIKeyAuth: !0 }
51059
51059
  })));
@@ -51078,7 +51078,7 @@ let HZ = class extends pe {
51078
51078
  */
51079
51079
  create(t, n, r) {
51080
51080
  const { project_id: o, ...s } = n;
51081
- return this._client.post(z`/projects/${o}/users/${t}/roles`, b_(r, (i) => ({
51081
+ return this._client.post(L`/projects/${o}/users/${t}/roles`, b_(r, (i) => ({
51082
51082
  body: s,
51083
51083
  ...i,
51084
51084
  __security: { adminAPIKeyAuth: !0 }
@@ -51098,7 +51098,7 @@ let HZ = class extends pe {
51098
51098
  */
51099
51099
  retrieve(t, n, r) {
51100
51100
  const { project_id: o, user_id: s } = n;
51101
- return this._client.get(z`/projects/${o}/users/${s}/roles/${t}`, b_(r, (i) => ({
51101
+ return this._client.get(L`/projects/${o}/users/${s}/roles/${t}`, b_(r, (i) => ({
51102
51102
  ...i,
51103
51103
  __security: { adminAPIKeyAuth: !0 }
51104
51104
  })));
@@ -51119,7 +51119,7 @@ let HZ = class extends pe {
51119
51119
  */
51120
51120
  list(t, n, r) {
51121
51121
  const { project_id: o, ...s } = n;
51122
- return this._client.getAPIList(z`/projects/${o}/users/${t}/roles`, Pi, b_(r, (i) => ({
51122
+ return this._client.getAPIList(L`/projects/${o}/users/${t}/roles`, Pi, b_(r, (i) => ({
51123
51123
  query: s,
51124
51124
  ...i,
51125
51125
  __security: { adminAPIKeyAuth: !0 }
@@ -51139,7 +51139,7 @@ let HZ = class extends pe {
51139
51139
  */
51140
51140
  delete(t, n, r) {
51141
51141
  const { project_id: o, user_id: s } = n;
51142
- return this._client.delete(z`/projects/${o}/users/${s}/roles/${t}`, b_(r, (i) => ({
51142
+ return this._client.delete(L`/projects/${o}/users/${s}/roles/${t}`, b_(r, (i) => ({
51143
51143
  ...i,
51144
51144
  __security: { adminAPIKeyAuth: !0 }
51145
51145
  })));
@@ -51199,7 +51199,7 @@ let zP = class extends pe {
51199
51199
  * ```
51200
51200
  */
51201
51201
  create(t, n, r) {
51202
- return this._client.post(z`/organization/projects/${t}/users`, kp(r, (o) => ({
51202
+ return this._client.post(L`/organization/projects/${t}/users`, kp(r, (o) => ({
51203
51203
  body: n,
51204
51204
  ...o,
51205
51205
  __security: { adminAPIKeyAuth: !0 }
@@ -51219,7 +51219,7 @@ let zP = class extends pe {
51219
51219
  */
51220
51220
  retrieve(t, n, r) {
51221
51221
  const { project_id: o } = n;
51222
- return this._client.get(z`/organization/projects/${o}/users/${t}`, kp(r, (s) => ({
51222
+ return this._client.get(L`/organization/projects/${o}/users/${t}`, kp(r, (s) => ({
51223
51223
  ...s,
51224
51224
  __security: { adminAPIKeyAuth: !0 }
51225
51225
  })));
@@ -51238,7 +51238,7 @@ let zP = class extends pe {
51238
51238
  */
51239
51239
  update(t, n, r) {
51240
51240
  const { project_id: o, ...s } = n;
51241
- return this._client.post(z`/organization/projects/${o}/users/${t}`, kp(r, (i) => ({
51241
+ return this._client.post(L`/organization/projects/${o}/users/${t}`, kp(r, (i) => ({
51242
51242
  body: s,
51243
51243
  ...i,
51244
51244
  __security: { adminAPIKeyAuth: !0 }
@@ -51246,7 +51246,7 @@ let zP = class extends pe {
51246
51246
  }
51247
51247
  list(t, n = {}, r) {
51248
51248
  const o = Jwe(n, ["after", "limit"], r);
51249
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/projects/${t}/users`, er, kp(r, (s) => ({
51249
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/users`, er, kp(r, (s) => ({
51250
51250
  query: n,
51251
51251
  ...s,
51252
51252
  __security: { adminAPIKeyAuth: !0 }
@@ -51269,7 +51269,7 @@ let zP = class extends pe {
51269
51269
  */
51270
51270
  delete(t, n, r) {
51271
51271
  const { project_id: o } = n;
51272
- return this._client.delete(z`/organization/projects/${o}/users/${t}`, kp(r, (s) => ({
51272
+ return this._client.delete(L`/organization/projects/${o}/users/${t}`, kp(r, (s) => ({
51273
51273
  ...s,
51274
51274
  __security: { adminAPIKeyAuth: !0 }
51275
51275
  })));
@@ -51347,7 +51347,7 @@ class yo extends pe {
51347
51347
  * ```
51348
51348
  */
51349
51349
  retrieve(t, n) {
51350
- return this._client.get(z`/organization/projects/${t}`, Ep(n, (r) => ({
51350
+ return this._client.get(L`/organization/projects/${t}`, Ep(n, (r) => ({
51351
51351
  ...r,
51352
51352
  __security: { adminAPIKeyAuth: !0 }
51353
51353
  })));
@@ -51364,7 +51364,7 @@ class yo extends pe {
51364
51364
  * ```
51365
51365
  */
51366
51366
  update(t, n, r) {
51367
- return this._client.post(z`/organization/projects/${t}`, Ep(r, (o) => ({
51367
+ return this._client.post(L`/organization/projects/${t}`, Ep(r, (o) => ({
51368
51368
  body: n,
51369
51369
  ...o,
51370
51370
  __security: { adminAPIKeyAuth: !0 }
@@ -51391,7 +51391,7 @@ class yo extends pe {
51391
51391
  * ```
51392
51392
  */
51393
51393
  archive(t, n) {
51394
- return this._client.post(z`/organization/projects/${t}/archive`, Ep(n, (r) => ({
51394
+ return this._client.post(L`/organization/projects/${t}/archive`, Ep(n, (r) => ({
51395
51395
  ...r,
51396
51396
  __security: { adminAPIKeyAuth: !0 }
51397
51397
  })));
@@ -51459,7 +51459,7 @@ class GZ extends pe {
51459
51459
  * ```
51460
51460
  */
51461
51461
  create(t, n, r) {
51462
- return this._client.post(z`/organization/users/${t}/roles`, S_(r, (o) => ({
51462
+ return this._client.post(L`/organization/users/${t}/roles`, S_(r, (o) => ({
51463
51463
  body: n,
51464
51464
  ...o,
51465
51465
  __security: { adminAPIKeyAuth: !0 }
@@ -51479,14 +51479,14 @@ class GZ extends pe {
51479
51479
  */
51480
51480
  retrieve(t, n, r) {
51481
51481
  const { user_id: o } = n;
51482
- return this._client.get(z`/organization/users/${o}/roles/${t}`, S_(r, (s) => ({
51482
+ return this._client.get(L`/organization/users/${o}/roles/${t}`, S_(r, (s) => ({
51483
51483
  ...s,
51484
51484
  __security: { adminAPIKeyAuth: !0 }
51485
51485
  })));
51486
51486
  }
51487
51487
  list(t, n = {}, r) {
51488
51488
  const o = Ywe(n, ["after", "limit", "order"], r);
51489
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/organization/users/${t}/roles`, Pi, S_(r, (s) => ({
51489
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/users/${t}/roles`, Pi, S_(r, (s) => ({
51490
51490
  query: n,
51491
51491
  ...s,
51492
51492
  __security: { adminAPIKeyAuth: !0 }
@@ -51506,7 +51506,7 @@ class GZ extends pe {
51506
51506
  */
51507
51507
  delete(t, n, r) {
51508
51508
  const { user_id: o } = n;
51509
- return this._client.delete(z`/organization/users/${o}/roles/${t}`, S_(r, (s) => ({
51509
+ return this._client.delete(L`/organization/users/${o}/roles/${t}`, S_(r, (s) => ({
51510
51510
  ...s,
51511
51511
  __security: { adminAPIKeyAuth: !0 }
51512
51512
  })));
@@ -51562,7 +51562,7 @@ class LP extends pe {
51562
51562
  * ```
51563
51563
  */
51564
51564
  retrieve(t, n) {
51565
- return this._client.get(z`/organization/users/${t}`, v_(n, (r) => ({
51565
+ return this._client.get(L`/organization/users/${t}`, v_(n, (r) => ({
51566
51566
  ...r,
51567
51567
  __security: { adminAPIKeyAuth: !0 }
51568
51568
  })));
@@ -51577,7 +51577,7 @@ class LP extends pe {
51577
51577
  * ```
51578
51578
  */
51579
51579
  update(t, n, r) {
51580
- return this._client.post(z`/organization/users/${t}`, v_(r, (o) => ({
51580
+ return this._client.post(L`/organization/users/${t}`, v_(r, (o) => ({
51581
51581
  body: n,
51582
51582
  ...o,
51583
51583
  __security: { adminAPIKeyAuth: !0 }
@@ -51602,7 +51602,7 @@ class LP extends pe {
51602
51602
  * ```
51603
51603
  */
51604
51604
  delete(t, n) {
51605
- return this._client.delete(z`/organization/users/${t}`, v_(n, (r) => ({
51605
+ return this._client.delete(L`/organization/users/${t}`, v_(n, (r) => ({
51606
51606
  ...r,
51607
51607
  __security: { adminAPIKeyAuth: !0 }
51608
51608
  })));
@@ -51748,7 +51748,7 @@ class YZ extends pe {
51748
51748
  * Retrieves a batch.
51749
51749
  */
51750
51750
  retrieve(t, n) {
51751
- return this._client.get(z`/batches/${t}`, I_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
51751
+ return this._client.get(L`/batches/${t}`, I_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
51752
51752
  }
51753
51753
  list(t = {}, n) {
51754
51754
  const r = nbe(t, ["after", "limit"], n);
@@ -51764,7 +51764,7 @@ class YZ extends pe {
51764
51764
  * (if any) available in the output file.
51765
51765
  */
51766
51766
  cancel(t, n) {
51767
- return this._client.post(z`/batches/${t}/cancel`, I_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
51767
+ return this._client.post(L`/batches/${t}/cancel`, I_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
51768
51768
  }
51769
51769
  }
51770
51770
  function Pp(e, t) {
@@ -51823,7 +51823,7 @@ class QZ extends pe {
51823
51823
  * @deprecated
51824
51824
  */
51825
51825
  retrieve(t, n) {
51826
- return this._client.get(z`/assistants/${t}`, Pp(n, (r) => ({
51826
+ return this._client.get(L`/assistants/${t}`, Pp(n, (r) => ({
51827
51827
  ...r,
51828
51828
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
51829
51829
  __security: { bearerAuth: !0 }
@@ -51835,7 +51835,7 @@ class QZ extends pe {
51835
51835
  * @deprecated
51836
51836
  */
51837
51837
  update(t, n, r) {
51838
- return this._client.post(z`/assistants/${t}`, Pp(r, (o) => ({
51838
+ return this._client.post(L`/assistants/${t}`, Pp(r, (o) => ({
51839
51839
  body: n,
51840
51840
  ...o,
51841
51841
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
@@ -51857,7 +51857,7 @@ class QZ extends pe {
51857
51857
  * @deprecated
51858
51858
  */
51859
51859
  delete(t, n) {
51860
- return this._client.delete(z`/assistants/${t}`, Pp(n, (r) => ({
51860
+ return this._client.delete(L`/assistants/${t}`, Pp(n, (r) => ({
51861
51861
  ...r,
51862
51862
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
51863
51863
  __security: { bearerAuth: !0 }
@@ -51944,7 +51944,7 @@ let t4 = class extends pe {
51944
51944
  * ```
51945
51945
  */
51946
51946
  create(t, n, r) {
51947
- return this._client.post(z`/agents/environments/${t}/files`, g1(r, (o) => ({
51947
+ return this._client.post(L`/agents/environments/${t}/files`, g1(r, (o) => ({
51948
51948
  body: n,
51949
51949
  ...o,
51950
51950
  headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
@@ -51967,7 +51967,7 @@ let t4 = class extends pe {
51967
51967
  * ```
51968
51968
  */
51969
51969
  list(t, n = {}, r) {
51970
- return this._client.getAPIList(z`/agents/environments/${t}/files`, AG, g1(r, (o) => ({
51970
+ return this._client.getAPIList(L`/agents/environments/${t}/files`, AG, g1(r, (o) => ({
51971
51971
  query: n,
51972
51972
  ...o,
51973
51973
  headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
@@ -52045,7 +52045,7 @@ class n4 extends pe {
52045
52045
  * ```
52046
52046
  */
52047
52047
  retrieve(t, n) {
52048
- return this._client.get(z`/agents/environments/templates/${t}`, Cp(n, (r) => ({
52048
+ return this._client.get(L`/agents/environments/templates/${t}`, Cp(n, (r) => ({
52049
52049
  ...r,
52050
52050
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
52051
52051
  __security: { bearerAuth: !0 }
@@ -52065,7 +52065,7 @@ class n4 extends pe {
52065
52065
  * ```
52066
52066
  */
52067
52067
  update(t, n = {}, r) {
52068
- return this._client.post(z`/agents/environments/templates/${t}`, Cp(r, (o) => ({
52068
+ return this._client.post(L`/agents/environments/templates/${t}`, Cp(r, (o) => ({
52069
52069
  body: n,
52070
52070
  ...o,
52071
52071
  headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
@@ -52095,7 +52095,7 @@ class n4 extends pe {
52095
52095
  * ```
52096
52096
  */
52097
52097
  delete(t, n) {
52098
- return this._client.delete(z`/agents/environments/templates/${t}`, Cp(n, (r) => ({
52098
+ return this._client.delete(L`/agents/environments/templates/${t}`, Cp(n, (r) => ({
52099
52099
  ...r,
52100
52100
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
52101
52101
  __security: { bearerAuth: !0 }
@@ -52123,7 +52123,7 @@ class uI extends pe {
52123
52123
  * ```
52124
52124
  */
52125
52125
  retrieve(t, n) {
52126
- return this._client.get(z`/agents/environments/${t}`, sbe(n, (r) => ({
52126
+ return this._client.get(L`/agents/environments/${t}`, sbe(n, (r) => ({
52127
52127
  ...r,
52128
52128
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
52129
52129
  __security: { bearerAuth: !0 }
@@ -52370,7 +52370,7 @@ class o4 extends pe {
52370
52370
  */
52371
52371
  retrieve(t, n, r) {
52372
52372
  const { session_id: o } = n;
52373
- return this._client.get(z`/agents/sessions/${o}/artifacts/${t}`, T_(r, (s) => ({
52373
+ return this._client.get(L`/agents/sessions/${o}/artifacts/${t}`, T_(r, (s) => ({
52374
52374
  ...s,
52375
52375
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
52376
52376
  __security: { bearerAuth: !0 }
@@ -52378,7 +52378,7 @@ class o4 extends pe {
52378
52378
  }
52379
52379
  list(t, n = {}, r) {
52380
52380
  const o = fbe(n, ["after", "environment_id", "limit", "order"], r);
52381
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/agents/sessions/${t}/artifacts`, dt, T_(r, (s) => ({
52381
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/agents/sessions/${t}/artifacts`, dt, T_(r, (s) => ({
52382
52382
  query: n,
52383
52383
  ...s,
52384
52384
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
@@ -52401,7 +52401,7 @@ class o4 extends pe {
52401
52401
  */
52402
52402
  delete(t, n, r) {
52403
52403
  const { session_id: o } = n;
52404
- return this._client.delete(z`/agents/sessions/${o}/artifacts/${t}`, T_(r, (s) => ({
52404
+ return this._client.delete(L`/agents/sessions/${o}/artifacts/${t}`, T_(r, (s) => ({
52405
52405
  ...s,
52406
52406
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
52407
52407
  __security: { bearerAuth: !0 }
@@ -52426,7 +52426,7 @@ class o4 extends pe {
52426
52426
  */
52427
52427
  content(t, n, r) {
52428
52428
  const { session_id: o } = n;
52429
- return this._client.get(z`/agents/sessions/${o}/artifacts/${t}/content`, T_(r, (s) => ({
52429
+ return this._client.get(L`/agents/sessions/${o}/artifacts/${t}/content`, T_(r, (s) => ({
52430
52430
  ...s,
52431
52431
  headers: se([
52432
52432
  { "OpenAI-Beta": "agents=v1", Accept: "application/octet-stream" },
@@ -52474,7 +52474,7 @@ class s4 extends pe {
52474
52474
  */
52475
52475
  create(t, n, r) {
52476
52476
  const { "Idempotency-Key": o, ...s } = n;
52477
- return this._client.post(z`/agents/sessions/${t}/events`, S1(r, (i) => ({
52477
+ return this._client.post(L`/agents/sessions/${t}/events`, S1(r, (i) => ({
52478
52478
  body: s,
52479
52479
  ...i,
52480
52480
  headers: se([
@@ -52501,7 +52501,7 @@ class s4 extends pe {
52501
52501
  * ```
52502
52502
  */
52503
52503
  stream(t, n) {
52504
- return this._client.get(z`/agents/sessions/${t}/events`, S1(n, (r) => ({
52504
+ return this._client.get(L`/agents/sessions/${t}/events`, S1(n, (r) => ({
52505
52505
  ...r,
52506
52506
  headers: se([
52507
52507
  { "OpenAI-Beta": "agents=v1", Accept: "text/event-stream" },
@@ -52551,7 +52551,7 @@ function hbe(e, t, n) {
52551
52551
  let i4 = class extends pe {
52552
52552
  list(t, n = {}, r) {
52553
52553
  const o = hbe(n, ["after", "limit", "order"], r);
52554
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/agents/sessions/${t}/items`, dt, pbe(r, (s) => ({
52554
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/agents/sessions/${t}/items`, dt, pbe(r, (s) => ({
52555
52555
  query: n,
52556
52556
  ...s,
52557
52557
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
@@ -52612,7 +52612,7 @@ let a4 = class extends pe {
52612
52612
  */
52613
52613
  retrieve(t, n, r) {
52614
52614
  const { session_id: o } = n;
52615
- return this._client.get(z`/agents/sessions/${o}/turns/${t}`, I1(r, (s) => ({
52615
+ return this._client.get(L`/agents/sessions/${o}/turns/${t}`, I1(r, (s) => ({
52616
52616
  ...s,
52617
52617
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
52618
52618
  __security: { bearerAuth: !0 }
@@ -52620,7 +52620,7 @@ let a4 = class extends pe {
52620
52620
  }
52621
52621
  list(t, n = {}, r) {
52622
52622
  const o = mbe(n, ["after", "limit", "order"], r);
52623
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/agents/sessions/${t}/turns`, dt, I1(r, (s) => ({
52623
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/agents/sessions/${t}/turns`, dt, I1(r, (s) => ({
52624
52624
  query: n,
52625
52625
  ...s,
52626
52626
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
@@ -52649,7 +52649,7 @@ let c4 = class extends pe {
52649
52649
  */
52650
52650
  list(t, n, r) {
52651
52651
  const { session_id: o, ...s } = n;
52652
- return this._client.getAPIList(z`/agents/sessions/${o}/subagents/${t}/items`, dt, gbe(r, (i) => ({
52652
+ return this._client.getAPIList(L`/agents/sessions/${o}/subagents/${t}/items`, dt, gbe(r, (i) => ({
52653
52653
  query: s,
52654
52654
  ...i,
52655
52655
  headers: se([{ "OpenAI-Beta": "agents=v1" }, i == null ? void 0 : i.headers]),
@@ -52678,7 +52678,7 @@ let u4 = class extends pe {
52678
52678
  */
52679
52679
  list(t, n, r) {
52680
52680
  const { session_id: o, subagent_id: s, ...i } = n;
52681
- return this._client.getAPIList(z`/agents/sessions/${o}/subagents/${s}/turns/${t}/items`, dt, ybe(r, (a) => ({
52681
+ return this._client.getAPIList(L`/agents/sessions/${o}/subagents/${s}/turns/${t}/items`, dt, ybe(r, (a) => ({
52682
52682
  query: i,
52683
52683
  ...a,
52684
52684
  headers: se([{ "OpenAI-Beta": "agents=v1" }, a == null ? void 0 : a.headers]),
@@ -52711,7 +52711,7 @@ class UP extends pe {
52711
52711
  */
52712
52712
  retrieve(t, n, r) {
52713
52713
  const { session_id: o, subagent_id: s } = n;
52714
- return this._client.get(z`/agents/sessions/${o}/subagents/${s}/turns/${t}`, T1(r, (i) => ({
52714
+ return this._client.get(L`/agents/sessions/${o}/subagents/${s}/turns/${t}`, T1(r, (i) => ({
52715
52715
  ...i,
52716
52716
  headers: se([{ "OpenAI-Beta": "agents=v1" }, i == null ? void 0 : i.headers]),
52717
52717
  __security: { bearerAuth: !0 }
@@ -52734,7 +52734,7 @@ class UP extends pe {
52734
52734
  */
52735
52735
  list(t, n, r) {
52736
52736
  const { session_id: o, ...s } = n;
52737
- return this._client.getAPIList(z`/agents/sessions/${o}/subagents/${t}/turns`, dt, T1(r, (i) => ({
52737
+ return this._client.getAPIList(L`/agents/sessions/${o}/subagents/${t}/turns`, dt, T1(r, (i) => ({
52738
52738
  query: s,
52739
52739
  ...i,
52740
52740
  headers: se([{ "OpenAI-Beta": "agents=v1" }, i == null ? void 0 : i.headers]),
@@ -52798,7 +52798,7 @@ class lI extends pe {
52798
52798
  */
52799
52799
  retrieve(t, n, r) {
52800
52800
  const { session_id: o } = n;
52801
- return this._client.get(z`/agents/sessions/${o}/subagents/${t}`, O1(r, (s) => ({
52801
+ return this._client.get(L`/agents/sessions/${o}/subagents/${t}`, O1(r, (s) => ({
52802
52802
  ...s,
52803
52803
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
52804
52804
  __security: { bearerAuth: !0 }
@@ -52806,7 +52806,7 @@ class lI extends pe {
52806
52806
  }
52807
52807
  list(t, n = {}, r) {
52808
52808
  const o = _be(n, ["after", "limit", "order"], r);
52809
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/agents/sessions/${t}/subagents`, dt, O1(r, (s) => ({
52809
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/agents/sessions/${t}/subagents`, dt, O1(r, (s) => ({
52810
52810
  query: n,
52811
52811
  ...s,
52812
52812
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
@@ -52883,7 +52883,7 @@ let Ll = class extends pe {
52883
52883
  * ```
52884
52884
  */
52885
52885
  retrieve(t, n) {
52886
- return this._client.get(z`/agents/sessions/${t}`, Mp(n, (r) => ({
52886
+ return this._client.get(L`/agents/sessions/${t}`, Mp(n, (r) => ({
52887
52887
  ...r,
52888
52888
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
52889
52889
  __security: { bearerAuth: !0 }
@@ -52901,7 +52901,7 @@ let Ll = class extends pe {
52901
52901
  * ```
52902
52902
  */
52903
52903
  update(t, n = {}, r) {
52904
- return this._client.post(z`/agents/sessions/${t}`, Mp(r, (o) => ({
52904
+ return this._client.post(L`/agents/sessions/${t}`, Mp(r, (o) => ({
52905
52905
  body: n,
52906
52906
  ...o,
52907
52907
  headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
@@ -52931,7 +52931,7 @@ let Ll = class extends pe {
52931
52931
  * ```
52932
52932
  */
52933
52933
  delete(t, n) {
52934
- return this._client.delete(z`/agents/sessions/${t}`, Mp(n, (r) => ({
52934
+ return this._client.delete(L`/agents/sessions/${t}`, Mp(n, (r) => ({
52935
52935
  ...r,
52936
52936
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
52937
52937
  __security: { bearerAuth: !0 }
@@ -53002,7 +53002,7 @@ class l4 extends pe {
53002
53002
  * ```
53003
53003
  */
53004
53004
  create(t, n, r) {
53005
- return this._client.post(z`/vaults/${t}/credentials`, $p(r, (o) => ({
53005
+ return this._client.post(L`/vaults/${t}/credentials`, $p(r, (o) => ({
53006
53006
  body: n,
53007
53007
  ...o,
53008
53008
  headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
@@ -53024,7 +53024,7 @@ class l4 extends pe {
53024
53024
  */
53025
53025
  retrieve(t, n, r) {
53026
53026
  const { vault_id: o } = n;
53027
- return this._client.get(z`/vaults/${o}/credentials/${t}`, $p(r, (s) => ({
53027
+ return this._client.get(L`/vaults/${o}/credentials/${t}`, $p(r, (s) => ({
53028
53028
  ...s,
53029
53029
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
53030
53030
  __security: { bearerAuth: !0 }
@@ -53045,7 +53045,7 @@ class l4 extends pe {
53045
53045
  */
53046
53046
  update(t, n, r) {
53047
53047
  const { vault_id: o, ...s } = n;
53048
- return this._client.post(z`/vaults/${o}/credentials/${t}`, $p(r, (i) => ({
53048
+ return this._client.post(L`/vaults/${o}/credentials/${t}`, $p(r, (i) => ({
53049
53049
  body: s,
53050
53050
  ...i,
53051
53051
  headers: se([{ "OpenAI-Beta": "agents=v1" }, i == null ? void 0 : i.headers]),
@@ -53054,7 +53054,7 @@ class l4 extends pe {
53054
53054
  }
53055
53055
  list(t, n = {}, r) {
53056
53056
  const o = bbe(n, ["after", "limit", "order", "status"], r);
53057
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/vaults/${t}/credentials`, dt, $p(r, (s) => ({
53057
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/vaults/${t}/credentials`, dt, $p(r, (s) => ({
53058
53058
  query: n,
53059
53059
  ...s,
53060
53060
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
@@ -53076,7 +53076,7 @@ class l4 extends pe {
53076
53076
  */
53077
53077
  delete(t, n, r) {
53078
53078
  const { vault_id: o } = n;
53079
- return this._client.delete(z`/vaults/${o}/credentials/${t}`, $p(r, (s) => ({
53079
+ return this._client.delete(L`/vaults/${o}/credentials/${t}`, $p(r, (s) => ({
53080
53080
  ...s,
53081
53081
  headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
53082
53082
  __security: { bearerAuth: !0 }
@@ -53152,7 +53152,7 @@ class KP extends pe {
53152
53152
  * ```
53153
53153
  */
53154
53154
  retrieve(t, n) {
53155
- return this._client.get(z`/vaults/${t}`, O_(n, (r) => ({
53155
+ return this._client.get(L`/vaults/${t}`, O_(n, (r) => ({
53156
53156
  ...r,
53157
53157
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
53158
53158
  __security: { bearerAuth: !0 }
@@ -53179,7 +53179,7 @@ class KP extends pe {
53179
53179
  * ```
53180
53180
  */
53181
53181
  delete(t, n) {
53182
- return this._client.delete(z`/vaults/${t}`, O_(n, (r) => ({
53182
+ return this._client.delete(L`/vaults/${t}`, O_(n, (r) => ({
53183
53183
  ...r,
53184
53184
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
53185
53185
  __security: { bearerAuth: !0 }
@@ -53256,7 +53256,7 @@ class uy extends pe {
53256
53256
  * ```
53257
53257
  */
53258
53258
  retrieve(t, n) {
53259
- return this._client.get(z`/agents/${t}`, Dp(n, (r) => ({
53259
+ return this._client.get(L`/agents/${t}`, Dp(n, (r) => ({
53260
53260
  ...r,
53261
53261
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
53262
53262
  __security: { bearerAuth: !0 }
@@ -53272,7 +53272,7 @@ class uy extends pe {
53272
53272
  * ```
53273
53273
  */
53274
53274
  update(t, n = {}, r) {
53275
- return this._client.post(z`/agents/${t}`, Dp(r, (o) => ({
53275
+ return this._client.post(L`/agents/${t}`, Dp(r, (o) => ({
53276
53276
  body: n,
53277
53277
  ...o,
53278
53278
  headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
@@ -53300,7 +53300,7 @@ class uy extends pe {
53300
53300
  * ```
53301
53301
  */
53302
53302
  delete(t, n) {
53303
- return this._client.delete(z`/agents/${t}`, Dp(n, (r) => ({
53303
+ return this._client.delete(L`/agents/${t}`, Dp(n, (r) => ({
53304
53304
  ...r,
53305
53305
  headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
53306
53306
  __security: { bearerAuth: !0 }
@@ -53346,7 +53346,7 @@ let d4 = class extends pe {
53346
53346
  * ```
53347
53347
  */
53348
53348
  cancel(t, n) {
53349
- return this._client.post(z`/chatkit/sessions/${t}/cancel`, C1(n, (r) => ({
53349
+ return this._client.post(L`/chatkit/sessions/${t}/cancel`, C1(n, (r) => ({
53350
53350
  ...r,
53351
53351
  headers: se([{ "OpenAI-Beta": "chatkit_beta=v1" }, r == null ? void 0 : r.headers]),
53352
53352
  __security: { bearerAuth: !0 }
@@ -53400,7 +53400,7 @@ let f4 = class extends pe {
53400
53400
  * ```
53401
53401
  */
53402
53402
  retrieve(t, n) {
53403
- return this._client.get(z`/chatkit/threads/${t}`, x_(n, (r) => ({
53403
+ return this._client.get(L`/chatkit/threads/${t}`, x_(n, (r) => ({
53404
53404
  ...r,
53405
53405
  headers: se([{ "OpenAI-Beta": "chatkit_beta=v1" }, r == null ? void 0 : r.headers]),
53406
53406
  __security: { bearerAuth: !0 }
@@ -53426,7 +53426,7 @@ let f4 = class extends pe {
53426
53426
  * ```
53427
53427
  */
53428
53428
  delete(t, n) {
53429
- return this._client.delete(z`/chatkit/threads/${t}`, x_(n, (r) => ({
53429
+ return this._client.delete(L`/chatkit/threads/${t}`, x_(n, (r) => ({
53430
53430
  ...r,
53431
53431
  headers: se([{ "OpenAI-Beta": "chatkit_beta=v1" }, r == null ? void 0 : r.headers]),
53432
53432
  __security: { bearerAuth: !0 }
@@ -53434,7 +53434,7 @@ let f4 = class extends pe {
53434
53434
  }
53435
53435
  listItems(t, n = {}, r) {
53436
53436
  const o = $1(n, ["after", "before", "limit", "order"], r);
53437
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/chatkit/threads/${t}/items`, er, x_(r, (s) => ({
53437
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/chatkit/threads/${t}/items`, er, x_(r, (s) => ({
53438
53438
  query: n,
53439
53439
  ...s,
53440
53440
  headers: se([{ "OpenAI-Beta": "chatkit_beta=v1" }, s == null ? void 0 : s.headers]),
@@ -53490,7 +53490,7 @@ let p4 = class extends pe {
53490
53490
  const o = Abe(n, ["after", "betas", "include", "limit", "order"], r);
53491
53491
  o !== void 0 && (r = o, n = {}), n = n;
53492
53492
  const { betas: s, ...i } = n != null ? n : {};
53493
- return this._client.getAPIList(z`/responses/${t}/input_items?beta=true`, dt, Ibe(r, (a) => ({
53493
+ return this._client.getAPIList(L`/responses/${t}/input_items?beta=true`, dt, Ibe(r, (a) => ({
53494
53494
  query: i,
53495
53495
  ...a,
53496
53496
  headers: se([
@@ -53590,7 +53590,7 @@ let fI = class extends pe {
53590
53590
  const o = Obe(n, ["betas", "include", "include_obfuscation", "starting_after", "stream"], r);
53591
53591
  o !== void 0 && (r = o, n = {}), n = n;
53592
53592
  const { betas: s, ...i } = n != null ? n : {};
53593
- return this._client.get(z`/responses/${t}?beta=true`, Np(r, (a) => {
53593
+ return this._client.get(L`/responses/${t}?beta=true`, Np(r, (a) => {
53594
53594
  var c;
53595
53595
  return {
53596
53596
  query: i,
@@ -53616,7 +53616,7 @@ let fI = class extends pe {
53616
53616
  */
53617
53617
  delete(t, n = {}, r) {
53618
53618
  const { betas: o } = n != null ? n : {};
53619
- return this._client.delete(z`/responses/${t}?beta=true`, Np(r, (s) => ({
53619
+ return this._client.delete(L`/responses/${t}?beta=true`, Np(r, (s) => ({
53620
53620
  ...s,
53621
53621
  headers: se([
53622
53622
  {
@@ -53642,7 +53642,7 @@ let fI = class extends pe {
53642
53642
  */
53643
53643
  cancel(t, n = {}, r) {
53644
53644
  const { betas: o } = n != null ? n : {};
53645
- return this._client.post(z`/responses/${t}/cancel?beta=true`, Np(r, (s) => ({
53645
+ return this._client.post(L`/responses/${t}/cancel?beta=true`, Np(r, (s) => ({
53646
53646
  ...s,
53647
53647
  headers: se([
53648
53648
  { ...(o == null ? void 0 : o.toString()) != null ? { "openai-beta": o == null ? void 0 : o.toString() } : void 0 },
@@ -53725,7 +53725,7 @@ class m4 extends pe {
53725
53725
  * @deprecated The Assistants API is deprecated in favor of the Responses API
53726
53726
  */
53727
53727
  create(t, n, r) {
53728
- return this._client.post(z`/threads/${t}/messages`, jp(r, (o) => ({
53728
+ return this._client.post(L`/threads/${t}/messages`, jp(r, (o) => ({
53729
53729
  body: n,
53730
53730
  ...o,
53731
53731
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
@@ -53739,7 +53739,7 @@ class m4 extends pe {
53739
53739
  */
53740
53740
  retrieve(t, n, r) {
53741
53741
  const { thread_id: o } = n;
53742
- return this._client.get(z`/threads/${o}/messages/${t}`, jp(r, (s) => ({
53742
+ return this._client.get(L`/threads/${o}/messages/${t}`, jp(r, (s) => ({
53743
53743
  ...s,
53744
53744
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
53745
53745
  __security: { bearerAuth: !0 }
@@ -53752,7 +53752,7 @@ class m4 extends pe {
53752
53752
  */
53753
53753
  update(t, n, r) {
53754
53754
  const { thread_id: o, ...s } = n;
53755
- return this._client.post(z`/threads/${o}/messages/${t}`, jp(r, (i) => ({
53755
+ return this._client.post(L`/threads/${o}/messages/${t}`, jp(r, (i) => ({
53756
53756
  body: s,
53757
53757
  ...i,
53758
53758
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
@@ -53761,7 +53761,7 @@ class m4 extends pe {
53761
53761
  }
53762
53762
  list(t, n = {}, r) {
53763
53763
  const o = xbe(n, ["after", "before", "limit", "order", "run_id"], r);
53764
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/threads/${t}/messages`, dt, jp(r, (s) => ({
53764
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/threads/${t}/messages`, dt, jp(r, (s) => ({
53765
53765
  query: n,
53766
53766
  ...s,
53767
53767
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
@@ -53775,7 +53775,7 @@ class m4 extends pe {
53775
53775
  */
53776
53776
  delete(t, n, r) {
53777
53777
  const { thread_id: o } = n;
53778
- return this._client.delete(z`/threads/${o}/messages/${t}`, jp(r, (s) => ({
53778
+ return this._client.delete(L`/threads/${o}/messages/${t}`, jp(r, (s) => ({
53779
53779
  ...s,
53780
53780
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
53781
53781
  __security: { bearerAuth: !0 }
@@ -53793,7 +53793,7 @@ class g4 extends pe {
53793
53793
  */
53794
53794
  retrieve(t, n, r) {
53795
53795
  const { thread_id: o, run_id: s, ...i } = n;
53796
- return this._client.get(z`/threads/${o}/runs/${s}/steps/${t}`, F1(r, (a) => ({
53796
+ return this._client.get(L`/threads/${o}/runs/${s}/steps/${t}`, F1(r, (a) => ({
53797
53797
  query: i,
53798
53798
  ...a,
53799
53799
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, a == null ? void 0 : a.headers]),
@@ -53807,7 +53807,7 @@ class g4 extends pe {
53807
53807
  */
53808
53808
  list(t, n, r) {
53809
53809
  const { thread_id: o, ...s } = n;
53810
- return this._client.getAPIList(z`/threads/${o}/runs/${t}/steps`, dt, F1(r, (i) => ({
53810
+ return this._client.getAPIList(L`/threads/${o}/runs/${t}/steps`, dt, F1(r, (i) => ({
53811
53811
  query: s,
53812
53812
  ...i,
53813
53813
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
@@ -54601,7 +54601,7 @@ let HP = class extends pe {
54601
54601
  }
54602
54602
  create(t, n, r) {
54603
54603
  const { include: o, ...s } = n;
54604
- return this._client.post(z`/threads/${t}/runs`, ed(r, (i) => {
54604
+ return this._client.post(L`/threads/${t}/runs`, ed(r, (i) => {
54605
54605
  var a;
54606
54606
  return {
54607
54607
  query: { include: o },
@@ -54621,7 +54621,7 @@ let HP = class extends pe {
54621
54621
  */
54622
54622
  retrieve(t, n, r) {
54623
54623
  const { thread_id: o } = n;
54624
- return this._client.get(z`/threads/${o}/runs/${t}`, ed(r, (s) => ({
54624
+ return this._client.get(L`/threads/${o}/runs/${t}`, ed(r, (s) => ({
54625
54625
  ...s,
54626
54626
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
54627
54627
  __security: { bearerAuth: !0 }
@@ -54634,7 +54634,7 @@ let HP = class extends pe {
54634
54634
  */
54635
54635
  update(t, n, r) {
54636
54636
  const { thread_id: o, ...s } = n;
54637
- return this._client.post(z`/threads/${o}/runs/${t}`, ed(r, (i) => ({
54637
+ return this._client.post(L`/threads/${o}/runs/${t}`, ed(r, (i) => ({
54638
54638
  body: s,
54639
54639
  ...i,
54640
54640
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
@@ -54643,7 +54643,7 @@ let HP = class extends pe {
54643
54643
  }
54644
54644
  list(t, n = {}, r) {
54645
54645
  const o = zbe(n, ["after", "before", "limit", "order"], r);
54646
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/threads/${t}/runs`, dt, ed(r, (s) => ({
54646
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/threads/${t}/runs`, dt, ed(r, (s) => ({
54647
54647
  query: n,
54648
54648
  ...s,
54649
54649
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
@@ -54657,7 +54657,7 @@ let HP = class extends pe {
54657
54657
  */
54658
54658
  cancel(t, n, r) {
54659
54659
  const { thread_id: o } = n;
54660
- return this._client.post(z`/threads/${o}/runs/${t}/cancel`, ed(r, (s) => ({
54660
+ return this._client.post(L`/threads/${o}/runs/${t}/cancel`, ed(r, (s) => ({
54661
54661
  ...s,
54662
54662
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
54663
54663
  __security: { bearerAuth: !0 }
@@ -54696,7 +54696,7 @@ let HP = class extends pe {
54696
54696
  }
54697
54697
  submitToolOutputs(t, n, r) {
54698
54698
  const { thread_id: o, ...s } = n;
54699
- return this._client.post(z`/threads/${o}/runs/${t}/submit_tool_outputs`, ed(r, (i) => {
54699
+ return this._client.post(L`/threads/${o}/runs/${t}/submit_tool_outputs`, ed(r, (i) => {
54700
54700
  var a;
54701
54701
  return {
54702
54702
  body: s,
@@ -54753,7 +54753,7 @@ class hI extends pe {
54753
54753
  * @deprecated The Assistants API is deprecated in favor of the Responses API
54754
54754
  */
54755
54755
  retrieve(t, n) {
54756
- return this._client.get(z`/threads/${t}`, zp(n, (r) => ({
54756
+ return this._client.get(L`/threads/${t}`, zp(n, (r) => ({
54757
54757
  ...r,
54758
54758
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
54759
54759
  __security: { bearerAuth: !0 }
@@ -54765,7 +54765,7 @@ class hI extends pe {
54765
54765
  * @deprecated The Assistants API is deprecated in favor of the Responses API
54766
54766
  */
54767
54767
  update(t, n, r) {
54768
- return this._client.post(z`/threads/${t}`, zp(r, (o) => ({
54768
+ return this._client.post(L`/threads/${t}`, zp(r, (o) => ({
54769
54769
  body: n,
54770
54770
  ...o,
54771
54771
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
@@ -54778,7 +54778,7 @@ class hI extends pe {
54778
54778
  * @deprecated The Assistants API is deprecated in favor of the Responses API
54779
54779
  */
54780
54780
  delete(t, n) {
54781
- return this._client.delete(z`/threads/${t}`, zp(n, (r) => ({
54781
+ return this._client.delete(L`/threads/${t}`, zp(n, (r) => ({
54782
54782
  ...r,
54783
54783
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
54784
54784
  __security: { bearerAuth: !0 }
@@ -54851,7 +54851,7 @@ let A4 = class extends pe {
54851
54851
  */
54852
54852
  retrieve(t, n, r) {
54853
54853
  const { container_id: o } = n;
54854
- return this._client.get(z`/containers/${o}/files/${t}/content`, Bbe(r, (s) => ({
54854
+ return this._client.get(L`/containers/${o}/files/${t}/content`, Bbe(r, (s) => ({
54855
54855
  ...s,
54856
54856
  headers: se([{ Accept: "application/binary" }, s == null ? void 0 : s.headers]),
54857
54857
  __security: { bearerAuth: !0 },
@@ -54906,18 +54906,18 @@ let GP = class extends pe {
54906
54906
  * a JSON request with a file ID.
54907
54907
  */
54908
54908
  create(t, n, r) {
54909
- return this._client.post(z`/containers/${t}/files`, R_(r, (o) => tI({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
54909
+ return this._client.post(L`/containers/${t}/files`, R_(r, (o) => tI({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
54910
54910
  }
54911
54911
  /**
54912
54912
  * Retrieve Container File
54913
54913
  */
54914
54914
  retrieve(t, n, r) {
54915
54915
  const { container_id: o } = n;
54916
- return this._client.get(z`/containers/${o}/files/${t}`, R_(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
54916
+ return this._client.get(L`/containers/${o}/files/${t}`, R_(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
54917
54917
  }
54918
54918
  list(t, n = {}, r) {
54919
54919
  const o = Ube(n, ["after", "limit", "order"], r);
54920
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/containers/${t}/files`, dt, R_(r, (s) => ({
54920
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/containers/${t}/files`, dt, R_(r, (s) => ({
54921
54921
  query: n,
54922
54922
  ...s,
54923
54923
  __security: { bearerAuth: !0 }
@@ -54928,7 +54928,7 @@ let GP = class extends pe {
54928
54928
  */
54929
54929
  delete(t, n, r) {
54930
54930
  const { container_id: o } = n;
54931
- return this._client.delete(z`/containers/${o}/files/${t}`, R_(r, (s) => ({
54931
+ return this._client.delete(L`/containers/${o}/files/${t}`, R_(r, (s) => ({
54932
54932
  ...s,
54933
54933
  headers: se([{ Accept: "*/*" }, s == null ? void 0 : s.headers]),
54934
54934
  __security: { bearerAuth: !0 }
@@ -54990,7 +54990,7 @@ class ZP extends pe {
54990
54990
  * Retrieve Container
54991
54991
  */
54992
54992
  retrieve(t, n) {
54993
- return this._client.get(z`/containers/${t}`, k_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
54993
+ return this._client.get(L`/containers/${t}`, k_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
54994
54994
  }
54995
54995
  list(t = {}, n) {
54996
54996
  const r = Kbe(t, ["after", "limit", "name", "order"], n);
@@ -55004,7 +55004,7 @@ class ZP extends pe {
55004
55004
  * Delete Container
55005
55005
  */
55006
55006
  delete(t, n) {
55007
- return this._client.delete(z`/containers/${t}`, k_(n, (r) => ({
55007
+ return this._client.delete(L`/containers/${t}`, k_(n, (r) => ({
55008
55008
  ...r,
55009
55009
  headers: se([{ Accept: "*/*" }, r == null ? void 0 : r.headers]),
55010
55010
  __security: { bearerAuth: !0 }
@@ -55073,7 +55073,7 @@ class O4 extends pe {
55073
55073
  */
55074
55074
  create(t, n, r) {
55075
55075
  const { include: o, ...s } = n;
55076
- return this._client.post(z`/conversations/${t}/items`, E_(r, (i) => ({
55076
+ return this._client.post(L`/conversations/${t}/items`, E_(r, (i) => ({
55077
55077
  query: { include: o },
55078
55078
  body: s,
55079
55079
  ...i,
@@ -55085,7 +55085,7 @@ class O4 extends pe {
55085
55085
  */
55086
55086
  retrieve(t, n, r) {
55087
55087
  const { conversation_id: o, ...s } = n;
55088
- return this._client.get(z`/conversations/${o}/items/${t}`, E_(r, (i) => ({
55088
+ return this._client.get(L`/conversations/${o}/items/${t}`, E_(r, (i) => ({
55089
55089
  query: s,
55090
55090
  ...i,
55091
55091
  __security: { bearerAuth: !0 }
@@ -55093,7 +55093,7 @@ class O4 extends pe {
55093
55093
  }
55094
55094
  list(t, n = {}, r) {
55095
55095
  const o = Wbe(n, ["after", "include", "limit", "order"], r);
55096
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/conversations/${t}/items`, er, E_(r, (s) => ({
55096
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/conversations/${t}/items`, er, E_(r, (s) => ({
55097
55097
  query: n,
55098
55098
  ...s,
55099
55099
  __security: { bearerAuth: !0 }
@@ -55104,7 +55104,7 @@ class O4 extends pe {
55104
55104
  */
55105
55105
  delete(t, n, r) {
55106
55106
  const { conversation_id: o } = n;
55107
- return this._client.delete(z`/conversations/${o}/items/${t}`, E_(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
55107
+ return this._client.delete(L`/conversations/${o}/items/${t}`, E_(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
55108
55108
  }
55109
55109
  }
55110
55110
  function P_(e, t) {
@@ -55128,13 +55128,13 @@ class JP extends pe {
55128
55128
  * Get a conversation
55129
55129
  */
55130
55130
  retrieve(t, n) {
55131
- return this._client.get(z`/conversations/${t}`, P_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55131
+ return this._client.get(L`/conversations/${t}`, P_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55132
55132
  }
55133
55133
  /**
55134
55134
  * Update a conversation
55135
55135
  */
55136
55136
  update(t, n, r) {
55137
- return this._client.post(z`/conversations/${t}`, P_(r, (o) => ({
55137
+ return this._client.post(L`/conversations/${t}`, P_(r, (o) => ({
55138
55138
  body: n,
55139
55139
  ...o,
55140
55140
  __security: { bearerAuth: !0 }
@@ -55144,7 +55144,7 @@ class JP extends pe {
55144
55144
  * Delete a conversation. Items in the conversation will not be deleted.
55145
55145
  */
55146
55146
  delete(t, n) {
55147
- return this._client.delete(z`/conversations/${t}`, P_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55147
+ return this._client.delete(L`/conversations/${t}`, P_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55148
55148
  }
55149
55149
  }
55150
55150
  JP.Items = O4;
@@ -55187,14 +55187,14 @@ class R4 extends pe {
55187
55187
  */
55188
55188
  retrieve(t, n, r) {
55189
55189
  const { eval_id: o, run_id: s } = n;
55190
- return this._client.get(z`/evals/${o}/runs/${s}/output_items/${t}`, X1(r, (i) => ({ ...i, __security: { bearerAuth: !0 } })));
55190
+ return this._client.get(L`/evals/${o}/runs/${s}/output_items/${t}`, X1(r, (i) => ({ ...i, __security: { bearerAuth: !0 } })));
55191
55191
  }
55192
55192
  /**
55193
55193
  * Get a list of output items for an evaluation run.
55194
55194
  */
55195
55195
  list(t, n, r) {
55196
55196
  const { eval_id: o, ...s } = n;
55197
- return this._client.getAPIList(z`/evals/${o}/runs/${t}/output_items`, dt, X1(r, (i) => ({
55197
+ return this._client.getAPIList(L`/evals/${o}/runs/${t}/output_items`, dt, X1(r, (i) => ({
55198
55198
  query: s,
55199
55199
  ...i,
55200
55200
  __security: { bearerAuth: !0 }
@@ -55247,7 +55247,7 @@ class VP extends pe {
55247
55247
  * schema specified in the config of the evaluation.
55248
55248
  */
55249
55249
  create(t, n, r) {
55250
- return this._client.post(z`/evals/${t}/runs`, Lp(r, (o) => ({
55250
+ return this._client.post(L`/evals/${t}/runs`, Lp(r, (o) => ({
55251
55251
  body: n,
55252
55252
  ...o,
55253
55253
  __security: { bearerAuth: !0 }
@@ -55258,11 +55258,11 @@ class VP extends pe {
55258
55258
  */
55259
55259
  retrieve(t, n, r) {
55260
55260
  const { eval_id: o } = n;
55261
- return this._client.get(z`/evals/${o}/runs/${t}`, Lp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
55261
+ return this._client.get(L`/evals/${o}/runs/${t}`, Lp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
55262
55262
  }
55263
55263
  list(t, n = {}, r) {
55264
55264
  const o = Gbe(n, ["after", "limit", "order", "status"], r);
55265
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/evals/${t}/runs`, dt, Lp(r, (s) => ({
55265
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/evals/${t}/runs`, dt, Lp(r, (s) => ({
55266
55266
  query: n,
55267
55267
  ...s,
55268
55268
  __security: { bearerAuth: !0 }
@@ -55273,14 +55273,14 @@ class VP extends pe {
55273
55273
  */
55274
55274
  delete(t, n, r) {
55275
55275
  const { eval_id: o } = n;
55276
- return this._client.delete(z`/evals/${o}/runs/${t}`, Lp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
55276
+ return this._client.delete(L`/evals/${o}/runs/${t}`, Lp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
55277
55277
  }
55278
55278
  /**
55279
55279
  * Cancel an ongoing evaluation run.
55280
55280
  */
55281
55281
  cancel(t, n, r) {
55282
55282
  const { eval_id: o } = n;
55283
- return this._client.post(z`/evals/${o}/runs/${t}`, Lp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
55283
+ return this._client.post(L`/evals/${o}/runs/${t}`, Lp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
55284
55284
  }
55285
55285
  }
55286
55286
  VP.OutputItems = R4;
@@ -55343,13 +55343,13 @@ class YP extends pe {
55343
55343
  * Get an evaluation by ID.
55344
55344
  */
55345
55345
  retrieve(t, n) {
55346
- return this._client.get(z`/evals/${t}`, Bp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55346
+ return this._client.get(L`/evals/${t}`, Bp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55347
55347
  }
55348
55348
  /**
55349
55349
  * Update certain properties of an evaluation.
55350
55350
  */
55351
55351
  update(t, n, r) {
55352
- return this._client.post(z`/evals/${t}`, Bp(r, (o) => ({
55352
+ return this._client.post(L`/evals/${t}`, Bp(r, (o) => ({
55353
55353
  body: n,
55354
55354
  ...o,
55355
55355
  __security: { bearerAuth: !0 }
@@ -55367,7 +55367,7 @@ class YP extends pe {
55367
55367
  * Delete an evaluation.
55368
55368
  */
55369
55369
  delete(t, n) {
55370
- return this._client.delete(z`/evals/${t}`, Bp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55370
+ return this._client.delete(L`/evals/${t}`, Bp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55371
55371
  }
55372
55372
  }
55373
55373
  YP.Runs = VP;
@@ -55454,7 +55454,7 @@ let k4 = class extends pe {
55454
55454
  * Returns information about a specific file.
55455
55455
  */
55456
55456
  retrieve(t, n) {
55457
- return this._client.get(z`/files/${t}`, Up(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55457
+ return this._client.get(L`/files/${t}`, Up(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55458
55458
  }
55459
55459
  list(t = {}, n) {
55460
55460
  const r = Vbe(t, ["after", "limit", "order", "purpose"], n);
@@ -55468,13 +55468,13 @@ let k4 = class extends pe {
55468
55468
  * Delete a file and remove it from all vector stores.
55469
55469
  */
55470
55470
  delete(t, n) {
55471
- return this._client.delete(z`/files/${t}`, Up(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55471
+ return this._client.delete(L`/files/${t}`, Up(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55472
55472
  }
55473
55473
  /**
55474
55474
  * Returns a response containing the contents of the specified file.
55475
55475
  */
55476
55476
  content(t, n) {
55477
- return this._client.get(z`/files/${t}/content`, Up(n, (r) => ({
55477
+ return this._client.get(L`/files/${t}/content`, Up(n, (r) => ({
55478
55478
  ...r,
55479
55479
  headers: se([{ Accept: "application/binary" }, r == null ? void 0 : r.headers]),
55480
55480
  __security: { bearerAuth: !0 },
@@ -55605,7 +55605,7 @@ class C4 extends pe {
55605
55605
  * ```
55606
55606
  */
55607
55607
  create(t, n, r) {
55608
- return this._client.getAPIList(z`/fine_tuning/checkpoints/${t}/permissions`, Ca, C_(r, (o) => ({
55608
+ return this._client.getAPIList(L`/fine_tuning/checkpoints/${t}/permissions`, Ca, C_(r, (o) => ({
55609
55609
  body: n,
55610
55610
  method: "post",
55611
55611
  ...o,
@@ -55614,7 +55614,7 @@ class C4 extends pe {
55614
55614
  }
55615
55615
  retrieve(t, n = {}, r) {
55616
55616
  const o = sF(n, ["after", "limit", "order", "project_id"], r);
55617
- return o !== void 0 && (r = o, n = {}), n = n, this._client.get(z`/fine_tuning/checkpoints/${t}/permissions`, C_(r, (s) => ({
55617
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.get(L`/fine_tuning/checkpoints/${t}/permissions`, C_(r, (s) => ({
55618
55618
  query: n,
55619
55619
  ...s,
55620
55620
  __security: { adminAPIKeyAuth: !0 }
@@ -55622,7 +55622,7 @@ class C4 extends pe {
55622
55622
  }
55623
55623
  list(t, n = {}, r) {
55624
55624
  const o = sF(n, ["after", "limit", "order", "project_id"], r);
55625
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/fine_tuning/checkpoints/${t}/permissions`, er, C_(r, (s) => ({
55625
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/fine_tuning/checkpoints/${t}/permissions`, er, C_(r, (s) => ({
55626
55626
  query: n,
55627
55627
  ...s,
55628
55628
  __security: { adminAPIKeyAuth: !0 }
@@ -55649,7 +55649,7 @@ class C4 extends pe {
55649
55649
  */
55650
55650
  delete(t, n, r) {
55651
55651
  const { fine_tuned_model_checkpoint: o } = n;
55652
- return this._client.delete(z`/fine_tuning/checkpoints/${o}/permissions/${t}`, C_(r, (s) => ({
55652
+ return this._client.delete(L`/fine_tuning/checkpoints/${o}/permissions/${t}`, C_(r, (s) => ({
55653
55653
  ...s,
55654
55654
  __security: { adminAPIKeyAuth: !0 }
55655
55655
  })));
@@ -55700,7 +55700,7 @@ function Qbe(e, t, n) {
55700
55700
  class M4 extends pe {
55701
55701
  list(t, n = {}, r) {
55702
55702
  const o = Qbe(n, ["after", "limit"], r);
55703
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/fine_tuning/jobs/${t}/checkpoints`, dt, Ybe(r, (s) => ({
55703
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/fine_tuning/jobs/${t}/checkpoints`, dt, Ybe(r, (s) => ({
55704
55704
  query: n,
55705
55705
  ...s,
55706
55706
  __security: { bearerAuth: !0 }
@@ -55784,7 +55784,7 @@ class eC extends pe {
55784
55784
  * ```
55785
55785
  */
55786
55786
  retrieve(t, n) {
55787
- return this._client.get(z`/fine_tuning/jobs/${t}`, iu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55787
+ return this._client.get(L`/fine_tuning/jobs/${t}`, iu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55788
55788
  }
55789
55789
  list(t = {}, n) {
55790
55790
  const r = cF(t, ["after", "limit", "metadata"], n);
@@ -55805,11 +55805,11 @@ class eC extends pe {
55805
55805
  * ```
55806
55806
  */
55807
55807
  cancel(t, n) {
55808
- return this._client.post(z`/fine_tuning/jobs/${t}/cancel`, iu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55808
+ return this._client.post(L`/fine_tuning/jobs/${t}/cancel`, iu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55809
55809
  }
55810
55810
  listEvents(t, n = {}, r) {
55811
55811
  const o = cF(n, ["after", "limit"], r);
55812
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/fine_tuning/jobs/${t}/events`, dt, iu(r, (s) => ({
55812
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/fine_tuning/jobs/${t}/events`, dt, iu(r, (s) => ({
55813
55813
  query: n,
55814
55814
  ...s,
55815
55815
  __security: { bearerAuth: !0 }
@@ -55826,7 +55826,7 @@ class eC extends pe {
55826
55826
  * ```
55827
55827
  */
55828
55828
  pause(t, n) {
55829
- return this._client.post(z`/fine_tuning/jobs/${t}/pause`, iu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55829
+ return this._client.post(L`/fine_tuning/jobs/${t}/pause`, iu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55830
55830
  }
55831
55831
  /**
55832
55832
  * Resume a fine-tune job.
@@ -55839,7 +55839,7 @@ class eC extends pe {
55839
55839
  * ```
55840
55840
  */
55841
55841
  resume(t, n) {
55842
- return this._client.post(z`/fine_tuning/jobs/${t}/resume`, iu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55842
+ return this._client.post(L`/fine_tuning/jobs/${t}/resume`, iu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
55843
55843
  }
55844
55844
  }
55845
55845
  eC.Checkpoints = M4;
@@ -55920,7 +55920,7 @@ class N4 extends pe {
55920
55920
  * ```
55921
55921
  */
55922
55922
  accept(t, n, r) {
55923
- return this._client.post(z`/live/sessions/${t}/accept`, td(r, (o) => ({
55923
+ return this._client.post(L`/live/sessions/${t}/accept`, td(r, (o) => ({
55924
55924
  body: n,
55925
55925
  ...o,
55926
55926
  headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
@@ -55940,7 +55940,7 @@ class N4 extends pe {
55940
55940
  * ```
55941
55941
  */
55942
55942
  downloadRecording(t, n) {
55943
- return this._client.get(z`/live/sessions/${t}/content`, td(n, (r) => ({
55943
+ return this._client.get(L`/live/sessions/${t}/content`, td(n, (r) => ({
55944
55944
  ...r,
55945
55945
  headers: se([{ Accept: "application/binary" }, r == null ? void 0 : r.headers]),
55946
55946
  __security: { bearerAuth: !0 },
@@ -55959,7 +55959,7 @@ class N4 extends pe {
55959
55959
  * ```
55960
55960
  */
55961
55961
  fork(t, n, r) {
55962
- return this._client.post(z`/live/sessions/${t}/fork`, td(r, (o) => ({
55962
+ return this._client.post(L`/live/sessions/${t}/fork`, td(r, (o) => ({
55963
55963
  body: n,
55964
55964
  ...o,
55965
55965
  __security: { bearerAuth: !0 }
@@ -55974,7 +55974,7 @@ class N4 extends pe {
55974
55974
  * ```
55975
55975
  */
55976
55976
  hangup(t, n) {
55977
- return this._client.post(z`/live/sessions/${t}/hangup`, td(n, (r) => ({
55977
+ return this._client.post(L`/live/sessions/${t}/hangup`, td(n, (r) => ({
55978
55978
  ...r,
55979
55979
  headers: se([{ Accept: "*/*" }, r == null ? void 0 : r.headers]),
55980
55980
  __security: { bearerAuth: !0 }
@@ -55992,7 +55992,7 @@ class N4 extends pe {
55992
55992
  * ```
55993
55993
  */
55994
55994
  refer(t, n, r) {
55995
- return this._client.post(z`/live/sessions/${t}/refer`, td(r, (o) => ({
55995
+ return this._client.post(L`/live/sessions/${t}/refer`, td(r, (o) => ({
55996
55996
  body: n,
55997
55997
  ...o,
55998
55998
  headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
@@ -56011,7 +56011,7 @@ class N4 extends pe {
56011
56011
  * ```
56012
56012
  */
56013
56013
  reject(t, n, r) {
56014
- return this._client.post(z`/live/sessions/${t}/reject`, td(r, (o) => ({
56014
+ return this._client.post(L`/live/sessions/${t}/reject`, td(r, (o) => ({
56015
56015
  body: n,
56016
56016
  ...o,
56017
56017
  headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
@@ -56062,7 +56062,7 @@ class z4 extends pe {
56062
56062
  * the owner and permissioning.
56063
56063
  */
56064
56064
  retrieve(t, n) {
56065
- return this._client.get(z`/models/${t}`, RT(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
56065
+ return this._client.get(L`/models/${t}`, RT(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
56066
56066
  }
56067
56067
  /**
56068
56068
  * Lists the currently available models, and provides basic information about each
@@ -56076,7 +56076,7 @@ class z4 extends pe {
56076
56076
  * delete a model.
56077
56077
  */
56078
56078
  delete(t, n) {
56079
- return this._client.delete(z`/models/${t}`, RT(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
56079
+ return this._client.delete(L`/models/${t}`, RT(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
56080
56080
  }
56081
56081
  }
56082
56082
  function eSe(e, t) {
@@ -56169,7 +56169,7 @@ class B4 extends pe {
56169
56169
  * ```
56170
56170
  */
56171
56171
  accept(t, n, r) {
56172
- return this._client.post(z`/realtime/calls/${t}/accept`, Kp(r, (o) => ({
56172
+ return this._client.post(L`/realtime/calls/${t}/accept`, Kp(r, (o) => ({
56173
56173
  body: n,
56174
56174
  ...o,
56175
56175
  headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
@@ -56185,7 +56185,7 @@ class B4 extends pe {
56185
56185
  * ```
56186
56186
  */
56187
56187
  hangup(t, n) {
56188
- return this._client.post(z`/realtime/calls/${t}/hangup`, Kp(n, (r) => ({
56188
+ return this._client.post(L`/realtime/calls/${t}/hangup`, Kp(n, (r) => ({
56189
56189
  ...r,
56190
56190
  headers: se([{ Accept: "*/*" }, r == null ? void 0 : r.headers]),
56191
56191
  __security: { bearerAuth: !0 }
@@ -56202,7 +56202,7 @@ class B4 extends pe {
56202
56202
  * ```
56203
56203
  */
56204
56204
  refer(t, n, r) {
56205
- return this._client.post(z`/realtime/calls/${t}/refer`, Kp(r, (o) => ({
56205
+ return this._client.post(L`/realtime/calls/${t}/refer`, Kp(r, (o) => ({
56206
56206
  body: n,
56207
56207
  ...o,
56208
56208
  headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
@@ -56218,7 +56218,7 @@ class B4 extends pe {
56218
56218
  * ```
56219
56219
  */
56220
56220
  reject(t, n = {}, r) {
56221
- return this._client.post(z`/realtime/calls/${t}/reject`, Kp(r, (o) => ({
56221
+ return this._client.post(L`/realtime/calls/${t}/reject`, Kp(r, (o) => ({
56222
56222
  body: n,
56223
56223
  ...o,
56224
56224
  headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
@@ -57274,7 +57274,7 @@ function PSe(e, t, n) {
57274
57274
  class Z4 extends pe {
57275
57275
  list(t, n = {}, r) {
57276
57276
  const o = PSe(n, ["after", "include", "limit", "order"], r);
57277
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/responses/${t}/input_items`, dt, ESe(r, (s) => ({
57277
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/responses/${t}/input_items`, dt, ESe(r, (s) => ({
57278
57278
  query: n,
57279
57279
  ...s,
57280
57280
  __security: { bearerAuth: !0 }
@@ -57357,7 +57357,7 @@ class mI extends pe {
57357
57357
  }
57358
57358
  retrieve(t, n = {}, r) {
57359
57359
  const o = MSe(n, ["include", "include_obfuscation", "starting_after", "stream"], r);
57360
- return o !== void 0 && (r = o, n = {}), n = n, this._client.get(z`/responses/${t}`, Wp(r, (s) => {
57360
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.get(L`/responses/${t}`, Wp(r, (s) => {
57361
57361
  var i;
57362
57362
  return {
57363
57363
  query: n,
@@ -57378,7 +57378,7 @@ class mI extends pe {
57378
57378
  * ```
57379
57379
  */
57380
57380
  delete(t, n) {
57381
- return this._client.delete(z`/responses/${t}`, Wp(n, (r) => ({
57381
+ return this._client.delete(L`/responses/${t}`, Wp(n, (r) => ({
57382
57382
  ...r,
57383
57383
  headers: se([{ Accept: "*/*" }, r == null ? void 0 : r.headers]),
57384
57384
  __security: { bearerAuth: !0 }
@@ -57406,7 +57406,7 @@ class mI extends pe {
57406
57406
  * ```
57407
57407
  */
57408
57408
  cancel(t, n) {
57409
- return this._client.post(z`/responses/${t}/cancel`, Wp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57409
+ return this._client.post(L`/responses/${t}/cancel`, Wp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57410
57410
  }
57411
57411
  /**
57412
57412
  * Compact a conversation. Returns a compacted response object.
@@ -57441,7 +57441,7 @@ class V4 extends pe {
57441
57441
  * Get a safety alert belonging to the authenticated API project.
57442
57442
  */
57443
57443
  retrieve(t, n) {
57444
- return this._client.get(z`/safety/alerts/${t}`, $Se(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57444
+ return this._client.get(L`/safety/alerts/${t}`, $Se(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57445
57445
  }
57446
57446
  }
57447
57447
  function DSe(e, t) {
@@ -57452,7 +57452,7 @@ class Y4 extends pe {
57452
57452
  * Get a safety case by ID.
57453
57453
  */
57454
57454
  retrieve(t, n) {
57455
- return this._client.get(z`/safety/cases/${t}`, DSe(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57455
+ return this._client.get(L`/safety/cases/${t}`, DSe(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57456
57456
  }
57457
57457
  }
57458
57458
  class gI extends pe {
@@ -57470,7 +57470,7 @@ let Q4 = class extends pe {
57470
57470
  * Download a skill zip bundle by its ID.
57471
57471
  */
57472
57472
  retrieve(t, n) {
57473
- return this._client.get(z`/skills/${t}/content`, NSe(n, (r) => ({
57473
+ return this._client.get(L`/skills/${t}/content`, NSe(n, (r) => ({
57474
57474
  ...r,
57475
57475
  headers: se([{ Accept: "application/binary" }, r == null ? void 0 : r.headers]),
57476
57476
  __security: { bearerAuth: !0 },
@@ -57487,7 +57487,7 @@ class X4 extends pe {
57487
57487
  */
57488
57488
  retrieve(t, n, r) {
57489
57489
  const { skill_id: o } = n;
57490
- return this._client.get(z`/skills/${o}/versions/${t}/content`, jSe(r, (s) => ({
57490
+ return this._client.get(L`/skills/${o}/versions/${t}/content`, jSe(r, (s) => ({
57491
57491
  ...s,
57492
57492
  headers: se([{ Accept: "application/binary" }, s == null ? void 0 : s.headers]),
57493
57493
  __security: { bearerAuth: !0 },
@@ -57539,7 +57539,7 @@ class sC extends pe {
57539
57539
  * Create a new immutable skill version.
57540
57540
  */
57541
57541
  create(t, n = {}, r) {
57542
- return this._client.post(z`/skills/${t}/versions`, tI({ body: n, ...r, __security: { bearerAuth: !0 } }, this._client, {
57542
+ return this._client.post(L`/skills/${t}/versions`, tI({ body: n, ...r, __security: { bearerAuth: !0 } }, this._client, {
57543
57543
  stripFilenames: !1
57544
57544
  }));
57545
57545
  }
@@ -57548,11 +57548,11 @@ class sC extends pe {
57548
57548
  */
57549
57549
  retrieve(t, n, r) {
57550
57550
  const { skill_id: o } = n;
57551
- return this._client.get(z`/skills/${o}/versions/${t}`, MT(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
57551
+ return this._client.get(L`/skills/${o}/versions/${t}`, MT(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
57552
57552
  }
57553
57553
  list(t, n = {}, r) {
57554
57554
  const o = FSe(n, ["after", "limit", "order"], r);
57555
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/skills/${t}/versions`, dt, MT(r, (s) => ({
57555
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/skills/${t}/versions`, dt, MT(r, (s) => ({
57556
57556
  query: n,
57557
57557
  ...s,
57558
57558
  __security: { bearerAuth: !0 }
@@ -57563,7 +57563,7 @@ class sC extends pe {
57563
57563
  */
57564
57564
  delete(t, n, r) {
57565
57565
  const { skill_id: o } = n;
57566
- return this._client.delete(z`/skills/${o}/versions/${t}`, MT(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
57566
+ return this._client.delete(L`/skills/${o}/versions/${t}`, MT(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
57567
57567
  }
57568
57568
  }
57569
57569
  sC.Content = X4;
@@ -57619,13 +57619,13 @@ class yI extends pe {
57619
57619
  * Get a skill by its ID.
57620
57620
  */
57621
57621
  retrieve(t, n) {
57622
- return this._client.get(z`/skills/${t}`, D_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57622
+ return this._client.get(L`/skills/${t}`, D_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57623
57623
  }
57624
57624
  /**
57625
57625
  * Update the default version pointer for a skill.
57626
57626
  */
57627
57627
  update(t, n, r) {
57628
- return this._client.post(z`/skills/${t}`, D_(r, (o) => ({
57628
+ return this._client.post(L`/skills/${t}`, D_(r, (o) => ({
57629
57629
  body: n,
57630
57630
  ...o,
57631
57631
  __security: { bearerAuth: !0 }
@@ -57643,7 +57643,7 @@ class yI extends pe {
57643
57643
  * Delete a skill by its ID.
57644
57644
  */
57645
57645
  delete(t, n) {
57646
- return this._client.delete(z`/skills/${t}`, D_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57646
+ return this._client.delete(L`/skills/${t}`, D_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57647
57647
  }
57648
57648
  }
57649
57649
  yI.Content = Q4;
@@ -57667,7 +57667,7 @@ class e3 extends pe {
57667
57667
  * [complete the Upload](https://developers.openai.com/api/reference/resources/uploads/methods/complete).
57668
57668
  */
57669
57669
  create(t, n, r) {
57670
- return this._client.post(z`/uploads/${t}/parts`, LSe(r, (o) => cs({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
57670
+ return this._client.post(L`/uploads/${t}/parts`, LSe(r, (o) => cs({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
57671
57671
  }
57672
57672
  }
57673
57673
  function $T(e, t) {
@@ -57713,7 +57713,7 @@ class iC extends pe {
57713
57713
  * Returns the Upload object with status `cancelled`.
57714
57714
  */
57715
57715
  cancel(t, n) {
57716
- return this._client.post(z`/uploads/${t}/cancel`, $T(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57716
+ return this._client.post(L`/uploads/${t}/cancel`, $T(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
57717
57717
  }
57718
57718
  /**
57719
57719
  * Completes the
@@ -57733,7 +57733,7 @@ class iC extends pe {
57733
57733
  * object.
57734
57734
  */
57735
57735
  complete(t, n, r) {
57736
- return this._client.post(z`/uploads/${t}/complete`, $T(r, (o) => ({
57736
+ return this._client.post(L`/uploads/${t}/complete`, $T(r, (o) => ({
57737
57737
  body: n,
57738
57738
  ...o,
57739
57739
  __security: { bearerAuth: !0 }
@@ -57788,7 +57788,7 @@ class t3 extends pe {
57788
57788
  * Create a vector store file batch.
57789
57789
  */
57790
57790
  create(t, n, r) {
57791
- return this._client.post(z`/vector_stores/${t}/file_batches`, N_(r, (o) => ({
57791
+ return this._client.post(L`/vector_stores/${t}/file_batches`, N_(r, (o) => ({
57792
57792
  body: n,
57793
57793
  ...o,
57794
57794
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
@@ -57800,7 +57800,7 @@ class t3 extends pe {
57800
57800
  */
57801
57801
  retrieve(t, n, r) {
57802
57802
  const { vector_store_id: o } = n;
57803
- return this._client.get(z`/vector_stores/${o}/file_batches/${t}`, N_(r, (s) => ({
57803
+ return this._client.get(L`/vector_stores/${o}/file_batches/${t}`, N_(r, (s) => ({
57804
57804
  ...s,
57805
57805
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
57806
57806
  __security: { bearerAuth: !0 }
@@ -57812,7 +57812,7 @@ class t3 extends pe {
57812
57812
  */
57813
57813
  cancel(t, n, r) {
57814
57814
  const { vector_store_id: o } = n;
57815
- return this._client.post(z`/vector_stores/${o}/file_batches/${t}/cancel`, N_(r, (s) => ({
57815
+ return this._client.post(L`/vector_stores/${o}/file_batches/${t}/cancel`, N_(r, (s) => ({
57816
57816
  ...s,
57817
57817
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
57818
57818
  __security: { bearerAuth: !0 }
@@ -57830,7 +57830,7 @@ class t3 extends pe {
57830
57830
  */
57831
57831
  listFiles(t, n, r) {
57832
57832
  const { vector_store_id: o, ...s } = n;
57833
- return this._client.getAPIList(z`/vector_stores/${o}/file_batches/${t}/files`, dt, N_(r, (i) => ({
57833
+ return this._client.getAPIList(L`/vector_stores/${o}/file_batches/${t}/files`, dt, N_(r, (i) => ({
57834
57834
  query: s,
57835
57835
  ...i,
57836
57836
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
@@ -57898,7 +57898,7 @@ class n3 extends pe {
57898
57898
  * [vector store](https://developers.openai.com/api/reference/resources/vector_stores).
57899
57899
  */
57900
57900
  create(t, n, r) {
57901
- return this._client.post(z`/vector_stores/${t}/files`, nd(r, (o) => ({
57901
+ return this._client.post(L`/vector_stores/${t}/files`, nd(r, (o) => ({
57902
57902
  body: n,
57903
57903
  ...o,
57904
57904
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
@@ -57910,7 +57910,7 @@ class n3 extends pe {
57910
57910
  */
57911
57911
  retrieve(t, n, r) {
57912
57912
  const { vector_store_id: o } = n;
57913
- return this._client.get(z`/vector_stores/${o}/files/${t}`, nd(r, (s) => ({
57913
+ return this._client.get(L`/vector_stores/${o}/files/${t}`, nd(r, (s) => ({
57914
57914
  ...s,
57915
57915
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
57916
57916
  __security: { bearerAuth: !0 }
@@ -57921,7 +57921,7 @@ class n3 extends pe {
57921
57921
  */
57922
57922
  update(t, n, r) {
57923
57923
  const { vector_store_id: o, ...s } = n;
57924
- return this._client.post(z`/vector_stores/${o}/files/${t}`, nd(r, (i) => ({
57924
+ return this._client.post(L`/vector_stores/${o}/files/${t}`, nd(r, (i) => ({
57925
57925
  body: s,
57926
57926
  ...i,
57927
57927
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
@@ -57930,7 +57930,7 @@ class n3 extends pe {
57930
57930
  }
57931
57931
  list(t, n = {}, r) {
57932
57932
  const o = WSe(n, ["after", "before", "filter", "limit", "order"], r);
57933
- return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(z`/vector_stores/${t}/files`, dt, nd(r, (s) => ({
57933
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/vector_stores/${t}/files`, dt, nd(r, (s) => ({
57934
57934
  query: n,
57935
57935
  ...s,
57936
57936
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
@@ -57945,7 +57945,7 @@ class n3 extends pe {
57945
57945
  */
57946
57946
  delete(t, n, r) {
57947
57947
  const { vector_store_id: o } = n;
57948
- return this._client.delete(z`/vector_stores/${o}/files/${t}`, nd(r, (s) => ({
57948
+ return this._client.delete(L`/vector_stores/${o}/files/${t}`, nd(r, (s) => ({
57949
57949
  ...s,
57950
57950
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
57951
57951
  __security: { bearerAuth: !0 }
@@ -57989,7 +57989,7 @@ class n3 extends pe {
57989
57989
  */
57990
57990
  content(t, n, r) {
57991
57991
  const { vector_store_id: o } = n;
57992
- return this._client.getAPIList(z`/vector_stores/${o}/files/${t}/content`, Ca, nd(r, (s) => ({
57992
+ return this._client.getAPIList(L`/vector_stores/${o}/files/${t}/content`, Ca, nd(r, (s) => ({
57993
57993
  ...s,
57994
57994
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
57995
57995
  __security: { bearerAuth: !0 }
@@ -58051,7 +58051,7 @@ class _I extends pe {
58051
58051
  * Retrieves a vector store.
58052
58052
  */
58053
58053
  retrieve(t, n) {
58054
- return this._client.get(z`/vector_stores/${t}`, rd(n, (r) => ({
58054
+ return this._client.get(L`/vector_stores/${t}`, rd(n, (r) => ({
58055
58055
  ...r,
58056
58056
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
58057
58057
  __security: { bearerAuth: !0 }
@@ -58061,7 +58061,7 @@ class _I extends pe {
58061
58061
  * Modifies a vector store.
58062
58062
  */
58063
58063
  update(t, n, r) {
58064
- return this._client.post(z`/vector_stores/${t}`, rd(r, (o) => ({
58064
+ return this._client.post(L`/vector_stores/${t}`, rd(r, (o) => ({
58065
58065
  body: n,
58066
58066
  ...o,
58067
58067
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
@@ -58081,7 +58081,7 @@ class _I extends pe {
58081
58081
  * Delete a vector store.
58082
58082
  */
58083
58083
  delete(t, n) {
58084
- return this._client.delete(z`/vector_stores/${t}`, rd(n, (r) => ({
58084
+ return this._client.delete(L`/vector_stores/${t}`, rd(n, (r) => ({
58085
58085
  ...r,
58086
58086
  headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
58087
58087
  __security: { bearerAuth: !0 }
@@ -58092,7 +58092,7 @@ class _I extends pe {
58092
58092
  * filter.
58093
58093
  */
58094
58094
  search(t, n, r) {
58095
- return this._client.getAPIList(z`/vector_stores/${t}/search`, Ca, rd(r, (o) => ({
58095
+ return this._client.getAPIList(L`/vector_stores/${t}/search`, Ca, rd(r, (o) => ({
58096
58096
  body: n,
58097
58097
  method: "post",
58098
58098
  ...o,
@@ -58154,7 +58154,7 @@ class r3 extends pe {
58154
58154
  * @deprecated The Sora API is scheduled to permanently shut down on September 24, 2026.
58155
58155
  */
58156
58156
  retrieve(t, n) {
58157
- return this._client.get(z`/videos/${t}`, ti(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58157
+ return this._client.get(L`/videos/${t}`, ti(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58158
58158
  }
58159
58159
  list(t = {}, n) {
58160
58160
  const r = SF(t, ["after", "limit", "order"], n);
@@ -58170,7 +58170,7 @@ class r3 extends pe {
58170
58170
  * @deprecated The Sora API is scheduled to permanently shut down on September 24, 2026.
58171
58171
  */
58172
58172
  delete(t, n) {
58173
- return this._client.delete(z`/videos/${t}`, ti(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58173
+ return this._client.delete(L`/videos/${t}`, ti(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58174
58174
  }
58175
58175
  /**
58176
58176
  * Create a character from an uploaded video.
@@ -58182,7 +58182,7 @@ class r3 extends pe {
58182
58182
  }
58183
58183
  downloadContent(t, n = {}, r) {
58184
58184
  const o = SF(n, ["variant"], r);
58185
- return o !== void 0 && (r = o, n = {}), n = n, this._client.get(z`/videos/${t}/content`, ti(r, (s) => ({
58185
+ return o !== void 0 && (r = o, n = {}), n = n, this._client.get(L`/videos/${t}/content`, ti(r, (s) => ({
58186
58186
  query: n,
58187
58187
  ...s,
58188
58188
  headers: se([{ Accept: "application/binary" }, s == null ? void 0 : s.headers]),
@@ -58213,7 +58213,7 @@ class r3 extends pe {
58213
58213
  * @deprecated The Sora API is scheduled to permanently shut down on September 24, 2026.
58214
58214
  */
58215
58215
  getCharacter(t, n) {
58216
- return this._client.get(z`/videos/characters/${t}`, ti(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58216
+ return this._client.get(L`/videos/characters/${t}`, ti(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58217
58217
  }
58218
58218
  /**
58219
58219
  * Create a remix of a completed video using a refreshed prompt.
@@ -58221,7 +58221,7 @@ class r3 extends pe {
58221
58221
  * @deprecated The Sora API is scheduled to permanently shut down on September 24, 2026.
58222
58222
  */
58223
58223
  remix(t, n, r) {
58224
- return this._client.post(z`/videos/${t}/remix`, ti(r, (o) => tI({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
58224
+ return this._client.post(L`/videos/${t}/remix`, ti(r, (o) => tI({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
58225
58225
  }
58226
58226
  }
58227
58227
  const vF = 32, GSe = 32;
@@ -58386,7 +58386,7 @@ class cC extends pe {
58386
58386
  * ```
58387
58387
  */
58388
58388
  retrieve(t, n) {
58389
- return this._client.get(z`/webhook_endpoints/${t}`, cu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58389
+ return this._client.get(L`/webhook_endpoints/${t}`, cu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58390
58390
  }
58391
58391
  /**
58392
58392
  * Updates a webhook endpoint for the authenticated project.
@@ -58397,7 +58397,7 @@ class cC extends pe {
58397
58397
  * ```
58398
58398
  */
58399
58399
  update(t, n = {}, r) {
58400
- return this._client.post(z`/webhook_endpoints/${t}`, cu(r, (o) => ({
58400
+ return this._client.post(L`/webhook_endpoints/${t}`, cu(r, (o) => ({
58401
58401
  body: n,
58402
58402
  ...o,
58403
58403
  __security: { bearerAuth: !0 }
@@ -58422,7 +58422,7 @@ class cC extends pe {
58422
58422
  * ```
58423
58423
  */
58424
58424
  delete(t, n) {
58425
- return this._client.delete(z`/webhook_endpoints/${t}`, cu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58425
+ return this._client.delete(L`/webhook_endpoints/${t}`, cu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
58426
58426
  }
58427
58427
  /**
58428
58428
  * Rotates the signing secret for a webhook endpoint in the authenticated project.
@@ -58434,7 +58434,7 @@ class cC extends pe {
58434
58434
  * ```
58435
58435
  */
58436
58436
  rotateSecret(t, n = {}, r) {
58437
- return this._client.post(z`/webhook_endpoints/${t}/rotate_secret`, cu(r, (o) => ({
58437
+ return this._client.post(L`/webhook_endpoints/${t}/rotate_secret`, cu(r, (o) => ({
58438
58438
  body: n,
58439
58439
  ...o,
58440
58440
  __security: { bearerAuth: !0 }
@@ -58452,7 +58452,7 @@ class cC extends pe {
58452
58452
  * ```
58453
58453
  */
58454
58454
  test(t, n, r) {
58455
- return this._client.post(z`/webhook_endpoints/${t}/test`, cu(r, (o) => ({
58455
+ return this._client.post(L`/webhook_endpoints/${t}/test`, cu(r, (o) => ({
58456
58456
  body: n,
58457
58457
  ...o,
58458
58458
  __security: { bearerAuth: !0 }
@@ -58541,7 +58541,7 @@ class Ue {
58541
58541
  * @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
58542
58542
  */
58543
58543
  constructor(t = {}) {
58544
- var R, E, j, P, q, N, L, F, V, K, U, B;
58544
+ var R, E, j, P, q, N, z, F, V, K, U, B;
58545
58545
  Dr.add(this), Mh.set(this, void 0), Zt.set(this, void 0), Dw.set(this, void 0), Bi.set(this, void 0), gm.set(this, !1), $h.set(this, /* @__PURE__ */ new WeakMap()), this.completions = new I4(this), this.chat = new NP(this), this.embeddings = new x4(this), this.files = new k4(this), this.images = new D4(this), this.contentProvenanceChecks = new T4(this), this.audio = new cy(this), this.moderations = new L4(this), this.models = new z4(this), this.fineTuning = new Qf(this), this.graders = new tC(this), this.vectorStores = new _I(this), this.safety = new gI(this), this.webhooks = new cC(this), this.beta = new Wc(this), this.batches = new YZ(this), this.uploads = new iC(this), this.admin = new BP(this), this.responses = new mI(this), this.live = new ly(this), this.realtime = new dy(this), this.conversations = new JP(this), this.evals = new YP(this), this.containers = new ZP(this), this.skills = new yI(this), this.videos = new r3(this);
58546
58546
  const { credential: n, options: r } = a_e(t);
58547
58547
  t = r;
@@ -58561,7 +58561,7 @@ class Ue {
58561
58561
  x509Transport: y,
58562
58562
  provider: s,
58563
58563
  ..._,
58564
- baseURL: (L = (N = T == null ? void 0 : T.baseURL) != null ? N : o) != null ? L : i || (b ? Cye : "https://api.openai.com/v1")
58564
+ baseURL: (z = (N = T == null ? void 0 : T.baseURL) != null ? N : o) != null ? z : i || (b ? Cye : "https://api.openai.com/v1")
58565
58565
  };
58566
58566
  if (y && !b)
58567
58567
  throw new H("An X.509 transport requires an X.509 workload identity.");
@@ -58893,7 +58893,7 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
58893
58893
  }
58894
58894
  }
58895
58895
  async makeRequest(t, n, r) {
58896
- var R, E, j, P, q, N, L, F, V, K, U, B, ie, ye, ge, ee, xe, oe, Ce, Ee, me;
58896
+ var R, E, j, P, q, N, z, F, V, K, U, B, ie, ye, ge, ee, xe, oe, Ce, Ee, me;
58897
58897
  const o = await t, s = v(this, Dr, "m", Dh).call(this, (R = o.maxRetries) != null ? R : this.maxRetries);
58898
58898
  n == null ? n = s : n = Math.min(v(this, Dr, "m", Dh).call(this, n), s);
58899
58899
  const i = v(this, Zt, "f");
@@ -58910,7 +58910,7 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
58910
58910
  throw this._makeUserAbortError(ke != null && ke.aborted ? ke : a.req.signal);
58911
58911
  i.setEffectiveSignal(a.req.signal || ke ? xF((q = a.req.signal) != null ? q : ke, ke).signal : void 0), i.beginRequestNetwork();
58912
58912
  const M = (N = o.__security) != null ? N : { bearerAuth: !0 }, D = await this.authHeaders(o, M), G = i.headerSnapshots(), X = se([G.defaultHeaders, G.requestHeaders]);
58913
- for (const [Y, te] of (L = D == null ? void 0 : D.values) != null ? L : [])
58913
+ for (const [Y, te] of (z = D == null ? void 0 : D.values) != null ? z : [])
58914
58914
  !X.nulls.has(Y) && !a.req.headers.has(Y) && a.req.headers.set(Y, te);
58915
58915
  this.validateHeaders(se([X, a.req.headers]), M);
58916
58916
  }
@@ -59347,8 +59347,8 @@ $r = Ue, Mh = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(),
59347
59347
  A[P] = "[REDACTED]";
59348
59348
  continue;
59349
59349
  }
59350
- f(N.value, y + 1, (L) => {
59351
- A[P] = L;
59350
+ f(N.value, y + 1, (z) => {
59351
+ A[P] = z;
59352
59352
  });
59353
59353
  }
59354
59354
  }
@@ -60468,7 +60468,7 @@ function Gve(e) {
60468
60468
  content: e
60469
60469
  }
60470
60470
  ] : e.map((n) => {
60471
- var o, s, i, a, c, u, l, d, f, p, h, y, g, _, m, w, b, T, S, I, A, R, E, j, P, q, N, L, F, V, K, U, B, ie, ye, ge, ee, xe, oe, Ce, Ee, me, Pe, ke;
60471
+ var o, s, i, a, c, u, l, d, f, p, h, y, g, _, m, w, b, T, S, I, A, R, E, j, P, q, N, z, F, V, K, U, B, ie, ye, ge, ee, xe, oe, Ce, Ee, me, Pe, ke;
60472
60472
  if (qve(n))
60473
60473
  return Kve(n);
60474
60474
  if (n.type === "tool_search_call") {
@@ -60743,7 +60743,7 @@ function Gve(e) {
60743
60743
  code: (P = (j = n.providerData) == null ? void 0 : j.code) != null ? P : "",
60744
60744
  // This property used to be results, so keeping both for backward compatibility
60745
60745
  // That said, this property cannot be passed from a user, so it's just API's internal data.
60746
- outputs: (F = (L = (q = n.providerData) == null ? void 0 : q.outputs) != null ? L : (N = n.providerData) == null ? void 0 : N.results) != null ? F : [],
60746
+ outputs: (F = (z = (q = n.providerData) == null ? void 0 : q.outputs) != null ? z : (N = n.providerData) == null ? void 0 : N.results) != null ? F : [],
60747
60747
  status: $ve.parse((V = n.status) != null ? V : "failed"),
60748
60748
  container_id: (K = n.providerData) == null ? void 0 : K.container_id,
60749
60749
  ...M ? { caller: xs(M) } : {}
@@ -62352,9 +62352,9 @@ async function* FIe(e, t, n = {}) {
62352
62352
  n.preserveRawUsage === !0 && (o = Ym(U)), r = o != null ? o : U;
62353
62353
  }
62354
62354
  N.id && (e.id === Od || !e.id) && (e.id = N.id);
62355
- const L = (h = (p = N.choices) == null ? void 0 : p.find((U) => U.index === 0)) == null ? void 0 : h.delta;
62356
- if (L && Object.prototype.hasOwnProperty.call(L, "audio")) {
62357
- const U = L.audio;
62355
+ const z = (h = (p = N.choices) == null ? void 0 : p.find((U) => U.index === 0)) == null ? void 0 : h.delta;
62356
+ if (z && Object.prototype.hasOwnProperty.call(z, "audio")) {
62357
+ const U = z.audio;
62358
62358
  if (U != null) {
62359
62359
  let B;
62360
62360
  try {
@@ -62440,13 +62440,13 @@ async function* FIe(e, t, n = {}) {
62440
62440
  });
62441
62441
  let u = null;
62442
62442
  if (s.audio) {
62443
- const { data: N, ...L } = s.audio;
62443
+ const { data: N, ...z } = s.audio;
62444
62444
  if (typeof N != "string")
62445
62445
  throw new tt("Chat Completions stream ended with audio output but no audio data.");
62446
62446
  u = {
62447
62447
  type: "audio",
62448
62448
  audio: N,
62449
- providerData: L
62449
+ providerData: z
62450
62450
  };
62451
62451
  }
62452
62452
  if (s.text_content || s.refusal_content) {
@@ -62713,7 +62713,7 @@ function GIe(e, t = {}) {
62713
62713
  ])
62714
62714
  };
62715
62715
  if (Array.isArray(I)) {
62716
- const N = I.find((L) => L.type === "audio");
62716
+ const N = I.find((z) => z.type === "audio");
62717
62717
  N && (q.audio = {
62718
62718
  id: "",
62719
62719
  // setting this to empty ID and expecting that the user sets providerData.id
@@ -64306,14 +64306,42 @@ Pn("type", [
64306
64306
  ]);
64307
64307
  tae(new Q3({ cacheResponsesWebSocketModels: !1 }));
64308
64308
  mAe();
64309
- const n6 = "qwen3.6-flash", hTe = "http://localhost:4000/v1";
64310
- async function mTe(e, t) {
64309
+ function hTe(e = {}) {
64310
+ return {
64311
+ ...e,
64312
+ pendingItems: []
64313
+ };
64314
+ }
64315
+ function mTe(e, t) {
64316
+ const n = e && typeof e == "object" ? e : {}, { items: r, ...o } = n, s = o;
64317
+ if (s.action !== "add")
64318
+ return { operation: s };
64319
+ const i = t.pendingItems;
64320
+ return !Array.isArray(i) || i.length === 0 ? {
64321
+ operation: s,
64322
+ error: "缺少待添加的业务数据,请先调用业务工具准备 items"
64323
+ } : {
64324
+ operation: {
64325
+ ...s,
64326
+ items: i.slice()
64327
+ },
64328
+ pendingItems: i
64329
+ };
64330
+ }
64331
+ function gTe(e) {
64332
+ return !(e && typeof e == "object" && (e.ok === !1 || "error" in e));
64333
+ }
64334
+ function yTe(e, t, n) {
64335
+ t.pendingItems && gTe(n) && (e.pendingItems = []);
64336
+ }
64337
+ const n6 = "qwen3.6-flash", _Te = "http://localhost:4000/v1";
64338
+ async function wTe(e, t) {
64311
64339
  var r, o, s;
64312
64340
  return (typeof e.needsApproval == "function" ? await e.needsApproval(t) : e.needsApproval) ? typeof window == "undefined" || typeof window.confirm != "function" ? !1 : window.confirm(
64313
64341
  (s = (o = (r = e.approval) == null ? void 0 : r.message) == null ? void 0 : o.call(r, t)) != null ? s : `是否执行工具 ${e.name}?`
64314
64342
  ) : !0;
64315
64343
  }
64316
- function gTe(e, t, n) {
64344
+ function bTe(e, t, n) {
64317
64345
  var i, a;
64318
64346
  const r = (a = (i = e.parameters) != null ? i : e.inputSchema) != null ? a : J({ input: k().optional() }), { $schema: o, ...s } = QB(
64319
64347
  r,
@@ -64326,8 +64354,9 @@ function gTe(e, t, n) {
64326
64354
  // Host tools may legitimately use optional fields. Non-strict mode accepts
64327
64355
  // their JSON schema without requiring every property to be nullable.
64328
64356
  strict: !1,
64329
- async execute(c) {
64330
- if (!await mTe(e, c))
64357
+ async execute(c, u) {
64358
+ var l;
64359
+ if (!await wTe(e, c))
64331
64360
  return {
64332
64361
  ok: !1,
64333
64362
  rejected: !0,
@@ -64336,18 +64365,19 @@ function gTe(e, t, n) {
64336
64365
  try {
64337
64366
  return await e.execute(c, {
64338
64367
  api: t,
64339
- getContext: n
64368
+ getContext: n,
64369
+ context: (l = u == null ? void 0 : u.context) != null ? l : n()
64340
64370
  });
64341
- } catch (u) {
64371
+ } catch (d) {
64342
64372
  return {
64343
64373
  ok: !1,
64344
- error: u instanceof Error ? u.message : String(u)
64374
+ error: d instanceof Error ? d.message : String(d)
64345
64375
  };
64346
64376
  }
64347
64377
  }
64348
64378
  });
64349
64379
  }
64350
- function yTe(e) {
64380
+ function STe(e) {
64351
64381
  const t = {
64352
64382
  type: "object",
64353
64383
  properties: {},
@@ -64376,7 +64406,10 @@ function yTe(e) {
64376
64406
  }
64377
64407
  }), o = fl({
64378
64408
  name: "editor_operator",
64379
- description: "通过节点 UUID 添加、编辑、删除或移动编辑器组件。",
64409
+ description: [
64410
+ "通过节点 UUID 添加、编辑、删除或移动编辑器组件。",
64411
+ "add 的 items 由业务工具写入本次 Run 的 Context 后自动注入,禁止在参数中生成 items。"
64412
+ ].join(""),
64380
64413
  parameters: {
64381
64414
  type: "object",
64382
64415
  properties: {
@@ -64391,12 +64424,7 @@ function yTe(e) {
64391
64424
  },
64392
64425
  widget: {
64393
64426
  type: "string",
64394
- description: "add 时使用的组件类型 ID"
64395
- },
64396
- items: {
64397
- type: "array",
64398
- description: "add 时写入业务组件的数据",
64399
- items: {}
64427
+ description: "add 时使用的组件类型 ID;必须来自 get_widgets"
64400
64428
  },
64401
64429
  changes: {
64402
64430
  type: "object",
@@ -64421,21 +64449,37 @@ function yTe(e) {
64421
64449
  additionalProperties: !1
64422
64450
  },
64423
64451
  strict: !1,
64424
- async execute(s) {
64425
- var i;
64426
- if (!((i = e.editor) != null && i.operateEditor))
64452
+ async execute(s, i) {
64453
+ var u;
64454
+ if (!((u = e.editor) != null && u.operateEditor))
64427
64455
  throw new Error("宿主未提供 operateEditor API");
64428
- return e.editor.operateEditor(s);
64456
+ const a = i == null ? void 0 : i.context;
64457
+ if (!a)
64458
+ throw new Error("缺少当前 Agent Run 的 Context");
64459
+ const c = mTe(s, a);
64460
+ if (c.error)
64461
+ return { ok: !1, error: c.error };
64462
+ try {
64463
+ const l = await e.editor.operateEditor(
64464
+ c.operation
64465
+ );
64466
+ return yTe(a, c, l), l;
64467
+ } catch (l) {
64468
+ return {
64469
+ ok: !1,
64470
+ error: l instanceof Error ? l.message : String(l)
64471
+ };
64472
+ }
64429
64473
  }
64430
64474
  });
64431
64475
  return [n, r, o];
64432
64476
  }
64433
- function _Te(e) {
64477
+ function vTe(e) {
64434
64478
  var o, s;
64435
64479
  const t = (o = e.getContext) != null ? o : () => ({}), n = [
64436
- ...yTe(e.api),
64480
+ ...STe(e.api),
64437
64481
  ...((s = e.tools) != null ? s : []).map(
64438
- (i) => gTe(i, e.api, t)
64482
+ (i) => bTe(i, e.api, t)
64439
64483
  )
64440
64484
  ];
64441
64485
  return { agent: new ws({
@@ -64449,6 +64493,9 @@ function _Te(e) {
64449
64493
  "你是一个 DIY 页面设计助手,负责通过宿主提供的 API 和业务工具帮助用户完成页面设计。",
64450
64494
  "修改页面时先调用 get_current_editor 和 get_widgets,确认节点 UUID、组件类型和数据结构。",
64451
64495
  "只通过 editor_operator 修改编辑器,不要臆造节点 UUID 或组件类型。",
64496
+ "添加业务组件时,必须先调用能准备组件数据的业务工具;完整 items 会写入本次 Run 的 Context 并由 editor_operator 自动注入。",
64497
+ "不要在 editor_operator 参数中生成 items,也不要自行伪造商品、场景等业务数据。",
64498
+ "业务工具准备好的 items 会被一次添加操作消费;若要再次添加,必须重新调用业务工具。",
64452
64499
  "业务数据只能通过已注册的业务工具获取或写入,不要伪造接口结果。",
64453
64500
  "写入或不可逆操作需要用户明确同意;完成后用简洁的中文总结实际发生的变化。"
64454
64501
  ].join(`
@@ -64456,11 +64503,11 @@ function _Te(e) {
64456
64503
  tools: n
64457
64504
  }) };
64458
64505
  }
64459
- const wTe = "browser-proxy";
64460
- function bTe(e) {
64461
- return (e == null ? void 0 : e.trim().replace(/\/+$/, "")) || hTe;
64506
+ const ITe = "browser-proxy";
64507
+ function ATe(e) {
64508
+ return (e == null ? void 0 : e.trim().replace(/\/+$/, "")) || _Te;
64462
64509
  }
64463
- function STe(e) {
64510
+ function TTe(e) {
64464
64511
  return e === "chat_completions" ? "chat_completions" : "responses";
64465
64512
  }
64466
64513
  function Vd(e, t) {
@@ -64473,7 +64520,7 @@ function Ui(e, t) {
64473
64520
  const n = e[t];
64474
64521
  return typeof n == "string" ? n : void 0;
64475
64522
  }
64476
- function vTe(e) {
64523
+ function OTe(e) {
64477
64524
  if (typeof e != "string")
64478
64525
  return e;
64479
64526
  try {
@@ -64482,7 +64529,7 @@ function vTe(e) {
64482
64529
  return e;
64483
64530
  }
64484
64531
  }
64485
- function ITe(e) {
64532
+ function xTe(e) {
64486
64533
  const t = xd(e.rawItem);
64487
64534
  return (Array.isArray(t.content) ? t.content : []).map((r) => Ui(xd(r), "text")).filter((r) => !!r).join(`
64488
64535
  `);
@@ -64492,10 +64539,10 @@ function JF(e, t) {
64492
64539
  (n) => n.type === "tool" && n.toolCallId === t
64493
64540
  );
64494
64541
  }
64495
- function ATe(e, t, n, r) {
64542
+ function RTe(e, t, n, r) {
64496
64543
  var o, s, i, a, c, u, l, d;
64497
64544
  if (e.name === "reasoning_item_created" && n === "data") {
64498
- const f = ITe(e.item);
64545
+ const f = xTe(e.item);
64499
64546
  f && (Vd(t, { type: "reasoning", text: f }), r());
64500
64547
  return;
64501
64548
  }
@@ -64503,7 +64550,7 @@ function ATe(e, t, n, r) {
64503
64550
  const f = xd(e.item.rawItem), p = (i = (s = (o = Ui(f, "callId")) != null ? o : Ui(f, "call_id")) != null ? s : Ui(f, "id")) != null ? i : globalThis.crypto.randomUUID();
64504
64551
  if (JF(t, p))
64505
64552
  return;
64506
- const h = (c = (a = Ui(f, "name")) != null ? a : Ui(xd(e.item), "toolName")) != null ? c : e.name === "handoff_requested" ? "transfer_to_agent" : "tool", y = vTe((u = f.arguments) != null ? u : f.input), g = f.output;
64553
+ const h = (c = (a = Ui(f, "name")) != null ? a : Ui(xd(e.item), "toolName")) != null ? c : e.name === "handoff_requested" ? "transfer_to_agent" : "tool", y = OTe((u = f.arguments) != null ? u : f.input), g = f.output;
64507
64554
  Vd(t, {
64508
64555
  type: "tool",
64509
64556
  toolCallId: p,
@@ -64534,20 +64581,20 @@ function ATe(e, t, n, r) {
64534
64581
  }), r());
64535
64582
  }
64536
64583
  }
64537
- function TTe(e) {
64584
+ function kTe(e) {
64538
64585
  return e.parts.map((t) => t.type === "text" ? t.text : t.type === "file" ? bL(t) : "").filter(Boolean).join(`
64539
64586
 
64540
64587
  `);
64541
64588
  }
64542
- function OTe(e) {
64589
+ function ETe(e) {
64543
64590
  const t = [];
64544
64591
  for (const n of e) {
64545
- const r = TTe(n).trim();
64592
+ const r = kTe(n).trim();
64546
64593
  r && (n.role === "assistant" ? t.push(Xb(r)) : n.role === "system" ? t.push(ume(r)) : t.push(cme(r)));
64547
64594
  }
64548
64595
  return t;
64549
64596
  }
64550
- function xTe(e) {
64597
+ function PTe(e) {
64551
64598
  var t;
64552
64599
  try {
64553
64600
  return (t = localStorage.getItem(e)) != null ? t : void 0;
@@ -64555,19 +64602,19 @@ function xTe(e) {
64555
64602
  return;
64556
64603
  }
64557
64604
  }
64558
- function RTe(e, t) {
64605
+ function CTe(e, t) {
64559
64606
  try {
64560
64607
  localStorage.setItem(e, t);
64561
64608
  } catch (n) {
64562
64609
  }
64563
64610
  }
64564
- function kTe(e = {}) {
64611
+ function MTe(e = {}) {
64565
64612
  var p, h;
64566
64613
  const t = {
64567
- baseURL: bTe(e.baseURL),
64614
+ baseURL: ATe(e.baseURL),
64568
64615
  model: ((p = e.model) == null ? void 0 : p.trim()) || n6,
64569
- apiMode: STe(e.apiMode)
64570
- }, { agent: n } = _Te({
64616
+ apiMode: TTe(e.apiMode)
64617
+ }, { agent: n } = vTe({
64571
64618
  model: t.model,
64572
64619
  api: (h = e.api) != null ? h : {},
64573
64620
  tools: e.tools,
@@ -64583,7 +64630,7 @@ function kTe(e = {}) {
64583
64630
  function a() {
64584
64631
  if (!i) {
64585
64632
  const y = new Ue({
64586
- apiKey: wTe,
64633
+ apiKey: ITe,
64587
64634
  baseURL: t.baseURL,
64588
64635
  dangerouslyAllowBrowser: !0
64589
64636
  });
@@ -64602,15 +64649,15 @@ function kTe(e = {}) {
64602
64649
  return `${s}:agent:${y}`;
64603
64650
  }
64604
64651
  function u(y, g) {
64605
- RTe(c(y), g);
64652
+ CTe(c(y), g);
64606
64653
  }
64607
64654
  function l(y, g) {
64608
- const _ = xTe(c(y));
64655
+ const _ = PTe(c(y));
64609
64656
  return {
64610
64657
  activeAgentName: _ && r.has(_) ? _ : n.name,
64611
64658
  session: new Jge({
64612
64659
  sessionId: y,
64613
- initialItems: OTe(g)
64660
+ initialItems: ETe(g)
64614
64661
  })
64615
64662
  };
64616
64663
  }
@@ -64627,50 +64674,51 @@ function kTe(e = {}) {
64627
64674
  signal: b,
64628
64675
  onUpdate: T
64629
64676
  }) {
64630
- var E, j, P;
64677
+ var j, P, q, N;
64631
64678
  const S = await d(y, w);
64632
64679
  if (b.aborted)
64633
64680
  return;
64634
- const I = (E = r.get(S.activeAgentName)) != null ? E : n, A = await a().run(I, g, {
64681
+ const I = (j = r.get(S.activeAgentName)) != null ? j : n, A = hTe((P = e.getContext) == null ? void 0 : P.call(e)), R = await a().run(I, g, {
64635
64682
  stream: !0,
64636
64683
  session: S.session,
64637
- signal: b
64684
+ signal: b,
64685
+ context: A
64638
64686
  });
64639
- let R;
64640
- for await (const q of A) {
64687
+ let E;
64688
+ for await (const z of R) {
64641
64689
  if (b.aborted)
64642
64690
  break;
64643
- if (q.type === "raw_model_stream_event") {
64644
- q.data.type === "response_started" ? R = void 0 : q.data.type === "output_text_delta" && (R || (R = Vd(m, { type: "text", text: "" })), R.text += q.data.delta, T());
64691
+ if (z.type === "raw_model_stream_event") {
64692
+ z.data.type === "response_started" ? E = void 0 : z.data.type === "output_text_delta" && (E || (E = Vd(m, { type: "text", text: "" })), E.text += z.data.delta, T());
64645
64693
  continue;
64646
64694
  }
64647
- if (q.type === "run_item_stream_event") {
64648
- if (q.name === "message_output_created" && q.item.type === "message_output_item" && (!R || !R.text)) {
64649
- const N = q.item.content;
64650
- N && (R = Vd(m, { type: "text", text: N }), T());
64695
+ if (z.type === "run_item_stream_event") {
64696
+ if (z.name === "message_output_created" && z.item.type === "message_output_item" && (!E || !E.text)) {
64697
+ const F = z.item.content;
64698
+ F && (E = Vd(m, { type: "text", text: F }), T());
64651
64699
  continue;
64652
64700
  }
64653
- ATe(q, m, _, T);
64701
+ RTe(z, m, _, T);
64654
64702
  continue;
64655
64703
  }
64656
- S.activeAgentName = q.agent.name, u(y, S.activeAgentName), _ === "data" && (Vd(m, {
64704
+ S.activeAgentName = z.agent.name, u(y, S.activeAgentName), _ === "data" && (Vd(m, {
64657
64705
  type: "data",
64658
64706
  name: "active_agent",
64659
- data: { name: q.agent.name }
64707
+ data: { name: z.agent.name }
64660
64708
  }), T());
64661
64709
  }
64662
- await A.completed, S.activeAgentName = (P = (j = A.currentAgent) == null ? void 0 : j.name) != null ? P : S.activeAgentName, u(y, S.activeAgentName);
64710
+ await R.completed, S.activeAgentName = (N = (q = R.currentAgent) == null ? void 0 : q.name) != null ? N : S.activeAgentName, u(y, S.activeAgentName);
64663
64711
  }
64664
64712
  return {
64665
64713
  config: t,
64666
64714
  runTurn: f
64667
64715
  };
64668
64716
  }
64669
- const ETe = { class: "assistant-root" }, PTe = {
64717
+ const $Te = { class: "assistant-root" }, DTe = {
64670
64718
  key: 0,
64671
64719
  class: "assistant-panel",
64672
64720
  "aria-label": "DIY Copilot"
64673
- }, CTe = ["aria-expanded", "aria-label"], MTe = /* @__PURE__ */ Dg({
64721
+ }, NTe = ["aria-expanded", "aria-label"], jTe = /* @__PURE__ */ Dg({
64674
64722
  __name: "Copilot",
64675
64723
  props: {
64676
64724
  api: { default: () => ({}), type: Object },
@@ -64688,7 +64736,7 @@ const ETe = { class: "assistant-root" }, PTe = {
64688
64736
  return ((u = t.api.model) == null ? void 0 : u.model) || "qwen3.6-flash";
64689
64737
  }), s = al(() => {
64690
64738
  var u, l, d;
64691
- return kTe({
64739
+ return MTe({
64692
64740
  baseURL: (u = t.api.model) == null ? void 0 : u.baseURL,
64693
64741
  model: (l = t.api.model) == null ? void 0 : l.model,
64694
64742
  apiMode: (d = t.api.model) == null ? void 0 : d.apiMode,
@@ -64701,8 +64749,8 @@ const ETe = { class: "assistant-root" }, PTe = {
64701
64749
  "这个页面如何优化布局?",
64702
64750
  "查询一下当前场景的开通状态"
64703
64751
  ], a = /* @__PURE__ */ li(!1), c = /* @__PURE__ */ li(!1);
64704
- return (u, l) => (Ot(), Mt("div", ETe, [
64705
- a.value ? (Ot(), Mt("section", PTe, [
64752
+ return (u, l) => (Ot(), Mt("div", $Te, [
64753
+ a.value ? (Ot(), Mt("section", DTe, [
64706
64754
  (Ot(), KS(wV, {
64707
64755
  key: `${r.value}-${o.value}`,
64708
64756
  mode: "data",
@@ -64728,52 +64776,56 @@ const ETe = { class: "assistant-root" }, PTe = {
64728
64776
  Re("span", {
64729
64777
  class: yl(["dot", { ok: c.value }])
64730
64778
  }, null, 2)
64731
- ], 8, CTe)
64779
+ ], 8, NTe)
64732
64780
  ]));
64733
64781
  }
64734
- }), $Te = ':host{--page-bg: #0b0c10;--surface: #14161c;--surface-raised: #1a1d24;--surface-code: #0f1116;--border: #292e38;--border-soft: #242830;--text: #f5f6f7;--text-muted: #aab2be;--text-subtle: #7e8794;--accent: #5271ff;--accent-hover: #6a84ff;--accent-soft: rgba(82, 113, 255, .14);--danger: #f7bfbf;display:block;position:fixed;z-index:2147483000;inset:0;color:var(--text);font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color-scheme:dark;isolation:isolate;pointer-events:none}:host([hidden]){display:none}*{box-sizing:border-box}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent-hover);outline-offset:2px}svg{display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chat-view{width:100%;color:var(--text)}.chat-header{margin:0 0 18px}.chat-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text-subtle);font-size:11px;letter-spacing:.02em}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#b8c3d0}.live-dot{width:6px;height:6px;border-radius:50%;background:#6ee7a0;box-shadow:0 0 0 4px #6ee7a017}.meta-divider{width:1px;height:12px;background:#343946}.chat-header h1{margin:0;color:var(--text);font-size:clamp(28px,4vw,38px);font-weight:570;line-height:1.08;letter-spacing:-.045em}.chat-header p{max-width:720px;margin:9px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.chat-panel{display:flex;overflow:hidden;min-height:0;flex-direction:column;border:1px solid var(--border-soft);border-radius:18px;background:#14161cfa;box-shadow:0 24px 80px #0003,inset 0 1px #ffffff06}.message-list{display:flex;overflow-y:auto;min-height:0;flex:1;flex-direction:column;gap:24px;padding:28px;scrollbar-color:#343945 transparent;scrollbar-width:thin}.empty-state{display:flex;width:100%;min-height:370px;flex:none;flex-direction:column;align-items:center;justify-content:center;align-self:center;margin-block:auto;padding:16px;text-align:center}.empty-orbit{position:relative;display:grid;width:62px;height:62px;margin-bottom:21px;place-items:center;border:1px solid rgba(99,123,255,.24);border-radius:50%;color:#aab9ff;background:radial-gradient(circle,rgba(87,113,255,.22),transparent 68%),#171b25}.empty-orbit svg{width:27px}.orbit-ring{position:absolute;inset:-8px;border:1px solid rgba(96,122,255,.11);border-radius:50%}.orbit-ring:after{position:absolute;top:4px;right:7px;width:5px;height:5px;border-radius:50%;background:#7e97ff;box-shadow:0 0 12px #7e97ffe6;content:""}.empty-state h2{margin:0;color:var(--text);font-size:20px;font-weight:580;letter-spacing:-.02em}.empty-state>p{max-width:500px;margin:9px 0 22px;color:var(--text-subtle);font-size:13px;line-height:1.65}.example-list{display:grid;width:min(100%,450px);gap:8px}.example-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--border-soft);border-radius:10px;color:#c8ced7;background:#1012188c;font-size:13px;text-align:left;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.example-prompt:hover{border-color:#3c4350;color:var(--text);background:#191c23}.example-prompt svg{width:15px;flex:0 0 auto}.message-row{display:flex;align-items:flex-start;gap:12px;animation:message-in .22s ease-out both}.message-row.user{justify-content:flex-end}.avatar{display:grid;width:30px;height:30px;flex:0 0 30px;margin-top:22px;place-items:center;border:1px solid #343c4b;border-radius:9px;color:#aebcff;background:#1b1f29}.assistant-avatar svg{width:16px}.message-content{max-width:min(80%,680px);min-width:0}.message-row.user .message-content{display:flex;flex-direction:column;align-items:flex-end}.message-label{display:flex;align-items:center;gap:8px;margin:0 2px 7px;color:var(--text-subtle);font-size:11px;font-weight:570;letter-spacing:.055em;text-transform:uppercase}.streaming-label{color:#95a7f9;letter-spacing:.03em;text-transform:none}.streaming-label:before{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;content:"";animation:pulse 1.2s ease-in-out infinite}.message-bubble{display:grid;min-width:80px;gap:10px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:4px 14px 14px;color:#e8ebef;background:#1b1e26;font-size:14px;line-height:1.65}.message-row.user .message-bubble{border-color:#6882ffb8;border-radius:14px 4px 14px 14px;color:#fbfcff;background:#3453e8}.message-row.user .markdown-content{white-space:pre-wrap}.message-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #353b47;border-radius:9px;background:#0a0c1159}.message-row.user .message-file{border-color:#ffffff38;background:#09123638}.message-file-icon{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:7px;color:#b9c5ff;background:#5271ff26}.message-file-icon svg{width:16px}.message-file>span:last-child{display:grid;min-width:0;gap:1px}.message-file strong{overflow:hidden;color:#f3f5ff;font-size:12.5px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:#f0f3ff9e;font-size:10.5px}.markdown-content{min-width:0;overflow-wrap:anywhere}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p{margin:0 0 10px}.markdown-content ul,.markdown-content ol{margin:8px 0 10px;padding-left:21px}.markdown-content li+li{margin-top:4px}.markdown-content strong{color:#fff;font-weight:650}.markdown-content a{color:#9cb0ff;text-underline-offset:2px}.markdown-content code{padding:2px 5px;border:1px solid #2c313c;border-radius:5px;background:var(--surface-code);font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-content pre{overflow-x:auto;margin:12px 0;padding:12px;border:1px solid #292e38;border-radius:9px;background:var(--surface-code)}.markdown-content pre code{padding:0;border:0;background:transparent}.markdown-content blockquote{margin:12px 0;padding-left:13px;border-left:2px solid var(--accent);color:var(--text-muted)}.part-card{min-width:0;padding:12px;border:1px solid #2b303a;border-radius:10px;color:#cbd1da;background:#12141a;font-size:12.5px}.reasoning summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.reasoning summary::-webkit-details-marker{display:none}.reasoning summary strong,.tool-heading strong{display:block;color:#eef1f5;font-size:12.5px;font-weight:580}.reasoning summary small,.tool-heading small{display:block;margin-top:2px;color:var(--text-subtle);font-size:10.5px;line-height:1.4}.part-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #303641;border-radius:7px;color:#99a8da;background:#1a1d25}.part-icon svg{width:15px}.reasoning .chevron{width:15px;margin-left:auto;transition:transform .16s ease}.reasoning[open] .chevron{transform:rotate(90deg)}.part-body{margin:12px 0 1px 36px;padding-top:11px;border-top:1px solid #282d36;color:#aeb6c1}.tool-heading{display:flex;align-items:center;gap:9px}.tool summary.tool-heading{list-style:none;cursor:pointer}.tool summary.tool-heading::-webkit-details-marker{display:none}.status-pill{margin-left:auto;padding:3px 7px;border-radius:999px;font-size:10px;line-height:1.4}.status-pill.running{color:#c7d0fd;background:#5271ff29}.status-pill.complete{color:#9ce5b7;background:#4dc17521}.tool-chevron{width:15px;flex:0 0 15px;transition:transform .16s ease}.tool[open] .tool-chevron{transform:rotate(90deg)}.tool-body{margin-top:11px;padding-top:1px;border-top:1px solid #282d36}.tool-section{display:grid;gap:5px;margin-top:11px}.tool-label{color:var(--text-subtle);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.part-card pre{overflow-x:auto;margin:0;padding:9px 10px;border:1px solid #252a33;border-radius:7px;color:#c4ccda;background:#0c0e13;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}.tool-error{margin:10px 0 0;color:var(--danger)}.thinking{display:flex;align-items:center;gap:4px;min-height:21px}.thinking i{width:5px;height:5px;border-radius:50%;background:#8793a4;animation:thinking 1.2s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.12s}.thinking i:nth-child(3){animation-delay:.24s}.error-banner{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #51252a;border-radius:9px;color:var(--danger);background:#2a161a;font-size:12px}.error-banner svg{width:17px;flex:0 0 auto}.composer-area{padding:15px 18px 13px;border-top:1px solid var(--border-soft);background:#111319b8}.composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;border:1px solid #313744;border-radius:12px;background:#0f1116;transition:border-color .16s ease,box-shadow .16s ease}.composer-main{display:grid;min-width:0;flex:1;gap:7px}.composer-input{display:flex;min-width:0;align-items:flex-end;gap:8px}.composer:focus-within{border-color:#5369bd;box-shadow:0 0 0 3px #5271ff1a}.composer textarea{width:100%;min-height:37px;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;font-size:14px;line-height:1.45}.composer textarea::placeholder{color:#747d8a}.composer textarea:disabled{cursor:not-allowed;opacity:.7}.attach-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-bottom:2px;place-items:center;border:1px solid #2c323d;border-radius:8px;color:#9ca6b5;background:#171a21;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.attach-button:hover:not(:disabled){border-color:#465064;color:#cbd4e5;background:#1c2028}.attach-button:disabled{cursor:not-allowed;opacity:.4}.attach-button svg{width:17px}.pending-files{display:flex;flex-wrap:wrap;gap:6px}.pending-file{display:flex;max-width:100%;align-items:center;gap:7px;padding:6px 7px;border:1px solid #303745;border-radius:8px;color:#bac3d1;background:#171a21;font-size:11.5px}.pending-file.uploading{color:#9ca8ba}.pending-file svg{width:15px;flex:0 0 15px;color:#9bafff}.pending-file-name{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap}.pending-file-size{color:#717b8a;font-size:10.5px}.remove-file{display:grid;width:18px;height:18px;padding:0;place-items:center;border:0;border-radius:4px;color:#8993a2;background:transparent;font-size:15px;line-height:1;cursor:pointer}.remove-file:hover:not(:disabled){color:#fff;background:#303642}.remove-file:disabled{cursor:not-allowed;opacity:.4}.file-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #4a5364;border-top-color:#a4b5ff;border-radius:50%;animation:spin .7s linear infinite}.file-error{margin:0;color:var(--danger);font-size:11.5px;line-height:1.5}.file-input{display:none}.send-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--accent);cursor:pointer;transition:background .16s ease,opacity .16s ease}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button:disabled{cursor:not-allowed;opacity:.38}.send-button.stop{color:#d8dde6;background:#303540}.send-button svg{width:18px}.composer-hint{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 0;color:#6f7885;font-size:10.5px}.demo-note{margin:15px 4px 0;color:#69717d;font-size:11.5px;line-height:1.55;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}@keyframes message-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes thinking{0%,70%,to{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@keyframes pulse{0%,to{opacity:.45}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 560px){.message-list{padding:18px 14px}.message-content{max-width:calc(100% - 42px)}.composer-area{padding:12px}.composer-hint span:first-child{display:none}.pending-file-name{max-width:150px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}', DTe = ".assistant-root[data-v-d2e83636]{position:fixed;z-index:2147483000;right:10px;bottom:24px;display:flex;align-items:stretch;gap:12px;justify-content:flex-end;pointer-events:auto}.assistant-button[data-v-d2e83636]{display:inline-flex;flex-shrink:0;align-self:flex-end;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:999px;color:#fff;background:#1677ff;box-shadow:0 8px 20px #1677ff59;cursor:pointer}.assistant-button .dot[data-v-d2e83636]{width:8px;height:8px;border-radius:50%;background:#ffccc7}.assistant-button .dot.ok[data-v-d2e83636]{background:#b7eb8f}.assistant-panel[data-v-d2e83636]{display:flex;overflow:hidden;width:min(440px,calc(100vw - 24px));height:min(700px,calc(100vh - 104px));min-height:min(420px,calc(100vh - 104px));flex-direction:column;padding:18px;border:1px solid #242830;border-radius:18px;background:radial-gradient(700px 320px at 8% -8%,#304c8961,#0b0c1000 64%),#0b0c10;box-shadow:0 16px 40px #00000047}.assistant-panel[data-v-d2e83636] .chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.assistant-panel[data-v-d2e83636] .chat-panel,.assistant-panel[data-v-d2e83636] .message-list{min-height:0;flex:1}.assistant-panel[data-v-d2e83636] .empty-state{margin-block:auto}@media (max-width: 560px){.assistant-root[data-v-d2e83636]{right:8px;bottom:16px;gap:8px}.assistant-panel[data-v-d2e83636]{position:fixed;right:8px;bottom:76px;width:calc(100vw - 16px);height:calc(100vh - 96px);min-height:0;padding:12px}.assistant-button[data-v-d2e83636]{padding:10px 14px}}", NTe = (e, t) => {
64782
+ }), FTe = ':host{--page-bg: #0b0c10;--surface: #14161c;--surface-raised: #1a1d24;--surface-code: #0f1116;--border: #292e38;--border-soft: #242830;--text: #f5f6f7;--text-muted: #aab2be;--text-subtle: #7e8794;--accent: #5271ff;--accent-hover: #6a84ff;--accent-soft: rgba(82, 113, 255, .14);--danger: #f7bfbf;display:block;position:fixed;z-index:2147483000;inset:0;color:var(--text);font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color-scheme:dark;isolation:isolate;pointer-events:none}:host([hidden]){display:none}*{box-sizing:border-box}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent-hover);outline-offset:2px}svg{display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chat-view{width:100%;color:var(--text)}.chat-header{margin:0 0 18px}.chat-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text-subtle);font-size:11px;letter-spacing:.02em}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#b8c3d0}.live-dot{width:6px;height:6px;border-radius:50%;background:#6ee7a0;box-shadow:0 0 0 4px #6ee7a017}.meta-divider{width:1px;height:12px;background:#343946}.chat-header h1{margin:0;color:var(--text);font-size:clamp(28px,4vw,38px);font-weight:570;line-height:1.08;letter-spacing:-.045em}.chat-header p{max-width:720px;margin:9px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.chat-panel{display:flex;overflow:hidden;min-height:0;flex-direction:column;border:1px solid var(--border-soft);border-radius:18px;background:#14161cfa;box-shadow:0 24px 80px #0003,inset 0 1px #ffffff06}.message-list{display:flex;overflow-y:auto;min-height:0;flex:1;flex-direction:column;gap:24px;padding:28px;scrollbar-color:#343945 transparent;scrollbar-width:thin}.empty-state{display:flex;width:100%;min-height:370px;flex:none;flex-direction:column;align-items:center;justify-content:center;align-self:center;margin-block:auto;padding:16px;text-align:center}.empty-orbit{position:relative;display:grid;width:62px;height:62px;margin-bottom:21px;place-items:center;border:1px solid rgba(99,123,255,.24);border-radius:50%;color:#aab9ff;background:radial-gradient(circle,rgba(87,113,255,.22),transparent 68%),#171b25}.empty-orbit svg{width:27px}.orbit-ring{position:absolute;inset:-8px;border:1px solid rgba(96,122,255,.11);border-radius:50%}.orbit-ring:after{position:absolute;top:4px;right:7px;width:5px;height:5px;border-radius:50%;background:#7e97ff;box-shadow:0 0 12px #7e97ffe6;content:""}.empty-state h2{margin:0;color:var(--text);font-size:20px;font-weight:580;letter-spacing:-.02em}.empty-state>p{max-width:500px;margin:9px 0 22px;color:var(--text-subtle);font-size:13px;line-height:1.65}.example-list{display:grid;width:min(100%,450px);gap:8px}.example-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--border-soft);border-radius:10px;color:#c8ced7;background:#1012188c;font-size:13px;text-align:left;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.example-prompt:hover{border-color:#3c4350;color:var(--text);background:#191c23}.example-prompt svg{width:15px;flex:0 0 auto}.message-row{display:flex;align-items:flex-start;gap:12px;animation:message-in .22s ease-out both}.message-row.user{justify-content:flex-end}.avatar{display:grid;width:30px;height:30px;flex:0 0 30px;margin-top:22px;place-items:center;border:1px solid #343c4b;border-radius:9px;color:#aebcff;background:#1b1f29}.assistant-avatar svg{width:16px}.message-content{max-width:min(80%,680px);min-width:0}.message-row.user .message-content{display:flex;flex-direction:column;align-items:flex-end}.message-label{display:flex;align-items:center;gap:8px;margin:0 2px 7px;color:var(--text-subtle);font-size:11px;font-weight:570;letter-spacing:.055em;text-transform:uppercase}.streaming-label{color:#95a7f9;letter-spacing:.03em;text-transform:none}.streaming-label:before{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;content:"";animation:pulse 1.2s ease-in-out infinite}.message-bubble{display:grid;min-width:80px;gap:10px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:4px 14px 14px;color:#e8ebef;background:#1b1e26;font-size:14px;line-height:1.65}.message-row.user .message-bubble{border-color:#6882ffb8;border-radius:14px 4px 14px 14px;color:#fbfcff;background:#3453e8}.message-row.user .markdown-content{white-space:pre-wrap}.message-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #353b47;border-radius:9px;background:#0a0c1159}.message-row.user .message-file{border-color:#ffffff38;background:#09123638}.message-file-icon{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:7px;color:#b9c5ff;background:#5271ff26}.message-file-icon svg{width:16px}.message-file>span:last-child{display:grid;min-width:0;gap:1px}.message-file strong{overflow:hidden;color:#f3f5ff;font-size:12.5px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:#f0f3ff9e;font-size:10.5px}.markdown-content{min-width:0;overflow-wrap:anywhere}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p{margin:0 0 10px}.markdown-content ul,.markdown-content ol{margin:8px 0 10px;padding-left:21px}.markdown-content li+li{margin-top:4px}.markdown-content strong{color:#fff;font-weight:650}.markdown-content a{color:#9cb0ff;text-underline-offset:2px}.markdown-content code{padding:2px 5px;border:1px solid #2c313c;border-radius:5px;background:var(--surface-code);font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-content pre{overflow-x:auto;margin:12px 0;padding:12px;border:1px solid #292e38;border-radius:9px;background:var(--surface-code)}.markdown-content pre code{padding:0;border:0;background:transparent}.markdown-content blockquote{margin:12px 0;padding-left:13px;border-left:2px solid var(--accent);color:var(--text-muted)}.part-card{min-width:0;padding:12px;border:1px solid #2b303a;border-radius:10px;color:#cbd1da;background:#12141a;font-size:12.5px}.reasoning summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.reasoning summary::-webkit-details-marker{display:none}.reasoning summary strong,.tool-heading strong{display:block;color:#eef1f5;font-size:12.5px;font-weight:580}.reasoning summary small,.tool-heading small{display:block;margin-top:2px;color:var(--text-subtle);font-size:10.5px;line-height:1.4}.part-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #303641;border-radius:7px;color:#99a8da;background:#1a1d25}.part-icon svg{width:15px}.reasoning .chevron{width:15px;margin-left:auto;transition:transform .16s ease}.reasoning[open] .chevron{transform:rotate(90deg)}.part-body{margin:12px 0 1px 36px;padding-top:11px;border-top:1px solid #282d36;color:#aeb6c1}.tool-heading{display:flex;align-items:center;gap:9px}.tool summary.tool-heading{list-style:none;cursor:pointer}.tool summary.tool-heading::-webkit-details-marker{display:none}.status-pill{margin-left:auto;padding:3px 7px;border-radius:999px;font-size:10px;line-height:1.4}.status-pill.running{color:#c7d0fd;background:#5271ff29}.status-pill.complete{color:#9ce5b7;background:#4dc17521}.tool-chevron{width:15px;flex:0 0 15px;transition:transform .16s ease}.tool[open] .tool-chevron{transform:rotate(90deg)}.tool-body{margin-top:11px;padding-top:1px;border-top:1px solid #282d36}.tool-section{display:grid;gap:5px;margin-top:11px}.tool-label{color:var(--text-subtle);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.part-card pre{overflow-x:auto;margin:0;padding:9px 10px;border:1px solid #252a33;border-radius:7px;color:#c4ccda;background:#0c0e13;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}.tool-error{margin:10px 0 0;color:var(--danger)}.thinking{display:flex;align-items:center;gap:4px;min-height:21px}.thinking i{width:5px;height:5px;border-radius:50%;background:#8793a4;animation:thinking 1.2s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.12s}.thinking i:nth-child(3){animation-delay:.24s}.error-banner{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #51252a;border-radius:9px;color:var(--danger);background:#2a161a;font-size:12px}.error-banner svg{width:17px;flex:0 0 auto}.composer-area{padding:15px 18px 13px;border-top:1px solid var(--border-soft);background:#111319b8}.composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;border:1px solid #313744;border-radius:12px;background:#0f1116;transition:border-color .16s ease,box-shadow .16s ease}.composer-main{display:grid;min-width:0;flex:1;gap:7px}.composer-input{display:flex;min-width:0;align-items:flex-end;gap:8px}.composer:focus-within{border-color:#5369bd;box-shadow:0 0 0 3px #5271ff1a}.composer textarea{width:100%;min-height:37px;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;font-size:14px;line-height:1.45}.composer textarea::placeholder{color:#747d8a}.composer textarea:disabled{cursor:not-allowed;opacity:.7}.attach-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-bottom:2px;place-items:center;border:1px solid #2c323d;border-radius:8px;color:#9ca6b5;background:#171a21;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.attach-button:hover:not(:disabled){border-color:#465064;color:#cbd4e5;background:#1c2028}.attach-button:disabled{cursor:not-allowed;opacity:.4}.attach-button svg{width:17px}.pending-files{display:flex;flex-wrap:wrap;gap:6px}.pending-file{display:flex;max-width:100%;align-items:center;gap:7px;padding:6px 7px;border:1px solid #303745;border-radius:8px;color:#bac3d1;background:#171a21;font-size:11.5px}.pending-file.uploading{color:#9ca8ba}.pending-file svg{width:15px;flex:0 0 15px;color:#9bafff}.pending-file-name{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap}.pending-file-size{color:#717b8a;font-size:10.5px}.remove-file{display:grid;width:18px;height:18px;padding:0;place-items:center;border:0;border-radius:4px;color:#8993a2;background:transparent;font-size:15px;line-height:1;cursor:pointer}.remove-file:hover:not(:disabled){color:#fff;background:#303642}.remove-file:disabled{cursor:not-allowed;opacity:.4}.file-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #4a5364;border-top-color:#a4b5ff;border-radius:50%;animation:spin .7s linear infinite}.file-error{margin:0;color:var(--danger);font-size:11.5px;line-height:1.5}.file-input{display:none}.send-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--accent);cursor:pointer;transition:background .16s ease,opacity .16s ease}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button:disabled{cursor:not-allowed;opacity:.38}.send-button.stop{color:#d8dde6;background:#303540}.send-button svg{width:18px}.composer-hint{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 0;color:#6f7885;font-size:10.5px}.demo-note{margin:15px 4px 0;color:#69717d;font-size:11.5px;line-height:1.55;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}@keyframes message-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes thinking{0%,70%,to{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@keyframes pulse{0%,to{opacity:.45}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 560px){.message-list{padding:18px 14px}.message-content{max-width:calc(100% - 42px)}.composer-area{padding:12px}.composer-hint span:first-child{display:none}.pending-file-name{max-width:150px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}', zTe = ".assistant-root[data-v-d2e83636]{position:fixed;z-index:2147483000;right:10px;bottom:24px;display:flex;align-items:stretch;gap:12px;justify-content:flex-end;pointer-events:auto}.assistant-button[data-v-d2e83636]{display:inline-flex;flex-shrink:0;align-self:flex-end;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:999px;color:#fff;background:#1677ff;box-shadow:0 8px 20px #1677ff59;cursor:pointer}.assistant-button .dot[data-v-d2e83636]{width:8px;height:8px;border-radius:50%;background:#ffccc7}.assistant-button .dot.ok[data-v-d2e83636]{background:#b7eb8f}.assistant-panel[data-v-d2e83636]{display:flex;overflow:hidden;width:min(440px,calc(100vw - 24px));height:min(700px,calc(100vh - 104px));min-height:min(420px,calc(100vh - 104px));flex-direction:column;padding:18px;border:1px solid #242830;border-radius:18px;background:radial-gradient(700px 320px at 8% -8%,#304c8961,#0b0c1000 64%),#0b0c10;box-shadow:0 16px 40px #00000047}.assistant-panel[data-v-d2e83636] .chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.assistant-panel[data-v-d2e83636] .chat-panel,.assistant-panel[data-v-d2e83636] .message-list{min-height:0;flex:1}.assistant-panel[data-v-d2e83636] .empty-state{margin-block:auto}@media (max-width: 560px){.assistant-root[data-v-d2e83636]{right:8px;bottom:16px;gap:8px}.assistant-panel[data-v-d2e83636]{position:fixed;right:8px;bottom:76px;width:calc(100vw - 16px);height:calc(100vh - 96px);min-height:0;padding:12px}.assistant-button[data-v-d2e83636]{padding:10px 14px}}", LTe = (e, t) => {
64735
64783
  const n = e.__vccOpts || e;
64736
64784
  for (const [r, o] of t)
64737
64785
  n[r] = o;
64738
64786
  return n;
64739
- }, jTe = /* @__PURE__ */ NTe(MTe, [["styles", [$Te, DTe]], ["__scopeId", "data-v-d2e83636"]]);
64740
- function FTe(e) {
64787
+ }, BTe = /* @__PURE__ */ LTe(jTe, [["styles", [FTe, zTe]], ["__scopeId", "data-v-d2e83636"]]);
64788
+ function UTe(e) {
64741
64789
  return { ...e, kind: "agent-tool" };
64742
64790
  }
64743
- const xOe = FTe, zTe = jTe;
64744
- function ROe() {
64745
- return /* @__PURE__ */ D5(zTe);
64791
+ const POe = UTe, KTe = BTe;
64792
+ function COe() {
64793
+ return /* @__PURE__ */ D5(KTe);
64746
64794
  }
64747
64795
  export {
64748
64796
  Gte as A,
64797
+ Jge as B,
64749
64798
  npe as C,
64750
- hTe as D,
64799
+ _Te as D,
64800
+ GTe as E,
64751
64801
  ho as M,
64752
64802
  AP as R,
64753
64803
  nD as S,
64754
64804
  O as U,
64755
- UTe as a,
64805
+ HTe as a,
64756
64806
  zo as b,
64757
64807
  ws as c,
64758
64808
  _s as d,
64759
64809
  hi as e,
64760
64810
  DE as f,
64761
- zTe as g,
64762
- ROe as h,
64811
+ KTe as g,
64812
+ COe as h,
64763
64813
  em as i,
64764
- _Te as j,
64814
+ vTe as j,
64765
64815
  n6 as k,
64766
- kTe as l,
64767
- _L as m,
64816
+ yTe as l,
64817
+ hTe as m,
64768
64818
  Se as n,
64769
64819
  J as o,
64770
64820
  Bb as p,
64771
- FTe as q,
64821
+ gTe as q,
64772
64822
  rpe as r,
64773
64823
  k as s,
64774
64824
  fl as t,
64775
- xOe as u,
64776
- Jge as v,
64825
+ mTe as u,
64826
+ MTe as v,
64777
64827
  Zn as w,
64778
- KTe as x
64828
+ _L as x,
64829
+ UTe as y,
64830
+ POe as z
64779
64831
  };