@pagelines/sdk 1.0.774 → 1.0.776

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/contract.js CHANGED
@@ -2988,7 +2988,11 @@ var C = /*@__PURE__*/ $constructor("ZodStringFormat", (e, t) => {
2988
2988
  y.init(e, t), dn.init(e, t);
2989
2989
  }), pn = /*@__PURE__*/ $constructor("ZodEmail", (e, t) => {
2990
2990
  Ye.init(e, t), C.init(e, t);
2991
- }), mn = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
2991
+ });
2992
+ function email(e) {
2993
+ return /* @__PURE__ */ _email(pn, e);
2994
+ }
2995
+ var mn = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
2992
2996
  qe.init(e, t), C.init(e, t);
2993
2997
  }), w = /*@__PURE__*/ $constructor("ZodUUID", (e, t) => {
2994
2998
  Je.init(e, t), C.init(e, t);
@@ -3191,10 +3195,10 @@ var zn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
3191
3195
  return omit(this, e);
3192
3196
  },
3193
3197
  partial(...e) {
3194
- return partial(Kn, this, e[0]);
3198
+ return partial(qn, this, e[0]);
3195
3199
  },
3196
3200
  required(...e) {
3197
- return required(Zn, this, e[0]);
3201
+ return required(Qn, this, e[0]);
3198
3202
  }
3199
3203
  });
3200
3204
  });
@@ -3252,14 +3256,14 @@ function record(e, t, n) {
3252
3256
  ...normalizeParams(n)
3253
3257
  });
3254
3258
  }
