@pagelines/sdk 1.0.827 → 1.0.829

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
@@ -3487,11 +3487,21 @@ var cr = /* @__PURE__ */ new Set([
3487
3487
  "ENOTFOUND",
3488
3488
  "EHOSTUNREACH",
3489
3489
  "EPIPE"
3490
+ ]), lr = /* @__PURE__ */ new Set([
3491
+ ...cr,
3492
+ "CONNECTION_CLOSED",
3493
+ "53300"
3490
3494
  ]);
3491
- function infraErrorCode(e, t = 0) {
3495
+ function findInfraError(e, t = 0) {
3492
3496
  if (t > 4 || !(e instanceof Error)) return;
3493
3497
  let n = e.code;
3494
- return typeof n == "string" && cr.has(n) ? n : infraErrorCode(e.cause, t + 1);
3498
+ return typeof n == "string" && lr.has(n) ? {
3499
+ code: n,
3500
+ error: e
3501
+ } : findInfraError(e.cause, t + 1);
3502
+ }
3503
+ function infraEndpoint({ code: e, error: t }) {
3504
+ if (!(!cr.has(e) || !t.message.includes(e) || t.message.length > 240)) return t.message.match(/(?:localhost|(?:[a-z0-9-]+\.)+[a-z0-9-]+|\d{1,3}(?:\.\d{1,3}){3}|\[[a-f0-9:]+\])(?::\d{1,5})?/iu)?.[0];
3495
3505
  }
3496
3506
  function firstAppFrame(e) {
3497
3507
  if (e) return e.split("\n").find((e) => (e.includes("/src/") || e.includes("/packages/")) && !e.includes("node_modules"))?.trim();
@@ -3542,14 +3552,15 @@ var j = class Logger {
3542
3552
  if (n >= t) return "[Max Depth]";
3543
3553
  if (e == null) return e;
3544
3554
  if (e instanceof Error) {
3545
- let r = infraErrorCode(e);
3555
+ let r = findInfraError(e);
3546
3556
  if (r) {
3547
3557
  let t = {
3548
3558
  name: e.name,
3549
- message: e.message,
3550
- code: r
3551
- }, n = firstAppFrame(e.stack) ?? firstAppFrame(e.cause?.stack);
3552
- return n && (t.at = n), this.redactSensitive(t);
3559
+ code: r.code
3560
+ }, n = infraEndpoint(r);
3561
+ n && (t.endpoint = n);
3562
+ let i = firstAppFrame(e.stack) ?? firstAppFrame(e.cause?.stack);
3563
+ return i && (t.at = i), this.redactSensitive(t);
3553
3564
  }
3554
3565
  let i = {
3555
3566
  name: e.name,
@@ -3660,7 +3671,7 @@ j.hasShownHelp = !1;
3660
3671
  function createLogger(e) {
3661
3672
  return new j({}, e);
3662
3673
  }
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 {
3674
+ var M = new j(), ur = M.error.bind(M), dr = M.warn.bind(M), fr = M.info.bind(M), pr = M.debug.bind(M), mr = M.trace.bind(M), SettingsObject = class {
3664
3675
  constructor(e, t) {
3665
3676
  this.objectName = e, this.settings = t, this.logger = createLogger(e);
3666
3677
  }
@@ -3688,7 +3699,7 @@ function uuid() {
3688
3699
  }
3689
3700
  //#endregion
3690
3701
  //#region ../core/dist/utils/color.js
3691
- var mr = {
3702
+ var hr = {
3692
3703
  green: {
3693
3704
  50: "oklch(98.2% 0.018 155.826)",
3694
3705
  100: "oklch(96.2% 0.044 156.743)",
@@ -3821,7 +3832,7 @@ var mr = {
3821
3832
  }
3822
3833
  };
3823
3834
  function getColorSchemeOklch(e) {
3824
- return mr[e] || mr.blue;
3835
+ return hr[e] || hr.blue;
3825
3836
  }
3826
3837
  //#endregion
3827
3838
  //#region ../core/dist/utils/cookies.js
@@ -3894,11 +3905,11 @@ var CookieUtil = class {
3894
3905
  getDeviceId() {
3895
3906
  return this.getCookie(this.deviceIdName);
3896
3907
  }
3897
- }, hr = new CookieUtil(), gr = ["https://redirect-a.invalid", "https://redirect-b.invalid"];
3908
+ }, gr = new CookieUtil(), _r = ["https://redirect-a.invalid", "https://redirect-b.invalid"];
3898
3909
  function isSafeRedirectPath(e) {
3899
3910
  if (typeof e != "string" || !e.startsWith("/")) return !1;
3900
3911
  try {
3901
- return gr.every((t) => new URL(e, t).origin === t);
3912
+ return _r.every((t) => new URL(e, t).origin === t);
3902
3913
  } catch {
3903
3914
  return !1;
3904
3915
  }
@@ -3930,7 +3941,7 @@ var AuthApiError = class extends Error {
3930
3941
  constructor(e, t) {
3931
3942
  super(e), this.name = "AuthApiError", this.code = t;
3932
3943
  }
3933
- }, _r = object({
3944
+ }, vr = object({
3934
3945
  platform: _enum([
3935
3946
  "linkedin",
3936
3947
  "x",
@@ -3947,38 +3958,38 @@ var AuthApiError = class extends Error {
3947
3958
  ]),
3948
3959
  handle: string(),
3949
3960
  url: string().optional()
3950
- }), vr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(_r)), yr = [
3961
+ }), yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(vr)), br = [
3951
3962
  "image",
3952
3963
  "audio",
3953
3964
  "video",
3954
3965
  "document"
3955
- ], P = _enum(yr), br = [
3966
+ ], P = _enum(br), xr = [
3956
3967
  "avatar",
3957
3968
  "cover",
3958
3969
  "general"
3959
- ], xr = _enum(br), Sr = _enum([
3970
+ ], Sr = _enum(xr), Cr = _enum([
3960
3971
  "processing",
3961
3972
  "active",
3962
3973
  "failed",
3963
3974
  "deleted"
3964
- ]), Cr = _enum([
3975
+ ]), wr = _enum([
3965
3976
  "low",
3966
3977
  "standard",
3967
3978
  "high"
3968
- ]), wr = _enum([
3979
+ ]), Tr = _enum([
3969
3980
  "jpg",
3970
3981
  "jpeg",
3971
3982
  "png",
3972
3983
  "gif",
3973
3984
  "webp",
3974
3985
  "svg"
3975
- ]), Tr = _enum([
3986
+ ]), Er = _enum([
3976
3987
  "mp4",
3977
3988
  "webm",
3978
3989
  "ogg",
3979
3990
  "mov",
3980
3991
  "avi"
3981
- ]), Er = _enum([
3992
+ ]), Dr = _enum([
3982
3993
  "mp3",
3983
3994
  "wav",
3984
3995
  "ogg",
@@ -3998,9 +4009,9 @@ var AuthApiError = class extends Error {
3998
4009
  size: number(),
3999
4010
  src: string(),
4000
4011
  alt: string().optional(),
4001
- context: xr.default("general"),
4002
- status: Sr.default("processing"),
4003
- quality: Cr.default("standard"),
4012
+ context: Sr.default("general"),
4013
+ status: Cr.default("processing"),
4014
+ quality: wr.default("standard"),
4004
4015
  createdAt: string().optional(),
4005
4016
  updatedAt: string().optional()
4006
4017
  }).extend({
@@ -4011,43 +4022,43 @@ var AuthApiError = class extends Error {
4011
4022
  height: number().optional(),
4012
4023
  duration: number().optional(),
4013
4024
  blurhash: string().optional()
4014
- }).partial(), Dr = object({
4025
+ }).partial(), Or = object({
4015
4026
  duration: number().optional(),
4016
4027
  thumbnail: string().optional(),
4017
4028
  autoplay: boolean().optional(),
4018
4029
  loop: boolean().optional(),
4019
4030
  muted: boolean().optional(),
4020
4031
  controls: boolean().optional()
4021
- }), Or = object({
4032
+ }), kr = object({
4022
4033
  duration: number().optional(),
4023
4034
  autoplay: boolean().optional(),
4024
4035
  loop: boolean().optional(),
4025
4036
  muted: boolean().optional(),
4026
4037
  controls: boolean().optional()
4027
- }), kr = F.extend({
4028
- mediaType: literal("image"),
4029
- imageFormat: wr.optional()
4030
4038
  }), Ar = F.extend({
4031
- mediaType: literal("video"),
4032
- videoFormat: Tr.optional(),
4033
- video: Dr.optional()
4039
+ mediaType: literal("image"),
4040
+ imageFormat: Tr.optional()
4034
4041
  }), jr = F.extend({
4042
+ mediaType: literal("video"),
4043
+ videoFormat: Er.optional(),
4044
+ video: Or.optional()
4045
+ }), Mr = F.extend({
4035
4046
  mediaType: literal("audio"),
4036
- audioFormat: Er.optional(),
4037
- audio: Or.optional()
4038
- }), Mr = F.extend({ mediaType: literal("document") }), Nr = discriminatedUnion("mediaType", [
4039
- kr,
4047
+ audioFormat: Dr.optional(),
4048
+ audio: kr.optional()
4049
+ }), Nr = F.extend({ mediaType: literal("document") }), Pr = discriminatedUnion("mediaType", [
4040
4050
  Ar,
4041
4051
  jr,
4042
- Mr
4043
- ]), Pr = _enum([
4052
+ Mr,
4053
+ Nr
4054
+ ]), Fr = _enum([
4044
4055
  "xxs",
4045
4056
  "xs",
4046
4057
  "sm",
4047
4058
  "md",
4048
4059
  "lg",
4049
4060
  "xl"
4050
- ]), Fr = _enum([
4061
+ ]), Ir = _enum([
4051
4062
  "primary",
4052
4063
  "default",
4053
4064
  "overlay",
@@ -4055,7 +4066,7 @@ var AuthApiError = class extends Error {
4055
4066
  "green",
4056
4067
  "indigo",
4057
4068
  "orange"
4058
- ]), Ir = _enum([
4069
+ ]), Lr = _enum([
4059
4070
  "ghost",
4060
4071
  "link",
4061
4072
  "outline",
@@ -4064,9 +4075,9 @@ var AuthApiError = class extends Error {
4064
4075
  key: string().optional(),
4065
4076
  label: string().optional(),
4066
4077
  href: string().optional(),
4067
- size: Pr.optional(),
4068
- theme: Fr.optional(),
4069
- design: Ir.optional(),
4078
+ size: Fr.optional(),
4079
+ theme: Ir.optional(),
4080
+ design: Lr.optional(),
4070
4081
  icon: union([string(), F]).optional(),
4071
4082
  iconAfter: union([string(), F]).optional(),
4072
4083
  rounding: _enum([
@@ -4085,12 +4096,12 @@ var AuthApiError = class extends Error {
4085
4096
  "submit",
4086
4097
  "reset"
4087
4098
  ]).optional()
4088
- }), Lr = object({
4099
+ }), Rr = object({
4089
4100
  buttons: array(I).optional(),
4090
- size: Pr.optional(),
4091
- theme: Fr.optional(),
4092
- design: Ir.optional()
4093
- }), Rr = 3900, zr = `$${Rr / 100}/month`, Br = _enum(["account", "error"]), L = [
4101
+ size: Fr.optional(),
4102
+ theme: Ir.optional(),
4103
+ design: Lr.optional()
4104
+ }), zr = 3900, L = `$${zr / 100}/month`, Br = _enum(["account", "error"]), Vr = [
4094
4105
  "billing_no_plan",
4095
4106
  "billing_seat_limit",
4096
4107
  "billing_past_due",
@@ -4109,7 +4120,7 @@ var AuthApiError = class extends Error {
4109
4120
  "rate_limit"
4110
4121
  ], R = object({
4111
4122
  bucket: Br,
4112
- code: _enum(L),
4123
+ code: _enum(Vr),
4113
4124
  title: string(),
4114
4125
  help: string().optional(),
4115
4126
  actionLabel: string(),
@@ -4118,9 +4129,9 @@ var AuthApiError = class extends Error {
4118
4129
  billing_no_plan: {
4119
4130
  bucket: "account",
4120
4131
  title: "Billing needed",
4121
- help: `Add a payment method to turn live replies back on. Plans start at ${zr} per active assistant, cancel anytime.`,
4132
+ help: `Add a payment method to turn live replies back on. Plans start at ${L} per active assistant, cancel anytime.`,
4122
4133
  actionLabel: "Open billing",
4123
- oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${zr} per active assistant.`
4134
+ oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${L} per active assistant.`
4124
4135
  },
4125
4136
  billing_seat_limit: {
4126
4137
  bucket: "account",
@@ -4229,7 +4240,7 @@ var AuthApiError = class extends Error {
4229
4240
  }
4230
4241
  };
4231
4242
  function chatIssueCatalogLines() {
4232
- return L.map((e) => `- ${e}: ${z[e].oneLine}`).join("\n");
4243
+ return Vr.map((e) => `- ${e}: ${z[e].oneLine}`).join("\n");
4233
4244
  }
4234
4245
  function buildChatIssue(e) {
4235
4246
  let t = z[e.code];
@@ -4267,29 +4278,29 @@ var B = _enum([
4267
4278
  "unreachable",
4268
4279
  "stopping",
4269
4280
  "error"
4270
- ]), Vr = _enum([
4281
+ ]), Hr = _enum([
4271
4282
  "wake",
4272
4283
  "sleep",
4273
4284
  "restart",
4274
4285
  "rebuild",
4275
4286
  "config_apply",
4276
4287
  "setup"
4277
- ]), Hr = _enum([
4288
+ ]), Ur = _enum([
4278
4289
  "running",
4279
4290
  "coalesced",
4280
4291
  "failed"
4281
- ]), Ur = object({
4282
- kind: Vr,
4283
- status: Hr,
4292
+ ]), Wr = object({
4293
+ kind: Hr,
4294
+ status: Ur,
4284
4295
  startedAt: string().datetime(),
4285
4296
  detail: string().optional()
4286
- }).strict(), Wr = object({
4297
+ }).strict(), Gr = object({
4287
4298
  lifecycle: B,
4288
4299
  changedAt: string().datetime().optional(),
4289
4300
  detail: string().optional(),
4290
4301
  blocker: R.optional(),
4291
- operation: Ur.optional()
4292
- }).strict(), Gr = Object.freeze({ lifecycle: "unknown" }), Kr = {
4302
+ operation: Wr.optional()
4303
+ }).strict(), Kr = Object.freeze({ lifecycle: "unknown" }), qr = {
4293
4304
  running: "green",
4294
4305
  starting: "amber",
4295
4306
  stopping: "amber",
@@ -4298,17 +4309,17 @@ var B = _enum([
4298
4309
  error: "red",
4299
4310
  stopped: "grey",
4300
4311
  unknown: "grey"
4301
- }, qr = _enum([
4312
+ }, Jr = _enum([
4302
4313
  "awake",
4303
4314
  "asleep",
4304
4315
  "changing",
4305
4316
  "stuck"
4306
- ]), Jr = {
4317
+ ]), Yr = {
4307
4318
  awake: "Awake",
4308
4319
  asleep: "Asleep",
4309
4320
  changing: "Changing",
4310
4321
  stuck: "Stuck"
4311
- }, Yr = {
4322
+ }, Xr = {
4312
4323
  awake: "green",
4313
4324
  asleep: "grey",
4314
4325
  changing: "amber",
@@ -4329,7 +4340,7 @@ function customerAgentState(e) {
4329
4340
  case "unknown": return;
4330
4341
  }
4331
4342
  }
4332
- var Xr = {
4343
+ var Zr = {
4333
4344
  running: "Online",
4334
4345
  starting: "Waking up",
4335
4346
  stopping: "Stopping",
@@ -4338,7 +4349,7 @@ var Xr = {
4338
4349
  error: "Error",
4339
4350
  stopped: "Asleep",
4340
4351
  unknown: "Checking"
4341
- }, Zr = {
4352
+ }, Qr = {
4342
4353
  wake: "Waking up",
4343
4354
  sleep: "Stopping",
4344
4355
  restart: "Restarting",
@@ -4347,7 +4358,7 @@ var Xr = {
4347
4358
  setup: "Setting up"
4348
4359
  };
4349
4360
  function toAgentState(e, t) {
4350
- let n = e.operation, r = Xr[e.lifecycle] ?? "Unknown", i = Kr[e.lifecycle] ?? "grey", a = n ? Zr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = `${t} · ${o}`;
4361
+ let n = e.operation, r = Zr[e.lifecycle] ?? "Unknown", i = qr[e.lifecycle] ?? "grey", a = n ? Qr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = `${t} · ${o}`;
4351
4362
  return {
4352
4363
  ...e,
4353
4364
  color: s,
@@ -4355,7 +4366,7 @@ function toAgentState(e, t) {
4355
4366
  tooltip: c
4356
4367
  };
4357
4368
  }
4358
- var Qr = _enum([
4369
+ var $r = _enum([
4359
4370
  "wake",
4360
4371
  "sleep",
4361
4372
  "restart",
@@ -4379,7 +4390,7 @@ function isAgentReady(e) {
4379
4390
  }
4380
4391
  //#endregion
4381
4392
  //#region ../core/dist/types/navItem.js
4382
- var $r = object({
4393
+ var ei = object({
4383
4394
  key: string().optional(),
4384
4395
  id: string().optional(),
4385
4396
  label: string().optional(),
@@ -4387,7 +4398,7 @@ var $r = object({
4387
4398
  subLabel: string().optional(),
4388
4399
  value: union([string(), number()]).optional(),
4389
4400
  description: string().optional(),
4390
- state: qr.optional(),
4401
+ state: Jr.optional(),
4391
4402
  count: number().optional(),
4392
4403
  className: string().optional(),
4393
4404
  media: F.optional(),
@@ -4409,11 +4420,11 @@ var $r = object({
4409
4420
  badges: array(I).optional(),
4410
4421
  meta: array(I).optional(),
4411
4422
  menuItems: array(any()).optional()
4412
- }), ei = object({
4423
+ }), ti = object({
4413
4424
  title: string().optional(),
4414
4425
  description: string().optional(),
4415
- items: array($r).optional()
4416
- }), ti = {
4426
+ items: array(ei).optional()
4427
+ }), ni = {
4417
4428
  colors: {
4418
4429
  primary: "#3b82f6",
4419
4430
  secondary: "#93c5fd",
@@ -4432,7 +4443,7 @@ var $r = object({
4432
4443
  compact: 4,
4433
4444
  comfortable: 6
4434
4445
  }
4435
- }, ni = [
4446
+ }, ri = [
4436
4447
  ["#6366f1", "#8b5cf6"],
4437
4448
  ["#3b82f6", "#06b6d4"],
4438
4449
  ["#10b981", "#34d399"],
@@ -4448,7 +4459,7 @@ function hashName(e) {
4448
4459
  return Math.abs(t);
4449
4460
  }
4450
4461
  function getGradientPair(e) {
4451
- return ni[(e ? hashName(e) : 0) % ni.length];
4462
+ return ri[(e ? hashName(e) : 0) % ri.length];
4452
4463
  }
4453
4464
  function getDefaultAvatarUrl(e) {
4454
4465
  let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
@@ -4559,12 +4570,12 @@ var V = _enum(["active", "stopped"]), H = _enum(["woman", "man"]), U = [
4559
4570
  accent: "American",
4560
4571
  character: "Easygoing and plain-spoken"
4561
4572
  }
4562
- ], W = _enum(U.map((e) => e.key)), ri = { gender: "man" };
4573
+ ], W = _enum(U.map((e) => e.key)), ii = { gender: "man" };
4563
4574
  function resolveVoice(e) {
4564
4575
  let t = U.find((t) => t.key === e.voiceKey);
4565
4576
  return t?.gender === e.gender ? t : U.find((t) => t.gender === e.gender && "isDefault" in t);
4566
4577
  }
4567
- var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4578
+ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
4568
4579
  conversationId: string().min(1),
4569
4580
  agentId: string().min(1),
4570
4581
  personaName: string().min(1),
@@ -4587,7 +4598,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4587
4598
  surfaceGuidance: string().optional(),
4588
4599
  maxDurationSeconds: number().int().positive().max(3600).optional(),
4589
4600
  expiresAt: datetime()
4590
- }), oi = _enum(["elevenlabs", "livekit"]), si = discriminatedUnion("provider", [object({
4601
+ }), si = _enum(["elevenlabs", "livekit"]), ci = discriminatedUnion("provider", [object({
4591
4602
  provider: literal("elevenlabs"),
4592
4603
  conversationToken: string().min(1),
4593
4604
  voiceId: string().min(1)
@@ -4596,7 +4607,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4596
4607
  url: string().min(1),
4597
4608
  token: string().min(1),
4598
4609
  room: string().min(1)
4599
- }).strict()]), ci = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4610
+ }).strict()]), li = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4600
4611
  platform: _enum([
4601
4612
  "linkedin",
4602
4613
  "x",
@@ -4615,7 +4626,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4615
4626
  "essential",
4616
4627
  "professional",
4617
4628
  "business"
4618
- ]), li = object({
4629
+ ]), ui = object({
4619
4630
  agentId: string().optional(),
4620
4631
  handle: string().optional(),
4621
4632
  ownerId: string().optional(),
@@ -4631,7 +4642,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4631
4642
  cover: F.optional(),
4632
4643
  email: string().nullable().optional(),
4633
4644
  website: string().url().nullable().optional(),
4634
- accounts: ci.nullable().optional(),
4645
+ accounts: li.nullable().optional(),
4635
4646
  model: string().nullable().optional(),
4636
4647
  gender: H.optional(),
4637
4648
  voiceKey: W.nullable().optional(),
@@ -4668,14 +4679,14 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4668
4679
  status: string().optional(),
4669
4680
  createdAt: string().optional(),
4670
4681
  updatedAt: string().optional()
4671
- }), ui = li.extend({
4682
+ }), di = ui.extend({
4672
4683
  isPrimary: boolean().optional(),
4673
4684
  lifecycle: B.optional(),
4674
4685
  changedAt: string().datetime().optional(),
4675
4686
  detail: string().optional(),
4676
4687
  blocker: R.optional(),
4677
- operation: Ur.optional()
4678
- }), di = Object.keys(ui.shape), fi = class Agent extends SettingsObject {
4688
+ operation: Wr.optional()
4689
+ }), fi = Object.keys(di.shape), pi = class Agent extends SettingsObject {
4679
4690
  constructor(e) {
4680
4691
  let t = "config" in e ? {
4681
4692
  ...e.config instanceof Agent ? e.config.toConfig() : e.config,
@@ -4693,7 +4704,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4693
4704
  }), 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);
4694
4705
  }
4695
4706
  merge(e) {
4696
- for (let t of di) {
4707
+ for (let t of fi) {
4697
4708
  if (!(t in e)) continue;
4698
4709
  let n = this[t];
4699
4710
  n && typeof n == "object" && "value" in n && (n.value = e[t]);
@@ -4701,7 +4712,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4701
4712
  }
4702
4713
  toConfig() {
4703
4714
  let e = {};
4704
- for (let t of di) {
4715
+ for (let t of fi) {
4705
4716
  let n = this[t];
4706
4717
  n && typeof n == "object" && "value" in n && (e[t] = n.value);
4707
4718
  }
@@ -4712,17 +4723,17 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
4712
4723
  }
4713
4724
  };
4714
4725
  function createAgent(e) {
4715
- return new fi(e);
4726
+ return new pi(e);
4716
4727
  }
4717
4728
  function createAgents(e) {
4718
- return e.configs.map((t) => new fi({
4729
+ return e.configs.map((t) => new pi({
4719
4730
  config: t,
4720
4731
  context: e.context
4721
4732
  }));
4722
4733
  }
4723
4734
  //#endregion
4724
4735
  //#region ../core/dist/types/user.js
4725
- var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), pi = string().trim().toLowerCase().pipe(email()), mi = object({
4736
+ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), mi = string().trim().toLowerCase().pipe(email()), hi = object({
4726
4737
  userId: string(),
4727
4738
  email: string().optional(),
4728
4739
  handle: string().optional(),
@@ -4744,7 +4755,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4744
4755
  createdAt: string().optional(),
4745
4756
  updatedAt: string().optional(),
4746
4757
  onboarded: boolean().optional()
4747
- }), hi = object({
4758
+ }), gi = object({
4748
4759
  name: string().min(1).max(100).optional(),
4749
4760
  linkedinUsername: K.nullable().optional(),
4750
4761
  avatar: object({
@@ -4755,16 +4766,16 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4755
4766
  primaryOrgId: string().optional(),
4756
4767
  lastActiveOrgId: string().optional(),
4757
4768
  onboarding: any().optional()
4758
- }).partial(), gi = object({ email: pi }), _i = object({
4759
- email: pi,
4769
+ }).partial(), _i = object({ email: mi }), vi = object({
4770
+ email: mi,
4760
4771
  code: string().min(6, "Verification code is required"),
4761
4772
  timezone: string().max(64).optional()
4762
- }), vi = object({ newEmail: pi }), yi = object({
4773
+ }), yi = object({ newEmail: mi }), bi = object({
4763
4774
  credential: string().optional(),
4764
4775
  code: string().optional(),
4765
4776
  timezone: string().max(64).optional(),
4766
4777
  source: _enum(["web", "ios"]).optional()
4767
- }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), bi = object({
4778
+ }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), xi = object({
4768
4779
  identityToken: string().min(1),
4769
4780
  fullName: string().optional(),
4770
4781
  timezone: string().max(64).optional()
@@ -4779,7 +4790,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4779
4790
  avatar: F.optional(),
4780
4791
  coverId: string().nullable().optional(),
4781
4792
  cover: F.optional(),
4782
- accounts: vr.nullable().optional(),
4793
+ accounts: yr.nullable().optional(),
4783
4794
  ownerId: string().optional(),
4784
4795
  isPersonal: boolean().optional(),
4785
4796
  stripeCustomerIdTest: string().nullable().optional(),
@@ -4798,7 +4809,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4798
4809
  status: string().optional(),
4799
4810
  createdAt: string().optional(),
4800
4811
  updatedAt: string().optional()
4801
- }), xi = q.extend({
4812
+ }), Si = q.extend({
4802
4813
  defaultAgent: object({
4803
4814
  agentId: string(),
4804
4815
  handle: string(),
@@ -4806,14 +4817,14 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4806
4817
  orgId: string()
4807
4818
  }),
4808
4819
  onboardingCompleted: boolean().optional()
4809
- }), Si = object({
4820
+ }), Ci = object({
4810
4821
  completedAt: string().datetime().optional(),
4811
4822
  setupBy: string().optional(),
4812
4823
  billingSetup: boolean().optional(),
4813
4824
  teamInvitesSetup: boolean().optional(),
4814
4825
  brandingSetup: boolean().optional(),
4815
4826
  domainsSetup: boolean().optional()
4816
- }), Ci = object({
4827
+ }), wi = object({
4817
4828
  membershipId: string(),
4818
4829
  orgId: string(),
4819
4830
  name: string(),
@@ -4831,10 +4842,10 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4831
4842
  memberCount: number().optional(),
4832
4843
  agentCount: number().optional(),
4833
4844
  joinedAt: string().datetime(),
4834
- onboarding: Si.optional()
4835
- }), wi = mi.extend({
4836
- orgs: array(Ci).optional(),
4837
- agents: array(li).optional()
4845
+ onboarding: Ci.optional()
4846
+ }), Ti = hi.extend({
4847
+ orgs: array(wi).optional(),
4848
+ agents: array(ui).optional()
4838
4849
  });
4839
4850
  //#endregion
4840
4851
  //#region ../core/dist/state.js
@@ -4857,7 +4868,7 @@ function derive(e) {
4857
4868
  }
4858
4869
  //#endregion
4859
4870
  //#region ../core/dist/bot-ua.js
4860
- var Ti = "pagelines-agent/1.0", Ei = [
4871
+ var Ei = "pagelines-agent/1.0", Di = [
4861
4872
  "[SILENT]",
4862
4873
  "SILENT",
4863
4874
  "NO_REPLY",
@@ -4871,21 +4882,21 @@ var Ti = "pagelines-agent/1.0", Ei = [
4871
4882
  "[NO_OP]",
4872
4883
  "[NO OP]",
4873
4884
  "HEARTBEAT_OK"
4874
- ], Di = new Set(Ei);
4885
+ ], Oi = new Set(Di);
4875
4886
  function normalizeAssistantControl(e) {
4876
4887
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4877
4888
  }
4878
4889
  function isAssistantSilenceControl(e) {
4879
4890
  let t = normalizeAssistantControl(e);
4880
- return t.length <= 64 && Di.has(t);
4891
+ return t.length <= 64 && Oi.has(t);
4881
4892
  }
4882
4893
  function isAssistantSilenceControlPrefix(e) {
4883
4894
  let t = normalizeAssistantControl(e);
4884
- return t.length <= 64 && Ei.some((e) => e.startsWith(t));
4895
+ return t.length <= 64 && Di.some((e) => e.startsWith(t));
4885
4896
  }
4886
4897
  //#endregion
4887
4898
  //#region ../core/dist/timingBudgets.js
4888
- var Oi = {
4899
+ var ki = {
4889
4900
  wake: 300 * 1e3,
4890
4901
  bootGrace: 420 * 1e3,
4891
4902
  stop: 30 * 1e3
@@ -4903,12 +4914,12 @@ function formatBudgetDuration(e) {
4903
4914
  }
4904
4915
  //#endregion
4905
4916
  //#region ../core/dist/paths.js
4906
- var ki = "/api/bot-api", Ai = "/api/bot-api/v1";
4917
+ var Ai = "/api/bot-api", ji = "/api/bot-api/v1";
4907
4918
  function botApiLlmUrl(e) {
4908
- return `${e}${Ai}`;
4919
+ return `${e}${ji}`;
4909
4920
  }
4910
4921
  function botApiUrl(e) {
4911
- return `${e}${ki}`;
4922
+ return `${e}${Ai}`;
4912
4923
  }
4913
4924
  //#endregion
4914
4925
  //#region ../core/dist/errorCopy.js
@@ -4943,7 +4954,7 @@ var J = {
4943
4954
  TIMEOUT: "The request took too long. Try again in a moment.",
4944
4955
  FORBIDDEN: "You don't have access to this.",
4945
4956
  RATE_LIMITED: "Too many requests. Wait a moment and try again."
4946
- }, ji = {
4957
+ }, Mi = {
4947
4958
  notFound: "Not found. Try refreshing.",
4948
4959
  busy: "Busy — try again in a moment.",
4949
4960
  rateLimited: "Too many requests. Wait a moment.",
@@ -4956,11 +4967,11 @@ function errorCopy(e, t) {
4956
4967
  return e && e in J ? J[e] : t;
4957
4968
  }
4958
4969
  function errorFromApiResponse(e, t) {
4959
- return e.code && e.code in J ? J[e.code] : e.providerErrorKind && ji[e.providerErrorKind] ? ji[e.providerErrorKind] : e.error || t;
4970
+ return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Mi[e.providerErrorKind] ? Mi[e.providerErrorKind] : e.error || t;
4960
4971
  }
4961
4972
  //#endregion
4962
4973
  //#region ../core/dist/retryPolicy.js
4963
- var Mi = {
4974
+ var Ni = {
4964
4975
  shouldRetry: !1,
4965
4976
  maxAttempts: 1,
4966
4977
  strategy: "none",
@@ -4978,7 +4989,7 @@ function retryPolicyFor(e) {
4978
4989
  "FORBIDDEN",
4979
4990
  "AGENT_NOT_FOUND"
4980
4991
  ]);
4981
- if (e.code && t.has(e.code)) return Mi;
4992
+ if (e.code && t.has(e.code)) return Ni;
4982
4993
  switch (e.providerErrorKind) {
4983
4994
  case "busy": return {
4984
4995
  shouldRetry: !0,
@@ -5013,8 +5024,8 @@ function retryPolicyFor(e) {
5013
5024
  };
5014
5025
  case "notFound":
5015
5026
  case "invalidConfig":
5016
- case "fatal": return Mi;
5017
- default: return Mi;
5027
+ case "fatal": return Ni;
5028
+ default: return Ni;
5018
5029
  }
5019
5030
  }
5020
5031
  //#endregion
@@ -5025,7 +5036,7 @@ var Y = string().min(1).max(64).refine((e) => {
5025
5036
  } catch {
5026
5037
  return !1;
5027
5038
  }
5028
- }, "Invalid IANA timezone"), Ni = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Pi = object({
5039
+ }, "Invalid IANA timezone"), Pi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Fi = object({
5029
5040
  orgId: string(),
5030
5041
  name: string().min(1).max(100),
5031
5042
  emoji: string().max(8).nullable().optional(),
@@ -5039,7 +5050,7 @@ var Y = string().min(1).max(64).refine((e) => {
5039
5050
  "org",
5040
5051
  "public"
5041
5052
  ]).optional()
5042
- }).strict(), Fi = object({
5053
+ }).strict(), Ii = object({
5043
5054
  name: string().min(1).max(100).optional(),
5044
5055
  handle: string().min(2).max(50).optional(),
5045
5056
  emoji: string().max(8).nullable().optional(),
@@ -5059,16 +5070,16 @@ var Y = string().min(1).max(64).refine((e) => {
5059
5070
  "org",
5060
5071
  "public"
5061
5072
  ]).optional(),
5062
- automationPrimaryChannel: Ni.optional(),
5073
+ automationPrimaryChannel: Pi.optional(),
5063
5074
  heartbeatEnabled: boolean().optional(),
5064
5075
  heartbeatBriefingTime: T.nullable().optional(),
5065
5076
  heartbeatCheckinTime: T.nullable().optional(),
5066
5077
  heartbeatCloseoutTime: T.nullable().optional()
5067
- }).strict(), Ii = ui, Li = object({
5078
+ }).strict(), Li = di, Ri = object({
5068
5079
  id: string(),
5069
5080
  label: string(),
5070
5081
  prompt: string()
5071
- }), 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_DEMO_SPENT.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([
5082
+ }), zi = /* @__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_DEMO_SPENT.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("."), Bi = _enum(zi), Vi = _enum([
5072
5083
  "notFound",
5073
5084
  "busy",
5074
5085
  "rateLimited",
@@ -5079,21 +5090,21 @@ var Y = string().min(1).max(64).refine((e) => {
5079
5090
  ]), zApiOk = (e) => object({
5080
5091
  ok: literal(!0),
5081
5092
  data: e
5082
- }), Vi = object({
5093
+ }), Hi = object({
5083
5094
  ok: literal(!1),
5084
5095
  error: string(),
5085
- code: zi.optional(),
5096
+ code: Bi.optional(),
5086
5097
  issue: R.optional(),
5087
- providerErrorKind: Bi.optional()
5088
- }), zApiResponse = (e) => union([zApiOk(e), Vi]), Hi = {
5098
+ providerErrorKind: Vi.optional()
5099
+ }), zApiResponse = (e) => union([zApiOk(e), Hi]), Ui = {
5089
5100
  400: "Invalid body.",
5090
5101
  401: "Not authenticated.",
5091
5102
  500: "Server error."
5092
5103
  };
5093
5104
  function zErrorResponses(e) {
5094
5105
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
5095
- description: t === !0 ? Hi[Number(e)] ?? "Request failed." : t,
5096
- content: { "application/json": { schema: Vi } }
5106
+ description: t === !0 ? Ui[Number(e)] ?? "Request failed." : t,
5107
+ content: { "application/json": { schema: Hi } }
5097
5108
  }]));
5098
5109
  }
5099
5110
  function apiError(e, t, n) {
@@ -5116,7 +5127,7 @@ function apiOk(e) {
5116
5127
  }
5117
5128
  //#endregion
5118
5129
  //#region ../core/dist/wire/chat-tool-activity.js
5119
- var Ui = object({
5130
+ var Wi = object({
5120
5131
  kind: _enum([
5121
5132
  "icon",
5122
5133
  "favicon",
@@ -5125,7 +5136,7 @@ var Ui = object({
5125
5136
  icon: string().min(1).optional(),
5126
5137
  domain: string().min(1).optional(),
5127
5138
  serviceKey: string().min(1).optional()
5128
- }).strict(), Wi = object({
5139
+ }).strict(), Gi = object({
5129
5140
  activityId: string().min(1),
5130
5141
  turnId: string().min(1),
5131
5142
  status: _enum([
@@ -5149,12 +5160,12 @@ var Ui = object({
5149
5160
  endedAt: string().datetime().optional(),
5150
5161
  durationMs: number().int().nonnegative().optional(),
5151
5162
  note: string().trim().min(1).optional(),
5152
- visual: Ui.optional()
5153
- }).strict(), Gi = Wi.extend({ status: _enum(["completed", "failed"]) }), Ki = P, qi = object({
5163
+ visual: Wi.optional()
5164
+ }).strict(), Ki = Gi.extend({ status: _enum(["completed", "failed"]) }), qi = P, Ji = object({
5154
5165
  kind: literal("inline"),
5155
5166
  offset: number().int().nonnegative()
5156
- }), Ji = object({
5157
- type: Ki,
5167
+ }), Yi = object({
5168
+ type: qi,
5158
5169
  src: url(),
5159
5170
  filename: string().min(1),
5160
5171
  mimeType: string().min(1),
@@ -5164,12 +5175,12 @@ var Ui = object({
5164
5175
  height: number().int().positive().optional(),
5165
5176
  duration: number().nonnegative().optional(),
5166
5177
  text: string().optional(),
5167
- placement: qi.optional()
5168
- }), Yi = object({ ref: string().min(1).max(256) }).strict(), Xi = _enum([
5178
+ placement: Ji.optional()
5179
+ }), Xi = object({ ref: string().min(1).max(256) }).strict(), Zi = _enum([
5169
5180
  "handled",
5170
5181
  "dismissed",
5171
5182
  "deferred"
5172
- ]), Zi = datetime();
5183
+ ]), Qi = datetime();
5173
5184
  function validateAttentionRevisit(e, t) {
5174
5185
  e.revisitAt && e.disposition !== "deferred" && t.addIssue({
5175
5186
  code: "custom",
@@ -5177,17 +5188,17 @@ function validateAttentionRevisit(e, t) {
5177
5188
  message: "revisitAt requires deferred disposition"
5178
5189
  });
5179
5190
  }
5180
- var Qi = Yi.extend({
5181
- disposition: Xi.optional(),
5182
- revisitAt: Zi.optional()
5183
- }).superRefine(validateAttentionRevisit), $i = Yi.extend({
5184
- disposition: Xi,
5185
- revisitAt: Zi.optional()
5186
- }).superRefine(validateAttentionRevisit), ea = object({
5191
+ var $i = Xi.extend({
5192
+ disposition: Zi.optional(),
5193
+ revisitAt: Qi.optional()
5194
+ }).superRefine(validateAttentionRevisit), ea = Xi.extend({
5195
+ disposition: Zi,
5196
+ revisitAt: Qi.optional()
5197
+ }).superRefine(validateAttentionRevisit), ta = object({
5187
5198
  turnId: string().min(1).optional(),
5188
5199
  turnOutcome: _enum(["failed", "stopped"]).optional(),
5189
- attachments: array(Ji).optional(),
5190
- toolActivities: array(Gi).optional(),
5200
+ attachments: array(Yi).optional(),
5201
+ toolActivities: array(Ki).optional(),
5191
5202
  issue: object({
5192
5203
  code: string(),
5193
5204
  bucket: _enum(["account", "error"]),
@@ -5219,8 +5230,8 @@ var Qi = Yi.extend({
5219
5230
  ])
5220
5231
  }).catchall(unknown()) }).catchall(unknown()).optional(),
5221
5232
  ownerHandoff: literal(!0).optional(),
5222
- attention: array(Qi).max(20).optional()
5223
- }).catchall(unknown()), ta = object({
5233
+ attention: array($i).max(20).optional()
5234
+ }).catchall(unknown()), na = object({
5224
5235
  messageId: string().min(1),
5225
5236
  conversationId: string().min(1),
5226
5237
  role: _enum([
@@ -5233,12 +5244,12 @@ var Qi = Yi.extend({
5233
5244
  content: string(),
5234
5245
  sequence: string().min(1),
5235
5246
  clientNonce: string().nullable().optional(),
5236
- metadata: ea.nullable().optional(),
5247
+ metadata: ta.nullable().optional(),
5237
5248
  status: string().nullable().optional(),
5238
5249
  createdAt: string(),
5239
5250
  updatedAt: string()
5240
- }), na = object({
5241
- type: Ki,
5251
+ }), ra = object({
5252
+ type: qi,
5242
5253
  mediaId: string().min(1).optional(),
5243
5254
  url: url().optional(),
5244
5255
  name: string().min(1).optional(),
@@ -5254,11 +5265,11 @@ var Qi = Yi.extend({
5254
5265
  path: [n],
5255
5266
  message: `${n} is required when mediaId is absent`
5256
5267
  });
5257
- }), ra = object({
5268
+ }), ia = object({
5258
5269
  conversationId: string().min(1),
5259
5270
  content: string().max(1e4).default(""),
5260
5271
  clientNonce: string().max(64).optional(),
5261
- attachments: array(na).max(10).optional(),
5272
+ attachments: array(ra).max(10).optional(),
5262
5273
  channel: _enum(["ios", "dashboard"]).optional(),
5263
5274
  actionUrls: object({
5264
5275
  billing: string().max(500),
@@ -5268,7 +5279,7 @@ var Qi = Yi.extend({
5268
5279
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5269
5280
  path: ["content"],
5270
5281
  message: "Message or attachment required"
5271
- }), ia = object({
5282
+ }), aa = object({
5272
5283
  type: _enum(["user", "agent"]),
5273
5284
  id: string().min(1)
5274
5285
  }).strict();
@@ -5283,44 +5294,44 @@ function addDuplicateConversationTargetIssues(e, t) {
5283
5294
  }), n.add(e);
5284
5295
  }
5285
5296
  }
5286
- var aa = object({
5297
+ var oa = object({
5287
5298
  orgId: string().min(1),
5288
- participants: array(ia).min(1).max(20)
5289
- }).strict().superRefine(addDuplicateConversationTargetIssues), oa = object({
5299
+ participants: array(aa).min(1).max(20)
5300
+ }).strict().superRefine(addDuplicateConversationTargetIssues), sa = object({
5290
5301
  orgId: string().min(1),
5291
- participants: array(ia).min(1).max(20)
5302
+ participants: array(aa).min(1).max(20)
5292
5303
  }).strict().superRefine((e, t) => {
5293
5304
  addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
5294
5305
  code: "custom",
5295
5306
  path: ["participants"],
5296
5307
  message: "New sessions require at least one agent participant."
5297
5308
  });
5298
- }), sa = object({
5309
+ }), ca = object({
5299
5310
  category: string().min(1).max(30).optional(),
5300
5311
  reason: string().max(2e3).optional()
5301
- }).strict(), ca = _enum([
5312
+ }).strict(), la = _enum([
5302
5313
  "1:1",
5303
5314
  "4:3",
5304
5315
  "3:4",
5305
5316
  "16:9",
5306
5317
  "9:16"
5307
- ]), la = _enum([
5318
+ ]), ua = _enum([
5308
5319
  "1K",
5309
5320
  "2K",
5310
5321
  "4K"
5311
- ]), ua = object({
5322
+ ]), da = object({
5312
5323
  prompt: string().trim().min(1).max(4e3),
5313
- aspectRatio: ca.default("1:1"),
5324
+ aspectRatio: la.default("1:1"),
5314
5325
  outputFormat: _enum([
5315
5326
  "png",
5316
5327
  "jpeg",
5317
5328
  "webp"
5318
5329
  ]).default("webp"),
5319
- resolution: la.default("2K"),
5330
+ resolution: ua.default("2K"),
5320
5331
  style: string().trim().max(200).optional(),
5321
5332
  altText: string().trim().max(500).optional(),
5322
5333
  referenceMediaIds: array(string().min(1)).max(4).optional()
5323
- }).strict(), da = object({
5334
+ }).strict(), fa = object({
5324
5335
  mediaId: string().min(1),
5325
5336
  src: url(),
5326
5337
  filename: string().min(1),
@@ -5330,54 +5341,54 @@ var aa = object({
5330
5341
  provider: string().min(1).optional(),
5331
5342
  providerRequestId: string().min(1).optional(),
5332
5343
  media: string().startsWith("MEDIA:"),
5333
- attachment: Ji.extend({ type: literal("image") })
5334
- }), fa = object({
5344
+ attachment: Yi.extend({ type: literal("image") })
5345
+ }), pa = object({
5335
5346
  identityToken: string().min(1),
5336
5347
  fullName: string().optional()
5337
- }), pa = object({
5348
+ }), ma = object({
5338
5349
  redirect: string(),
5339
5350
  redirectReason: string(),
5340
5351
  isNew: boolean(),
5341
5352
  deviceId: string()
5342
- }), ma = object({
5353
+ }), ha = object({
5343
5354
  ok: literal(!0),
5344
- data: pa,
5355
+ data: ma,
5345
5356
  token: string()
5346
- }), ha = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine(isSafeRedirectPath, "path must be a relative dashboard path") }), ga = object({ url: string() }), _a = object({
5357
+ }), ga = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine(isSafeRedirectPath, "path must be a relative dashboard path") }), _a = object({ url: string() }), va = object({
5347
5358
  ok: literal(!0),
5348
- data: ga
5349
- }), va = object({ token: string().min(1) }), ya = object({
5359
+ data: _a
5360
+ }), ya = object({ token: string().min(1) }), ba = object({
5350
5361
  redirect: string(),
5351
5362
  redirectReason: string(),
5352
5363
  deviceId: string()
5353
- }), ba = object({
5364
+ }), xa = object({
5354
5365
  ok: literal(!0),
5355
- data: ya,
5366
+ data: ba,
5356
5367
  token: string()
5357
- }), xa = _enum(["none", "active_assistant"]), Sa = _enum([
5368
+ }), Sa = _enum(["none", "active_assistant"]), Ca = _enum([
5358
5369
  "none",
5359
5370
  "active",
5360
5371
  "trial",
5361
5372
  "canceling",
5362
5373
  "past_due",
5363
5374
  "paused"
5364
- ]), Ca = object({
5375
+ ]), wa = object({
5365
5376
  brand: string(),
5366
5377
  last4: string(),
5367
5378
  expMonth: number(),
5368
5379
  expYear: number()
5369
- }), wa = object({
5380
+ }), Ta = object({
5370
5381
  date: string(),
5371
5382
  amount: number(),
5372
5383
  status: string(),
5373
5384
  invoicePdf: string().optional()
5374
- }), Ta = object({
5385
+ }), Ea = object({
5375
5386
  graceEndsAt: string().optional(),
5376
5387
  suspended: boolean(),
5377
5388
  url: string().optional()
5378
- }), Ea = object({
5379
- plan: xa,
5380
- status: Sa,
5389
+ }), Da = object({
5390
+ plan: Sa,
5391
+ status: Ca,
5381
5392
  price: number(),
5382
5393
  tierRates: record(string(), number()).optional(),
5383
5394
  maxAgents: number(),
@@ -5390,34 +5401,34 @@ var aa = object({
5390
5401
  cancelAt: string().optional(),
5391
5402
  trialEnd: string().optional(),
5392
5403
  trialDaysRemaining: number().optional(),
5393
- paymentMethod: Ca.optional(),
5394
- paymentRecovery: Ta.optional(),
5395
- invoices: array(wa),
5404
+ paymentMethod: wa.optional(),
5405
+ paymentRecovery: Ea.optional(),
5406
+ invoices: array(Ta),
5396
5407
  stripeError: string().optional()
5397
- }), Da = _enum([
5408
+ }), Oa = _enum([
5398
5409
  "demo_agent_exists",
5399
5410
  "demo_usage_exhausted",
5400
5411
  "subscription_required",
5401
5412
  "plan_limit"
5402
- ]), Oa = object({
5413
+ ]), ka = object({
5403
5414
  canCreate: boolean(),
5404
5415
  activeAgents: number().int().nonnegative(),
5405
5416
  agentLimit: number().int().nonnegative(),
5406
5417
  isDemo: boolean(),
5407
- reason: Da.optional()
5408
- }), ka = object({
5418
+ reason: Oa.optional()
5419
+ }), Aa = object({
5409
5420
  orgId: string(),
5410
5421
  agentName: string().optional(),
5411
5422
  runtime: string().optional()
5412
- }), Aa = object({
5423
+ }), ja = object({
5413
5424
  created: number(),
5414
5425
  skipped: number(),
5415
5426
  errors: array(string())
5416
- }), ja = object({
5427
+ }), Ma = object({
5417
5428
  updated: number(),
5418
5429
  errors: array(string())
5419
- }), Ma = Wr, Na = object({
5420
- code: zi,
5430
+ }), Na = Gr, Pa = object({
5431
+ code: Bi,
5421
5432
  message: string(),
5422
5433
  bucket: _enum(["account", "error"]).optional(),
5423
5434
  actionLabel: string().optional(),
@@ -5434,14 +5445,14 @@ function toChatStreamError(e) {
5434
5445
  ...e.help ? { help: e.help } : {}
5435
5446
  };
5436
5447
  }
5437
- var Pa = discriminatedUnion("event", [
5448
+ var Fa = discriminatedUnion("event", [
5438
5449
  object({
5439
5450
  event: literal("status"),
5440
- data: Ma
5451
+ data: Na
5441
5452
  }),
5442
5453
  object({
5443
5454
  event: literal("message"),
5444
- data: object({ message: ta })
5455
+ data: object({ message: na })
5445
5456
  }),
5446
5457
  object({
5447
5458
  event: literal("message_delta"),
@@ -5461,7 +5472,7 @@ var Pa = discriminatedUnion("event", [
5461
5472
  }),
5462
5473
  object({
5463
5474
  event: literal("tool_activity"),
5464
- data: Wi
5475
+ data: Gi
5465
5476
  }),
5466
5477
  object({
5467
5478
  event: literal("working_end"),
@@ -5473,7 +5484,7 @@ var Pa = discriminatedUnion("event", [
5473
5484
  }),
5474
5485
  object({
5475
5486
  event: literal("error"),
5476
- data: Na
5487
+ data: Pa
5477
5488
  })
5478
5489
  ]);
5479
5490
  function chatEventUserTurnId(e) {
@@ -5625,7 +5636,7 @@ function parseChatEvent(e) {
5625
5636
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5626
5637
  if (!n || r === void 0) return null;
5627
5638
  try {
5628
- let e = Pa.safeParse({
5639
+ let e = Fa.safeParse({
5629
5640
  event: n,
5630
5641
  data: JSON.parse(r)
5631
5642
  });
@@ -5636,7 +5647,7 @@ function parseChatEvent(e) {
5636
5647
  }
5637
5648
  //#endregion
5638
5649
  //#region ../core/dist/wire/chat-card.js
5639
- var Fa = object({
5650
+ var Ia = object({
5640
5651
  label: string().trim().min(1).max(40),
5641
5652
  reply: string().trim().min(1).max(500),
5642
5653
  style: _enum([
@@ -5644,11 +5655,11 @@ var Fa = object({
5644
5655
  "default",
5645
5656
  "destructive"
5646
5657
  ]).optional()
5647
- }).strip(), Ia = object({
5658
+ }).strip(), La = object({
5648
5659
  version: literal(1),
5649
5660
  title: string().trim().min(1).max(200),
5650
5661
  body: string().trim().min(1).max(8e3).optional(),
5651
- actions: array(Fa).min(1).max(3).optional()
5662
+ actions: array(Ia).min(1).max(3).optional()
5652
5663
  }).strip();
5653
5664
  function parseChatCardFencePayload(e) {
5654
5665
  let t;
@@ -5661,7 +5672,7 @@ function parseChatCardFencePayload(e) {
5661
5672
  message: e instanceof Error ? e.message : "Invalid JSON"
5662
5673
  };
5663
5674
  }
5664
- let n = Ia.safeParse(t);
5675
+ let n = La.safeParse(t);
5665
5676
  return n.success ? {
5666
5677
  ok: !0,
5667
5678
  spec: n.data
@@ -5673,36 +5684,36 @@ function parseChatCardFencePayload(e) {
5673
5684
  }
5674
5685
  //#endregion
5675
5686
  //#region ../core/dist/wire/chat-visual.js
5676
- var La = string().trim().min(1).max(240), Ra = string().trim().min(1).max(800), X = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Z = string().trim().min(1).max(120), za = record(X, union([
5687
+ var Ra = string().trim().min(1).max(240), za = string().trim().min(1).max(800), X = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Z = string().trim().min(1).max(120), Ba = record(X, union([
5677
5688
  string().max(500),
5678
5689
  number().finite(),
5679
5690
  boolean(),
5680
5691
  _null()
5681
- ])), Ba = _enum([
5692
+ ])), Va = _enum([
5682
5693
  "compact",
5683
5694
  "currency",
5684
5695
  "duration",
5685
5696
  "integer",
5686
5697
  "percent",
5687
5698
  "raw"
5688
- ]), Va = object({
5689
- title: La,
5690
- description: Ra.optional(),
5691
- footer: Ra.optional()
5692
- }).strip(), Ha = object({
5699
+ ]), Ha = object({
5700
+ title: Ra,
5701
+ description: za.optional(),
5702
+ footer: za.optional()
5703
+ }).strip(), Ua = object({
5693
5704
  dataKey: X,
5694
5705
  label: Z.optional(),
5695
5706
  axisLabel: Z.optional(),
5696
- valueFormat: Ba.optional(),
5707
+ valueFormat: Va.optional(),
5697
5708
  valuePrefix: string().trim().max(12).optional(),
5698
5709
  valueSuffix: string().trim().max(12).optional()
5699
- }).strip(), Ua = object({
5710
+ }).strip(), Wa = object({
5700
5711
  kind: literal("linear"),
5701
5712
  dataKey: X,
5702
5713
  label: Z.optional()
5703
- }).strip(), Wa = object({
5714
+ }).strip(), Ga = object({
5704
5715
  version: literal(1),
5705
- meta: Va,
5716
+ meta: Ha,
5706
5717
  fallbackMarkdown: string().trim().min(1).max(4e3)
5707
5718
  }).strip();
5708
5719
  function dataKeys(e) {
@@ -5744,7 +5755,7 @@ function requireNumericDataKeys(e, t, n) {
5744
5755
  });
5745
5756
  }
5746
5757
  }
5747
- var Ga = discriminatedUnion("chartType", [Wa.extend({
5758
+ var Ka = discriminatedUnion("chartType", [Ga.extend({
5748
5759
  visualType: literal("chart"),
5749
5760
  chartType: _enum([
5750
5761
  "bar",
@@ -5753,11 +5764,11 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
5753
5764
  ]),
5754
5765
  xKey: X,
5755
5766
  xAxisLabel: Z.optional(),
5756
- series: array(Ha).min(1).max(6),
5757
- data: array(za).min(1).max(120),
5767
+ series: array(Ua).min(1).max(6),
5768
+ data: array(Ba).min(1).max(120),
5758
5769
  layout: _enum(["horizontal", "vertical"]).optional(),
5759
5770
  stacking: _enum(["grouped", "stacked"]).optional(),
5760
- trendLine: Ua.optional()
5771
+ trendLine: Wa.optional()
5761
5772
  }).strip().superRefine((e, t) => {
5762
5773
  e.stacking && e.chartType !== "bar" && t.addIssue({
5763
5774
  code: "custom",
@@ -5795,13 +5806,13 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
5795
5806
  path: ["trendLine", "dataKey"],
5796
5807
  value: e.trendLine.dataKey
5797
5808
  }] : []], t);
5798
- }), Wa.extend({
5809
+ }), Ga.extend({
5799
5810
  visualType: literal("chart"),
5800
5811
  chartType: literal("pie"),
5801
5812
  nameKey: X,
5802
5813
  valueKey: X,
5803
- series: array(Ha).max(1).optional(),
5804
- data: array(za).min(1).max(16)
5814
+ series: array(Ua).max(1).optional(),
5815
+ data: array(Ba).min(1).max(16)
5805
5816
  }).strip().superRefine((e, t) => {
5806
5817
  requireDataKeys(e.data, [
5807
5818
  {
@@ -5825,10 +5836,10 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
5825
5836
  value: e.valueKey,
5826
5837
  nonnegative: !0
5827
5838
  }], t);
5828
- })]), Ka = object({
5839
+ })]), qa = object({
5829
5840
  id: X,
5830
5841
  label: Z,
5831
- detail: Ra.optional(),
5842
+ detail: za.optional(),
5832
5843
  kind: _enum([
5833
5844
  "actor",
5834
5845
  "agent",
@@ -5839,11 +5850,11 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
5839
5850
  "system",
5840
5851
  "task"
5841
5852
  ]).optional()
5842
- }).strip(), qa = object({
5853
+ }).strip(), Ja = object({
5843
5854
  from: X,
5844
5855
  to: X,
5845
5856
  label: Z.optional()
5846
- }).strip(), Ja = union([Ga, Wa.extend({
5857
+ }).strip(), Ya = union([Ka, Ga.extend({
5847
5858
  visualType: literal("diagram"),
5848
5859
  diagramType: _enum([
5849
5860
  "flow",
@@ -5857,8 +5868,8 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
5857
5868
  "radial",
5858
5869
  "top-to-bottom"
5859
5870
  ]).default("auto"),
5860
- nodes: array(Ka).min(1).max(24),
5861
- edges: array(qa).max(48)
5871
+ nodes: array(qa).min(1).max(24),
5872
+ edges: array(Ja).max(48)
5862
5873
  }).strip().superRefine((e, t) => {
5863
5874
  let n = new Set(e.nodes.map((e) => e.id));
5864
5875
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -6017,11 +6028,11 @@ function parseChatVisualFencePayload(e) {
6017
6028
  fallbackMarkdown: r
6018
6029
  };
6019
6030
  }
6020
- let n = Ja.safeParse(t);
6031
+ let n = Ya.safeParse(t);
6021
6032
  if (!n.success) {
6022
6033
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
6023
6034
  if (e) {
6024
- let t = Ja.safeParse(e);
6035
+ let t = Ya.safeParse(e);
6025
6036
  if (t.success) return {
6026
6037
  ok: !0,
6027
6038
  spec: t.data
@@ -6046,7 +6057,7 @@ function extractChatVisualFencePayloads(e) {
6046
6057
  }
6047
6058
  //#endregion
6048
6059
  //#region ../core/dist/wire/conversation.js
6049
- var Ya = object({
6060
+ var Xa = object({
6050
6061
  type: _enum([
6051
6062
  "user",
6052
6063
  "agent",
@@ -6066,7 +6077,7 @@ var Ya = object({
6066
6077
  displayName: string().optional(),
6067
6078
  handle: string().optional(),
6068
6079
  avatarUrl: string().optional()
6069
- }).strict(), Xa = object({
6080
+ }).strict(), Za = object({
6070
6081
  messageId: string(),
6071
6082
  role: _enum([
6072
6083
  "user",
@@ -6076,7 +6087,7 @@ var Ya = object({
6076
6087
  content: string(),
6077
6088
  sequence: string(),
6078
6089
  createdAt: string()
6079
- }), Za = object({
6090
+ }), Qa = object({
6080
6091
  conversationId: string(),
6081
6092
  orgId: string(),
6082
6093
  kind: _enum(["direct", "group"]),
@@ -6086,30 +6097,30 @@ var Ya = object({
6086
6097
  "requester",
6087
6098
  "member"
6088
6099
  ]),
6089
- participants: array(Ya),
6090
- lastMessage: Xa.nullable(),
6100
+ participants: array(Xa),
6101
+ lastMessage: Za.nullable(),
6091
6102
  unreadCount: number().int().nonnegative(),
6092
6103
  latestSequence: string().nullable()
6093
- }), Qa = object({ sequence: string().min(1) }), $a = object({ turnId: string().min(1).optional() }).strict(), eo = object({
6104
+ }), $a = object({ sequence: string().min(1) }), eo = object({ turnId: string().min(1).optional() }).strict(), to = object({
6094
6105
  cancelled: boolean(),
6095
6106
  cancelledTurnIds: array(string())
6096
- }).strict(), to = object({
6107
+ }).strict(), no = object({
6097
6108
  conversationId: string(),
6098
6109
  messageId: string(),
6099
6110
  sequence: string(),
6100
6111
  snippet: string(),
6101
6112
  createdAt: string(),
6102
- participants: array(Ya)
6103
- }), no = object({
6113
+ participants: array(Xa)
6114
+ }), ro = object({
6104
6115
  conversationId: string(),
6105
- lastMessage: Xa.nullable(),
6116
+ lastMessage: Za.nullable(),
6106
6117
  unreadCount: number().int().nonnegative(),
6107
6118
  latestSequence: string().nullable()
6108
- }), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), ro = preprocess((e) => e === void 0 ? null : e, B.nullable()), io = preprocess((e) => e === void 0 ? null : e, V.nullable()), ao = preprocess((e) => e === void 0 ? null : e, _enum([
6119
+ }), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), io = preprocess((e) => e === void 0 ? null : e, B.nullable()), ao = preprocess((e) => e === void 0 ? null : e, V.nullable()), oo = preprocess((e) => e === void 0 ? null : e, _enum([
6109
6120
  "user",
6110
6121
  "assistant",
6111
6122
  "system"
6112
- ]).nullable()), oo = preprocess((e) => e === void 0 ? 0 : e, number()), so = object({
6123
+ ]).nullable()), so = preprocess((e) => e === void 0 ? 0 : e, number()), co = object({
6113
6124
  agentId: string(),
6114
6125
  handle: string(),
6115
6126
  name: string(),
@@ -6118,19 +6129,19 @@ var Ya = object({
6118
6129
  orgHandle: Q,
6119
6130
  ownerEmail: Q,
6120
6131
  ownerName: Q,
6121
- state: ro,
6122
- desiredStatus: io,
6132
+ state: io,
6133
+ desiredStatus: ao,
6123
6134
  runtime: string(),
6124
6135
  imageVersion: Q,
6125
6136
  lastHealthyAt: Q,
6126
6137
  lastActiveAt: Q,
6127
6138
  lastUserMessageAt: Q,
6128
6139
  lastMessageAt: Q,
6129
- lastMessageRole: ao,
6140
+ lastMessageRole: oo,
6130
6141
  lastMessageChannel: Q,
6131
6142
  primaryChannel: Q,
6132
- totalMessages: oo,
6133
- totalSessions: oo,
6143
+ totalMessages: so,
6144
+ totalSessions: so,
6134
6145
  error: Q,
6135
6146
  appHandle: string(),
6136
6147
  flyAppExists: boolean(),
@@ -6139,7 +6150,7 @@ var Ya = object({
6139
6150
  billingActive: boolean(),
6140
6151
  createdAt: string(),
6141
6152
  updatedAt: string()
6142
- }), co = object({
6153
+ }), lo = object({
6143
6154
  running: number(),
6144
6155
  stopped: number(),
6145
6156
  error: number(),
@@ -6147,9 +6158,9 @@ var Ya = object({
6147
6158
  stopping: number(),
6148
6159
  unknown: number(),
6149
6160
  total: number()
6150
- }), lo = object({
6151
- agents: array(so),
6152
- summary: co,
6161
+ }), uo = object({
6162
+ agents: array(co),
6163
+ summary: lo,
6153
6164
  orphanedApps: array(string()),
6154
6165
  dailyMessages30d: array(number().int()).optional(),
6155
6166
  flyAppCount: number().optional(),
@@ -6172,7 +6183,7 @@ function resolveHeroStateKey(e) {
6172
6183
  case "stopping": return null;
6173
6184
  }
6174
6185
  }
6175
- var uo = {
6186
+ var fo = {
6176
6187
  billing_no_plan: { title: (e) => `${e} needs a plan to wake` },
6177
6188
  billing_seat_limit: {
6178
6189
  title: (e) => `No room to wake ${e}`,
@@ -6198,7 +6209,7 @@ function buildHeroState(e) {
6198
6209
  if (!t) return null;
6199
6210
  switch (t) {
6200
6211
  case "blocked": {
6201
- let n = e.blocker, r = uo[n.code];
6212
+ let n = e.blocker, r = fo[n.code];
6202
6213
  return {
6203
6214
  kind: t,
6204
6215
  title: r ? r.title(e.name) : n.title,
@@ -6246,20 +6257,20 @@ function buildHeroState(e) {
6246
6257
  }
6247
6258
  //#endregion
6248
6259
  //#region ../core/dist/wire/media.js
6249
- var fo = xr, po = P, $ = object({
6260
+ var po = Sr, mo = P, $ = object({
6250
6261
  mediaId: string(),
6251
6262
  src: string(),
6252
6263
  alt: string().nullable().optional(),
6253
6264
  filename: string().optional(),
6254
6265
  displayName: string().nullable().optional(),
6255
6266
  mimeType: string().optional(),
6256
- mediaType: po.optional(),
6257
- type: po.optional(),
6267
+ mediaType: mo.optional(),
6268
+ type: mo.optional(),
6258
6269
  size: number().optional(),
6259
6270
  width: number().nullable().optional(),
6260
6271
  height: number().nullable().optional(),
6261
6272
  duration: number().nullable().optional(),
6262
- context: fo.nullable().optional(),
6273
+ context: po.nullable().optional(),
6263
6274
  blurhash: string().nullable().optional(),
6264
6275
  quality: string().optional(),
6265
6276
  status: string().optional(),
@@ -6268,13 +6279,13 @@ var fo = xr, po = P, $ = object({
6268
6279
  agentId: string().nullable().optional(),
6269
6280
  createdAt: string().optional(),
6270
6281
  updatedAt: string().optional()
6271
- }), mo = object({
6282
+ }), ho = object({
6272
6283
  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."),
6273
- context: fo.optional().default("general"),
6284
+ context: po.optional().default("general"),
6274
6285
  agentId: string().optional(),
6275
6286
  orgId: string().optional(),
6276
6287
  duration: number().optional()
6277
- }), ho = object({
6288
+ }), go = object({
6278
6289
  mediaId: string().optional(),
6279
6290
  src: string().optional(),
6280
6291
  alt: string().optional(),
@@ -6283,7 +6294,7 @@ var fo = xr, po = P, $ = object({
6283
6294
  mimeType: string().optional(),
6284
6295
  mediaType: string().optional(),
6285
6296
  blurhash: string().optional()
6286
- }), go = object({
6297
+ }), _o = object({
6287
6298
  membershipId: string(),
6288
6299
  userId: string(),
6289
6300
  orgId: string(),
@@ -6298,15 +6309,15 @@ var fo = xr, po = P, $ = object({
6298
6309
  status: _enum(["active", "suspended"]),
6299
6310
  joinedAt: string(),
6300
6311
  lastSeenAt: string().optional(),
6301
- avatar: ho.optional()
6302
- }), _o = object({
6312
+ avatar: go.optional()
6313
+ }), vo = object({
6303
6314
  invitationId: string(),
6304
6315
  email: string(),
6305
6316
  role: _enum(["admin", "member"]),
6306
6317
  status: string(),
6307
6318
  expiresAt: string(),
6308
6319
  createdAt: string()
6309
- }), vo = object({
6320
+ }), yo = object({
6310
6321
  token: string(),
6311
6322
  email: string(),
6312
6323
  orgId: string(),
@@ -6328,20 +6339,20 @@ var fo = xr, po = P, $ = object({
6328
6339
  ]),
6329
6340
  expiresAt: string(),
6330
6341
  memberCount: number().optional()
6331
- }), yo = object({
6342
+ }), bo = object({
6332
6343
  email: string().email(),
6333
6344
  role: _enum(["admin", "member"]).optional(),
6334
6345
  message: string().max(500).optional()
6335
- }).strict(), bo = object({ role: _enum(["admin", "member"]) }).strict(), xo = object({ token: string().min(1) }).strict(), So = _enum([
6346
+ }).strict(), xo = object({ role: _enum(["admin", "member"]) }).strict(), So = object({ token: string().min(1) }).strict(), Co = _enum([
6336
6347
  "planLimit",
6337
6348
  "billingOverdue",
6338
6349
  "rebuilding",
6339
6350
  "agentNotFound"
6340
- ]), Co = _enum([
6351
+ ]), wo = _enum([
6341
6352
  "rebuilding",
6342
6353
  "provisioning",
6343
6354
  "billingOverdue"
6344
- ]), wo = object({
6355
+ ]), To = object({
6345
6356
  agentId: string(),
6346
6357
  name: string(),
6347
6358
  avatar: F.optional(),
@@ -6361,21 +6372,21 @@ var fo = xr, po = P, $ = object({
6361
6372
  detail: string().optional(),
6362
6373
  blocker: R.optional(),
6363
6374
  canWake: boolean(),
6364
- cantWakeReason: So.optional(),
6375
+ cantWakeReason: Co.optional(),
6365
6376
  canRebuild: boolean(),
6366
- cantRebuildReason: Co.optional()
6367
- }), To = /* @__PURE__ */ t({
6368
- zNotificationTelemetryAck: () => ko,
6369
- zNotificationTelemetryEvent: () => Oo,
6370
- zRegisterDeviceRequest: () => Eo,
6371
- zRegisterDeviceResponse: () => Do
6372
- }), Eo = object({
6377
+ cantRebuildReason: wo.optional()
6378
+ }), Eo = /* @__PURE__ */ t({
6379
+ zNotificationTelemetryAck: () => Ao,
6380
+ zNotificationTelemetryEvent: () => ko,
6381
+ zRegisterDeviceRequest: () => Do,
6382
+ zRegisterDeviceResponse: () => Oo
6383
+ }), Do = object({
6373
6384
  deviceId: string().min(1).max(64),
6374
6385
  pushToken: string().min(1).max(200),
6375
6386
  appVersion: string().max(40).optional(),
6376
6387
  osVersion: string().max(40).optional(),
6377
6388
  model: string().max(80).optional()
6378
- }), Do = object({ deviceId: string().min(1).max(64) }), Oo = object({
6389
+ }), Oo = object({ deviceId: string().min(1).max(64) }), ko = object({
6379
6390
  deviceId: string().min(1).max(64),
6380
6391
  kind: string().min(1).max(30),
6381
6392
  action: _enum([
@@ -6384,7 +6395,7 @@ var fo = xr, po = P, $ = object({
6384
6395
  "dismissed"
6385
6396
  ]),
6386
6397
  messageId: string().max(32).optional()
6387
- }), ko = object({ updated: boolean() }), Ao = q.pick({
6398
+ }), Ao = object({ updated: boolean() }), jo = q.pick({
6388
6399
  orgId: !0,
6389
6400
  handle: !0,
6390
6401
  name: !0,
@@ -6400,11 +6411,11 @@ var fo = xr, po = P, $ = object({
6400
6411
  }).extend({
6401
6412
  avatar: $.nullable().optional(),
6402
6413
  cover: $.nullable().optional()
6403
- }), jo = object({
6414
+ }), Mo = object({
6404
6415
  name: string().min(1).max(255),
6405
6416
  handle: string().min(2).max(50).optional(),
6406
6417
  timezone: Y.optional()
6407
- }).strict(), Mo = q.pick({
6418
+ }).strict(), No = q.pick({
6408
6419
  name: !0,
6409
6420
  email: !0,
6410
6421
  website: !0,
@@ -6416,7 +6427,7 @@ var fo = xr, po = P, $ = object({
6416
6427
  timezone: Y.optional(),
6417
6428
  avatarMediaId: string().nullable().optional(),
6418
6429
  coverMediaId: string().nullable().optional()
6419
- }).strict(), No = object({
6430
+ }).strict(), Po = object({
6420
6431
  messagesHandled: number().int().nonnegative(),
6421
6432
  proactiveRuns: number().int().nonnegative(),
6422
6433
  approvalsWaiting: number().int().nonnegative(),
@@ -6433,11 +6444,11 @@ var fo = xr, po = P, $ = object({
6433
6444
  prev30BriefingsDelivered: number().int().nonnegative(),
6434
6445
  prev30ScheduledRuns: number().int().nonnegative(),
6435
6446
  since: string()
6436
- }), Po = _enum([
6447
+ }), Fo = _enum([
6437
6448
  "success",
6438
6449
  "info",
6439
6450
  "warning"
6440
- ]), Fo = object({
6451
+ ]), Io = object({
6441
6452
  org: object({
6442
6453
  orgId: string(),
6443
6454
  name: string(),
@@ -6446,7 +6457,7 @@ var fo = xr, po = P, $ = object({
6446
6457
  plan: object({
6447
6458
  key: string(),
6448
6459
  label: string(),
6449
- tone: Po,
6460
+ tone: Fo,
6450
6461
  status: string(),
6451
6462
  trialDaysRemaining: number().optional()
6452
6463
  }),
@@ -6467,15 +6478,15 @@ function zPaginatedResponse(e) {
6467
6478
  }
6468
6479
  //#endregion
6469
6480
  //#region ../core/dist/wire/public-services.js
6470
- var Io = object({
6481
+ var Lo = object({
6471
6482
  sender: _enum(["user", "agent"]),
6472
6483
  text: string()
6473
- }), Lo = _enum([
6484
+ }), Ro = _enum([
6474
6485
  "works-now",
6475
6486
  "guided-setup",
6476
6487
  "coming-soon",
6477
6488
  "custom-workflow"
6478
- ]), Ro = object({
6489
+ ]), zo = object({
6479
6490
  docsUrl: string(),
6480
6491
  verifiedAt: string(),
6481
6492
  version: string().optional(),
@@ -6487,11 +6498,11 @@ var Io = object({
6487
6498
  "unversioned"
6488
6499
  ]),
6489
6500
  note: string().optional()
6490
- }), zo = object({
6501
+ }), Bo = object({
6491
6502
  key: string(),
6492
6503
  label: string(),
6493
6504
  rank: number()
6494
- }), Bo = object({
6505
+ }), Vo = object({
6495
6506
  text: string(),
6496
6507
  tone: _enum([
6497
6508
  "info",
@@ -6499,7 +6510,7 @@ var Io = object({
6499
6510
  "success",
6500
6511
  "danger"
6501
6512
  ])
6502
- }), Vo = object({
6513
+ }), Ho = object({
6503
6514
  serviceKey: string(),
6504
6515
  name: string(),
6505
6516
  description: string(),
@@ -6509,16 +6520,16 @@ var Io = object({
6509
6520
  category: string(),
6510
6521
  categoryLabel: string(),
6511
6522
  categoryRank: number(),
6512
- secondaryCategories: array(zo),
6513
- badges: array(Bo),
6523
+ secondaryCategories: array(Bo),
6524
+ badges: array(Vo),
6514
6525
  tags: array(string()),
6515
6526
  searchAliases: array(string()),
6516
6527
  jtbd: string(),
6517
6528
  useCase: string(),
6518
6529
  demoScenario: string(),
6519
- sampleConversation: array(Io),
6520
- publicStatus: Lo,
6521
- apiVerification: Ro.optional(),
6530
+ sampleConversation: array(Lo),
6531
+ publicStatus: Ro,
6532
+ apiVerification: zo.optional(),
6522
6533
  setupDifficulty: string(),
6523
6534
  risk: string(),
6524
6535
  price: string(),
@@ -6531,89 +6542,89 @@ var Io = object({
6531
6542
  ]),
6532
6543
  setupSummary: string().optional(),
6533
6544
  pagePath: string()
6534
- }), Ho = object({
6545
+ }), Uo = object({
6535
6546
  fullName: string().min(1).max(100).optional(),
6536
6547
  linkedinUsername: K.nullable().optional(),
6537
6548
  avatarMediaId: string().nullable().optional(),
6538
6549
  primaryAgentId: string().nullable().optional(),
6539
6550
  lastActiveOrgId: string().nullable().optional()
6540
- }).strict(), Uo = /* @__PURE__ */ t({
6541
- ASSISTANT_SILENCE_CONTROLS: () => Ei,
6542
- ActionAreaSchema: () => Lr,
6551
+ }).strict(), Wo = /* @__PURE__ */ t({
6552
+ ASSISTANT_SILENCE_CONTROLS: () => Di,
6553
+ ActionAreaSchema: () => Rr,
6543
6554
  ActionButtonSchema: () => I,
6544
- Agent: () => fi,
6545
- AudioFormatSchema: () => Er,
6546
- AudioMediaSchema: () => jr,
6547
- AudioPropertiesSchema: () => Or,
6555
+ Agent: () => pi,
6556
+ AudioFormatSchema: () => Dr,
6557
+ AudioMediaSchema: () => Mr,
6558
+ AudioPropertiesSchema: () => kr,
6548
6559
  AuthApiError: () => AuthApiError,
6549
- BOT_API_LLM_PATH: () => Ai,
6550
- BOT_API_PATH: () => ki,
6551
- BOT_USER_AGENT: () => Ti,
6552
- ButtonDesignSchema: () => Ir,
6553
- ButtonThemeSchema: () => Fr,
6554
- CHART_THEME: () => ti,
6555
- CHAT_ISSUE_CODES: () => L,
6560
+ BOT_API_LLM_PATH: () => ji,
6561
+ BOT_API_PATH: () => Ai,
6562
+ BOT_USER_AGENT: () => Ei,
6563
+ ButtonDesignSchema: () => Lr,
6564
+ ButtonThemeSchema: () => Ir,
6565
+ CHART_THEME: () => ni,
6566
+ CHAT_ISSUE_CODES: () => Vr,
6556
6567
  CHAT_ISSUE_COPY: () => z,
6557
- CUSTOMER_AGENT_STATE_COLOR: () => Yr,
6558
- CUSTOMER_AGENT_STATE_LABEL: () => Jr,
6568
+ CUSTOMER_AGENT_STATE_COLOR: () => Xr,
6569
+ CUSTOMER_AGENT_STATE_LABEL: () => Yr,
6559
6570
  CookieUtil: () => CookieUtil,
6560
6571
  DEFAULT_HEARTBEAT_TIMES: () => ar,
6561
- DocumentMediaSchema: () => Mr,
6562
- ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Rr,
6563
- ENTRY_TIER_MONTHLY_PRICE_LABEL: () => zr,
6564
- ERROR_CODES: () => Ri,
6565
- EnrichedAgentSchema: () => ui,
6566
- ImageFormatSchema: () => wr,
6567
- ImageMediaSchema: () => kr,
6568
- LIFECYCLE_COLOR: () => Kr,
6572
+ DocumentMediaSchema: () => Nr,
6573
+ ENTRY_TIER_MONTHLY_PRICE_CENTS: () => zr,
6574
+ ENTRY_TIER_MONTHLY_PRICE_LABEL: () => L,
6575
+ ERROR_CODES: () => zi,
6576
+ EnrichedAgentSchema: () => di,
6577
+ ImageFormatSchema: () => Tr,
6578
+ ImageMediaSchema: () => Ar,
6579
+ LIFECYCLE_COLOR: () => qr,
6569
6580
  Logger: () => j,
6570
- MEDIA_CONTEXTS: () => br,
6571
- MEDIA_TYPES: () => yr,
6572
- MediaContextSchema: () => xr,
6581
+ MEDIA_CONTEXTS: () => xr,
6582
+ MEDIA_TYPES: () => br,
6583
+ MediaContextSchema: () => Sr,
6573
6584
  MediaSchema: () => F,
6574
- MediaStatusSchema: () => Sr,
6585
+ MediaStatusSchema: () => Cr,
6575
6586
  MediaTypeSchema: () => P,
6576
- MediaUnionSchema: () => Nr,
6577
- NavItemSchema: () => $r,
6578
- NavListSchema: () => ei,
6587
+ MediaUnionSchema: () => Pr,
6588
+ NavItemSchema: () => ei,
6589
+ NavListSchema: () => ti,
6579
6590
  PAGELINES_APP_CONFIG: () => i,
6580
- PERSONA_DEFAULTS: () => ri,
6591
+ PERSONA_DEFAULTS: () => ii,
6581
6592
  SettingsObject: () => SettingsObject,
6582
- SizeSchema: () => Pr,
6583
- SocialAccountSchema: () => _r,
6584
- SocialAccountsSchema: () => vr,
6585
- UNKNOWN_STATUS: () => Gr,
6593
+ SizeSchema: () => Fr,
6594
+ SocialAccountSchema: () => vr,
6595
+ SocialAccountsSchema: () => yr,
6596
+ UNKNOWN_STATUS: () => Kr,
6586
6597
  VOICE_CATALOG: () => U,
6587
- VideoFormatSchema: () => Tr,
6588
- VideoMediaSchema: () => Ar,
6589
- VideoPropertiesSchema: () => Dr,
6590
- agentSchema: () => li,
6598
+ VideoFormatSchema: () => Er,
6599
+ VideoMediaSchema: () => jr,
6600
+ VideoPropertiesSchema: () => Or,
6601
+ agentSchema: () => ui,
6591
6602
  apiError: () => apiError,
6592
6603
  apiOk: () => apiOk,
6593
- appleAuthSchema: () => bi,
6604
+ appleAuthSchema: () => xi,
6594
6605
  authErrorMessage: () => authErrorMessage,
6595
6606
  botApiLlmUrl: () => botApiLlmUrl,
6596
6607
  botApiUrl: () => botApiUrl,
6597
6608
  budgetMinutes: () => budgetMinutes,
6598
6609
  buildChatIssue: () => buildChatIssue,
6599
6610
  buildHeroState: () => buildHeroState,
6600
- changeEmailSchema: () => vi,
6611
+ changeEmailSchema: () => yi,
6601
6612
  chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
6602
6613
  chatEventMatchesTurn: () => chatEventMatchesTurn,
6603
6614
  chatEventTurnId: () => chatEventTurnId,
6604
6615
  chatEventUserTurnId: () => chatEventUserTurnId,
6605
6616
  chatIssueCatalogLines: () => chatIssueCatalogLines,
6606
6617
  chatIssueToErrorData: () => chatIssueToErrorData,
6607
- cookieUtil: () => hr,
6618
+ cookieUtil: () => gr,
6608
6619
  createAgent: () => createAgent,
6609
6620
  createAgents: () => createAgents,
6610
6621
  createLogger: () => createLogger,
6611
6622
  customerAgentState: () => customerAgentState,
6612
- debug: () => fr,
6623
+ debug: () => pr,
6613
6624
  derive: () => derive,
6614
- emailSchema: () => gi,
6615
- enrichedUserSchema: () => wi,
6616
- error: () => lr,
6625
+ emailSchema: () => _i,
6626
+ enrichedUserSchema: () => Ti,
6627
+ error: () => ur,
6617
6628
  errorCopy: () => errorCopy,
6618
6629
  errorFromApiResponse: () => errorFromApiResponse,
6619
6630
  extractChatVisualFencePayloads: () => extractChatVisualFencePayloads,
@@ -6622,8 +6633,8 @@ var Io = object({
6622
6633
  getDefaultAvatarUrl: () => getDefaultAvatarUrl,
6623
6634
  getDefaultGradientCss: () => getDefaultGradientCss,
6624
6635
  getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
6625
- googleAuthSchema: () => yi,
6626
- info: () => dr,
6636
+ googleAuthSchema: () => bi,
6637
+ info: () => fr,
6627
6638
  isAgentReady: () => isAgentReady,
6628
6639
  isAssistantSilenceControl: () => isAssistantSilenceControl,
6629
6640
  isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
@@ -6634,11 +6645,11 @@ var Io = object({
6634
6645
  logger: () => M,
6635
6646
  mapAuthErrorCode: () => mapAuthErrorCode,
6636
6647
  nanoid: () => nanoid,
6637
- notificationWire: () => To,
6648
+ notificationWire: () => Eo,
6638
6649
  objectId: () => objectId,
6639
- orgInfoSchema: () => Ci,
6650
+ orgInfoSchema: () => wi,
6640
6651
  orgSchema: () => q,
6641
- orgWithDefaultAgentSchema: () => xi,
6652
+ orgWithDefaultAgentSchema: () => Si,
6642
6653
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6643
6654
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
6644
6655
  readChatEventStream: () => readChatEventStream,
@@ -6647,129 +6658,129 @@ var Io = object({
6647
6658
  resolveVoice: () => resolveVoice,
6648
6659
  retryPolicyFor: () => retryPolicyFor,
6649
6660
  runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
6650
- serverTransitionBudgets: () => Oi,
6661
+ serverTransitionBudgets: () => ki,
6651
6662
  shortId: () => shortId,
6652
6663
  toAgentState: () => toAgentState,
6653
6664
  toChatStreamError: () => toChatStreamError,
6654
- trace: () => pr,
6655
- updateUserSchema: () => hi,
6656
- userSchema: () => mi,
6665
+ trace: () => mr,
6666
+ updateUserSchema: () => gi,
6667
+ userSchema: () => hi,
6657
6668
  uuid: () => uuid,
6658
- verifyCodeSchema: () => _i,
6659
- warn: () => ur,
6669
+ verifyCodeSchema: () => vi,
6670
+ warn: () => dr,
6660
6671
  withChatEventTurnId: () => withChatEventTurnId,
6661
- zAcceptInvitationBody: () => xo,
6662
- zAccessibleAgentRow: () => wo,
6663
- zAgentCreateAllowance: () => Oa,
6664
- zAgentCreateAllowanceReason: () => Da,
6672
+ zAcceptInvitationBody: () => So,
6673
+ zAccessibleAgentRow: () => To,
6674
+ zAgentCreateAllowance: () => ka,
6675
+ zAgentCreateAllowanceReason: () => Oa,
6665
6676
  zAgentGender: () => H,
6666
- zAgentRow: () => Ii,
6667
- zApiError: () => Vi,
6677
+ zAgentRow: () => Li,
6678
+ zApiError: () => Hi,
6668
6679
  zApiOk: () => zApiOk,
6669
6680
  zApiResponse: () => zApiResponse,
6670
- zAppleAuthBody: () => fa,
6671
- zAuthSessionData: () => pa,
6672
- zAuthSessionResponse: () => ma,
6673
- zAutomationPrimaryChannel: () => Ni,
6674
- zBackfillBillingData: () => ja,
6675
- zBackfillCustomersData: () => Aa,
6676
- zBillingDetails: () => Ea,
6677
- zBillingInvoice: () => wa,
6678
- zBillingPaymentMethod: () => Ca,
6679
- zBillingPlanKey: () => xa,
6680
- zBillingStatus: () => Sa,
6681
+ zAppleAuthBody: () => pa,
6682
+ zAuthSessionData: () => ma,
6683
+ zAuthSessionResponse: () => ha,
6684
+ zAutomationPrimaryChannel: () => Pi,
6685
+ zBackfillBillingData: () => Ma,
6686
+ zBackfillCustomersData: () => ja,
6687
+ zBillingDetails: () => Da,
6688
+ zBillingInvoice: () => Ta,
6689
+ zBillingPaymentMethod: () => wa,
6690
+ zBillingPlanKey: () => Sa,
6691
+ zBillingStatus: () => Ca,
6681
6692
  zBillingTier: () => G,
6682
- zBotGenerateImageBody: () => ua,
6683
- zBotGenerateImageResponse: () => da,
6684
- zCancelConversationTurnBody: () => $a,
6685
- zCancelConversationTurnResponse: () => eo,
6686
- zCantRebuildReason: () => Co,
6687
- zCantWakeReason: () => So,
6688
- zChatAttachment: () => Ji,
6689
- zChatAttachmentInput: () => na,
6690
- zChatAttachmentPlacement: () => qi,
6691
- zChatCardSpec: () => Ia,
6692
- zChatErrorData: () => Na,
6693
- zChatEvent: () => Pa,
6693
+ zBotGenerateImageBody: () => da,
6694
+ zBotGenerateImageResponse: () => fa,
6695
+ zCancelConversationTurnBody: () => eo,
6696
+ zCancelConversationTurnResponse: () => to,
6697
+ zCantRebuildReason: () => wo,
6698
+ zCantWakeReason: () => Co,
6699
+ zChatAttachment: () => Yi,
6700
+ zChatAttachmentInput: () => ra,
6701
+ zChatAttachmentPlacement: () => Ji,
6702
+ zChatCardSpec: () => La,
6703
+ zChatErrorData: () => Pa,
6704
+ zChatEvent: () => Fa,
6694
6705
  zChatIssue: () => R,
6695
- zChatMessage: () => ta,
6696
- zChatMessageAttentionItem: () => Qi,
6697
- zChatMessageAttentionRef: () => Yi,
6698
- zChatMessageAttentionUpdate: () => $i,
6699
- zChatMessageMetadata: () => ea,
6700
- zChatStatusData: () => Ma,
6701
- zChatToolActivityData: () => Wi,
6702
- zChatToolActivityVisual: () => Ui,
6703
- zChatVisualSpec: () => Ja,
6704
- zCompleteCheckoutData: () => ka,
6705
- zConversationLastMessage: () => Xa,
6706
- zConversationParticipant: () => Ya,
6707
- zConversationSummary: () => Za,
6708
- zConversationTarget: () => ia,
6709
- zConversationUpdatedEvent: () => no,
6710
- zCreateAgentBody: () => Pi,
6711
- zCreateConversationBody: () => aa,
6712
- zCreateConversationSessionBody: () => oa,
6713
- zCreateOrgBody: () => jo,
6706
+ zChatMessage: () => na,
6707
+ zChatMessageAttentionItem: () => $i,
6708
+ zChatMessageAttentionRef: () => Xi,
6709
+ zChatMessageAttentionUpdate: () => ea,
6710
+ zChatMessageMetadata: () => ta,
6711
+ zChatStatusData: () => Na,
6712
+ zChatToolActivityData: () => Gi,
6713
+ zChatToolActivityVisual: () => Wi,
6714
+ zChatVisualSpec: () => Ya,
6715
+ zCompleteCheckoutData: () => Aa,
6716
+ zConversationLastMessage: () => Za,
6717
+ zConversationParticipant: () => Xa,
6718
+ zConversationSummary: () => Qa,
6719
+ zConversationTarget: () => aa,
6720
+ zConversationUpdatedEvent: () => ro,
6721
+ zCreateAgentBody: () => Fi,
6722
+ zCreateConversationBody: () => oa,
6723
+ zCreateConversationSessionBody: () => sa,
6724
+ zCreateOrgBody: () => Mo,
6714
6725
  zDesiredStatus: () => V,
6715
- zErrorCode: () => zi,
6726
+ zErrorCode: () => Bi,
6716
6727
  zErrorResponses: () => zErrorResponses,
6717
- zFleetAgent: () => so,
6718
- zFleetSummary: () => co,
6719
- zFleetSyncResponse: () => lo,
6720
- zHandoffConsumeBody: () => va,
6721
- zHandoffConsumeData: () => ya,
6722
- zHandoffConsumeResponse: () => ba,
6723
- zHandoffMintBody: () => ha,
6724
- zHandoffMintData: () => ga,
6725
- zHandoffMintResponse: () => _a,
6728
+ zFleetAgent: () => co,
6729
+ zFleetSummary: () => lo,
6730
+ zFleetSyncResponse: () => uo,
6731
+ zHandoffConsumeBody: () => ya,
6732
+ zHandoffConsumeData: () => ba,
6733
+ zHandoffConsumeResponse: () => xa,
6734
+ zHandoffMintBody: () => ga,
6735
+ zHandoffMintData: () => _a,
6736
+ zHandoffMintResponse: () => va,
6726
6737
  zHeartbeatLocalTime: () => T,
6727
6738
  zHeartbeatMoment: () => ir,
6728
- zHomeStats: () => No,
6739
+ zHomeStats: () => Po,
6729
6740
  zIanaTimezone: () => Y,
6730
- zImageAspectRatio: () => ca,
6731
- zImageResolution: () => la,
6732
- zInvitationPreview: () => vo,
6733
- zInvitationRow: () => _o,
6734
- zInviteBody: () => yo,
6741
+ zImageAspectRatio: () => la,
6742
+ zImageResolution: () => ua,
6743
+ zInvitationPreview: () => yo,
6744
+ zInvitationRow: () => vo,
6745
+ zInviteBody: () => bo,
6735
6746
  zLifecycle: () => B,
6736
- zLifecycleVerb: () => Qr,
6737
- zLiveStatus: () => Wr,
6738
- zMarkReadBody: () => Qa,
6739
- zMediaContext: () => fo,
6747
+ zLifecycleVerb: () => $r,
6748
+ zLiveStatus: () => Gr,
6749
+ zMarkReadBody: () => $a,
6750
+ zMediaContext: () => po,
6740
6751
  zMediaObject: () => $,
6741
- zMediaType: () => po,
6742
- zMemberRow: () => go,
6743
- zMessageSearchResult: () => to,
6744
- zOrgRow: () => Ao,
6745
- zOrgSummary: () => Fo,
6752
+ zMediaType: () => mo,
6753
+ zMemberRow: () => _o,
6754
+ zMessageSearchResult: () => no,
6755
+ zOrgRow: () => jo,
6756
+ zOrgSummary: () => Io,
6746
6757
  zPaginatedResponse: () => zPaginatedResponse,
6747
- zPlanTone: () => Po,
6748
- zProviderErrorKind: () => Bi,
6749
- zPublicServiceOverview: () => Vo,
6750
- zReportMessageBody: () => sa,
6751
- zRuntimeOperation: () => Ur,
6752
- zRuntimeOperationKind: () => Vr,
6753
- zRuntimeOperationStatus: () => Hr,
6754
- zSendMessageBody: () => ra,
6755
- zSuggestedPrompt: () => Li,
6756
- zUpdateAgentBody: () => Fi,
6757
- zUpdateOrgBody: () => Mo,
6758
- zUpdateRoleBody: () => bo,
6759
- zUpdateUserBody: () => Ho,
6760
- zUploadMediaBody: () => mo,
6758
+ zPlanTone: () => Fo,
6759
+ zProviderErrorKind: () => Vi,
6760
+ zPublicServiceOverview: () => Ho,
6761
+ zReportMessageBody: () => ca,
6762
+ zRuntimeOperation: () => Wr,
6763
+ zRuntimeOperationKind: () => Hr,
6764
+ zRuntimeOperationStatus: () => Ur,
6765
+ zSendMessageBody: () => ia,
6766
+ zSuggestedPrompt: () => Ri,
6767
+ zUpdateAgentBody: () => Ii,
6768
+ zUpdateOrgBody: () => No,
6769
+ zUpdateRoleBody: () => xo,
6770
+ zUpdateUserBody: () => Uo,
6771
+ zUploadMediaBody: () => ho,
6761
6772
  zVoiceKey: () => W,
6762
- zVoiceProviderName: () => oi,
6763
- zVoiceProviderSession: () => ai,
6764
- zVoiceSessionMint: () => si,
6765
- zVoiceSessionMintBody: () => ii
6766
- }), Wo = "1.0.0";
6773
+ zVoiceProviderName: () => si,
6774
+ zVoiceProviderSession: () => oi,
6775
+ zVoiceSessionMint: () => ci,
6776
+ zVoiceSessionMintBody: () => ai
6777
+ }), Go = "1.0.0";
6767
6778
  function buildContract(e = {}) {
6768
6779
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6769
6780
  let r = contractNameFor(e);
6770
6781
  r && (n[r] = toSchema(t));
6771
6782
  };
6772
- for (let [e, t] of Object.entries(Uo)) {
6783
+ for (let [e, t] of Object.entries(Wo)) {
6773
6784
  if (t instanceof S) {
6774
6785
  addSchema(e, t);
6775
6786
  continue;
@@ -6777,7 +6788,7 @@ function buildContract(e = {}) {
6777
6788
  if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
6778
6789
  }
6779
6790
  return {
6780
- version: Wo,
6791
+ version: Go,
6781
6792
  generatedAt: t.toISOString(),
6782
6793
  schemas: n
6783
6794
  };
@@ -6797,6 +6808,6 @@ function sortedReplacer(e, t) {
6797
6808
  return t;
6798
6809
  }
6799
6810
  //#endregion
6800
- export { Wo as CONTRACT_VERSION, buildContract, serializeContract };
6811
+ export { Go as CONTRACT_VERSION, buildContract, serializeContract };
6801
6812
 
6802
6813
  //# sourceMappingURL=contract.js.map