3255
- var T = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3259
+ var Wn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3256
3260
  At.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => enumProcessor(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
3257
3261
  let n = new Set(Object.keys(t.entries));
3258
3262
  e.extract = (e, r) => {
3259
3263
  let i = {};
3260
3264
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
3261
3265
  else throw Error(`Key ${r} not found in enum`);
3262
- return new T({
3266
+ return new Wn({
3263
3267
  ...t,
3264
3268
  checks: [],
3265
3269
  ...normalizeParams(r),
@@ -3269,7 +3273,7 @@ var T = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3269
3273
  let i = { ...t.entries };
3270
3274
  for (let t of e) if (n.has(t)) delete i[t];
3271
3275
  else throw Error(`Key ${t} not found in enum`);
3272
- return new T({
3276
+ return new Wn({
3273
3277
  ...t,
3274
3278
  checks: [],
3275
3279
  ...normalizeParams(r),
@@ -3278,26 +3282,26 @@ var T = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3278
3282
  };
3279
3283
  });
3280
3284
  function _enum(e, t) {
3281
- return new T({
3285
+ return new Wn({
3282
3286
  type: "enum",
3283
3287
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
3284
3288
  ...normalizeParams(t)
3285
3289
  });
3286
3290
  }
3287
- var Wn = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
3291
+ var Gn = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
3288
3292
  jt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => literalProcessor(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
3289
3293
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
3290
3294
  return t.values[0];
3291
3295
  } });
3292
3296
  });
3293
3297
  function literal(e, t) {
3294
- return new Wn({
3298
+ return new Gn({
3295
3299
  type: "literal",
3296
3300
  values: Array.isArray(e) ? e : [e],
3297
3301
  ...normalizeParams(t)
3298
3302
  });
3299
3303
  }
3300
- var Gn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3304
+ var Kn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3301
3305
  Mt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
3302
3306
  if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
3303
3307
  n.addIssue = (r) => {
@@ -3312,43 +3316,43 @@ var Gn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3312
3316
  };
3313
3317
  });
3314
3318
  function transform(e) {
3315
- return new Gn({
3319
+ return new Kn({
3316
3320
  type: "transform",
3317
3321
  transform: e
3318
3322
  });
3319
3323
  }
3320
- var Kn = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
3324
+ var qn = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
3321
3325
  Nt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3322
3326
  });
3323
3327
  function optional(e) {
3324
- return new Kn({
3328
+ return new qn({
3325
3329
  type: "optional",
3326
3330
  innerType: e
3327
3331
  });
3328
3332
  }
3329
- var qn = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
3333
+ var Jn = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
3330
3334
  Pt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3331
3335
  });
3332
3336
  function exactOptional(e) {
3333
- return new qn({
3337
+ return new Jn({
3334
3338
  type: "optional",
3335
3339
  innerType: e
3336
3340
  });
3337
3341
  }
3338
- var Jn = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
3342
+ var Yn = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
3339
3343
  Ft.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3340
3344
  });
3341
3345
  function nullable(e) {
3342
- return new Jn({
3346
+ return new Yn({
3343
3347
  type: "nullable",
3344
3348
  innerType: e
3345
3349
  });
3346
3350
  }
3347
- var Yn = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
3351
+ var Xn = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
3348
3352
  It.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3349
3353
  });
3350
3354
  function _default(e, t) {
3351
- return new Yn({
3355
+ return new Xn({
3352
3356
  type: "default",
3353
3357
  innerType: e,
3354
3358
  get defaultValue() {
@@ -3356,11 +3360,11 @@ function _default(e, t) {
3356
3360
  }
3357
3361
  });
3358
3362
  }
3359
- var Xn = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
3363
+ var Zn = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
3360
3364
  Lt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3361
3365
  });
3362
3366
  function prefault(e, t) {
3363
- return new Xn({
3367
+ return new Zn({
3364
3368
  type: "prefault",
3365
3369
  innerType: e,
3366
3370
  get defaultValue() {
@@ -3368,58 +3372,58 @@ function prefault(e, t) {
3368
3372
  }
3369
3373
  });
3370
3374
  }
3371
- var Zn = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
3375
+ var Qn = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
3372
3376
  Rt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3373
3377
  });
3374
3378
  function nonoptional(e, t) {
3375
- return new Zn({
3379
+ return new Qn({
3376
3380
  type: "nonoptional",
3377
3381
  innerType: e,
3378
3382
  ...normalizeParams(t)
3379
3383
  });
3380
3384
  }
3381
- var Qn = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
3385
+ var $n = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
3382
3386
  zt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3383
3387
  });
3384
3388
  function _catch(e, t) {
3385
- return new Qn({
3389
+ return new $n({
3386
3390
  type: "catch",
3387
3391
  innerType: e,
3388
3392
  catchValue: typeof t == "function" ? t : () => t
3389
3393
  });
3390
3394
  }
3391
- var $n = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
3395
+ var er = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
3392
3396
  Bt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
3393
3397
  });
3394
3398
  function pipe(e, t) {
3395
- return new $n({
3399
+ return new er({
3396
3400
  type: "pipe",
3397
3401
  in: e,
3398
3402
  out: t
3399
3403
  });
3400
3404
  }
3401
- var er = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
3402
- $n.init(e, t), Vt.init(e, t);
3403
- }), tr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
3405
+ var tr = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
3406
+ er.init(e, t), Vt.init(e, t);
3407
+ }), nr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
3404
3408
  Ht.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3405
3409
  });
3406
3410
  function readonly(e) {
3407
- return new tr({
3411
+ return new nr({
3408
3412
  type: "readonly",
3409
3413
  innerType: e
3410
3414
  });
3411
3415
  }
3412
- var nr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
3416
+ var rr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
3413
3417
  Ut.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
3414
3418
  });
3415
3419
  function refine(e, t = {}) {
3416
- return /* @__PURE__ */ _refine(nr, e, t);
3420
+ return /* @__PURE__ */ _refine(rr, e, t);
3417
3421
  }
3418
3422
  function superRefine(e, t) {
3419
3423
  return /* @__PURE__ */ _superRefine(e, t);
3420
3424
  }
3421
3425
  function preprocess(e, t) {
3422
- return new er({
3426
+ return new tr({
3423
3427
  type: "pipe",
3424
3428
  in: transform(e),
3425
3429
  out: t
@@ -3427,15 +3431,15 @@ function preprocess(e, t) {
3427
3431
  }
3428
3432
  //#endregion
3429
3433
  //#region ../core/dist/heartbeat.js
3430
- var rr = _enum([
3434
+ var ir = _enum([
3431
3435
  "briefing",
3432
3436
  "checkin",
3433
3437
  "closeout"
3434
- ]), E = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ir = {
3438
+ ]), T = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ar = {
3435
3439
  briefing: "07:30",
3436
3440
  checkin: "12:30",
3437
3441
  closeout: "17:30"
3438
- }, D = globalThis.process, O = typeof window < "u", k = D !== void 0 && !O, A = O ? typeof window < "u" && window.location && !window.location.hostname.includes("localhost") : k && D !== void 0 && D.env?.NODE_ENV === "production", ar = !A, j = {
3442
+ }, E = globalThis.process, D = typeof window < "u", O = E !== void 0 && !D, k = D ? typeof window < "u" && window.location && !window.location.hostname.includes("localhost") : O && E !== void 0 && E.env?.NODE_ENV === "production", or = !k, A = {
3439
3443
  error: {
3440
3444
  priority: 50,
3441
3445
  color: "#FF0000",
@@ -3461,7 +3465,7 @@ var rr = _enum([
3461
3465
  color: "#5233FF",
3462
3466
  nodeColor: "\x1B[35m"
3463
3467
  }
3464
- }, or = [
3468
+ }, sr = [
3465
3469
  "password",
3466
3470
  "token",
3467
3471
  "secret",
@@ -3471,11 +3475,11 @@ var rr = _enum([
3471
3475
  ];
3472
3476
  function isSensitiveKey(e) {
3473
3477
  let t = e.toLowerCase().replace(/[^a-z0-9]/g, "");
3474
- if (or.includes(t)) return !0;
3478
+ if (sr.includes(t)) return !0;
3475
3479
  let n = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
3476
- return or.some((e) => n.includes(e));
3480
+ return sr.some((e) => n.includes(e));
3477
3481
  }
3478
- var sr = /* @__PURE__ */ new Set([
3482
+ var cr = /* @__PURE__ */ new Set([
3479
3483
  "CONNECT_TIMEOUT",
3480
3484
  "ECONNREFUSED",
3481
3485
  "ECONNRESET",
@@ -3487,34 +3491,34 @@ var sr = /* @__PURE__ */ new Set([
3487
3491
  function infraErrorCode(e, t = 0) {
3488
3492
  if (t > 4 || !(e instanceof Error)) return;
3489
3493
  let n = e.code;
3490
- return typeof n == "string" && sr.has(n) ? n : infraErrorCode(e.cause, t + 1);
3494
+ return typeof n == "string" && cr.has(n) ? n : infraErrorCode(e.cause, t + 1);
3491
3495
  }
3492
3496
  function firstAppFrame(e) {
3493
3497
  if (e) return e.split("\n").find((e) => (e.includes("/src/") || e.includes("/packages/")) && !e.includes("node_modules"))?.trim();
3494
3498
  }
3495
- var M = class Logger {
3499
+ var j = class Logger {
3496
3500
  constructor(e = {}, t) {
3497
3501
  this.enabledInBrowser = !1, this.context = t, this.settings = {
3498
3502
  enabled: e.enabled ?? !0,
3499
3503
  minLevel: e.minLevel ?? this.getDefaultLevel(),
3500
3504
  timestamps: e.timestamps ?? !0
3501
- }, O && this.initBrowserLogging();
3505
+ }, D && this.initBrowserLogging();
3502
3506
  }
3503
3507
  getDefaultLevel() {
3504
- if (k && D !== void 0 && D.env?.LOG_LEVEL) return D.env.LOG_LEVEL;
3505
- if (O && typeof localStorage < "u" && typeof localStorage.getItem == "function") {
3508
+ if (O && E !== void 0 && E.env?.LOG_LEVEL) return E.env.LOG_LEVEL;
3509
+ if (D && typeof localStorage < "u" && typeof localStorage.getItem == "function") {
3506
3510
  let e = localStorage.getItem("PAGELINES_LOG_LEVEL");
3507
3511
  if (e) return e;
3508
3512
  }
3509
3513
  return "info";
3510
3514
  }
3511
3515
  initBrowserLogging() {
3512
- if (!O) return;
3516
+ if (!D) return;
3513
3517
  let e = typeof localStorage?.getItem == "function" && localStorage.getItem("PAGELINES_LOG") === "true", t = window.location?.hostname || "";
3514
- this.enabledInBrowser = ar || e || t === "localhost" || t.includes("127.0.0.1"), A && !e && !Logger.hasShownHelp && (console.log("%cPageLines Logger (disabled in production)", "color: #888; font-size: 12px"), console.log("%cTo enable: localStorage.setItem(\"PAGELINES_LOG\", \"true\")", "color: #888; font-size: 11px"), Logger.hasShownHelp = !0);
3518
+ this.enabledInBrowser = or || e || t === "localhost" || t.includes("127.0.0.1"), k && !e && !Logger.hasShownHelp && (console.log("%cPageLines Logger (disabled in production)", "color: #888; font-size: 12px"), console.log("%cTo enable: localStorage.setItem(\"PAGELINES_LOG\", \"true\")", "color: #888; font-size: 11px"), Logger.hasShownHelp = !0);
3515
3519
  }
3516
3520
  shouldLog(e) {
3517
- return !this.settings.enabled || O && !this.enabledInBrowser ? !1 : j[e].priority >= j[this.settings.minLevel].priority;
3521
+ return !this.settings.enabled || D && !this.enabledInBrowser ? !1 : A[e].priority >= A[this.settings.minLevel].priority;
3518
3522
  }
3519
3523
  formatTimestamp() {
3520
3524
  return (/* @__PURE__ */ new Date()).toLocaleTimeString("en-GB", {
@@ -3550,16 +3554,16 @@ var M = class Logger {
3550
3554
  let i = {
3551
3555
  name: e.name,
3552
3556
  message: e.message,
3553
- stack: A ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
3557
+ stack: k ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
3554
3558
  };
3555
3559
  for (let [r, a] of Object.entries(e)) i[r] = this.formatData(a, t, n + 1);
3556
3560
  return "cause" in e && (i.cause = this.formatData(e.cause, t, n + 1)), this.redactSensitive(i);
3557
3561
  }
3558
3562
  if (e instanceof Date) return e.toISOString();
3559
3563
  if (typeof e != "object") return e;
3560
- if (Array.isArray(e)) return e.length > 20 && A ? `Array(${e.length}) [${e.slice(0, 3).map((e) => this.formatData(e, t, n + 1)).join(", ")}, ...]` : e.map((e) => this.formatData(e, t, n + 1));
3564
+ if (Array.isArray(e)) return e.length > 20 && k ? `Array(${e.length}) [${e.slice(0, 3).map((e) => this.formatData(e, t, n + 1)).join(", ")}, ...]` : e.map((e) => this.formatData(e, t, n + 1));
3561
3565
  try {
3562
- let r = {}, i = Object.entries(e), a = A ? 50 : 200;
3566
+ let r = {}, i = Object.entries(e), a = k ? 50 : 200;
3563
3567
  for (let [e, o] of i.slice(0, a)) r[e] = this.formatData(o, t, n + 1);
3564
3568
  return i.length > a && (r["..."] = `${i.length - a} more properties`), this.redactSensitive(r);
3565
3569
  } catch {
@@ -3567,14 +3571,14 @@ var M = class Logger {
3567
3571
  }
3568
3572
  }
3569
3573
  logToBrowser(e) {
3570
- if (!O || !this.shouldLog(e.level)) return;
3571
- let { level: t, description: n, context: r, data: i, error: a } = e, o = j[t], s = `[${r || this.context || "www"}] ${t.toUpperCase()}:`, c = `color: ${o.color}; font-weight: bold;`;
3574
+ if (!D || !this.shouldLog(e.level)) return;
3575
+ let { level: t, description: n, context: r, data: i, error: a } = e, o = A[t], s = `[${r || this.context || "www"}] ${t.toUpperCase()}:`, c = `color: ${o.color}; font-weight: bold;`;
3572
3576
  i === void 0 ? console[t](`%c${s}`, c, n) : console[t](`%c${s}`, c, n, this.formatData(i)), a && (a instanceof Error ? console.error(a) : console.error("Error details:", a));
3573
3577
  }
3574
3578
  logToNode(e) {
3575
- if (!k || !this.shouldLog(e.level)) return;
3579
+ if (!O || !this.shouldLog(e.level)) return;
3576
3580
  let { level: t, description: n, context: r, data: i, error: a } = e, o = r || this.context || "www";
3577
- if (A) {
3581
+ if (k) {
3578
3582
  let e = {
3579
3583
  timestamp: this.formatISOTimestamp(),
3580
3584
  level: t.toUpperCase(),
@@ -3586,12 +3590,12 @@ var M = class Logger {
3586
3590
  let r = JSON.stringify(e);
3587
3591
  t === "trace" ? console.log(r) : console[t](r);
3588
3592
  } else {
3589
- let e = j[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
3593
+ let e = A[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
3590
3594
  console[t](c), i !== void 0 && console.log(JSON.stringify(this.formatData(i), null, 2)), a && (a instanceof Error ? (console.error(`\x1B[31mError:${s}`, a.message), a.stack && console.error(`\x1B[90m${a.stack}${s}`)) : console.error("Error:", a));
3591
3595
  }
3592
3596
  }
3593
3597
  log(e) {
3594
- O ? this.logToBrowser(e) : k && this.logToNode(e);
3598
+ D ? this.logToBrowser(e) : O && this.logToNode(e);
3595
3599
  }
3596
3600
  error(e, t) {
3597
3601
  this.log({
@@ -3634,7 +3638,7 @@ var M = class Logger {
3634
3638
  });
3635
3639
  }
3636
3640
  isEnabled() {
3637
- return !O || this.enabledInBrowser;
3641
+ return !D || this.enabledInBrowser;
3638
3642
  }
3639
3643
  setLevel(e) {
3640
3644
  this.settings.minLevel = e;
@@ -3652,11 +3656,11 @@ var M = class Logger {
3652
3656
  };
3653
3657
  }
3654
3658
  };
3655
- M.hasShownHelp = !1;
3659
+ j.hasShownHelp = !1;
3656
3660
  function createLogger(e) {
3657
- return new M({}, e);
3661
+ return new j({}, e);
3658
3662
  }
3659
- var N = new M(), cr = N.error.bind(N), lr = N.warn.bind(N), ur = N.info.bind(N), dr = N.debug.bind(N), fr = N.trace.bind(N), SettingsObject = class {
3663
+ var M = new j(), lr = M.error.bind(M), ur = M.warn.bind(M), dr = M.info.bind(M), fr = M.debug.bind(M), pr = M.trace.bind(M), SettingsObject = class {
3660
3664
  constructor(e, t) {
3661
3665
  this.objectName = e, this.settings = t, this.logger = createLogger(e);
3662
3666
  }
@@ -3684,7 +3688,7 @@ function uuid() {
3684
3688
  }
3685
3689
  //#endregion
3686
3690
  //#region ../core/dist/utils/color.js
3687
- var pr = {
3691
+ var mr = {
3688
3692
  green: {
3689
3693
  50: "oklch(98.2% 0.018 155.826)",
3690
3694
  100: "oklch(96.2% 0.044 156.743)",
@@ -3817,7 +3821,7 @@ var pr = {
3817
3821
  }
3818
3822
  };
3819
3823
  function getColorSchemeOklch(e) {
3820
- return pr[e] || pr.blue;
3824
+ return mr[e] || mr.blue;
3821
3825
  }
3822
3826
  //#endregion
3823
3827
  //#region ../core/dist/utils/cookies.js
@@ -3890,7 +3894,7 @@ var CookieUtil = class {
3890
3894
  getDeviceId() {
3891
3895
  return this.getCookie(this.deviceIdName);
3892
3896
  }
3893
- }, mr = new CookieUtil(), P = {
3897
+ }, hr = new CookieUtil(), N = {
3894
3898
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
3895
3899
  AUTH_INVALID_CODE: "That code didn't work. Request a new one or try again.",
3896
3900
  AUTH_LOCKED_OUT: "Too many attempts. Request a new code.",
@@ -3906,16 +3910,16 @@ var CookieUtil = class {
3906
3910
  AUTH_UNKNOWN: "Something went wrong. Try again."
3907
3911
  };
3908
3912
  function mapAuthErrorCode(e) {
3909
- return e ? P[e] ?? P.AUTH_UNKNOWN : P.AUTH_UNKNOWN;
3913
+ return e ? N[e] ?? N.AUTH_UNKNOWN : N.AUTH_UNKNOWN;
3910
3914
  }
3911
3915
  function authErrorMessage(e) {
3912
- return e.code ? mapAuthErrorCode(e.code) : e.error || P.AUTH_UNKNOWN;
3916
+ return e.code ? mapAuthErrorCode(e.code) : e.error || N.AUTH_UNKNOWN;
3913
3917
  }
3914
3918
  var AuthApiError = class extends Error {
3915
3919
  constructor(e, t) {
3916
3920
  super(e), this.name = "AuthApiError", this.code = t;
3917
3921
  }
3918
- }, hr = object({
3922
+ }, gr = object({
3919
3923
  platform: _enum([
3920
3924
  "linkedin",
3921
3925
  "x",
@@ -3932,38 +3936,38 @@ var AuthApiError = class extends Error {
3932
3936
  ]),
3933
3937
  handle: string(),
3934
3938
  url: string().optional()
3935
- }), gr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(hr)), _r = [
3939
+ }), _r = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(gr)), vr = [
3936
3940
  "image",
3937
3941
  "audio",
3938
3942
  "video",
3939
3943
  "document"
3940
- ], F = _enum(_r), vr = [
3944
+ ], P = _enum(vr), yr = [
3941
3945
  "avatar",
3942
3946
  "cover",
3943
3947
  "general"
3944
- ], yr = _enum(vr), br = _enum([
3948
+ ], br = _enum(yr), xr = _enum([
3945
3949
  "processing",
3946
3950
  "active",
3947
3951
  "failed",
3948
3952
  "deleted"
3949
- ]), xr = _enum([
3953
+ ]), Sr = _enum([
3950
3954
  "low",
3951
3955
  "standard",
3952
3956
  "high"
3953
- ]), Sr = _enum([
3957
+ ]), Cr = _enum([
3954
3958
  "jpg",
3955
3959
  "jpeg",
3956
3960
  "png",
3957
3961
  "gif",
3958
3962
  "webp",
3959
3963
  "svg"
3960
- ]), Cr = _enum([
3964
+ ]), wr = _enum([
3961
3965
  "mp4",
3962
3966
  "webm",
3963
3967
  "ogg",
3964
3968
  "mov",
3965
3969
  "avi"
3966
- ]), wr = _enum([
3970
+ ]), Tr = _enum([
3967
3971
  "mp3",
3968
3972
  "wav",
3969
3973
  "ogg",
@@ -3973,7 +3977,7 @@ var AuthApiError = class extends Error {
3973
3977
  "webm",
3974
3978
  "m4a",
3975
3979
  "mp4"
3976
- ]), I = object({
3980
+ ]), F = object({
3977
3981
  mediaId: string(),
3978
3982
  userId: string(),
3979
3983
  orgId: string(),
@@ -3983,56 +3987,56 @@ var AuthApiError = class extends Error {
3983
3987
  size: number(),
3984
3988
  src: string(),
3985
3989
  alt: string().optional(),
3986
- context: yr.default("general"),
3987
- status: br.default("processing"),
3988
- quality: xr.default("standard"),
3990
+ context: br.default("general"),
3991
+ status: xr.default("processing"),
3992
+ quality: Sr.default("standard"),
3989
3993
  createdAt: string().optional(),
3990
3994
  updatedAt: string().optional()
3991
3995
  }).extend({
3992
- type: F.optional(),
3993
- mediaType: F.optional(),
3996
+ type: P.optional(),
3997
+ mediaType: P.optional(),
3994
3998
  className: string().optional(),
3995
3999
  width: number().optional(),
3996
4000
  height: number().optional(),
3997
4001
  duration: number().optional(),
3998
4002
  blurhash: string().optional()
3999
- }).partial(), Tr = object({
4003
+ }).partial(), Er = object({
4000
4004
  duration: number().optional(),
4001
4005
  thumbnail: string().optional(),
4002
4006
  autoplay: boolean().optional(),
4003
4007
  loop: boolean().optional(),
4004
4008
  muted: boolean().optional(),
4005
4009
  controls: boolean().optional()
4006
- }), Er = object({
4010
+ }), Dr = object({
4007
4011
  duration: number().optional(),
4008
4012
  autoplay: boolean().optional(),
4009
4013
  loop: boolean().optional(),
4010
4014
  muted: boolean().optional(),
4011
4015
  controls: boolean().optional()
4012
- }), Dr = I.extend({
4016
+ }), Or = F.extend({
4013
4017
  mediaType: literal("image"),
4014
- imageFormat: Sr.optional()
4015
- }), Or = I.extend({
4018
+ imageFormat: Cr.optional()
4019
+ }), kr = F.extend({
4016
4020
  mediaType: literal("video"),
4017
- videoFormat: Cr.optional(),
4018
- video: Tr.optional()
4019
- }), kr = I.extend({
4021
+ videoFormat: wr.optional(),
4022
+ video: Er.optional()
4023
+ }), Ar = F.extend({
4020
4024
  mediaType: literal("audio"),
4021
- audioFormat: wr.optional(),
4022
- audio: Er.optional()
4023
- }), Ar = I.extend({ mediaType: literal("document") }), jr = discriminatedUnion("mediaType", [
4024
- Dr,
4025
+ audioFormat: Tr.optional(),
4026
+ audio: Dr.optional()
4027
+ }), jr = F.extend({ mediaType: literal("document") }), Mr = discriminatedUnion("mediaType", [
4025
4028
  Or,
4026
4029
  kr,
4027
- Ar
4028
- ]), L = _enum([
4030
+ Ar,
4031
+ jr
4032
+ ]), Nr = _enum([
4029
4033
  "xxs",
4030
4034
  "xs",
4031
4035
  "sm",
4032
4036
  "md",
4033
4037
  "lg",
4034
4038
  "xl"
4035
- ]), Mr = _enum([
4039
+ ]), Pr = _enum([
4036
4040
  "primary",
4037
4041
  "default",
4038
4042
  "overlay",
@@ -4040,20 +4044,20 @@ var AuthApiError = class extends Error {
4040
4044
  "green",
4041
4045
  "indigo",
4042
4046
  "orange"
4043
- ]), Nr = _enum([
4047
+ ]), Fr = _enum([
4044
4048
  "ghost",
4045
4049
  "link",
4046
4050
  "outline",
4047
4051
  "solid"
4048
- ]), R = object({
4052
+ ]), I = object({
4049
4053
  key: string().optional(),
4050
4054
  label: string().optional(),
4051
4055
  href: string().optional(),
4052
- size: L.optional(),
4053
- theme: Mr.optional(),
4054
- design: Nr.optional(),
4055
- icon: union([string(), I]).optional(),
4056
- iconAfter: union([string(), I]).optional(),
4056
+ size: Nr.optional(),
4057
+ theme: Pr.optional(),
4058
+ design: Fr.optional(),
4059
+ icon: union([string(), F]).optional(),
4060
+ iconAfter: union([string(), F]).optional(),
4057
4061
  rounding: _enum([
4058
4062
  "full",
4059
4063
  "md",
@@ -4070,12 +4074,12 @@ var AuthApiError = class extends Error {
4070
4074
  "submit",
4071
4075
  "reset"
4072
4076
  ]).optional()
4073
- }), Pr = object({
4074
- buttons: array(R).optional(),
4075
- size: L.optional(),
4076
- theme: Mr.optional(),
4077
- design: Nr.optional()
4078
- }), Fr = object({
4077
+ }), Ir = object({
4078
+ buttons: array(I).optional(),
4079
+ size: Nr.optional(),
4080
+ theme: Pr.optional(),
4081
+ design: Fr.optional()
4082
+ }), Lr = object({
4079
4083
  key: string().optional(),
4080
4084
  id: string().optional(),
4081
4085
  label: string().optional(),
@@ -4086,11 +4090,11 @@ var AuthApiError = class extends Error {
4086
4090
  info: string().optional(),
4087
4091
  count: number().optional(),
4088
4092
  className: string().optional(),
4089
- media: I.optional(),
4090
- subMedia: I.optional(),
4091
- cover: I.optional(),
4092
- icon: I.optional(),
4093
- iconAfter: I.optional(),
4093
+ media: F.optional(),
4094
+ subMedia: F.optional(),
4095
+ cover: F.optional(),
4096
+ icon: F.optional(),
4097
+ iconAfter: F.optional(),
4094
4098
  subIcon: string().optional(),
4095
4099
  href: string().optional(),
4096
4100
  target: _enum(["_self", "_blank"]).optional(),
@@ -4102,14 +4106,14 @@ var AuthApiError = class extends Error {
4102
4106
  priority: number().optional(),
4103
4107
  testId: string().optional(),
4104
4108
  items: array(any()).optional(),
4105
- badges: array(R).optional(),
4106
- meta: array(R).optional(),
4109
+ badges: array(I).optional(),
4110
+ meta: array(I).optional(),
4107
4111
  menuItems: array(any()).optional()
4108
- }), Ir = object({
4112
+ }), Rr = object({
4109
4113
  title: string().optional(),
4110
4114
  description: string().optional(),
4111
- items: array(Fr).optional()
4112
- }), Lr = {
4115
+ items: array(Lr).optional()
4116
+ }), zr = {
4113
4117
  colors: {
4114
4118
  primary: "#3b82f6",
4115
4119
  secondary: "#93c5fd",
@@ -4128,7 +4132,7 @@ var AuthApiError = class extends Error {
4128
4132
  compact: 4,
4129
4133
  comfortable: 6
4130
4134
  }
4131
- }, Rr = [
4135
+ }, Br = [
4132
4136
  ["#6366f1", "#8b5cf6"],
4133
4137
  ["#3b82f6", "#06b6d4"],
4134
4138
  ["#10b981", "#34d399"],
@@ -4144,7 +4148,7 @@ function hashName(e) {
4144
4148
  return Math.abs(t);
4145
4149
  }
4146
4150
  function getGradientPair(e) {
4147
- return Rr[(e ? hashName(e) : 0) % Rr.length];
4151
+ return Br[(e ? hashName(e) : 0) % Br.length];
4148
4152
  }
4149
4153
  function getDefaultAvatarUrl(e) {
4150
4154
  let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
@@ -4174,7 +4178,7 @@ function getWorkspaceMarkUrl(e) {
4174
4178
  }
4175
4179
  //#endregion
4176
4180
  //#region ../core/dist/chatIssue.js
4177
- var zr = _enum(["account", "error"]), Br = [
4181
+ var Vr = _enum(["account", "error"]), Hr = [
4178
4182
  "billing_no_plan",
4179
4183
  "billing_seat_limit",
4180
4184
  "billing_past_due",
@@ -4190,14 +4194,14 @@ var zr = _enum(["account", "error"]), Br = [
4190
4194
  "empty_stream",
4191
4195
  "tool_protocol",
4192
4196
  "rate_limit"
4193
- ], z = object({
4194
- bucket: zr,
4195
- code: _enum(Br),
4197
+ ], L = object({
4198
+ bucket: Vr,
4199
+ code: _enum(Hr),
4196
4200
  title: string(),
4197
4201
  help: string().optional(),
4198
4202
  actionLabel: string(),
4199
4203
  actionUrl: string()
4200
- }), B = {
4204
+ }), R = {
4201
4205
  billing_no_plan: {
4202
4206
  bucket: "account",
4203
4207
  title: "Payment method needed",
@@ -4305,10 +4309,10 @@ var zr = _enum(["account", "error"]), Br = [
4305
4309
  }
4306
4310
  };
4307
4311
  function chatIssueCatalogLines() {
4308
- return Br.map((e) => `- ${e}: ${B[e].oneLine}`).join("\n");
4312
+ return Hr.map((e) => `- ${e}: ${R[e].oneLine}`).join("\n");
4309
4313
  }
4310
4314
  function buildChatIssue(e) {
4311
- let t = B[e.code];
4315
+ let t = R[e.code];
4312
4316
  return {
4313
4317
  bucket: t.bucket,
4314
4318
  code: e.code,
@@ -4329,12 +4333,12 @@ function chatIssueToErrorData(e) {
4329
4333
  };
4330
4334
  }
4331
4335
  function renderIssueAsMarkdown(e) {
4332
- let t = B[e.code];
4336
+ let t = R[e.code];
4333
4337
  return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
4334
4338
  }
4335
4339
  //#endregion
4336
4340
  //#region ../core/dist/wire/agent-state.js
4337
- var V = _enum(["active", "stopped"]), H = _enum([
4341
+ var z = _enum(["active", "stopped"]), B = _enum([
4338
4342
  "unknown",
4339
4343
  "stopped",
4340
4344
  "starting",
@@ -4343,28 +4347,28 @@ var V = _enum(["active", "stopped"]), H = _enum([
4343
4347
  "unreachable",
4344
4348
  "stopping",
4345
4349
  "error"
4346
- ]), Vr = _enum([
4350
+ ]), Ur = _enum([
4347
4351
  "wake",
4348
4352
  "sleep",
4349
4353
  "restart",
4350
4354
  "rebuild",
4351
4355
  "config_apply"
4352
- ]), Hr = _enum([
4356
+ ]), Wr = _enum([
4353
4357
  "running",
4354
4358
  "coalesced",
4355
4359
  "failed"
4356
- ]), Ur = object({
4357
- kind: Vr,
4358
- status: Hr,
4360
+ ]), Gr = object({
4361
+ kind: Ur,
4362
+ status: Wr,
4359
4363
  startedAt: string().datetime(),
4360
4364
  detail: string().optional()
4361
- }).strict(), Wr = object({
4362
- lifecycle: H,
4365
+ }).strict(), Kr = object({
4366
+ lifecycle: B,
4363
4367
  changedAt: string().datetime().optional(),
4364
4368
  detail: string().optional(),
4365
- blocker: z.optional(),
4366
- operation: Ur.optional()
4367
- }).strict(), Gr = Object.freeze({ lifecycle: "unknown" }), Kr = {
4369
+ blocker: L.optional(),
4370
+ operation: Gr.optional()
4371
+ }).strict(), qr = Object.freeze({ lifecycle: "unknown" }), Jr = {
4368
4372
  running: "green",
4369
4373
  starting: "amber",
4370
4374
  stopping: "amber",
@@ -4373,7 +4377,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
4373
4377
  error: "red",
4374
4378
  stopped: "grey",
4375
4379
  unknown: "grey"
4376
- }, qr = {
4380
+ }, Yr = {
4377
4381
  running: "Online",
4378
4382
  starting: "Waking up",
4379
4383
  stopping: "Stopping",
@@ -4382,7 +4386,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
4382
4386
  error: "Error",
4383
4387
  stopped: "Asleep",
4384
4388
  unknown: "Checking"
4385
- }, Jr = {
4389
+ }, Xr = {
4386
4390
  wake: "Waking up",
4387
4391
  sleep: "Stopping",
4388
4392
  restart: "Restarting",
@@ -4390,7 +4394,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
4390
4394
  config_apply: "Applying config"
4391
4395
  };
4392
4396
  function toAgentState(e, t) {
4393
- let n = e.operation, r = qr[e.lifecycle] ?? "Unknown", i = Kr[e.lifecycle] ?? "grey", a = n ? Jr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
4397
+ let n = e.operation, r = Yr[e.lifecycle] ?? "Unknown", i = Jr[e.lifecycle] ?? "grey", a = n ? Xr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
4394
4398
  return {
4395
4399
  ...e,
4396
4400
  color: s,
@@ -4398,7 +4402,7 @@ function toAgentState(e, t) {
4398
4402
  tooltip: c
4399
4403
  };
4400
4404
  }
4401
- var Yr = _enum([
4405
+ var Zr = _enum([
4402
4406
  "wake",
4403
4407
  "sleep",
4404
4408
  "restart",
@@ -4422,7 +4426,7 @@ function isAgentReady(e) {
4422
4426
  }
4423
4427
  //#endregion
4424
4428
  //#region ../core/dist/wire/voice-session.js
4425
- var U = _enum(["woman", "man"]), W = [
4429
+ var V = _enum(["woman", "man"]), H = [
4426
4430
  {
4427
4431
  key: "lauren",
4428
4432
  gender: "woman",
@@ -4503,27 +4507,28 @@ var U = _enum(["woman", "man"]), W = [
4503
4507
  accent: "American",
4504
4508
  character: "Easygoing and plain-spoken"
4505
4509
  }
4506
- ], G = _enum(W.map((e) => e.key)), Xr = { gender: "man" };
4510
+ ], U = _enum(H.map((e) => e.key)), Qr = { gender: "man" };
4507
4511
  function resolveVoice(e) {
4508
- let t = W.find((t) => t.key === e.voiceKey);
4509
- return t?.gender === e.gender ? t : W.find((t) => t.gender === e.gender && "isDefault" in t);
4512
+ let t = H.find((t) => t.key === e.voiceKey);
4513
+ return t?.gender === e.gender ? t : H.find((t) => t.gender === e.gender && "isDefault" in t);
4510
4514
  }
4511
- var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4515
+ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4512
4516
  conversationId: string().min(1),
4513
4517
  agentId: string().min(1),
4514
4518
  personaName: string().min(1),
4515
4519
  personaTitle: string().max(255).nullable().optional(),
4516
- gender: U,
4517
- voiceKey: G.nullable(),
4520
+ gender: V,
4521
+ voiceKey: U.nullable(),
4518
4522
  sessionScope: _enum([
4519
4523
  "private",
4520
4524
  "org",
4521
4525
  "public"
4522
4526
  ]),
4523
4527
  threadSummary: string(),
4528
+ surfaceGuidance: string().optional(),
4524
4529
  maxDurationSeconds: number().int().positive().max(3600).optional(),
4525
4530
  expiresAt: datetime()
4526
- }), $r = _enum(["elevenlabs", "livekit"]), ei = discriminatedUnion("provider", [object({
4531
+ }), ti = _enum(["elevenlabs", "livekit"]), ni = discriminatedUnion("provider", [object({
4527
4532
  provider: literal("elevenlabs"),
4528
4533
  conversationToken: string().min(1),
4529
4534
  voiceId: string().min(1)
@@ -4532,7 +4537,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4532
4537
  url: string().min(1),
4533
4538
  token: string().min(1),
4534
4539
  room: string().min(1)
4535
- }).strict()]), ti = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4540
+ }).strict()]), ri = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4536
4541
  platform: _enum([
4537
4542
  "linkedin",
4538
4543
  "x",
@@ -4547,11 +4552,11 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4547
4552
  "website"
4548
4553
  ]),
4549
4554
  handle: string()
4550
- }))), ni = _enum([
4555
+ }))), ii = _enum([
4551
4556
  "essential",
4552
4557
  "professional",
4553
4558
  "business"
4554
- ]), K = object({
4559
+ ]), ai = object({
4555
4560
  agentId: string().optional(),
4556
4561
  handle: string().optional(),
4557
4562
  ownerId: string().optional(),
@@ -4563,25 +4568,25 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4563
4568
  entityType: string().optional(),
4564
4569
  avatarId: string().nullable().optional(),
4565
4570
  coverId: string().nullable().optional(),
4566
- avatar: I.optional(),
4567
- cover: I.optional(),
4571
+ avatar: F.optional(),
4572
+ cover: F.optional(),
4568
4573
  email: string().nullable().optional(),
4569
4574
  website: string().url().nullable().optional(),
4570
- accounts: ti.nullable().optional(),
4575
+ accounts: ri.nullable().optional(),
4571
4576
  model: string().nullable().optional(),
4572
- gender: U.optional(),
4573
- voiceKey: G.nullable().optional(),
4574
- billingTier: ni.optional(),
4577
+ gender: V.optional(),
4578
+ voiceKey: U.nullable().optional(),
4579
+ billingTier: ii.optional(),
4575
4580
  lastActiveAt: string().nullable().optional(),
4576
4581
  lastMessageAt: string().nullable().optional(),
4577
4582
  runtime: string().default("hermes").optional(),
4578
4583
  timezone: string().optional(),
4579
- desiredStatus: V.nullable().optional(),
4584
+ desiredStatus: z.nullable().optional(),
4580
4585
  automationPrimaryChannel: string().optional(),
4581
4586
  heartbeatEnabled: boolean().optional(),
4582
- heartbeatBriefingTime: E.nullable().optional(),
4583
- heartbeatCheckinTime: E.nullable().optional(),
4584
- heartbeatCloseoutTime: E.nullable().optional(),
4587
+ heartbeatBriefingTime: T.nullable().optional(),
4588
+ heartbeatCheckinTime: T.nullable().optional(),
4589
+ heartbeatCloseoutTime: T.nullable().optional(),
4585
4590
  onboardedAt: string().nullable().optional(),
4586
4591
  org: object({
4587
4592
  orgId: string(),
@@ -4594,7 +4599,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4594
4599
  owner: object({
4595
4600
  userId: string(),
4596
4601
  fullName: string().optional(),
4597
- avatar: I.optional()
4602
+ avatar: F.optional()
4598
4603
  }).optional(),
4599
4604
  visibility: _enum([
4600
4605
  "private",
@@ -4604,14 +4609,14 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4604
4609
  status: string().optional(),
4605
4610
  createdAt: string().optional(),
4606
4611
  updatedAt: string().optional()
4607
- }), ri = K.extend({
4612
+ }), oi = ai.extend({
4608
4613
  isPrimary: boolean().optional(),
4609
- lifecycle: H.optional(),
4614
+ lifecycle: B.optional(),
4610
4615
  changedAt: string().datetime().optional(),
4611
4616
  detail: string().optional(),
4612
- blocker: z.optional(),
4613
- operation: Ur.optional()
4614
- }), ii = Object.keys(ri.shape), ai = class Agent extends SettingsObject {
4617
+ blocker: L.optional(),
4618
+ operation: Gr.optional()
4619
+ }), si = Object.keys(oi.shape), ci = class Agent extends SettingsObject {
4615
4620
  constructor(e) {
4616
4621
  let t = "config" in e ? {
4617
4622
  ...e.config instanceof Agent ? e.config.toConfig() : e.config,
@@ -4629,7 +4634,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4629
4634
  }), this.displayName = n(() => this.name.value || "Unnamed"), this.hasCustomHandle = n(() => !!this.handle.value && !/\d{13,}$/.test(this.handle.value)), this.displayHandle = n(() => this.hasCustomHandle.value ? `@${this.handle.value}` : void 0), this.isContextPrimary = n(() => !!this.agentId.value && this.agentId.value === this.settings.context?.primaryAgentId), this.wakeUpLabel = n(() => `Wake up ${this.displayName.value}`), this.manageLabel = n(() => `Manage ${this.displayName.value}`), this.hasReceivedMessage = n(() => !!this.lastMessageAt.value);
4630
4635
  }
4631
4636
  merge(e) {
4632
- for (let t of ii) {
4637
+ for (let t of si) {
4633
4638
  if (!(t in e)) continue;
4634
4639
  let n = this[t];
4635
4640
  n && typeof n == "object" && "value" in n && (n.value = e[t]);
@@ -4637,7 +4642,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4637
4642
  }
4638
4643
  toConfig() {
4639
4644
  let e = {};
4640
- for (let t of ii) {
4645
+ for (let t of si) {
4641
4646
  let n = this[t];
4642
4647
  n && typeof n == "object" && "value" in n && (e[t] = n.value);
4643
4648
  }
@@ -4648,24 +4653,24 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4648
4653
  }
4649
4654
  };
4650
4655
  function createAgent(e) {
4651
- return new ai(e);
4656
+ return new ci(e);
4652
4657
  }
4653
4658
  function createAgents(e) {
4654
- return e.configs.map((t) => new ai({
4659
+ return e.configs.map((t) => new ci({
4655
4660
  config: t,
4656
4661
  context: e.context
4657
4662
  }));
4658
4663
  }
4659
4664
  //#endregion
4660
4665
  //#region ../core/dist/types/user.js
4661
- var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), si = object({
4666
+ var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), G = string().trim().toLowerCase().pipe(email()), ui = object({
4662
4667
  userId: string(),
4663
4668
  email: string().optional(),
4664
4669
  handle: string().optional(),
4665
4670
  fullName: string().optional(),
4666
- linkedinUsername: q.optional(),
4671
+ linkedinUsername: W.optional(),
4667
4672
  avatarId: string().optional(),
4668
- avatar: I.optional(),
4673
+ avatar: F.optional(),
4669
4674
  isEmailVerified: boolean().optional(),
4670
4675
  primaryAgentId: string().optional(),
4671
4676
  primaryOrgId: string().optional(),
@@ -4680,9 +4685,9 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4680
4685
  createdAt: string().optional(),
4681
4686
  updatedAt: string().optional(),
4682
4687
  onboarded: boolean().optional()
4683
- }), ci = object({
4688
+ }), di = object({
4684
4689
  name: string().min(1).max(100).optional(),
4685
- linkedinUsername: q.nullable().optional(),
4690
+ linkedinUsername: W.nullable().optional(),
4686
4691
  avatar: object({
4687
4692
  src: string(),
4688
4693
  mediaId: string()
@@ -4691,31 +4696,31 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4691
4696
  primaryOrgId: string().optional(),
4692
4697
  lastActiveOrgId: string().optional(),
4693
4698
  onboarding: any().optional()
4694
- }).partial(), li = object({ email: string() }), ui = object({
4695
- email: string(),
4699
+ }).partial(), fi = object({ email: G }), pi = object({
4700
+ email: G,
4696
4701
  password: string().min(8, "Password must be at least 8 characters")
4697
- }), di = object({
4698
- email: string(),
4702
+ }), mi = object({
4703
+ email: G,
4699
4704
  password: string().min(8, "Password must be at least 8 characters"),
4700
4705
  fullName: string().min(1, "Name is required")
4701
- }), fi = object({
4702
- email: string(),
4706
+ }), hi = object({
4707
+ email: G,
4703
4708
  code: string().min(6, "Verification code is required"),
4704
4709
  timezone: string().max(64).optional()
4705
- }), pi = object({
4706
- email: string(),
4710
+ }), gi = object({
4711
+ email: G,
4707
4712
  code: string().min(6, "Verification code is required"),
4708
4713
  newPassword: string().min(8, "New password must be at least 8 characters")
4709
- }), mi = object({ newEmail: string() }), hi = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), gi = object({
4714
+ }), _i = object({ newEmail: G }), vi = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), yi = object({
4710
4715
  credential: string().optional(),
4711
4716
  code: string().optional(),
4712
4717
  timezone: string().max(64).optional(),
4713
4718
  source: _enum(["web", "ios"]).optional()
4714
- }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), _i = object({
4719
+ }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), bi = object({
4715
4720
  identityToken: string().min(1),
4716
4721
  fullName: string().optional(),
4717
4722
  timezone: string().max(64).optional()
4718
- }), J = object({
4723
+ }), K = object({
4719
4724
  orgId: string().optional(),
4720
4725
  handle: string().optional(),
4721
4726
  name: string().optional(),
@@ -4723,10 +4728,10 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4723
4728
  website: string().url().nullable().optional(),
4724
4729
  summary: string().nullable().optional(),
4725
4730
  avatarId: string().nullable().optional(),
4726
- avatar: I.optional(),
4731
+ avatar: F.optional(),
4727
4732
  coverId: string().nullable().optional(),
4728
- cover: I.optional(),
4729
- accounts: gr.nullable().optional(),
4733
+ cover: F.optional(),
4734
+ accounts: _r.nullable().optional(),
4730
4735
  ownerId: string().optional(),
4731
4736
  isPersonal: boolean().optional(),
4732
4737
  stripeCustomerIdTest: string().nullable().optional(),
@@ -4739,12 +4744,12 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4739
4744
  billingLastSyncedAt: string().nullable().optional(),
4740
4745
  syncedPeriodStart: string().nullable().optional(),
4741
4746
  syncedPeriodEnd: string().nullable().optional(),
4742
- trialEligibility: oi.optional(),
4747
+ trialEligibility: li.optional(),
4743
4748
  onboarding: any().optional(),
4744
4749
  status: string().optional(),
4745
4750
  createdAt: string().optional(),
4746
4751
  updatedAt: string().optional()
4747
- }), vi = J.extend({
4752
+ }), xi = K.extend({
4748
4753
  defaultAgent: object({
4749
4754
  agentId: string(),
4750
4755
  handle: string(),
@@ -4752,22 +4757,22 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4752
4757
  orgId: string()
4753
4758
  }),
4754
4759
  onboardingCompleted: boolean().optional()
4755
- }), yi = object({
4760
+ }), Si = object({
4756
4761
  completedAt: string().datetime().optional(),
4757
4762
  setupBy: string().optional(),
4758
4763
  billingSetup: boolean().optional(),
4759
4764
  teamInvitesSetup: boolean().optional(),
4760
4765
  brandingSetup: boolean().optional(),
4761
4766
  domainsSetup: boolean().optional()
4762
- }), bi = object({
4767
+ }), Ci = object({
4763
4768
  membershipId: string(),
4764
4769
  orgId: string(),
4765
4770
  name: string(),
4766
4771
  handle: string(),
4767
4772
  avatarId: string().optional(),
4768
- avatar: I.optional(),
4773
+ avatar: F.optional(),
4769
4774
  coverId: string().optional(),
4770
- cover: I.optional(),
4775
+ cover: F.optional(),
4771
4776
  role: _enum([
4772
4777
  "owner",
4773
4778
  "admin",
@@ -4777,11 +4782,11 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4777
4782
  memberCount: number().optional(),
4778
4783
  agentCount: number().optional(),
4779
4784
  joinedAt: string().datetime(),
4780
- trialEligibility: oi.optional(),
4781
- onboarding: yi.optional()
4782
- }), xi = si.extend({
4783
- orgs: array(bi).optional(),
4784
- agents: array(K).optional()
4785
+ trialEligibility: li.optional(),
4786
+ onboarding: Si.optional()
4787
+ }), wi = ui.extend({
4788
+ orgs: array(Ci).optional(),
4789
+ agents: array(ai).optional()
4785
4790
  });
4786
4791
  //#endregion
4787
4792
  //#region ../core/dist/state.js
@@ -4804,7 +4809,7 @@ function derive(e) {
4804
4809
  }
4805
4810
  //#endregion
4806
4811
  //#region ../core/dist/bot-ua.js
4807
- var Si = "pagelines-agent/1.0", Ci = [
4812
+ var Ti = "pagelines-agent/1.0", Ei = [
4808
4813
  "[SILENT]",
4809
4814
  "SILENT",
4810
4815
  "NO_REPLY",
@@ -4818,21 +4823,21 @@ var Si = "pagelines-agent/1.0", Ci = [
4818
4823
  "[NO_OP]",
4819
4824
  "[NO OP]",
4820
4825
  "HEARTBEAT_OK"
4821
- ], wi = new Set(Ci);
4826
+ ], Di = new Set(Ei);
4822
4827
  function normalizeAssistantControl(e) {
4823
4828
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4824
4829
  }
4825
4830
  function isAssistantSilenceControl(e) {
4826
4831
  let t = normalizeAssistantControl(e);
4827
- return t.length <= 64 && wi.has(t);
4832
+ return t.length <= 64 && Di.has(t);
4828
4833
  }
4829
4834
  function isAssistantSilenceControlPrefix(e) {
4830
4835
  let t = normalizeAssistantControl(e);
4831
- return t.length <= 64 && Ci.some((e) => e.startsWith(t));
4836
+ return t.length <= 64 && Ei.some((e) => e.startsWith(t));
4832
4837
  }
4833
4838
  //#endregion
4834
4839
  //#region ../core/dist/timingBudgets.js
4835
- var Ti = {
4840
+ var Oi = {
4836
4841
  wake: 300 * 1e3,
4837
4842
  bootGrace: 420 * 1e3,
4838
4843
  stop: 30 * 1e3
@@ -4850,16 +4855,16 @@ function formatBudgetDuration(e) {
4850
4855
  }
4851
4856
  //#endregion
4852
4857
  //#region ../core/dist/paths.js
4853
- var Ei = "/api/bot-api", Di = "/api/bot-api/v1";
4858
+ var ki = "/api/bot-api", Ai = "/api/bot-api/v1";
4854
4859
  function botApiLlmUrl(e) {
4855
- return `${e}${Di}`;
4860
+ return `${e}${Ai}`;
4856
4861
  }
4857
4862
  function botApiUrl(e) {
4858
- return `${e}${Ei}`;
4863
+ return `${e}${ki}`;
4859
4864
  }
4860
4865
  //#endregion
4861
4866
  //#region ../core/dist/errorCopy.js
4862
- var Y = {
4867
+ var q = {
4863
4868
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
4864
4869
  AUTH_INVALID: "Your session has expired. Sign in again to continue.",
4865
4870
  AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
@@ -4890,7 +4895,7 @@ var Y = {
4890
4895
  TIMEOUT: "The request took too long. Try again in a moment.",
4891
4896
  FORBIDDEN: "You don't have access to this.",
4892
4897
  RATE_LIMITED: "Too many requests. Wait a moment and try again."
4893
- }, Oi = {
4898
+ }, ji = {
4894
4899
  notFound: "Not found. Try refreshing.",
4895
4900
  busy: "Busy — try again in a moment.",
4896
4901
  rateLimited: "Too many requests. Wait a moment.",
@@ -4900,14 +4905,14 @@ var Y = {
4900
4905
  fatal: "Something's broken and won't resolve on retry. Contact support."
4901
4906
  };
4902
4907
  function errorCopy(e, t) {
4903
- return e && e in Y ? Y[e] : t;
4908
+ return e && e in q ? q[e] : t;
4904
4909
  }
4905
4910
  function errorFromApiResponse(e, t) {
4906
- return e.code && e.code in Y ? Y[e.code] : e.providerErrorKind && Oi[e.providerErrorKind] ? Oi[e.providerErrorKind] : e.error || t;
4911
+ return e.code && e.code in q ? q[e.code] : e.providerErrorKind && ji[e.providerErrorKind] ? ji[e.providerErrorKind] : e.error || t;
4907
4912
  }
4908
4913
  //#endregion
4909
4914
  //#region ../core/dist/retryPolicy.js
4910
- var ki = {
4915
+ var Mi = {
4911
4916
  shouldRetry: !1,
4912
4917
  maxAttempts: 1,
4913
4918
  strategy: "none",
@@ -4925,7 +4930,7 @@ function retryPolicyFor(e) {
4925
4930
  "FORBIDDEN",
4926
4931
  "AGENT_NOT_FOUND"
4927
4932
  ]);
4928
- if (e.code && t.has(e.code)) return ki;
4933
+ if (e.code && t.has(e.code)) return Mi;
4929
4934
  switch (e.providerErrorKind) {
4930
4935
  case "busy": return {
4931
4936
  shouldRetry: !0,
@@ -4960,34 +4965,33 @@ function retryPolicyFor(e) {
4960
4965
  };
4961
4966
  case "notFound":
4962
4967
  case "invalidConfig":
4963
- case "fatal": return ki;
4964
- default: return ki;
4968
+ case "fatal": return Mi;
4969
+ default: return Mi;
4965
4970
  }
4966
4971
  }
4967
4972
  //#endregion
4968
4973
  //#region ../core/dist/wire/timezone.js
4969
- var X = string().min(1).max(64).refine((e) => {
4974
+ var J = string().min(1).max(64).refine((e) => {
4970
4975
  try {
4971
4976
  return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
4972
4977
  } catch {
4973
4978
  return !1;
4974
4979
  }
4975
- }, "Invalid IANA timezone"), Ai = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), ji = object({
4980
+ }, "Invalid IANA timezone"), Ni = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Pi = object({
4976
4981
  orgId: string(),
4977
4982
  name: string().min(1).max(100),
4978
4983
  emoji: string().max(8).nullable().optional(),
4979
4984
  title: string().max(120).nullable().optional(),
4980
4985
  summary: string().max(500).nullable().optional(),
4981
4986
  handle: string().min(2).max(50).optional(),
4982
- timezone: X.optional(),
4987
+ timezone: J.optional(),
4983
4988
  runtime: _enum(["hermes"]).optional(),
4984
4989
  visibility: _enum([
4985
4990
  "private",
4986
4991
  "org",
4987
4992
  "public"
4988
- ]).optional(),
4989
- gender: U.optional()
4990
- }).strict(), Mi = object({
4993
+ ]).optional()
4994
+ }).strict(), Fi = object({
4991
4995
  name: string().min(1).max(100).optional(),
4992
4996
  handle: string().min(2).max(50).optional(),
4993
4997
  emoji: string().max(8).nullable().optional(),
@@ -4997,26 +5001,26 @@ var X = string().min(1).max(64).refine((e) => {
4997
5001
  website: string().url().nullable().optional(),
4998
5002
  avatarMediaId: string().nullable().optional(),
4999
5003
  coverMediaId: string().nullable().optional(),
5000
- timezone: X.optional(),
5004
+ timezone: J.optional(),
5001
5005
  model: string().nullable().optional(),
5002
- gender: U.optional(),
5003
- voiceKey: G.nullable().optional(),
5004
- billingTier: ni.optional(),
5006
+ gender: V.optional(),
5007
+ voiceKey: U.nullable().optional(),
5008
+ billingTier: ii.optional(),
5005
5009
  visibility: _enum([
5006
5010
  "private",
5007
5011
  "org",
5008
5012
  "public"
5009
5013
  ]).optional(),
5010
- automationPrimaryChannel: Ai.optional(),
5014
+ automationPrimaryChannel: Ni.optional(),
5011
5015
  heartbeatEnabled: boolean().optional(),
5012
- heartbeatBriefingTime: E.nullable().optional(),
5013
- heartbeatCheckinTime: E.nullable().optional(),
5014
- heartbeatCloseoutTime: E.nullable().optional()
5015
- }).strict(), Ni = ri, Pi = object({
5016
+ heartbeatBriefingTime: T.nullable().optional(),
5017
+ heartbeatCheckinTime: T.nullable().optional(),
5018
+ heartbeatCloseoutTime: T.nullable().optional()
5019
+ }).strict(), Ii = oi, Li = object({
5016
5020
  id: string(),
5017
5021
  label: string(),
5018
5022
  prompt: string()
5019
- }), Fi = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.AUTOMATION_PURPOSE_REQUIRED.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_CONFLICT.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.VOICE_UNAVAILABLE.WAKE_FAILED".split("."), Ii = _enum(Fi), Li = _enum([
5023
+ }), Ri = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.AUTOMATION_PURPOSE_REQUIRED.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_CONFLICT.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.VOICE_UNAVAILABLE.WAKE_FAILED".split("."), zi = _enum(Ri), Bi = _enum([
5020
5024
  "notFound",
5021
5025
  "busy",
5022
5026
  "rateLimited",
@@ -5027,21 +5031,21 @@ var X = string().min(1).max(64).refine((e) => {
5027
5031
  ]), zApiOk = (e) => object({
5028
5032
  ok: literal(!0),
5029
5033
  data: e
5030
- }), Ri = object({
5034
+ }), Vi = object({
5031
5035
  ok: literal(!1),
5032
5036
  error: string(),
5033
- code: Ii.optional(),
5034
- issue: z.optional(),
5035
- providerErrorKind: Li.optional()
5036
- }), zApiResponse = (e) => union([zApiOk(e), Ri]), zi = {
5037
+ code: zi.optional(),
5038
+ issue: L.optional(),
5039
+ providerErrorKind: Bi.optional()
5040
+ }), zApiResponse = (e) => union([zApiOk(e), Vi]), Hi = {
5037
5041
  400: "Invalid body.",
5038
5042
  401: "Not authenticated.",
5039
5043
  500: "Server error."
5040
5044
  };
5041
5045
  function zErrorResponses(e) {
5042
5046
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
5043
- description: t === !0 ? zi[Number(e)] ?? "Request failed." : t,
5044
- content: { "application/json": { schema: Ri } }
5047
+ description: t === !0 ? Hi[Number(e)] ?? "Request failed." : t,
5048
+ content: { "application/json": { schema: Vi } }
5045
5049
  }]));
5046
5050
  }
5047
5051
  function apiError(e, t, n) {
@@ -5064,7 +5068,7 @@ function apiOk(e) {
5064
5068
  }
5065
5069
  //#endregion
5066
5070
  //#region ../core/dist/wire/chat-tool-activity.js
5067
- var Bi = object({
5071
+ var Ui = object({
5068
5072
  kind: _enum([
5069
5073
  "icon",
5070
5074
  "favicon",
@@ -5073,7 +5077,7 @@ var Bi = object({
5073
5077
  icon: string().min(1).optional(),
5074
5078
  domain: string().min(1).optional(),
5075
5079
  serviceKey: string().min(1).optional()
5076
- }).strict(), Vi = object({
5080
+ }).strict(), Wi = object({
5077
5081
  activityId: string().min(1),
5078
5082
  turnId: string().min(1),
5079
5083
  status: _enum([
@@ -5097,12 +5101,12 @@ var Bi = object({
5097
5101
  endedAt: string().datetime().optional(),
5098
5102
  durationMs: number().int().nonnegative().optional(),
5099
5103
  note: string().trim().min(1).optional(),
5100
- visual: Bi.optional()
5101
- }).strict(), Hi = Vi.extend({ status: _enum(["completed", "failed"]) }), Ui = F, Wi = object({
5104
+ visual: Ui.optional()
5105
+ }).strict(), Gi = Wi.extend({ status: _enum(["completed", "failed"]) }), Ki = P, qi = object({
5102
5106
  kind: literal("inline"),
5103
5107
  offset: number().int().nonnegative()
5104
- }), Gi = object({
5105
- type: Ui,
5108
+ }), Ji = object({
5109
+ type: Ki,
5106
5110
  src: url(),
5107
5111
  filename: string().min(1),
5108
5112
  mimeType: string().min(1),
@@ -5112,12 +5116,12 @@ var Bi = object({
5112
5116
  height: number().int().positive().optional(),
5113
5117
  duration: number().nonnegative().optional(),
5114
5118
  text: string().optional(),
5115
- placement: Wi.optional()
5116
- }), Ki = object({ ref: string().min(1).max(256) }).strict(), qi = _enum([
5119
+ placement: qi.optional()
5120
+ }), Yi = object({ ref: string().min(1).max(256) }).strict(), Xi = _enum([
5117
5121
  "handled",
5118
5122
  "dismissed",
5119
5123
  "deferred"
5120
- ]), Ji = datetime();
5124
+ ]), Zi = datetime();
5121
5125
  function validateAttentionRevisit(e, t) {
5122
5126
  e.revisitAt && e.disposition !== "deferred" && t.addIssue({
5123
5127
  code: "custom",
@@ -5125,17 +5129,17 @@ function validateAttentionRevisit(e, t) {
5125
5129
  message: "revisitAt requires deferred disposition"
5126
5130
  });
5127
5131
  }
5128
- var Yi = Ki.extend({
5129
- disposition: qi.optional(),
5130
- revisitAt: Ji.optional()
5131
- }).superRefine(validateAttentionRevisit), Xi = Ki.extend({
5132
- disposition: qi,
5133
- revisitAt: Ji.optional()
5134
- }).superRefine(validateAttentionRevisit), Zi = object({
5132
+ var Qi = Yi.extend({
5133
+ disposition: Xi.optional(),
5134
+ revisitAt: Zi.optional()
5135
+ }).superRefine(validateAttentionRevisit), $i = Yi.extend({
5136
+ disposition: Xi,
5137
+ revisitAt: Zi.optional()
5138
+ }).superRefine(validateAttentionRevisit), ea = object({
5135
5139
  turnId: string().min(1).optional(),
5136
5140
  turnOutcome: _enum(["failed", "stopped"]).optional(),
5137
- attachments: array(Gi).optional(),
5138
- toolActivities: array(Hi).optional(),
5141
+ attachments: array(Ji).optional(),
5142
+ toolActivities: array(Gi).optional(),
5139
5143
  issue: object({
5140
5144
  code: string(),
5141
5145
  bucket: _enum(["account", "error"]),
@@ -5163,8 +5167,8 @@ var Yi = Ki.extend({
5163
5167
  ])
5164
5168
  }).catchall(unknown()) }).catchall(unknown()).optional(),
5165
5169
  ownerHandoff: literal(!0).optional(),
5166
- attention: array(Yi).max(20).optional()
5167
- }).catchall(unknown()), Qi = object({
5170
+ attention: array(Qi).max(20).optional()
5171
+ }).catchall(unknown()), ta = object({
5168
5172
  messageId: string().min(1),
5169
5173
  conversationId: string().min(1),
5170
5174
  role: _enum([
@@ -5177,12 +5181,12 @@ var Yi = Ki.extend({
5177
5181
  content: string(),
5178
5182
  sequence: string().min(1),
5179
5183
  clientNonce: string().nullable().optional(),
5180
- metadata: Zi.nullable().optional(),
5184
+ metadata: ea.nullable().optional(),
5181
5185
  status: string().nullable().optional(),
5182
5186
  createdAt: string(),
5183
5187
  updatedAt: string()
5184
- }), $i = object({
5185
- type: Ui,
5188
+ }), na = object({
5189
+ type: Ki,
5186
5190
  mediaId: string().min(1).optional(),
5187
5191
  url: url().optional(),
5188
5192
  name: string().min(1).optional(),
@@ -5198,21 +5202,21 @@ var Yi = Ki.extend({
5198
5202
  path: [n],
5199
5203
  message: `${n} is required when mediaId is absent`
5200
5204
  });
5201
- }), ea = object({
5205
+ }), ra = object({
5202
5206
  conversationId: string().min(1),
5203
5207
  content: string().max(1e4).default(""),
5204
5208
  clientNonce: string().max(64).optional(),
5205
- attachments: array($i).max(10).optional(),
5209
+ attachments: array(na).max(10).optional(),
5206
5210
  channel: _enum(["ios", "dashboard"]).optional(),
5207
5211
  actionUrls: object({
5208
5212
  billing: string().max(500),
5209
5213
  agent: string().max(500)
5210
5214
  }).optional(),
5211
- viewerTimezone: X.optional()
5215
+ viewerTimezone: J.optional()
5212
5216
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5213
5217
  path: ["content"],
5214
5218
  message: "Message or attachment required"
5215
- }), ta = object({
5219
+ }), ia = object({
5216
5220
  type: _enum(["user", "agent"]),
5217
5221
  id: string().min(1)
5218
5222
  }).strict();
@@ -5227,44 +5231,44 @@ function addDuplicateConversationTargetIssues(e, t) {
5227
5231
  }), n.add(e);
5228
5232
  }
5229
5233
  }
5230
- var na = object({
5234
+ var aa = object({
5231
5235
  orgId: string().min(1),
5232
- participants: array(ta).min(1).max(20)
5233
- }).strict().superRefine(addDuplicateConversationTargetIssues), ra = object({
5236
+ participants: array(ia).min(1).max(20)
5237
+ }).strict().superRefine(addDuplicateConversationTargetIssues), oa = object({
5234
5238
  orgId: string().min(1),
5235
- participants: array(ta).min(1).max(20)
5239
+ participants: array(ia).min(1).max(20)
5236
5240
  }).strict().superRefine((e, t) => {
5237
5241
  addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
5238
5242
  code: "custom",
5239
5243
  path: ["participants"],
5240
5244
  message: "New sessions require at least one agent participant."
5241
5245
  });
5242
- }), ia = object({
5246
+ }), sa = object({
5243
5247
  category: string().min(1).max(30).optional(),
5244
5248
  reason: string().max(2e3).optional()
5245
- }).strict(), aa = _enum([
5249
+ }).strict(), ca = _enum([
5246
5250
  "1:1",
5247
5251
  "4:3",
5248
5252
  "3:4",
5249
5253
  "16:9",
5250
5254
  "9:16"
5251
- ]), oa = _enum([
5255
+ ]), la = _enum([
5252
5256
  "1K",
5253
5257
  "2K",
5254
5258
  "4K"
5255
- ]), sa = object({
5259
+ ]), ua = object({
5256
5260
  prompt: string().trim().min(1).max(4e3),
5257
- aspectRatio: aa.default("1:1"),
5261
+ aspectRatio: ca.default("1:1"),
5258
5262
  outputFormat: _enum([
5259
5263
  "png",
5260
5264
  "jpeg",
5261
5265
  "webp"
5262
5266
  ]).default("webp"),
5263
- resolution: oa.default("2K"),
5267
+ resolution: la.default("2K"),
5264
5268
  style: string().trim().max(200).optional(),
5265
5269
  altText: string().trim().max(500).optional(),
5266
5270
  referenceMediaIds: array(string().min(1)).max(4).optional()
5267
- }).strict(), ca = object({
5271
+ }).strict(), da = object({
5268
5272
  mediaId: string().min(1),
5269
5273
  src: url(),
5270
5274
  filename: string().min(1),
@@ -5274,54 +5278,54 @@ var na = object({
5274
5278
  provider: string().min(1).optional(),
5275
5279
  providerRequestId: string().min(1).optional(),
5276
5280
  media: string().startsWith("MEDIA:"),
5277
- attachment: Gi.extend({ type: literal("image") })
5278
- }), la = object({
5281
+ attachment: Ji.extend({ type: literal("image") })
5282
+ }), fa = object({
5279
5283
  identityToken: string().min(1),
5280
5284
  fullName: string().optional()
5281
- }), ua = object({
5285
+ }), pa = object({
5282
5286
  redirect: string(),
5283
5287
  redirectReason: string(),
5284
5288
  isNew: boolean(),
5285
5289
  deviceId: string()
5286
- }), da = object({
5290
+ }), ma = object({
5287
5291
  ok: literal(!0),
5288
- data: ua,
5292
+ data: pa,
5289
5293
  token: string()
5290
- }), fa = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), pa = object({ url: string() }), ma = object({
5294
+ }), ha = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), ga = object({ url: string() }), _a = object({
5291
5295
  ok: literal(!0),
5292
- data: pa
5293
- }), ha = object({ token: string().min(1) }), ga = object({
5296
+ data: ga
5297
+ }), va = object({ token: string().min(1) }), ya = object({
5294
5298
  redirect: string(),
5295
5299
  redirectReason: string(),
5296
5300
  deviceId: string()
5297
- }), _a = object({
5301
+ }), ba = object({
5298
5302
  ok: literal(!0),
5299
- data: ga,
5303
+ data: ya,
5300
5304
  token: string()
5301
- }), va = _enum(["none", "active_assistant"]), ya = _enum([
5305
+ }), xa = _enum(["none", "active_assistant"]), Sa = _enum([
5302
5306
  "none",
5303
5307
  "active",
5304
5308
  "trial",
5305
5309
  "canceling",
5306
5310
  "past_due",
5307
5311
  "paused"
5308
- ]), ba = object({
5312
+ ]), Ca = object({
5309
5313
  brand: string(),
5310
5314
  last4: string(),
5311
5315
  expMonth: number(),
5312
5316
  expYear: number()
5313
- }), xa = object({
5317
+ }), wa = object({
5314
5318
  date: string(),
5315
5319
  amount: number(),
5316
5320
  status: string(),
5317
5321
  invoicePdf: string().optional()
5318
- }), Sa = object({
5322
+ }), Ta = object({
5319
5323
  graceEndsAt: string().optional(),
5320
5324
  suspended: boolean(),
5321
5325
  url: string().optional()
5322
- }), Ca = object({
5323
- plan: va,
5324
- status: ya,
5326
+ }), Ea = object({
5327
+ plan: xa,
5328
+ status: Sa,
5325
5329
  price: number(),
5326
5330
  tierRates: record(string(), number()).optional(),
5327
5331
  maxAgents: number(),
@@ -5331,23 +5335,23 @@ var na = object({
5331
5335
  cancelAt: string().optional(),
5332
5336
  trialEnd: string().optional(),
5333
5337
  trialDaysRemaining: number().optional(),
5334
- paymentMethod: ba.optional(),
5335
- paymentRecovery: Sa.optional(),
5336
- invoices: array(xa),
5338
+ paymentMethod: Ca.optional(),
5339
+ paymentRecovery: Ta.optional(),
5340
+ invoices: array(wa),
5337
5341
  stripeError: string().optional()
5338
- }), wa = object({
5342
+ }), Da = object({
5339
5343
  orgId: string(),
5340
5344
  agentName: string().optional(),
5341
5345
  runtime: string().optional()
5342
- }), Ta = object({
5346
+ }), Oa = object({
5343
5347
  created: number(),
5344
5348
  skipped: number(),
5345
5349
  errors: array(string())
5346
- }), Ea = object({
5350
+ }), ka = object({
5347
5351
  updated: number(),
5348
5352
  errors: array(string())
5349
- }), Da = Wr, Oa = object({
5350
- code: Ii,
5353
+ }), Aa = Kr, ja = object({
5354
+ code: zi,
5351
5355
  message: string(),
5352
5356
  bucket: _enum(["account", "error"]).optional(),
5353
5357
  actionLabel: string().optional(),
@@ -5364,14 +5368,14 @@ function toChatStreamError(e) {
5364
5368
  ...e.help ? { help: e.help } : {}
5365
5369
  };
5366
5370
  }
5367
- var ka = discriminatedUnion("event", [
5371
+ var Ma = discriminatedUnion("event", [
5368
5372
  object({
5369
5373
  event: literal("status"),
5370
- data: Da
5374
+ data: Aa
5371
5375
  }),
5372
5376
  object({
5373
5377
  event: literal("message"),
5374
- data: object({ message: Qi })
5378
+ data: object({ message: ta })
5375
5379
  }),
5376
5380
  object({
5377
5381
  event: literal("message_delta"),
@@ -5391,7 +5395,7 @@ var ka = discriminatedUnion("event", [
5391
5395
  }),
5392
5396
  object({
5393
5397
  event: literal("tool_activity"),
5394
- data: Vi
5398
+ data: Wi
5395
5399
  }),
5396
5400
  object({
5397
5401
  event: literal("working_end"),
@@ -5403,7 +5407,7 @@ var ka = discriminatedUnion("event", [
5403
5407
  }),
5404
5408
  object({
5405
5409
  event: literal("error"),
5406
- data: Oa
5410
+ data: ja
5407
5411
  })
5408
5412
  ]);
5409
5413
  function chatEventUserTurnId(e) {
@@ -5555,7 +5559,7 @@ function parseChatEvent(e) {
5555
5559
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5556
5560
  if (!n || r === void 0) return null;
5557
5561
  try {
5558
- let e = ka.safeParse({
5562
+ let e = Ma.safeParse({
5559
5563
  event: n,
5560
5564
  data: JSON.parse(r)
5561
5565
  });
@@ -5566,7 +5570,7 @@ function parseChatEvent(e) {
5566
5570
  }
5567
5571
  //#endregion
5568
5572
  //#region ../core/dist/wire/chat-card.js
5569
- var Aa = object({
5573
+ var Na = object({
5570
5574
  label: string().trim().min(1).max(40),
5571
5575
  reply: string().trim().min(1).max(500),
5572
5576
  style: _enum([
@@ -5574,11 +5578,11 @@ var Aa = object({
5574
5578
  "default",
5575
5579
  "destructive"
5576
5580
  ]).optional()
5577
- }).strip(), ja = object({
5581
+ }).strip(), Pa = object({
5578
5582
  version: literal(1),
5579
5583
  title: string().trim().min(1).max(200),
5580
5584
  body: string().trim().min(1).max(4e3).optional(),
5581
- actions: array(Aa).min(1).max(3).optional()
5585
+ actions: array(Na).min(1).max(3).optional()
5582
5586
  }).strip();
5583
5587
  function parseChatCardFencePayload(e) {
5584
5588
  let t;
@@ -5591,7 +5595,7 @@ function parseChatCardFencePayload(e) {
5591
5595
  message: e instanceof Error ? e.message : "Invalid JSON"
5592
5596
  };
5593
5597
  }
5594
- let n = ja.safeParse(t);
5598
+ let n = Pa.safeParse(t);
5595
5599
  return n.success ? {
5596
5600
  ok: !0,
5597
5601
  spec: n.data
@@ -5603,36 +5607,36 @@ function parseChatCardFencePayload(e) {
5603
5607
  }
5604
5608
  //#endregion
5605
5609
  //#region ../core/dist/wire/chat-visual.js
5606
- var Ma = string().trim().min(1).max(240), Na = string().trim().min(1).max(800), Z = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Q = string().trim().min(1).max(120), Pa = record(Z, union([
5610
+ var Fa = string().trim().min(1).max(240), Ia = string().trim().min(1).max(800), Y = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), X = string().trim().min(1).max(120), La = record(Y, union([
5607
5611
  string().max(500),
5608
5612
  number().finite(),
5609
5613
  boolean(),
5610
5614
  _null()
5611
- ])), Fa = _enum([
5615
+ ])), Ra = _enum([
5612
5616
  "compact",
5613
5617
  "currency",
5614
5618
  "duration",
5615
5619
  "integer",
5616
5620
  "percent",
5617
5621
  "raw"
5618
- ]), Ia = object({
5619
- title: Ma,
5620
- description: Na.optional(),
5621
- footer: Na.optional()
5622
- }).strip(), La = object({
5623
- dataKey: Z,
5624
- label: Q.optional(),
5625
- axisLabel: Q.optional(),
5626
- valueFormat: Fa.optional(),
5622
+ ]), za = object({
5623
+ title: Fa,
5624
+ description: Ia.optional(),
5625
+ footer: Ia.optional()
5626
+ }).strip(), Ba = object({
5627
+ dataKey: Y,
5628
+ label: X.optional(),
5629
+ axisLabel: X.optional(),
5630
+ valueFormat: Ra.optional(),
5627
5631
  valuePrefix: string().trim().max(12).optional(),
5628
5632
  valueSuffix: string().trim().max(12).optional()
5629
- }).strip(), Ra = object({
5633
+ }).strip(), Va = object({
5630
5634
  kind: literal("linear"),
5631
- dataKey: Z,
5632
- label: Q.optional()
5633
- }).strip(), za = object({
5635
+ dataKey: Y,
5636
+ label: X.optional()
5637
+ }).strip(), Ha = object({
5634
5638
  version: literal(1),
5635
- meta: Ia,
5639
+ meta: za,
5636
5640
  fallbackMarkdown: string().trim().min(1).max(4e3)
5637
5641
  }).strip();
5638
5642
  function dataKeys(e) {
@@ -5674,20 +5678,20 @@ function requireNumericDataKeys(e, t, n) {
5674
5678
  });
5675
5679
  }
5676
5680
  }
5677
- var Ba = discriminatedUnion("chartType", [za.extend({
5681
+ var Ua = discriminatedUnion("chartType", [Ha.extend({
5678
5682
  visualType: literal("chart"),
5679
5683
  chartType: _enum([
5680
5684
  "bar",
5681
5685
  "line",
5682
5686
  "scatter"
5683
5687
  ]),
5684
- xKey: Z,
5685
- xAxisLabel: Q.optional(),
5686
- series: array(La).min(1).max(6),
5687
- data: array(Pa).min(1).max(120),
5688
+ xKey: Y,
5689
+ xAxisLabel: X.optional(),
5690
+ series: array(Ba).min(1).max(6),
5691
+ data: array(La).min(1).max(120),
5688
5692
  layout: _enum(["horizontal", "vertical"]).optional(),
5689
5693
  stacking: _enum(["grouped", "stacked"]).optional(),
5690
- trendLine: Ra.optional()
5694
+ trendLine: Va.optional()
5691
5695
  }).strip().superRefine((e, t) => {
5692
5696
  e.stacking && e.chartType !== "bar" && t.addIssue({
5693
5697
  code: "custom",
@@ -5725,13 +5729,13 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5725
5729
  path: ["trendLine", "dataKey"],
5726
5730
  value: e.trendLine.dataKey
5727
5731
  }] : []], t);
5728
- }), za.extend({
5732
+ }), Ha.extend({
5729
5733
  visualType: literal("chart"),
5730
5734
  chartType: literal("pie"),
5731
- nameKey: Z,
5732
- valueKey: Z,
5733
- series: array(La).max(1).optional(),
5734
- data: array(Pa).min(1).max(16)
5735
+ nameKey: Y,
5736
+ valueKey: Y,
5737
+ series: array(Ba).max(1).optional(),
5738
+ data: array(La).min(1).max(16)
5735
5739
  }).strip().superRefine((e, t) => {
5736
5740
  requireDataKeys(e.data, [
5737
5741
  {
@@ -5755,10 +5759,10 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5755
5759
  value: e.valueKey,
5756
5760
  nonnegative: !0
5757
5761
  }], t);
5758
- })]), Va = object({
5759
- id: Z,
5760
- label: Q,
5761
- detail: Na.optional(),
5762
+ })]), Wa = object({
5763
+ id: Y,
5764
+ label: X,
5765
+ detail: Ia.optional(),
5762
5766
  kind: _enum([
5763
5767
  "actor",
5764
5768
  "agent",
@@ -5769,11 +5773,11 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5769
5773
  "system",
5770
5774
  "task"
5771
5775
  ]).optional()
5772
- }).strip(), Ha = object({
5773
- from: Z,
5774
- to: Z,
5775
- label: Q.optional()
5776
- }).strip(), Ua = union([Ba, za.extend({
5776
+ }).strip(), Ga = object({
5777
+ from: Y,
5778
+ to: Y,
5779
+ label: X.optional()
5780
+ }).strip(), Ka = union([Ua, Ha.extend({
5777
5781
  visualType: literal("diagram"),
5778
5782
  diagramType: _enum([
5779
5783
  "flow",
@@ -5787,8 +5791,8 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5787
5791
  "radial",
5788
5792
  "top-to-bottom"
5789
5793
  ]).default("auto"),
5790
- nodes: array(Va).min(1).max(24),
5791
- edges: array(Ha).max(48)
5794
+ nodes: array(Wa).min(1).max(24),
5795
+ edges: array(Ga).max(48)
5792
5796
  }).strip().superRefine((e, t) => {
5793
5797
  let n = new Set(e.nodes.map((e) => e.id));
5794
5798
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -5947,11 +5951,11 @@ function parseChatVisualFencePayload(e) {
5947
5951
  fallbackMarkdown: r
5948
5952
  };
5949
5953
  }
5950
- let n = Ua.safeParse(t);
5954
+ let n = Ka.safeParse(t);
5951
5955
  if (!n.success) {
5952
5956
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
5953
5957
  if (e) {
5954
- let t = Ua.safeParse(e);
5958
+ let t = Ka.safeParse(e);
5955
5959
  if (t.success) return {
5956
5960
  ok: !0,
5957
5961
  spec: t.data
@@ -5976,7 +5980,7 @@ function extractChatVisualFencePayloads(e) {
5976
5980
  }
5977
5981
  //#endregion
5978
5982
  //#region ../core/dist/wire/conversation.js
5979
- var Wa = object({
5983
+ var Z = object({
5980
5984
  type: _enum([
5981
5985
  "user",
5982
5986
  "agent",
@@ -5996,7 +6000,7 @@ var Wa = object({
5996
6000
  displayName: string().optional(),
5997
6001
  handle: string().optional(),
5998
6002
  avatarUrl: string().optional()
5999
- }).strict(), Ga = object({
6003
+ }).strict(), qa = object({
6000
6004
  messageId: string(),
6001
6005
  role: _enum([
6002
6006
  "user",
@@ -6006,7 +6010,7 @@ var Wa = object({
6006
6010
  content: string(),
6007
6011
  sequence: string(),
6008
6012
  createdAt: string()
6009
- }), Ka = object({
6013
+ }), Ja = object({
6010
6014
  conversationId: string(),
6011
6015
  orgId: string(),
6012
6016
  kind: _enum(["direct", "group"]),
@@ -6016,52 +6020,52 @@ var Wa = object({
6016
6020
  "requester",
6017
6021
  "member"
6018
6022
  ]),
6019
- participants: array(Wa),
6020
- lastMessage: Ga.nullable(),
6023
+ participants: array(Z),
6024
+ lastMessage: qa.nullable(),
6021
6025
  unreadCount: number().int().nonnegative(),
6022
6026
  latestSequence: string().nullable()
6023
- }), qa = object({ sequence: string().min(1) }), Ja = object({ turnId: string().min(1).optional() }).strict(), Ya = object({
6027
+ }), Ya = object({ sequence: string().min(1) }), Xa = object({ turnId: string().min(1).optional() }).strict(), Za = object({
6024
6028
  cancelled: boolean(),
6025
6029
  cancelledTurnIds: array(string())
6026
- }).strict(), Xa = object({
6030
+ }).strict(), Qa = object({
6027
6031
  conversationId: string(),
6028
6032
  messageId: string(),
6029
6033
  sequence: string(),
6030
6034
  snippet: string(),
6031
6035
  createdAt: string(),
6032
- participants: array(Wa)
6033
- }), Za = object({
6036
+ participants: array(Z)
6037
+ }), $a = object({
6034
6038
  conversationId: string(),
6035
- lastMessage: Ga.nullable(),
6039
+ lastMessage: qa.nullable(),
6036
6040
  unreadCount: number().int().nonnegative(),
6037
6041
  latestSequence: string().nullable()
6038
- }), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), Qa = preprocess((e) => e === void 0 ? null : e, H.nullable()), $a = preprocess((e) => e === void 0 ? null : e, V.nullable()), eo = preprocess((e) => e === void 0 ? null : e, _enum([
6042
+ }), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), eo = preprocess((e) => e === void 0 ? null : e, B.nullable()), to = preprocess((e) => e === void 0 ? null : e, z.nullable()), no = preprocess((e) => e === void 0 ? null : e, _enum([
6039
6043
  "user",
6040
6044
  "assistant",
6041
6045
  "system"
6042
- ]).nullable()), to = preprocess((e) => e === void 0 ? 0 : e, number()), no = object({
6046
+ ]).nullable()), ro = preprocess((e) => e === void 0 ? 0 : e, number()), io = object({
6043
6047
  agentId: string(),
6044
6048
  handle: string(),
6045
6049
  name: string(),
6046
6050
  orgId: string(),
6047
- orgName: $,
6048
- orgHandle: $,
6049
- ownerEmail: $,
6050
- ownerName: $,
6051
- state: Qa,
6052
- desiredStatus: $a,
6051
+ orgName: Q,
6052
+ orgHandle: Q,
6053
+ ownerEmail: Q,
6054
+ ownerName: Q,
6055
+ state: eo,
6056
+ desiredStatus: to,
6053
6057
  runtime: string(),
6054
- imageVersion: $,
6055
- lastHealthyAt: $,
6056
- lastActiveAt: $,
6057
- lastUserMessageAt: $,
6058
- lastMessageAt: $,
6059
- lastMessageRole: eo,
6060
- lastMessageChannel: $,
6061
- primaryChannel: $,
6062
- totalMessages: to,
6063
- totalSessions: to,
6064
- error: $,
6058
+ imageVersion: Q,
6059
+ lastHealthyAt: Q,
6060
+ lastActiveAt: Q,
6061
+ lastUserMessageAt: Q,
6062
+ lastMessageAt: Q,
6063
+ lastMessageRole: no,
6064
+ lastMessageChannel: Q,
6065
+ primaryChannel: Q,
6066
+ totalMessages: ro,
6067
+ totalSessions: ro,
6068
+ error: Q,
6065
6069
  appHandle: string(),
6066
6070
  flyAppExists: boolean(),
6067
6071
  plan: string(),
@@ -6069,7 +6073,7 @@ var Wa = object({
6069
6073
  billingActive: boolean(),
6070
6074
  createdAt: string(),
6071
6075
  updatedAt: string()
6072
- }), ro = object({
6076
+ }), ao = object({
6073
6077
  running: number(),
6074
6078
  stopped: number(),
6075
6079
  error: number(),
@@ -6077,28 +6081,28 @@ var Wa = object({
6077
6081
  stopping: number(),
6078
6082
  unknown: number(),
6079
6083
  total: number()
6080
- }), io = object({
6081
- agents: array(no),
6082
- summary: ro,
6084
+ }), oo = object({
6085
+ agents: array(io),
6086
+ summary: ao,
6083
6087
  orphanedApps: array(string()),
6084
6088
  dailyMessages30d: array(number().int()).optional(),
6085
6089
  flyAppCount: number().optional(),
6086
6090
  latestVersion: string().optional(),
6087
6091
  latestVersions: record(string(), string()).optional()
6088
- }), ao = yr, oo = F, so = object({
6092
+ }), so = br, co = P, $ = object({
6089
6093
  mediaId: string(),
6090
6094
  src: string(),
6091
6095
  alt: string().nullable().optional(),
6092
6096
  filename: string().optional(),
6093
6097
  displayName: string().nullable().optional(),
6094
6098
  mimeType: string().optional(),
6095
- mediaType: oo.optional(),
6096
- type: oo.optional(),
6099
+ mediaType: co.optional(),
6100
+ type: co.optional(),
6097
6101
  size: number().optional(),
6098
6102
  width: number().nullable().optional(),
6099
6103
  height: number().nullable().optional(),
6100
6104
  duration: number().nullable().optional(),
6101
- context: ao.nullable().optional(),
6105
+ context: so.nullable().optional(),
6102
6106
  blurhash: string().nullable().optional(),
6103
6107
  quality: string().optional(),
6104
6108
  status: string().optional(),
@@ -6107,13 +6111,13 @@ var Wa = object({
6107
6111
  agentId: string().nullable().optional(),
6108
6112
  createdAt: string().optional(),
6109
6113
  updatedAt: string().optional()
6110
- }), co = object({
6114
+ }), lo = object({
6111
6115
  file: string().describe("Binary file. multipart/form-data field — the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),
6112
- context: ao.optional().default("general"),
6116
+ context: so.optional().default("general"),
6113
6117
  agentId: string().optional(),
6114
6118
  orgId: string().optional(),
6115
6119
  duration: number().optional()
6116
- }), lo = object({
6120
+ }), uo = object({
6117
6121
  mediaId: string().optional(),
6118
6122
  src: string().optional(),
6119
6123
  alt: string().optional(),
@@ -6122,7 +6126,7 @@ var Wa = object({
6122
6126
  mimeType: string().optional(),
6123
6127
  mediaType: string().optional(),
6124
6128
  blurhash: string().optional()
6125
- }), uo = object({
6129
+ }), fo = object({
6126
6130
  membershipId: string(),
6127
6131
  userId: string(),
6128
6132
  orgId: string(),
@@ -6137,15 +6141,15 @@ var Wa = object({
6137
6141
  status: _enum(["active", "suspended"]),
6138
6142
  joinedAt: string(),
6139
6143
  lastSeenAt: string().optional(),
6140
- avatar: lo.optional()
6141
- }), fo = object({
6144
+ avatar: uo.optional()
6145
+ }), po = object({
6142
6146
  invitationId: string(),
6143
6147
  email: string(),
6144
6148
  role: _enum(["admin", "member"]),
6145
6149
  status: string(),
6146
6150
  expiresAt: string(),
6147
6151
  createdAt: string()
6148
- }), po = object({
6152
+ }), mo = object({
6149
6153
  token: string(),
6150
6154
  email: string(),
6151
6155
  orgId: string(),
@@ -6167,54 +6171,54 @@ var Wa = object({
6167
6171
  ]),
6168
6172
  expiresAt: string(),
6169
6173
  memberCount: number().optional()
6170
- }), mo = object({
6174
+ }), ho = object({
6171
6175
  email: string().email(),
6172
6176
  role: _enum(["admin", "member"]).optional(),
6173
6177
  message: string().max(500).optional()
6174
- }).strict(), ho = object({ role: _enum(["admin", "member"]) }).strict(), go = object({ token: string().min(1) }).strict(), _o = _enum([
6178
+ }).strict(), go = object({ role: _enum(["admin", "member"]) }).strict(), _o = object({ token: string().min(1) }).strict(), vo = _enum([
6175
6179
  "planLimit",
6176
6180
  "billingOverdue",
6177
6181
  "rebuilding",
6178
6182
  "agentNotFound"
6179
- ]), vo = _enum([
6183
+ ]), yo = _enum([
6180
6184
  "rebuilding",
6181
6185
  "provisioning",
6182
6186
  "billingOverdue"
6183
- ]), yo = object({
6187
+ ]), bo = object({
6184
6188
  agentId: string(),
6185
6189
  name: string(),
6186
- avatar: I.optional(),
6190
+ avatar: F.optional(),
6187
6191
  summary: string().nullable().optional(),
6188
6192
  ownerId: string(),
6189
6193
  ownerFirstName: string(),
6190
- ownerAvatar: I.optional(),
6194
+ ownerAvatar: F.optional(),
6191
6195
  ownerLabel: string(),
6192
6196
  avatarInitial: string(),
6193
6197
  isYours: boolean(),
6194
6198
  lastMessageAt: string().datetime().nullable(),
6195
6199
  lastMessagePreview: string().nullable(),
6196
6200
  onboardedAt: string().datetime().nullable(),
6197
- desiredStatus: V.nullable(),
6198
- lifecycle: H,
6201
+ desiredStatus: z.nullable(),
6202
+ lifecycle: B,
6199
6203
  changedAt: string().datetime().optional(),
6200
6204
  detail: string().optional(),
6201
- blocker: z.optional(),
6205
+ blocker: L.optional(),
6202
6206
  canWake: boolean(),
6203
- cantWakeReason: _o.optional(),
6207
+ cantWakeReason: vo.optional(),
6204
6208
  canRebuild: boolean(),
6205
- cantRebuildReason: vo.optional()
6206
- }), bo = /* @__PURE__ */ t({
6207
- zNotificationTelemetryAck: () => wo,
6208
- zNotificationTelemetryEvent: () => Co,
6209
- zRegisterDeviceRequest: () => xo,
6210
- zRegisterDeviceResponse: () => So
6211
- }), xo = object({
6209
+ cantRebuildReason: yo.optional()
6210
+ }), xo = /* @__PURE__ */ t({
6211
+ zNotificationTelemetryAck: () => To,
6212
+ zNotificationTelemetryEvent: () => wo,
6213
+ zRegisterDeviceRequest: () => So,
6214
+ zRegisterDeviceResponse: () => Co
6215
+ }), So = object({
6212
6216
  deviceId: string().min(1).max(64),
6213
6217
  pushToken: string().min(1).max(200),
6214
6218
  appVersion: string().max(40).optional(),
6215
6219
  osVersion: string().max(40).optional(),
6216
6220
  model: string().max(80).optional()
6217
- }), So = object({ deviceId: string().min(1).max(64) }), Co = object({
6221
+ }), Co = object({ deviceId: string().min(1).max(64) }), wo = object({
6218
6222
  deviceId: string().min(1).max(64),
6219
6223
  kind: string().min(1).max(30),
6220
6224
  action: _enum([
@@ -6223,7 +6227,7 @@ var Wa = object({
6223
6227
  "dismissed"
6224
6228
  ]),
6225
6229
  messageId: string().max(32).optional()
6226
- }), wo = object({ updated: boolean() }), To = J.pick({
6230
+ }), To = object({ updated: boolean() }), Eo = K.pick({
6227
6231
  orgId: !0,
6228
6232
  handle: !0,
6229
6233
  name: !0,
@@ -6237,13 +6241,13 @@ var Wa = object({
6237
6241
  status: !0,
6238
6242
  updatedAt: !0
6239
6243
  }).extend({
6240
- avatar: so.nullable().optional(),
6241
- cover: so.nullable().optional()
6242
- }), Eo = object({
6244
+ avatar: $.nullable().optional(),
6245
+ cover: $.nullable().optional()
6246
+ }), Do = object({
6243
6247
  name: string().min(1).max(255),
6244
6248
  handle: string().min(2).max(50).optional(),
6245
- timezone: X.optional()
6246
- }).strict(), Do = J.pick({
6249
+ timezone: J.optional()
6250
+ }).strict(), Oo = K.pick({
6247
6251
  name: !0,
6248
6252
  email: !0,
6249
6253
  website: !0,
@@ -6252,14 +6256,14 @@ var Wa = object({
6252
6256
  }).extend({
6253
6257
  name: string().min(1).max(255).optional(),
6254
6258
  email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
6255
- timezone: X.optional(),
6259
+ timezone: J.optional(),
6256
6260
  avatarMediaId: string().nullable().optional(),
6257
6261
  coverMediaId: string().nullable().optional()
6258
- }).strict(), Oo = _enum([
6262
+ }).strict(), ko = _enum([
6259
6263
  "success",
6260
6264
  "info",
6261
6265
  "warning"
6262
- ]), ko = object({
6266
+ ]), Ao = object({
6263
6267
  org: object({
6264
6268
  orgId: string(),
6265
6269
  name: string(),
@@ -6268,7 +6272,7 @@ var Wa = object({
6268
6272
  plan: object({
6269
6273
  key: string(),
6270
6274
  label: string(),
6271
- tone: Oo,
6275
+ tone: ko,
6272
6276
  status: string(),
6273
6277
  trialDaysRemaining: number().optional()
6274
6278
  }),
@@ -6289,15 +6293,15 @@ function zPaginatedResponse(e) {
6289
6293
  }
6290
6294
  //#endregion
6291
6295
  //#region ../core/dist/wire/public-services.js
6292
- var Ao = object({
6296
+ var jo = object({
6293
6297
  sender: _enum(["user", "agent"]),
6294
6298
  text: string()
6295
- }), jo = _enum([
6299
+ }), Mo = _enum([
6296
6300
  "works-now",
6297
6301
  "guided-setup",
6298
6302
  "coming-soon",
6299
6303
  "custom-workflow"
6300
- ]), Mo = object({
6304
+ ]), No = object({
6301
6305
  docsUrl: string(),
6302
6306
  verifiedAt: string(),
6303
6307
  version: string().optional(),
@@ -6309,11 +6313,11 @@ var Ao = object({
6309
6313
  "unversioned"
6310
6314
  ]),
6311
6315
  note: string().optional()
6312
- }), No = object({
6316
+ }), Po = object({
6313
6317
  key: string(),
6314
6318
  label: string(),
6315
6319
  rank: number()
6316
- }), Po = object({
6320
+ }), Fo = object({
6317
6321
  text: string(),
6318
6322
  tone: _enum([
6319
6323
  "info",
@@ -6321,7 +6325,7 @@ var Ao = object({
6321
6325
  "success",
6322
6326
  "danger"
6323
6327
  ])
6324
- }), Fo = object({
6328
+ }), Io = object({
6325
6329
  serviceKey: string(),
6326
6330
  name: string(),
6327
6331
  description: string(),
@@ -6331,16 +6335,16 @@ var Ao = object({
6331
6335
  category: string(),
6332
6336
  categoryLabel: string(),
6333
6337
  categoryRank: number(),
6334
- secondaryCategories: array(No),
6335
- badges: array(Po),
6338
+ secondaryCategories: array(Po),
6339
+ badges: array(Fo),
6336
6340
  tags: array(string()),
6337
6341
  searchAliases: array(string()),
6338
6342
  jtbd: string(),
6339
6343
  useCase: string(),
6340
6344
  demoScenario: string(),
6341
- sampleConversation: array(Ao),
6342
- publicStatus: jo,
6343
- apiVerification: Mo.optional(),
6345
+ sampleConversation: array(jo),
6346
+ publicStatus: Mo,
6347
+ apiVerification: No.optional(),
6344
6348
  setupDifficulty: string(),
6345
6349
  risk: string(),
6346
6350
  price: string(),
@@ -6353,84 +6357,84 @@ var Ao = object({
6353
6357
  ]),
6354
6358
  setupSummary: string().optional(),
6355
6359
  pagePath: string()
6356
- }), Io = object({
6360
+ }), Lo = object({
6357
6361
  fullName: string().min(1).max(100).optional(),
6358
- linkedinUsername: q.nullable().optional(),
6362
+ linkedinUsername: W.nullable().optional(),
6359
6363
  avatarMediaId: string().nullable().optional(),
6360
6364
  primaryAgentId: string().nullable().optional(),
6361
6365
  lastActiveOrgId: string().nullable().optional()
6362
- }).strict(), Lo = /* @__PURE__ */ t({
6363
- ASSISTANT_SILENCE_CONTROLS: () => Ci,
6364
- ActionAreaSchema: () => Pr,
6365
- ActionButtonSchema: () => R,
6366
- Agent: () => ai,
6367
- AudioFormatSchema: () => wr,
6368
- AudioMediaSchema: () => kr,
6369
- AudioPropertiesSchema: () => Er,
6366
+ }).strict(), Ro = /* @__PURE__ */ t({
6367
+ ASSISTANT_SILENCE_CONTROLS: () => Ei,
6368
+ ActionAreaSchema: () => Ir,
6369
+ ActionButtonSchema: () => I,
6370
+ Agent: () => ci,
6371
+ AudioFormatSchema: () => Tr,
6372
+ AudioMediaSchema: () => Ar,
6373
+ AudioPropertiesSchema: () => Dr,
6370
6374
  AuthApiError: () => AuthApiError,
6371
- BOT_API_LLM_PATH: () => Di,
6372
- BOT_API_PATH: () => Ei,
6373
- BOT_USER_AGENT: () => Si,
6374
- ButtonDesignSchema: () => Nr,
6375
- ButtonThemeSchema: () => Mr,
6376
- CHART_THEME: () => Lr,
6377
- CHAT_ISSUE_CODES: () => Br,
6378
- CHAT_ISSUE_COPY: () => B,
6375
+ BOT_API_LLM_PATH: () => Ai,
6376
+ BOT_API_PATH: () => ki,
6377
+ BOT_USER_AGENT: () => Ti,
6378
+ ButtonDesignSchema: () => Fr,
6379
+ ButtonThemeSchema: () => Pr,
6380
+ CHART_THEME: () => zr,
6381
+ CHAT_ISSUE_CODES: () => Hr,
6382
+ CHAT_ISSUE_COPY: () => R,
6379
6383
  CookieUtil: () => CookieUtil,
6380
- DEFAULT_HEARTBEAT_TIMES: () => ir,
6381
- DocumentMediaSchema: () => Ar,
6382
- ERROR_CODES: () => Fi,
6383
- EnrichedAgentSchema: () => ri,
6384
- ImageFormatSchema: () => Sr,
6385
- ImageMediaSchema: () => Dr,
6386
- LIFECYCLE_COLOR: () => Kr,
6387
- Logger: () => M,
6388
- MEDIA_CONTEXTS: () => vr,
6389
- MEDIA_TYPES: () => _r,
6390
- MediaContextSchema: () => yr,
6391
- MediaSchema: () => I,
6392
- MediaStatusSchema: () => br,
6393
- MediaTypeSchema: () => F,
6394
- MediaUnionSchema: () => jr,
6395
- NavItemSchema: () => Fr,
6396
- NavListSchema: () => Ir,
6384
+ DEFAULT_HEARTBEAT_TIMES: () => ar,
6385
+ DocumentMediaSchema: () => jr,
6386
+ ERROR_CODES: () => Ri,
6387
+ EnrichedAgentSchema: () => oi,
6388
+ ImageFormatSchema: () => Cr,
6389
+ ImageMediaSchema: () => Or,
6390
+ LIFECYCLE_COLOR: () => Jr,
6391
+ Logger: () => j,
6392
+ MEDIA_CONTEXTS: () => yr,
6393
+ MEDIA_TYPES: () => vr,
6394
+ MediaContextSchema: () => br,
6395
+ MediaSchema: () => F,
6396
+ MediaStatusSchema: () => xr,
6397
+ MediaTypeSchema: () => P,
6398
+ MediaUnionSchema: () => Mr,
6399
+ NavItemSchema: () => Lr,
6400
+ NavListSchema: () => Rr,
6397
6401
  PAGELINES_APP_CONFIG: () => i,
6398
- PERSONA_DEFAULTS: () => Xr,
6402
+ PERSONA_DEFAULTS: () => Qr,
6399
6403
  SettingsObject: () => SettingsObject,
6400
- SizeSchema: () => L,
6401
- SocialAccountSchema: () => hr,
6402
- SocialAccountsSchema: () => gr,
6403
- UNKNOWN_STATUS: () => Gr,
6404
- VOICE_CATALOG: () => W,
6405
- VideoFormatSchema: () => Cr,
6406
- VideoMediaSchema: () => Or,
6407
- VideoPropertiesSchema: () => Tr,
6408
- agentSchema: () => K,
6404
+ SizeSchema: () => Nr,
6405
+ SocialAccountSchema: () => gr,
6406
+ SocialAccountsSchema: () => _r,
6407
+ UNKNOWN_STATUS: () => qr,
6408
+ VOICE_CATALOG: () => H,
6409
+ VideoFormatSchema: () => wr,
6410
+ VideoMediaSchema: () => kr,
6411
+ VideoPropertiesSchema: () => Er,
6412
+ agentSchema: () => ai,
6409
6413
  apiError: () => apiError,
6410
6414
  apiOk: () => apiOk,
6411
- appleAuthSchema: () => _i,
6415
+ appleAuthSchema: () => bi,
6412
6416
  authErrorMessage: () => authErrorMessage,
6413
6417
  botApiLlmUrl: () => botApiLlmUrl,
6414
6418
  botApiUrl: () => botApiUrl,
6415
6419
  budgetMinutes: () => budgetMinutes,
6416
6420
  buildChatIssue: () => buildChatIssue,
6417
- changeEmailSchema: () => mi,
6418
- changePasswordSchema: () => hi,
6421
+ changeEmailSchema: () => _i,
6422
+ changePasswordSchema: () => vi,
6419
6423
  chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
6420
6424
  chatEventMatchesTurn: () => chatEventMatchesTurn,
6421
6425
  chatEventTurnId: () => chatEventTurnId,
6422
6426
  chatEventUserTurnId: () => chatEventUserTurnId,
6423
6427
  chatIssueCatalogLines: () => chatIssueCatalogLines,
6424
6428
  chatIssueToErrorData: () => chatIssueToErrorData,
6425
- cookieUtil: () => mr,
6429
+ cookieUtil: () => hr,
6426
6430
  createAgent: () => createAgent,
6427
6431
  createAgents: () => createAgents,
6428
6432
  createLogger: () => createLogger,
6429
- debug: () => dr,
6433
+ debug: () => fr,
6430
6434
  derive: () => derive,
6431
- emailSchema: () => li,
6432
- enrichedUserSchema: () => xi,
6433
- error: () => cr,
6435
+ emailSchema: () => fi,
6436
+ enrichedUserSchema: () => wi,
6437
+ error: () => lr,
6434
6438
  errorCopy: () => errorCopy,
6435
6439
  errorFromApiResponse: () => errorFromApiResponse,
6436
6440
  extractChatVisualFencePayloads: () => extractChatVisualFencePayloads,
@@ -6439,152 +6443,152 @@ var Ao = object({
6439
6443
  getDefaultAvatarUrl: () => getDefaultAvatarUrl,
6440
6444
  getDefaultGradientCss: () => getDefaultGradientCss,
6441
6445
  getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
6442
- googleAuthSchema: () => gi,
6443
- info: () => ur,
6446
+ googleAuthSchema: () => yi,
6447
+ info: () => dr,
6444
6448
  isAgentReady: () => isAgentReady,
6445
6449
  isAssistantSilenceControl: () => isAssistantSilenceControl,
6446
6450
  isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
6447
6451
  isOperationActive: () => isOperationActive,
6448
6452
  isTransitioning: () => isTransitioning,
6449
- linkedinUsernameSchema: () => q,
6450
- logger: () => N,
6451
- loginSchema: () => ui,
6453
+ linkedinUsernameSchema: () => W,
6454
+ logger: () => M,
6455
+ loginSchema: () => pi,
6452
6456
  mapAuthErrorCode: () => mapAuthErrorCode,
6453
6457
  nanoid: () => nanoid,
6454
- notificationWire: () => bo,
6458
+ notificationWire: () => xo,
6455
6459
  objectId: () => objectId,
6456
- orgInfoSchema: () => bi,
6457
- orgSchema: () => J,
6458
- orgWithDefaultAgentSchema: () => vi,
6460
+ orgInfoSchema: () => Ci,
6461
+ orgSchema: () => K,
6462
+ orgWithDefaultAgentSchema: () => xi,
6459
6463
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6460
6464
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
6461
- registerSchema: () => di,
6465
+ registerSchema: () => mi,
6462
6466
  renderIssueAsMarkdown: () => renderIssueAsMarkdown,
6463
- resetPasswordSchema: () => pi,
6467
+ resetPasswordSchema: () => gi,
6464
6468
  resolveVoice: () => resolveVoice,
6465
6469
  retryPolicyFor: () => retryPolicyFor,
6466
6470
  runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
6467
- serverTransitionBudgets: () => Ti,
6471
+ serverTransitionBudgets: () => Oi,
6468
6472
  shortId: () => shortId,
6469
6473
  toAgentState: () => toAgentState,
6470
6474
  toChatStreamError: () => toChatStreamError,
6471
- trace: () => fr,
6472
- trialEligibilitySchema: () => oi,
6473
- updateUserSchema: () => ci,
6474
- userSchema: () => si,
6475
+ trace: () => pr,
6476
+ trialEligibilitySchema: () => li,
6477
+ updateUserSchema: () => di,
6478
+ userSchema: () => ui,
6475
6479
  uuid: () => uuid,
6476
- verifyCodeSchema: () => fi,
6477
- warn: () => lr,
6480
+ verifyCodeSchema: () => hi,
6481
+ warn: () => ur,
6478
6482
  withChatEventTurnId: () => withChatEventTurnId,
6479
- zAcceptInvitationBody: () => go,
6480
- zAccessibleAgentRow: () => yo,
6481
- zAgentGender: () => U,
6482
- zAgentRow: () => Ni,
6483
- zApiError: () => Ri,
6483
+ zAcceptInvitationBody: () => _o,
6484
+ zAccessibleAgentRow: () => bo,
6485
+ zAgentGender: () => V,
6486
+ zAgentRow: () => Ii,
6487
+ zApiError: () => Vi,
6484
6488
  zApiOk: () => zApiOk,
6485
6489
  zApiResponse: () => zApiResponse,
6486
- zAppleAuthBody: () => la,
6487
- zAuthSessionData: () => ua,
6488
- zAuthSessionResponse: () => da,
6489
- zAutomationPrimaryChannel: () => Ai,
6490
- zBackfillBillingData: () => Ea,
6491
- zBackfillCustomersData: () => Ta,
6492
- zBillingDetails: () => Ca,
6493
- zBillingInvoice: () => xa,
6494
- zBillingPaymentMethod: () => ba,
6495
- zBillingPlanKey: () => va,
6496
- zBillingStatus: () => ya,
6497
- zBillingTier: () => ni,
6498
- zBotGenerateImageBody: () => sa,
6499
- zBotGenerateImageResponse: () => ca,
6500
- zCancelConversationTurnBody: () => Ja,
6501
- zCancelConversationTurnResponse: () => Ya,
6502
- zCantRebuildReason: () => vo,
6503
- zCantWakeReason: () => _o,
6504
- zChatAttachment: () => Gi,
6505
- zChatAttachmentInput: () => $i,
6506
- zChatAttachmentPlacement: () => Wi,
6507
- zChatCardSpec: () => ja,
6508
- zChatErrorData: () => Oa,
6509
- zChatEvent: () => ka,
6510
- zChatIssue: () => z,
6511
- zChatMessage: () => Qi,
6512
- zChatMessageAttentionItem: () => Yi,
6513
- zChatMessageAttentionRef: () => Ki,
6514
- zChatMessageAttentionUpdate: () => Xi,
6515
- zChatMessageMetadata: () => Zi,
6516
- zChatStatusData: () => Da,
6517
- zChatToolActivityData: () => Vi,
6518
- zChatToolActivityVisual: () => Bi,
6519
- zChatVisualSpec: () => Ua,
6520
- zCompleteCheckoutData: () => wa,
6521
- zConversationLastMessage: () => Ga,
6522
- zConversationParticipant: () => Wa,
6523
- zConversationSummary: () => Ka,
6524
- zConversationTarget: () => ta,
6525
- zConversationUpdatedEvent: () => Za,
6526
- zCreateAgentBody: () => ji,
6527
- zCreateConversationBody: () => na,
6528
- zCreateConversationSessionBody: () => ra,
6529
- zCreateOrgBody: () => Eo,
6530
- zDesiredStatus: () => V,
6531
- zErrorCode: () => Ii,
6490
+ zAppleAuthBody: () => fa,
6491
+ zAuthSessionData: () => pa,
6492
+ zAuthSessionResponse: () => ma,
6493
+ zAutomationPrimaryChannel: () => Ni,
6494
+ zBackfillBillingData: () => ka,
6495
+ zBackfillCustomersData: () => Oa,
6496
+ zBillingDetails: () => Ea,
6497
+ zBillingInvoice: () => wa,
6498
+ zBillingPaymentMethod: () => Ca,
6499
+ zBillingPlanKey: () => xa,
6500
+ zBillingStatus: () => Sa,
6501
+ zBillingTier: () => ii,
6502
+ zBotGenerateImageBody: () => ua,
6503
+ zBotGenerateImageResponse: () => da,
6504
+ zCancelConversationTurnBody: () => Xa,
6505
+ zCancelConversationTurnResponse: () => Za,
6506
+ zCantRebuildReason: () => yo,
6507
+ zCantWakeReason: () => vo,
6508
+ zChatAttachment: () => Ji,
6509
+ zChatAttachmentInput: () => na,
6510
+ zChatAttachmentPlacement: () => qi,
6511
+ zChatCardSpec: () => Pa,
6512
+ zChatErrorData: () => ja,
6513
+ zChatEvent: () => Ma,
6514
+ zChatIssue: () => L,
6515
+ zChatMessage: () => ta,
6516
+ zChatMessageAttentionItem: () => Qi,
6517
+ zChatMessageAttentionRef: () => Yi,
6518
+ zChatMessageAttentionUpdate: () => $i,
6519
+ zChatMessageMetadata: () => ea,
6520
+ zChatStatusData: () => Aa,
6521
+ zChatToolActivityData: () => Wi,
6522
+ zChatToolActivityVisual: () => Ui,
6523
+ zChatVisualSpec: () => Ka,
6524
+ zCompleteCheckoutData: () => Da,
6525
+ zConversationLastMessage: () => qa,
6526
+ zConversationParticipant: () => Z,
6527
+ zConversationSummary: () => Ja,
6528
+ zConversationTarget: () => ia,
6529
+ zConversationUpdatedEvent: () => $a,
6530
+ zCreateAgentBody: () => Pi,
6531
+ zCreateConversationBody: () => aa,
6532
+ zCreateConversationSessionBody: () => oa,
6533
+ zCreateOrgBody: () => Do,
6534
+ zDesiredStatus: () => z,
6535
+ zErrorCode: () => zi,
6532
6536
  zErrorResponses: () => zErrorResponses,
6533
- zFleetAgent: () => no,
6534
- zFleetSummary: () => ro,
6535
- zFleetSyncResponse: () => io,
6536
- zHandoffConsumeBody: () => ha,
6537
- zHandoffConsumeData: () => ga,
6538
- zHandoffConsumeResponse: () => _a,
6539
- zHandoffMintBody: () => fa,
6540
- zHandoffMintData: () => pa,
6541
- zHandoffMintResponse: () => ma,
6542
- zHeartbeatLocalTime: () => E,
6543
- zHeartbeatMoment: () => rr,
6544
- zIanaTimezone: () => X,
6545
- zImageAspectRatio: () => aa,
6546
- zImageResolution: () => oa,
6547
- zInvitationPreview: () => po,
6548
- zInvitationRow: () => fo,
6549
- zInviteBody: () => mo,
6550
- zLifecycle: () => H,
6551
- zLifecycleVerb: () => Yr,
6552
- zLiveStatus: () => Wr,
6553
- zMarkReadBody: () => qa,
6554
- zMediaContext: () => ao,
6555
- zMediaObject: () => so,
6556
- zMediaType: () => oo,
6557
- zMemberRow: () => uo,
6558
- zMessageSearchResult: () => Xa,
6559
- zOrgRow: () => To,
6560
- zOrgSummary: () => ko,
6537
+ zFleetAgent: () => io,
6538
+ zFleetSummary: () => ao,
6539
+ zFleetSyncResponse: () => oo,
6540
+ zHandoffConsumeBody: () => va,
6541
+ zHandoffConsumeData: () => ya,
6542
+ zHandoffConsumeResponse: () => ba,
6543
+ zHandoffMintBody: () => ha,
6544
+ zHandoffMintData: () => ga,
6545
+ zHandoffMintResponse: () => _a,
6546
+ zHeartbeatLocalTime: () => T,
6547
+ zHeartbeatMoment: () => ir,
6548
+ zIanaTimezone: () => J,
6549
+ zImageAspectRatio: () => ca,
6550
+ zImageResolution: () => la,
6551
+ zInvitationPreview: () => mo,
6552
+ zInvitationRow: () => po,
6553
+ zInviteBody: () => ho,
6554
+ zLifecycle: () => B,
6555
+ zLifecycleVerb: () => Zr,
6556
+ zLiveStatus: () => Kr,
6557
+ zMarkReadBody: () => Ya,
6558
+ zMediaContext: () => so,
6559
+ zMediaObject: () => $,
6560
+ zMediaType: () => co,
6561
+ zMemberRow: () => fo,
6562
+ zMessageSearchResult: () => Qa,
6563
+ zOrgRow: () => Eo,
6564
+ zOrgSummary: () => Ao,
6561
6565
  zPaginatedResponse: () => zPaginatedResponse,
6562
- zPlanTone: () => Oo,
6563
- zProviderErrorKind: () => Li,
6564
- zPublicServiceOverview: () => Fo,
6565
- zReportMessageBody: () => ia,
6566
- zRuntimeOperation: () => Ur,
6567
- zRuntimeOperationKind: () => Vr,
6568
- zRuntimeOperationStatus: () => Hr,
6569
- zSendMessageBody: () => ea,
6570
- zSuggestedPrompt: () => Pi,
6571
- zUpdateAgentBody: () => Mi,
6572
- zUpdateOrgBody: () => Do,
6573
- zUpdateRoleBody: () => ho,
6574
- zUpdateUserBody: () => Io,
6575
- zUploadMediaBody: () => co,
6576
- zVoiceKey: () => G,
6577
- zVoiceProviderName: () => $r,
6578
- zVoiceProviderSession: () => Qr,
6579
- zVoiceSessionMint: () => ei,
6580
- zVoiceSessionMintBody: () => Zr
6581
- }), Ro = "1.0.0";
6566
+ zPlanTone: () => ko,
6567
+ zProviderErrorKind: () => Bi,
6568
+ zPublicServiceOverview: () => Io,
6569
+ zReportMessageBody: () => sa,
6570
+ zRuntimeOperation: () => Gr,
6571
+ zRuntimeOperationKind: () => Ur,
6572
+ zRuntimeOperationStatus: () => Wr,
6573
+ zSendMessageBody: () => ra,
6574
+ zSuggestedPrompt: () => Li,
6575
+ zUpdateAgentBody: () => Fi,
6576
+ zUpdateOrgBody: () => Oo,
6577
+ zUpdateRoleBody: () => go,
6578
+ zUpdateUserBody: () => Lo,
6579
+ zUploadMediaBody: () => lo,
6580
+ zVoiceKey: () => U,
6581
+ zVoiceProviderName: () => ti,
6582
+ zVoiceProviderSession: () => ei,
6583
+ zVoiceSessionMint: () => ni,
6584
+ zVoiceSessionMintBody: () => $r
6585
+ }), zo = "1.0.0";
6582
6586
  function buildContract(e = {}) {
6583
6587
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6584
6588
  let r = contractNameFor(e);
6585
6589
  r && (n[r] = toSchema(t));
6586
6590
  };
6587
- for (let [e, t] of Object.entries(Lo)) {
6591
+ for (let [e, t] of Object.entries(Ro)) {
6588
6592
  if (t instanceof S) {
6589
6593
  addSchema(e, t);
6590
6594
  continue;
@@ -6592,7 +6596,7 @@ function buildContract(e = {}) {
6592
6596
  if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
6593
6597
  }
6594
6598
  return {
6595
- version: Ro,
6599
+ version: zo,
6596
6600
  generatedAt: t.toISOString(),
6597
6601
  schemas: n
6598
6602
  };
@@ -6612,6 +6616,6 @@ function sortedReplacer(e, t) {
6612
6616
  return t;
6613
6617
  }
6614
6618
  //#endregion
6615
- export { Ro as CONTRACT_VERSION, buildContract, serializeContract };
6619
+ export { zo as CONTRACT_VERSION, buildContract, serializeContract };
6616
6620
 
6617
6621
  //# sourceMappingURL=contract.js.map